-
Notifications
You must be signed in to change notification settings - Fork 205
[AMD/ROCM] GLM5.1 FP4 (MXFP4) MI355X Support #1098
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
cquil11
merged 12 commits into
SemiAnalysisAI:main
from
ajith-sirra-amd:ajith/glm5_fp4_mi355x_sglang
Apr 21, 2026
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
a364a35
AMD GLM5 FP4 (mxfp4) MI355X Support
ajith-sirra-amd 1339a94
AMD GLM5 FP4 (mxfp4) MI355X Support - Perf Change Log
ajith-sirra-amd 93be0c5
AMD GLM5 FP4 (mxfp4) MI355X Support
ajith-sirra-amd 1a22dfe
AMD GLM5 FP4 (mxfp4) MI355X Support
ajith-sirra-amd b30c042
AMD GLM5 FP4 (mxfp4) MI355X Support
ajith-sirra-amd a47acb5
AMD GLM5 FP4 (mxfp4) MI355X Support
ajith-sirra-amd c8ad523
AMD GLM5 FP4 (MXFP4) MI355X Support
ajith-sirra-amd b57fc35
AMD GLM5 FP4 (MXFP4) MI355X Support
ajith-sirra-amd 9d2b96a
AMD GLM5 FP4 (MXFP4) MI355X Support
ajith-sirra-amd 277f774
AMD GLM5 FP4 (MXFP4) MI355X Support
ajith-sirra-amd e70e01f
AMD GLM5 FP4 (MXFP4) MI355X Support
ajith-sirra-amd 53098a2
Merge branch 'main' into ajith/glm5_fp4_mi355x_sglang
seungrokj 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,81 @@ | ||
| #!/usr/bin/env bash | ||
| set -x | ||
|
|
||
| source "$(dirname "$0")/../benchmark_lib.sh" | ||
|
|
||
| check_env_vars \ | ||
| MODEL \ | ||
| TP \ | ||
| CONC \ | ||
| ISL \ | ||
| OSL \ | ||
| RANDOM_RANGE_RATIO \ | ||
| RESULT_FILENAME | ||
|
|
||
| if [[ -n "$SLURM_JOB_ID" ]]; then | ||
| echo "JOB $SLURM_JOB_ID running on $SLURMD_NODENAME" | ||
| fi | ||
|
|
||
| hf download "$MODEL" | ||
|
|
||
| # ROCm / SGLang performance tuning for MI355X | ||
| export SGLANG_ROCM_FUSED_DECODE_MLA=0 | ||
| export ROCM_QUICK_REDUCE_QUANTIZATION=INT4 | ||
| export SAFETENSORS_FAST_GPU=1 | ||
|
|
||
| SERVER_LOG=/workspace/server.log | ||
| PORT=${PORT:-8888} | ||
| CONTEXT_LENGTH=$((ISL + OSL + 32)) | ||
|
|
||
| EVAL_CONTEXT_ARGS="" | ||
| if [ "${EVAL_ONLY}" = "true" ]; then | ||
| setup_eval_context | ||
| EVAL_CONTEXT_ARGS="--context-length $EVAL_MAX_MODEL_LEN" | ||
| fi | ||
| # Start GPU monitoring (power, temperature, clocks every second) | ||
| start_gpu_monitor | ||
|
|
||
| python3 -m sglang.launch_server \ | ||
| --model-path $MODEL \ | ||
| --host=0.0.0.0 \ | ||
| --port $PORT \ | ||
| --tensor-parallel-size $TP \ | ||
| --trust-remote-code \ | ||
| --cuda-graph-max-bs $CONC \ | ||
| --context-length $CONTEXT_LENGTH \ | ||
| --mem-fraction-static 0.85 \ | ||
| --tool-call-parser glm47 \ | ||
| --reasoning-parser glm45 \ | ||
| --model-loader-extra-config '{"enable_multithread_load": true, "num_threads": 8}' \ | ||
| --nsa-prefill-backend tilelang \ | ||
| --nsa-decode-backend tilelang $EVAL_CONTEXT_ARGS \ | ||
| --kv-cache-dtype fp8_e4m3 \ | ||
| --tokenizer-worker-num $((TP*2)) \ | ||
| --disable-radix-cache> $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" | ||
|
|
||
| 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" | ||
| append_lm_eval_summary | ||
| fi | ||
|
|
||
| # Stop GPU monitoring | ||
| stop_gpu_monitor | ||
| 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.
Uh oh!
There was an error while loading. Please reload this page.