Repository navigation
docs: add PD disaggregation to GLM-5.2 cookbook playground - #29544
Merged
Merged
Conversation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
zijiexia
force-pushed
the
glm-5.2-pd-disagg
branch
from
June 28, 2026 03:58
36cacf9 to
6c20554
Compare
zijiexia
marked this pull request as ready for review
June 28, 2026 06:15
zijiexia
requested review from
JustinTong0323,
sogalin and
wisclmy0611
as code owners
June 28, 2026 06:15
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
zijiexia
force-pushed
the
glm-5.2-pd-disagg
branch
from
June 28, 2026 07:30
6c20554 to
893b355
Compare
GLM-5.2 uses the glm_moe_dsa architecture (same DSA family as DeepSeek-V3.2/V4), which SGLang supports under prefill/decode disaggregation. Expose it in the cookbook: - Add a `pdDisagg` Playground card to the GLM-5.2 config (mode / transfer backend + router template), mirroring the DeepSeek-V4 DSA sibling. Mooncake carries the NVLink-multinode NCCL/MNNVL env gated to GB300 via `envWhen`. No IB-device knob (mooncake auto-detects the HCA); a Configuration Tips bullet documents PD disagg and the --disaggregation-ib-device fallback. - Adjust the shared _playground.jsx single-host PD port strategy: drop the auto-injected `--dist-init-addr` (that flag is the torch.distributed rendezvous, not the PD bootstrap) and space the role serve ports 100 apart (prefill 30000 / decode 30100) so the derived ZMQ/dist port ranges (--port + ZMQ_TCP_PORT_DELTA) no longer overlap between the two co-located engines. Multi-node PD still gets a cross-node --dist-init-addr from the renderer. This also cleans up DeepSeek-V4 / MiniMax-M3 / Laguna single-host PD commands. Co-Authored-By: Claude Opus 4.8 <[email protected]>
zijiexia
force-pushed
the
glm-5.2-pd-disagg
branch
from
June 30, 2026 21:13
893b355 to
b10249e
Compare
JustinTong0323
approved these changes
Jul 2, 2026
This was referenced Jul 2, 2026
Chronostasys
pushed a commit
to MindLab-Research/sglang
that referenced
this pull request
Aug 24, 2026
…ct#29544) Co-authored-by: Claude Opus 4.8 <[email protected]>
This branch was successfully deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Motivation
GLM-5.2 uses the
glm_moe_dsaarchitecture — the same DeepSeek Sparse Attention (DSA) family as DeepSeek-V3.2 / V4 — which SGLang already supports under prefill/decode (PD) disaggregation. The GLM-5.2 cookbook page did not yet surface this, while its DSA sibling DeepSeek-V4 does. This exposes PD disaggregation in the GLM-5.2 Playground.Modifications
docs_new/src/snippets/configs/zai-org/glm-5.2.jsx— add apdDisaggPlayground card (Mode: off / prefill / decode · Transfer Backend: Mooncake / NiXL · router template), mirroring the DeepSeek-V4 DSA config. Mooncake's NVLink-multinodeNCCL_MNNVL/MC_FORCE_MNNVLenv is gated to GB300 viaenvWhen. No IB-device knob — Mooncake auto-detects the HCA.docs_new/cookbook/autoregressive/GLM/GLM-5.2.mdx— add a PD Disaggregation Configuration-Tips bullet (router command, IB auto-detect +--disaggregation-ib-devicefallback, H200 Docker IB-exposure caveat for Mooncake).docs_new/src/snippets/_playground.jsx(shared engine) — simplify the single-host PD port strategy: drop the auto-injected--dist-init-addr(that flag is the torch.distributed rendezvous, not the PD bootstrap) and space the role serve ports 100 apart (prefill30000/ decode30100) so the derived ZMQ/dist port ranges (--port + ZMQ_TCP_PORT_DELTA, =233) no longer overlap between the two co-located engines. Multi-node PD still gets a cross-node--dist-init-addrfrom the renderer. This also cleans up DeepSeek-V4 / MiniMax-M3 / Laguna single-host PD commands (no behavior change beyond the dropped flag + decode port).The shared
_playground.jsxengine already supportedpdDisagg(emits--disaggregation-mode/-transfer-backend, pins role serving ports), so the GLM addition itself needs no new engine plumbing.Checklist
mint validatepassesmain(incl. GLM-5.2 NVFP4 recipes)🤖 Generated with Claude Code
CI States
Latest PR Test (Base): ✅ Run #28476273251
Latest PR Test (Extra): ❌ Run #28476272981