-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Dan McPherson <[email protected]>
- Loading branch information
Showing
25 changed files
with
769 additions
and
1,385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,90 @@ | |
![Release](https://img.shields.io/github/v/release/instructlab/eval) | ||
![License](https://img.shields.io/github/license/instructlab/eval) | ||
|
||
Python library for Evaluation | ||
Python Library for Evaluation | ||
|
||
## MT-Bench / PR-Bench Testing Steps | ||
|
||
TODO: Figure out the right version. Latest fails with openai.types not found in the same venv. | ||
|
||
```shell | ||
pip install vllm==0.3.3 | ||
``` | ||
|
||
You should run with `--tensor-parallel-size <NUM GPUS>` and possibly increase `--max-model-len` to increase the context length | ||
|
||
```shell | ||
python -m vllm.entrypoints.openai.api_server --model instructlab/granite-7b-lab --tensor-parallel-size 4 | ||
``` | ||
|
||
```shell | ||
OPENAI_API_KEY="NO_API_KEY" python3 tests/test_gen_answers.py | ||
OPENAI_API_KEY="NO_API_KEY" python3 tests/test_pr_bench_gen_answers.py | ||
``` | ||
|
||
Example output | ||
|
||
``` | ||
Check failure on line 31 in README.md GitHub Actions / markdown-lintFenced code blocks should have a language specified
|
||
eval_output/ | ||
├── mt_bench | ||
│ └── model_answer | ||
│ └── instructlab | ||
│ └── granite-7b-lab.jsonl | ||
└── pr_bench | ||
├── main | ||
│ ├── model_answer | ||
│ │ └── instructlab | ||
│ │ └── granite-7b-lab.jsonl | ||
│ ├── question.jsonl | ||
│ └── reference_answer | ||
│ └── gpt-4.jsonl | ||
└── rc | ||
├── model_answer | ||
│ └── instructlab | ||
│ └── granite-7b-lab.jsonl | ||
├── question.jsonl | ||
└── reference_answer | ||
└── gpt-4.jsonl | ||
``` | ||
|
||
For running judge model with vllm make sure you run with `--served-model-name gpt-4` | ||
|
||
You should run with `--tensor-parallel-size <NUM GPUS>` and possibly increase `--max-model-len` to increase the context length | ||
|
||
```shell | ||
python -m vllm.entrypoints.openai.api_server --model instructlab/granite-7b-lab --served-model-name gpt-4 --tensor-parallel-size 4 | ||
``` | ||
|
||
```shell | ||
OPENAI_API_KEY="NO_API_KEY" python3 tests/test_judge_answers.py | ||
OPENAI_API_KEY="NO_API_KEY" python3 tests/test_pr_bench_judge_answers.py | ||
``` | ||
|
||
Example output | ||
|
||
``` | ||
Check failure on line 69 in README.md GitHub Actions / markdown-lintFenced code blocks should have a language specified
|
||
eval_output/ | ||
├── mt_bench | ||
│ └── model_answer | ||
│ └── instructlab | ||
│ └── granite-7b-lab.jsonl | ||
└── pr_bench | ||
├── main | ||
│ ├── model_answer | ||
│ │ └── instructlab | ||
│ │ └── granite-7b-lab.jsonl | ||
│ ├── model_judgment | ||
│ │ └── gpt-4_single.jsonl | ||
│ ├── question.jsonl | ||
│ └── reference_answer | ||
│ └── gpt-4.jsonl | ||
└── rc | ||
├── model_answer | ||
│ └── instructlab | ||
│ └── granite-7b-lab.jsonl | ||
├── model_judgment | ||
│ └── gpt-4_single.jsonl | ||
├── question.jsonl | ||
└── reference_answer | ||
└── gpt-4.jsonl | ||
``` |
80 changes: 0 additions & 80 deletions
80
data/mt_bench/model_answer/instructlab/granite-7b-lab.jsonl
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,9 @@ | |
FastChat | ||
shortuuid | ||
openai<1.0.0 | ||
anthropic | ||
psutil | ||
torch | ||
transformers | ||
accelerate | ||
pandas | ||
pandas-stubs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.