Skip to content

docs: add PD disaggregation to GLM-5.2 cookbook playground - #29544

Merged
zijiexia merged 1 commit into
mainfrom
glm-5.2-pd-disagg
Jul 2, 2026
Merged

zijiexia merged 1 commit into
mainfrom
glm-5.2-pd-disagg

Conversation

@zijiexia

@zijiexia zijiexia commented Jun 28, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

GLM-5.2 uses the glm_moe_dsa architecture — 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 a pdDisagg Playground card (Mode: off / prefill / decode · Transfer Backend: Mooncake / NiXL · router template), mirroring the DeepSeek-V4 DSA config. Mooncake's NVLink-multinode NCCL_MNNVL/MC_FORCE_MNNVL env is gated to GB300 via envWhen. 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-device fallback, 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 (prefill 30000 / decode 30100) 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-addr from 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.jsx engine already supported pdDisagg (emits --disaggregation-mode/-transfer-backend, pins role serving ports), so the GLM addition itself needs no new engine plumbing.

Checklist

  • mint validate passes
  • Rebased on latest main (incl. GLM-5.2 NVFP4 recipes)
  • Mintlify preview reviewed
  • Verify PD-disagg recipe end-to-end on hardware

Draft: opening for docs preview. PD-disagg knobs are Playground (experiment-beyond-the-verified-matrix) controls, not new verified Deploy cells.

🤖 Generated with Claude Code


CI States

Latest PR Test (Base): ✅ Run #28476273251
Latest PR Test (Extra): ❌ Run #28476272981

@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, 3:58 AM

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

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jun 28, 2026
@zijiexia
zijiexia force-pushed the glm-5.2-pd-disagg branch from 36cacf9 to 6c20554 Compare June 28, 2026 03:58
@zijiexia zijiexia changed the title docs: add PD disaggregation to GLM-5.2 cookbook docs: add PD disaggregation to GLM-5.2 cookbook playground Jun 28, 2026
@zijiexia
zijiexia marked this pull request as ready for review June 28, 2026 06:15
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

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]>

@ShangmingCai ShangmingCai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@zijiexia
zijiexia merged commit cba3801 into main Jul 2, 2026
81 of 85 checks passed
@zijiexia
zijiexia deleted the glm-5.2-pd-disagg branch July 2, 2026 16:57
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 — b10249e4 Deployed Jun 30, 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