Repository navigation
[cookbook] GLM-5.2 NVFP4 B300: TP8 recipe + 3 strategies - #29557
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
There was a problem hiding this comment.
Code Review
This pull request updates the GLM-5.2 benchmark configurations and execution flags for the B300 hardware variant with NVFP4 quantization. Specifically, it expands the single-node B300 configurations to support low-latency, balanced, and high-throughput strategies by increasing tensor parallelism to TP8, enabling data-parallel attention (DP8), adjusting static memory fractions, and tuning speculative decoding parameters. Corresponding benchmark results (such as TTFT, TPOT, and tokens per second) have also been added. There are no review comments, so I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
Is there any info about the |
it is based on branch glm-opt. it is expected to work on B200, will provide update soon |
db182f8 to
06a57c1
Compare
Switch the B300 NVFP4 cells from the TP4 layout to the verified 8xB300
TP8 recipe and add a high-throughput strategy:
- low-latency: TP8 + full MTP 5-1-6, mem-fraction 0.85
- balanced: TP8 + DP-Attention (dp8) + short MTP 2-1-3, plus the two
required flags --speculative-attention-mode decode (avoids a
CUDA-graph capture deadlock) and --max-running-requests 256
(lifts the default ~48-request throttle)
- high-throughput (new): TP8 + DP-Attention (dp8), no MTP, max-running 1024
Fill the matching benchmark numbers (8xB300, dev-glm52-nvfp4 preview image,
flush-cache every run) for all three strategies; aime25 overrides to 89.58
on the NVFP4 build, matching the GB300 NVFP4 entries.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
06a57c1 to
5764c81
Compare
…#29557) Co-authored-by: Claude Opus 4.8 <[email protected]>
…#29557) Co-authored-by: Claude Opus 4.8 <[email protected]>
Motivation
Update the GLM-5.2 NVFP4 B300 cookbook entries. They previously shipped the TP4 layout with only
low-latency+balanced. Replace them with the verified single-node 8×B300 TP8 recipe and add the missinghigh-throughputstrategy, all measured on thelmsysorg/sglang:dev-glm52-nvfp4preview image.Changes
docs_new/src/snippets/configs/zai-org/glm-5.2.jsx— B300 NVFP4 cells:tp4 → tp8,mem-fraction-static 0.8 → 0.85, keep full MTP 5-1-6tp8 + dp8 + --enable-dp-attention, shorter MTP 2-1-3, plus the two flags this path requires:--speculative-attention-mode decode(avoids a CUDA-graph capture deadlock) and--max-running-requests 256(lifts the default ~48-request throttle so DP-Attention can fill all 8 ranks)tp8 + dp8 + --enable-dp-attention, no MTP,--max-running-requests 1024docs_new/src/snippets/configs/zai-org/glm-5.2-benchmarks.jsx— fill the matching speed numbers for all three strategies.tokens_per_sec_per_gpu = total output tok/s ÷ 8 GPUs.aime25overrides to 89.58 on the NVFP4 build (same checkpoint as the GB300 NVFP4 entries); gsm8k inherits the variant default.Checklist
node --check+ module import.🤖 Generated with Claude Code
CI States
Latest PR Test (Base): ✅ Run #28402970621
Latest PR Test (Extra): ❌ Run #28402970448