-
Notifications
You must be signed in to change notification settings - Fork 186
[WIP] [NV] Qwen3.5 FP8 H200 SGLang #855
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 all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
2c5c131
add-qwen3.5-h200-sglang
hshrivastava-droid 8a4fb7a
add-qwen35-h200-sglang
hshrivastava-droid 98ad74f
Merge branch 'main' into nv/h200-qwen35
kedarpotdar-nv a70cd22
fix typo in perf-changelog.yaml
kedarpotdar-nv 2116fc4
fix: max_seq_len
hshrivastava-droid 1209164
Update sgl container version nvidia-master.yaml
kedarpotdar-nv c0e872c
Update qwen3.5_fp8_h200.sh
kedarpotdar-nv efb5bbc
Update qwen3.5_fp8_h200.sh
kedarpotdar-nv 65b715e
add expert parallel
kedarpotdar-nv 0400d30
Merge branch 'main' into nv/h200-qwen35
kedarpotdar-nv e46ad98
fix typo in qwen3.5_fp8_h200.sh
kedarpotdar-nv f15552a
fix EP variable
hshrivastava-droid 179d3e6
Merge branch 'main' into nv/h200-qwen35
Ankur-singh 5739244
remove extra params
hshrivastava-droid 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| source "$(dirname "$0")/../benchmark_lib.sh" | ||
|
|
||
| check_env_vars \ | ||
| MODEL \ | ||
| TP \ | ||
| CONC \ | ||
| ISL \ | ||
| OSL \ | ||
| RANDOM_RANGE_RATIO \ | ||
| RESULT_FILENAME \ | ||
| EP_SIZE | ||
|
|
||
| if [[ -n "$SLURM_JOB_ID" ]]; then | ||
| echo "JOB $SLURM_JOB_ID running on $SLURMD_NODENAME" | ||
| fi | ||
|
|
||
| nvidia-smi | ||
|
|
||
| hf download "$MODEL" | ||
|
|
||
| SERVER_LOG=/workspace/server.log | ||
| PORT=${PORT:-8888} | ||
| MAX_SEQ_LEN=$((ISL + OSL + 20)) | ||
|
|
||
| echo "CONC: $CONC, ISL: $ISL, OSL: $OSL, MAX_SEQ_LEN: $MAX_SEQ_LEN" | ||
|
|
||
| set -x | ||
| python3 -m sglang.launch_server \ | ||
| --model "$MODEL" \ | ||
| --host 0.0.0.0 \ | ||
| --port "$PORT" \ | ||
| --tp "$TP" \ | ||
| --expert-parallel-size "$EP_SIZE" \ | ||
| --reasoning-parser qwen3 \ | ||
| --tool-call-parser qwen3_coder \ | ||
| --enable-flashinfer-allreduce-fusion \ | ||
| --max-running-requests 128 \ | ||
| --chunked-prefill-size 16384 \ | ||
| --decode-log-interval 1 \ | ||
| --mem-fraction-static 0.8 \ | ||
| --cuda-graph-max-bs "$CONC" \ | ||
| --context-length "$MAX_SEQ_LEN" \ | ||
| --kv-cache-dtype fp8_e4m3 \ | ||
| --quantization fp8 \ | ||
| --attention-backend flashinfer \ | ||
| --stream-interval 50 \ | ||
| --tokenizer-worker-num 6 \ | ||
| --mamba-ssm-dtype bfloat16 \ | ||
| --disable-radix-cache \ | ||
| --trust-remote-code \ | ||
| > "$SERVER_LOG" 2>&1 & | ||
|
|
||
| SERVER_PID=$! | ||
|
|
||
| # Wait for server to be ready | ||
| wait_for_server_ready --port "$PORT" --server-log "$SERVER_LOG" --server-pid "$SERVER_PID" | ||
|
|
||
| pip install -q datasets pandas | ||
|
|
||
| run_benchmark_serving \ | ||
| --model "$MODEL" \ | ||
| --port "$PORT" \ | ||
| --backend vllm \ | ||
| --input-len "$ISL" \ | ||
| --output-len "$OSL" \ | ||
| --random-range-ratio "$RANDOM_RANGE_RATIO" \ | ||
| --num-prompts "$((CONC * 10))" \ | ||
| --max-concurrency "$CONC" \ | ||
| --result-filename "$RESULT_FILENAME" \ | ||
| --result-dir /workspace/ | ||
|
|
||
| # After throughput, run evaluation only if RUN_EVAL is true | ||
| if [ "${RUN_EVAL}" = "true" ]; then | ||
| run_eval --framework lm-eval --port "$PORT" --concurrent-requests $CONC | ||
| append_lm_eval_summary | ||
| fi | ||
| set +x | ||
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.
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.
can u PR an sglang cookbook for this? this is a lot of flags 😭