-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[CI/Build] Add Qwen2.5-VL-7B-Instruct ChartQA Accuracy Tests in CI #21810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
yeqcharlotte
merged 10 commits into
vllm-project:main
from
zhewenl:add-more-large-model
Oct 15, 2025
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
098f85c
add text config
yeqcharlotte 508288f
add mm config for qwen2.5vl 7b
yeqcharlotte 35cbe62
add llama4 evals
zhewenl 231e12d
update
zhewenl eb315a7
add MM to CI
zhewenl b9002b5
update
zhewenl 16970c2
update backend
zhewenl 1b18000
update path coverage
zhewenl 10412d2
update
zhewenl a9ac48a
update trigger
yeqcharlotte File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
.buildkite/lm-eval-harness/configs/Meta-Llama-3-8B-QQQ.yaml
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # For vllm script, with -t option (tensor parallel size). | ||
| # bash .buildkite/lm-eval-harness/run-lm-eval-gsm-vllm-baseline.sh -m HandH1998/QQQ-Llama-3-8b-g128 -b 32 -l 1000 -f 5 -t 1 | ||
| model_name: "HandH1998/QQQ-Llama-3-8b-g128" | ||
| tasks: | ||
| - name: "gsm8k" | ||
| metrics: | ||
| - name: "exact_match,strict-match" | ||
| value: 0.419 | ||
| - name: "exact_match,flexible-extract" | ||
| value: 0.416 | ||
| limit: 1000 | ||
| num_fewshot: 5 |
11 changes: 11 additions & 0 deletions
11
.buildkite/lm-eval-harness/configs/Meta-Llama-4-Maverick-17B-128E-Instruct-FP8-MM.yaml
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # For hf script, without -t option (tensor parallel size). | ||
| # bash .buildkite/lm-eval-harness/run-lm-eval-chartqa-vllm-vlm-baseline.sh -m meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8 -b 32 -l 100 -t 8 | ||
| model_name: "meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8" | ||
| backend: "vllm-vlm" | ||
| tasks: | ||
| - name: "chartqa" | ||
| metrics: | ||
| - name: "relaxed_accuracy,none" | ||
| value: 0.90 | ||
| limit: 100 | ||
| num_fewshot: 0 | ||
11 changes: 11 additions & 0 deletions
11
.buildkite/lm-eval-harness/configs/Meta-Llama-4-Maverick-17B-128E-Instruct-FP8.yaml
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # For hf script, without -t option (tensor parallel size). | ||
| # bash .buildkite/lm-eval-harness/run-lm-eval-gsm-vllm-baseline.sh -m meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8 -b 32 -l 250 -t 8 -f 5 | ||
| model_name: "meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8" | ||
| backend: "vllm-vlm" | ||
| tasks: | ||
| - name: "mmlu_pro" | ||
| metrics: | ||
| - name: "exact_match,custom-extract" | ||
| value: 0.80 | ||
| limit: 250 # will run on 250 * 14 subjects = 3500 samples | ||
| num_fewshot: 5 |
3 changes: 2 additions & 1 deletion
3
.buildkite/lm-eval-harness/configs/Qwen2.5-VL-3B-Instruct-FP8-dynamic.yaml
This file contains hidden or 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
12 changes: 12 additions & 0 deletions
12
.buildkite/lm-eval-harness/configs/Qwen2.5-VL-7B-Instruct.yaml
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # For vllm script, with -t option (tensor parallel size). | ||
| # bash .buildkite/lm-eval-harness/run-lm-eval-chartqa-vllm-vlm-baseline.sh -m Qwen/Qwen2.5-VL-7B-Instruct -l 2500 -t 1 | ||
|
|
||
| model_name: "Qwen/Qwen2.5-VL-7B-Instruct" | ||
| backend: "vllm-vlm" | ||
| tasks: | ||
| - name: "chartqa" | ||
| metrics: | ||
| - name: "relaxed_accuracy,none" | ||
| value: 0.855 | ||
| limit: 2500 | ||
| num_fewshot: 0 |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Meta-Llama-4-Maverick-17B-128E-Instruct-FP8.yaml |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Meta-Llama-4-Maverick-17B-128E-Instruct-FP8-MM.yaml |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Qwen2.5-VL-7B-Instruct.yaml |
44 changes: 44 additions & 0 deletions
44
.buildkite/lm-eval-harness/run-lm-eval-chartqa-vllm-vlm-baseline.sh
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| #!/bin/bash | ||
| # We can use this script to compute baseline accuracy on chartqa for vllm. | ||
| # | ||
| # Make sure you have lm-eval-harness installed: | ||
| # pip install lm-eval==0.4.9 | ||
|
|
||
| usage() { | ||
| echo`` | ||
| echo "Runs lm eval harness on ChartQA using multimodal vllm." | ||
| echo "This pathway is intended to be used to create baselines for " | ||
| echo "our correctness tests in vllm's CI." | ||
| echo | ||
| echo "usage: ${0} <options>" | ||
| echo | ||
| echo " -m - huggingface stub or local directory of the model" | ||
| echo " -l - limit number of samples to run" | ||
| echo " -t - tensor parallel size to run at" | ||
| echo | ||
| } | ||
|
|
||
| while getopts "m:l:t:" OPT; do | ||
| case ${OPT} in | ||
| m ) | ||
| MODEL="$OPTARG" | ||
| ;; | ||
| l ) | ||
| LIMIT="$OPTARG" | ||
| ;; | ||
| t ) | ||
| TP_SIZE="$OPTARG" | ||
| ;; | ||
| \? ) | ||
| usage | ||
| exit 1 | ||
| ;; | ||
| esac | ||
| done | ||
|
|
||
| lm_eval --model vllm-vlm \ | ||
| --model_args "pretrained=$MODEL,tensor_parallel_size=$TP_SIZE" \ | ||
| --tasks chartqa \ | ||
| --batch_size auto \ | ||
| --apply_chat_template \ | ||
| --limit $LIMIT |
Empty file.
50 changes: 50 additions & 0 deletions
50
.buildkite/lm-eval-harness/run-lm-eval-mmlupro-vllm-baseline.sh
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| #!/bin/bash | ||
| # We can use this script to compute baseline accuracy on MMLUPRO for vllm. | ||
| # We use this for fp8, which HF does not support. | ||
| # | ||
| # Make sure you have lm-eval-harness installed: | ||
| # pip install git+https://github.com/EleutherAI/lm-evaluation-harness.git@206b7722158f58c35b7ffcd53b035fdbdda5126d#egg=lm-eval[api] | ||
|
|
||
| usage() { | ||
| echo`` | ||
| echo "Runs lm eval harness on MMLU Pro using huggingface transformers." | ||
| echo "This pathway is intended to be used to create baselines for " | ||
| echo "our automated nm-test-accuracy workflow" | ||
| echo | ||
| echo "usage: ${0} <options>" | ||
| echo | ||
| echo " -m - huggingface stub or local directory of the model" | ||
| echo " -l - limit number of samples to run" | ||
| echo " -f - number of fewshot samples to use" | ||
| echo " -t - tensor parallel size to run at" | ||
| echo | ||
| } | ||
|
|
||
| while getopts "m:b:l:f:t:" OPT; do | ||
| case ${OPT} in | ||
| m ) | ||
| MODEL="$OPTARG" | ||
| ;; | ||
| b ) | ||
| BATCH_SIZE="$OPTARG" | ||
| ;; | ||
| l ) | ||
| LIMIT="$OPTARG" | ||
| ;; | ||
| f ) | ||
| FEWSHOT="$OPTARG" | ||
| ;; | ||
| t ) | ||
| TP_SIZE="$OPTARG" | ||
| ;; | ||
| \? ) | ||
| usage | ||
| exit 1 | ||
| ;; | ||
| esac | ||
| done | ||
|
|
||
| lm_eval --model vllm \ | ||
| --model_args "pretrained=$MODEL,tensor_parallel_size=$TP_SIZE,add_bos_token=true,trust_remote_code=true,max_model_len=4096" \ | ||
| --tasks mmlu_pro --num_fewshot "$FEWSHOT" --limit "$LIMIT" \ | ||
| --batch_size auto |
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we will need to define model name + tasks(text/MM) which is not that scalable, we can think about refactoring the yaml/code to support
tasks_groupswhere we can define the tests suite per model like thiscc @robertgshaw2-redhat