Skip to content

[cookbook] GLM-5.2 NVFP4 B300: TP8 recipe + 3 strategies - #29557

Merged
Fridge003 merged 1 commit into
mainfrom
cookbook-glm52-nvfp4-b300
Jun 29, 2026
Merged

Fridge003 merged 1 commit into
mainfrom
cookbook-glm52-nvfp4-b300

Conversation

@zijiexia

@zijiexia zijiexia commented Jun 28, 2026 •

Copy link
Copy Markdown
Collaborator

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 missing high-throughput strategy, all measured on the lmsysorg/sglang:dev-glm52-nvfp4 preview image.

Changes

docs_new/src/snippets/configs/zai-org/glm-5.2.jsx — B300 NVFP4 cells:

  • low-latency — tp4 → tp8, mem-fraction-static 0.8 → 0.85, keep full MTP 5-1-6
  • balanced — tp8 + 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)
  • high-throughput (new) — tp8 + dp8 + --enable-dp-attention, no MTP, --max-running-requests 1024

docs_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. aime25 overrides to 89.58 on the NVFP4 build (same checkpoint as the GB300 NVFP4 entries); gsm8k inherits the variant default.

strategy conc tok/s/gpu TTFT TPOT
low-latency 1 / 16 51 / 224 196 / 274 ms 1.86 / 6.95 ms
balanced 64 / 256 153 / 205 680 / 3010 ms 48.9 / 149 ms
high-throughput 1024 430 6370 ms 280 ms

Checklist

  • Docs/cookbook-only change; both JSX configs validated via node --check + module import.

🤖 Generated with Claude Code


CI States

Latest PR Test (Base): ✅ Run #28402970621
Latest PR Test (Extra): ❌ Run #28402970448

@mintlify

mintlify Bot commented Jun 28, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
lmsysorg 🟢 Ready View Preview Jun 28, 2026, 9:12 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jun 28, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@tazjin

tazjin commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Is there any info about the dev-glm52-nvfp4 branch? What PR is that based on, for example? Is this expected to work on B200?

@zijiexia

Copy link
Copy Markdown
Collaborator Author

Is there any info about the dev-glm52-nvfp4 branch? What PR is that based on, for example? Is this expected to work on B200?

it is based on branch glm-opt. it is expected to work on B200, will provide update soon

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]>
@zijiexia
zijiexia force-pushed the cookbook-glm52-nvfp4-b300 branch from 06a57c1 to 5764c81 Compare June 29, 2026 21:11
@Fridge003
Fridge003 merged commit 5106b42 into main Jun 29, 2026
81 of 85 checks passed
@Fridge003
Fridge003 deleted the cookbook-glm52-nvfp4-b300 branch June 29, 2026 21:42
vstone-w pushed a commit to ClownBin/sglang that referenced this pull request Jul 2, 2026
Chronostasys pushed a commit to MindLab-Research/sglang that referenced this pull request Aug 24, 2026

This branch was successfully deployed

1 active deployment
staging - docs_new — 5764c813 Deployed Jun 29, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants