Skip to content

[CI][Benchmark] Add Qwen3-30B-A3B and Qwen3-32B performance benchmark #1613

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/nightly_benchmarks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ jobs:
options: >-
--device /dev/davinci0
--device /dev/davinci1
--device /dev/davinci2
--device /dev/davinci3
--device /dev/davinci_manager
--device /dev/devmm_svm
--device /dev/hisi_hdc
Expand Down
11 changes: 6 additions & 5 deletions benchmarks/scripts/patch_benchmark_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

# Patch the benchmark_dataset.py file to set streaming=False in load_dataset calls

VLLM_EDITABLE_PATH = "/_w/vllm-ascend/vllm-ascend/vllm-empty/vllm/benchmarks/datasets.py"


# TDOO(Potabk): Remove this patch when the issue is fixed in the upstream
class StreamingFalseTransformer(cst.CSTTransformer):
Expand Down Expand Up @@ -68,10 +70,9 @@ def patch_file(path):
description=
"Patch benchmark_dataset.py to set streaming=False in load_dataset calls"
)
parser.add_argument(
"--path",
type=str,
default="/vllm-workspace/vllm/vllm/benchmarks/datasets.py",
help="Path to the benchmark_dataset.py file")
parser.add_argument("--path",
type=str,
default=VLLM_EDITABLE_PATH,
help="Path to the benchmark_dataset.py file")
args = parser.parse_args()
patch_file(args.path)
13 changes: 10 additions & 3 deletions benchmarks/scripts/run-performance-benchmarks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,15 @@ run_serving_tests() {

local serving_test_file
serving_test_file=$1
cleanup() {
if [[ -n "$server_pid" ]]; then
echo "Cleaning up server process $server_pid..."
kill -9 "$server_pid" 2>/dev/null || true
fi
kill_npu_processes
}

trap cleanup EXIT INT TERM

# Iterate over serving tests
jq -c '.[]' "$serving_test_file" | while read -r params; do
Expand Down Expand Up @@ -267,11 +276,9 @@ run_serving_tests() {
kill -9 $server_pid
kill_npu_processes
done
trap - EXIT INT TERM
}

cleanup() {
rm -rf ./vllm_benchmarks
}

cleanup_on_error() {
echo "An error occurred. Cleaning up results folder..."
Expand Down
20 changes: 20 additions & 0 deletions benchmarks/tests/latency-tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,25 @@
"num_iters_warmup": 5,
"num_iters": 15
}
},
{
"test_name": "latency_qwen3_30B_A3B_tp4",
"parameters": {
"model": "Qwen/Qwen3-30B-A3B",
"tensor_parallel_size": 4,
"load_format": "dummy",
"num_iters_warmup": 5,
"num_iters": 15
}
},
{
"test_name": "latency_qwen3_32B_tp4",
"parameters": {
"model": "Qwen/Qwen3-32B",
"tensor_parallel_size": 4,
"load_format": "dummy",
"num_iters_warmup": 5,
"num_iters": 15
}
}
]
48 changes: 48 additions & 0 deletions benchmarks/tests/serving-tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,53 @@
"dataset_path": "/github/home/.cache/datasets/ShareGPT_V3_unfiltered_cleaned_split.json",
"num_prompts": 200
}
},
{
"test_name": "serving_qwen3_30B_A3B_tp4",
"qps_list": [
1,
4,
16,
"inf"
],
"server_parameters": {
"model": "Qwen/Qwen3-30B-A3B",
"tensor_parallel_size": 4,
"swap_space": 16,
"disable_log_stats": "",
"disable_log_requests": "",
"load_format": "dummy"
},
"client_parameters": {
"model": "Qwen/Qwen3-30B-A3B",
"endpoint_type": "vllm",
"dataset_name": "sharegpt",
"dataset_path": "/github/home/.cache/datasets/ShareGPT_V3_unfiltered_cleaned_split.json",
"num_prompts": 200
}
},
{
"test_name": "serving_qwen3_32B_tp4",
"qps_list": [
1,
4,
16,
"inf"
],
"server_parameters": {
"model": "Qwen/Qwen3-32B",
"tensor_parallel_size": 4,
"swap_space": 16,
"disable_log_stats": "",
"disable_log_requests": "",
"load_format": "dummy"
},
"client_parameters": {
"model": "Qwen/Qwen3-32B",
"endpoint_type": "vllm",
"dataset_name": "sharegpt",
"dataset_path": "/github/home/.cache/datasets/ShareGPT_V3_unfiltered_cleaned_split.json",
"num_prompts": 200
}
}
]
22 changes: 22 additions & 0 deletions benchmarks/tests/throughput-tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,28 @@
"num_prompts": 200,
"backend": "vllm"
}
},
{
"test_name": "throughput_qwen3_30B_A3B_tp4",
"parameters": {
"model": "Qwen/Qwen3-30B-A3B",
"tensor_parallel_size": 4,
"load_format": "dummy",
"dataset_path": "/github/home/.cache/datasets/ShareGPT_V3_unfiltered_cleaned_split.json",
"num_prompts": 200,
"backend": "vllm"
}
},
{
"test_name": "throughput_qwen3_32B_tp4",
"parameters": {
"model": "Qwen/Qwen3-32B",
"tensor_parallel_size": 4,
"load_format": "dummy",
"dataset_path": "/github/home/.cache/datasets/ShareGPT_V3_unfiltered_cleaned_split.json",
"num_prompts": 200,
"backend": "vllm"
}
}
]

Loading