-
-
Notifications
You must be signed in to change notification settings - Fork 13k
[CI Test] Add Scheduled Integration Test #27765
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
Merged
Changes from 2 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4cca1c1
add scheduled integration test
yewentao256 2af6fbe
update
yewentao256 67166c3
update using h100
yewentao256 b72c396
update
yewentao256 373f062
fix threshold
yewentao256 2d40e06
fix warm up issue
yewentao256 6c7ea5d
Merge branch 'main' into wentao-add-scheduled-integration-test
yewentao256 da39efb
Merge branch 'main' into wentao-add-scheduled-integration-test
yewentao256 9ffb25d
update skip deepgemm
yewentao256 160ea86
remove amd
yewentao256 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
61 changes: 61 additions & 0 deletions
61
.buildkite/scripts/scheduled_integration_test/deepseek_v2_lite_ep_eplb.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,61 @@ | ||
| #!/usr/bin/env bash | ||
| set -euxo pipefail | ||
|
|
||
| # args: [THRESHOLD] [NUM_QUESTIONS] [START_PORT] | ||
| THRESHOLDOLD=${1:-0.25} | ||
| NUM_Q=${2:-1319} | ||
| PORT=${3:-8010} | ||
| OUT_DIR=${OUT_DIR:-/tmp/vllm-scheduled} | ||
| mkdir -p "${OUT_DIR}" | ||
|
|
||
| wait_for_server() { | ||
| local port=$1 | ||
| timeout 600 bash -c ' | ||
| until curl -sf "http://127.0.0.1:'"$port"'/health" > /dev/null; do | ||
| sleep 1 | ||
| done' | ||
| } | ||
|
|
||
| MODEL="deepseek-ai/DeepSeek-V2-lite" | ||
| BACKENDS=("deepep_high_throughput" "deepep_low_latency") | ||
|
|
||
| cleanup() { | ||
| if [[ -n "${SERVER_PID:-}" ]] && kill -0 "${SERVER_PID}" 2>/dev/null; then | ||
| kill "${SERVER_PID}" 2>/dev/null || true | ||
| for _ in {1..20}; do | ||
| kill -0 "${SERVER_PID}" 2>/dev/null || break | ||
| sleep 0.5 | ||
| done | ||
| kill -9 "${SERVER_PID}" 2>/dev/null || true | ||
| fi | ||
| } | ||
| trap cleanup EXIT | ||
|
|
||
| for BACK in "${BACKENDS[@]}"; do | ||
| VLLM_ALL2ALL_BACKEND=$BACK \ | ||
| vllm serve "$MODEL" \ | ||
| --enforce-eager \ | ||
| --tensor-parallel-size 2 \ | ||
| --data-parallel-size 2 \ | ||
| --enable-expert-parallel \ | ||
| --enable-eplb \ | ||
| --trust-remote-code \ | ||
| --max-model-len 2048 \ | ||
| --port $PORT & | ||
| SERVER_PID=$! | ||
| wait_for_server $PORT | ||
|
|
||
| TAG=$(echo "$MODEL" | tr '/: \\n' '_____') | ||
| OUT="${OUT_DIR}/${TAG}_${BACK}.json" | ||
| python3 tests/evals/gsm8k/gsm8k_eval.py --host http://127.0.0.1 --port $PORT --num-questions ${NUM_Q} --save-results ${OUT} | ||
| python3 - <<PY | ||
| import json; acc=json.load(open('${OUT}'))['accuracy'] | ||
| print(f"${MODEL} ${BACK}: accuracy {acc:.3f}") | ||
| assert acc >= ${THRESHOLD}, f"${MODEL} ${BACK} accuracy {acc}" | ||
| PY | ||
|
|
||
| cleanup | ||
| SERVER_PID= | ||
| sleep 1 | ||
| PORT=$((PORT+1)) | ||
| done |
60 changes: 60 additions & 0 deletions
60
.buildkite/scripts/scheduled_integration_test/qwen30b_a3b_fp8_block_ep.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,60 @@ | ||
| #!/usr/bin/env bash | ||
| set -euxo pipefail | ||
|
|
||
| # args: [THRESHOLD] [NUM_QUESTIONS] [START_PORT] | ||
| THRESHOLD=${1:-0.8} | ||
| NUM_Q=${2:-1319} | ||
| PORT=${3:-8020} | ||
| OUT_DIR=${OUT_DIR:-/tmp/vllm-scheduled} | ||
| mkdir -p "${OUT_DIR}" | ||
|
|
||
| wait_for_server() { | ||
| local port=$1 | ||
| timeout 600 bash -c ' | ||
| until curl -sf "http://127.0.0.1:'"$port"'/health" > /dev/null; do | ||
| sleep 1 | ||
| done' | ||
| } | ||
|
|
||
| MODEL="QWen/Qwen3-30B-A3B-FP8" | ||
| BACKENDS=("deepep_high_throughput" "deepep_low_latency") | ||
|
|
||
| cleanup() { | ||
| if [[ -n "${SERVER_PID:-}" ]] && kill -0 "${SERVER_PID}" 2>/dev/null; then | ||
| kill "${SERVER_PID}" 2>/dev/null || true | ||
| for _ in {1..20}; do | ||
| kill -0 "${SERVER_PID}" 2>/dev/null || break | ||
| sleep 0.5 | ||
| done | ||
| kill -9 "${SERVER_PID}" 2>/dev/null || true | ||
| fi | ||
| } | ||
| trap cleanup EXIT | ||
|
|
||
| for BACK in "${BACKENDS[@]}"; do | ||
| VLLM_ALL2ALL_BACKEND=$BACK \ | ||
| vllm serve "$MODEL" \ | ||
| --enforce-eager \ | ||
| --tensor-parallel-size 2 \ | ||
| --data-parallel-size 2 \ | ||
| --enable-expert-parallel \ | ||
| --trust-remote-code \ | ||
| --max-model-len 2048 \ | ||
| --port $PORT & | ||
| SERVER_PID=$! | ||
| wait_for_server $PORT | ||
|
|
||
| TAG=$(echo "$MODEL" | tr '/: \\n' '_____') | ||
| OUT="${OUT_DIR}/${TAG}_${BACK}.json" | ||
| python3 tests/evals/gsm8k/gsm8k_eval.py --host http://127.0.0.1 --port $PORT --num-questions ${NUM_Q} --save-results ${OUT} | ||
| python3 - <<PY | ||
| import json; acc=json.load(open('${OUT}'))['accuracy'] | ||
| print(f"${MODEL} ${BACK}: accuracy {acc:.3f}") | ||
| assert acc >= ${THRESHOLD}, f"${MODEL} ${BACK} accuracy {acc}" | ||
| PY | ||
|
|
||
| cleanup | ||
| SERVER_PID= | ||
| sleep 1 | ||
| PORT=$((PORT+1)) | ||
| done |
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.