From c21ef5cbdbd9250fe4b926a0b60e4347c7416f1e Mon Sep 17 00:00:00 2001 From: functionstackx <47992694+functionstackx@users.noreply.github.com> Date: Fri, 17 Apr 2026 02:15:39 -0400 Subject: [PATCH 1/2] Add B300 config: glm5-fp8-sglang At the time of submission, the SGLang GLM-5.1 cookbook does not have a B300-specific recipe, so this config reuses the existing B200 GLM5 FP8 SGLang recipe as-is until B300-specific tuning is available. Image set to lmsysorg/sglang:v0.5.10.post1-cu130 to match the standard B300 SGLang image used by other B300 configs. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/configs/nvidia-master.yaml | 21 ++++++ benchmarks/single_node/glm5_fp8_b300.sh | 89 +++++++++++++++++++++++++ perf-changelog.yaml | 8 +++ 3 files changed, 118 insertions(+) create mode 100644 benchmarks/single_node/glm5_fp8_b300.sh diff --git a/.github/configs/nvidia-master.yaml b/.github/configs/nvidia-master.yaml index 3015cbf16..c51aeba37 100644 --- a/.github/configs/nvidia-master.yaml +++ b/.github/configs/nvidia-master.yaml @@ -1870,6 +1870,27 @@ glm5-fp8-b200-sglang: search-space: - { tp: 8, ep: 1, conc-start: 4, conc-end: 256 } +# NOTE: At the time of submission, https://cookbook.sglang.io/autoregressive/GLM/GLM-5.1 +# does not have a B300-specific recipe, so this config reuses the existing GLM5 FP8 +# B200 SGLang recipe as-is until B300-specific tuning is available. +glm5-fp8-b300-sglang: + image: lmsysorg/sglang:v0.5.10.post1-cu130 + model: zai-org/GLM-5-FP8 + model-prefix: glm5 + runner: b300 + precision: fp8 + framework: sglang + multinode: false + seq-len-configs: + - isl: 1024 + osl: 1024 + search-space: + - { tp: 8, ep: 1, conc-start: 4, conc-end: 256 } + - isl: 8192 + osl: 1024 + search-space: + - { tp: 8, ep: 1, conc-start: 4, conc-end: 256 } + glm5-fp4-b200-sglang: image: lmsysorg/sglang:v0.5.10.post1-cu130 model: nvidia/GLM-5-NVFP4 diff --git a/benchmarks/single_node/glm5_fp8_b300.sh b/benchmarks/single_node/glm5_fp8_b300.sh new file mode 100644 index 000000000..b001d1406 --- /dev/null +++ b/benchmarks/single_node/glm5_fp8_b300.sh @@ -0,0 +1,89 @@ +#!/usr/bin/env bash + +# NOTE: At the time of submission, https://cookbook.sglang.io/autoregressive/GLM/GLM-5.1 +# does not have a B300-specific recipe, so this script reuses the existing +# GLM5 FP8 B200 SGLang recipe as-is until B300-specific tuning is available. + +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 + +nvidia-smi + +hf download "$MODEL" + +pip install --no-deps "transformers==5.2.0" "huggingface-hub==1.4.1" + +export SGL_ENABLE_JIT_DEEPGEMM=1 + +SERVER_LOG=/workspace/server.log +PORT=${PORT:-8888} + + +echo "CONC: $CONC, ISL: $ISL, OSL: $OSL" + +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 + +set -x +PYTHONNOUSERSITE=1 python3 -m sglang.launch_server --model-path=$MODEL --host=0.0.0.0 --port=$PORT \ +--trust-remote-code \ +--tensor-parallel-size=$TP \ +--data-parallel-size 1 --expert-parallel-size 1 \ +--tool-call-parser glm47 \ +--reasoning-parser glm45 \ +--kv-cache-dtype fp8_e4m3 --quantization fp8 \ +--attention-backend nsa \ +--nsa-decode-backend trtllm --nsa-prefill-backend trtllm \ +--moe-runner-backend flashinfer_trtllm \ +--cuda-graph-max-bs $CONC --max-running-requests $CONC \ +--mem-fraction-static 0.85 \ +--chunked-prefill-size 32768 --max-prefill-tokens 32768 \ +--enable-flashinfer-allreduce-fusion --disable-radix-cache \ +--stream-interval 30 \ +--model-loader-extra-config '{"enable_multithread_load": true}' $EVAL_CONTEXT_ARGS > $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" + append_lm_eval_summary +fi + +# Stop GPU monitoring +stop_gpu_monitor +set +x diff --git a/perf-changelog.yaml b/perf-changelog.yaml index 67237ec1b..f6b68aff1 100644 --- a/perf-changelog.yaml +++ b/perf-changelog.yaml @@ -1412,3 +1412,11 @@ - "Image: lmsysorg/sglang:v0.5.10.post1-cu130" - "At the time of submission, https://cookbook.sglang.io/autoregressive/DeepSeek/DeepSeek-R1 does not have a B300-specific recipe, so this reuses the existing DSR1 FP8 B200 SGLang recipe as-is" pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/1050 + +- config-keys: + - glm5-fp8-b300-sglang + description: + - "Add GLM-5 FP8 B300 SGLang benchmark" + - "Image: lmsysorg/sglang:v0.5.10.post1-cu130" + - "At the time of submission, https://cookbook.sglang.io/autoregressive/GLM/GLM-5.1 does not have a B300-specific recipe, so this reuses the existing GLM5 FP8 B200 SGLang recipe as-is" + pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/XXXX From 24f78d5660629fa4adf4a5d82b93c7c1a0f093ec Mon Sep 17 00:00:00 2001 From: functionstackx <47992694+functionstackx@users.noreply.github.com> Date: Fri, 17 Apr 2026 02:15:56 -0400 Subject: [PATCH 2/2] Fill in PR link for glm5-fp8-b300-sglang changelog entry Co-Authored-By: Claude Opus 4.7 (1M context) --- perf-changelog.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perf-changelog.yaml b/perf-changelog.yaml index f6b68aff1..03b1dfcbd 100644 --- a/perf-changelog.yaml +++ b/perf-changelog.yaml @@ -1419,4 +1419,4 @@ - "Add GLM-5 FP8 B300 SGLang benchmark" - "Image: lmsysorg/sglang:v0.5.10.post1-cu130" - "At the time of submission, https://cookbook.sglang.io/autoregressive/GLM/GLM-5.1 does not have a B300-specific recipe, so this reuses the existing GLM5 FP8 B200 SGLang recipe as-is" - pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/XXXX + pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/1051