[Dev] [DO NOT MERGE] GLM-5.2 integration stack, recipes, and performance tracker - #6944
Draft
buptzyb wants to merge 14 commits into
Draft
[Dev] [DO NOT MERGE] GLM-5.2 integration stack, recipes, and performance tracker#6944buptzyb wants to merge 14 commits into
buptzyb wants to merge 14 commits into
Conversation
Signed-off-by: Robin Zhang <robinz@nvidia.com>
…R 5807) Signed-off-by: HaochenYuan <haocheny@nvidia.com>
Signed-off-by: HaochenYuan <haocheny@nvidia.com>
Signed-off-by: Robin Zhang <robinz@nvidia.com>
Signed-off-by: Tailai Ma <tailaim@ferries-work.nvidia.com>
Signed-off-by: Tailai Ma <tailaim@ferries-work.nvidia.com>
Signed-off-by: jingqiny-99 <jingqiny@nvidia.com>
Signed-off-by: Robin Zhang <robinz@nvidia.com>
…R 6753) Signed-off-by: Robin Zhang <robinz@nvidia.com>
Signed-off-by: Robin Zhang <robinz@nvidia.com>
…s (PR 6472) Signed-off-by: Robin Zhang <robinz@nvidia.com>
Signed-off-by: Robin Zhang <robinz@nvidia.com>
Signed-off-by: Robin Zhang <robinz@nvidia.com>
Resolve cross-PR interactions for dynamic CP graph banks, paged-stash capture ordering, DSA metric reduction, and repeated-MTP compatibility. Signed-off-by: Robin Zhang <robinz@nvidia.com>
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.
Caution
This is a tracking-only integration PR. Do not merge it.
Each feature must be reviewed and merged through its source PR.
Purpose
This draft tracks the runnable GLM-5.2 development stack, representative benchmark recipes, current validation state, and the latest trustworthy performance results. The source PRs below remain the units of review and merge; the final compatibility commit only resolves cross-PR interactions in the combined stack.
NVIDIA/Megatron-LM:dev@71092579581997cd67buptzyb:codex/tracking/glm5-2-integrationIntegrated PR stack
CUDA Graph and dynamic execution
PR 6022c7e2742d30a89681ccPR 5807b97261f4926d0e6794PR 5258df750123a82761c05ePR 67831fd15f1a642ee19e8fPR 6801866ab006fadf826b2aPR 6479fa67bdfbd853e321f0DSA
PR 62062bda9f5485c3f4bd57PR 69101a2d86435c625acaca— refresh pending; aggregate currently contains the precedingb0acf2d93revisionPR 675304bd22a3d06b971a8eOptimizer and repeated MTP
PR 6326a4052318efebf2f185PR 6472d4397793a64b1daf44PR 6473ac1080aa438be10fa2PR 674114046685d62fcc44cc81997cd67is integration-only glue for dynamic-CP graph banks, paged-stash capture order, DSA metric reduction, and repeated-MTP compatibility. It is not a substitute for any source PR and must not be merged independently.Representative GLM-5.2 recipe
The following is the 16-GPU long-context MXFP8 proxy. It preserves the full GLM-5.2 hidden, attention, DSA, expert-MLP, shared-expert, and MTP dimensions while reducing depth and global expert count. Two 32K samples are packed into THD64K; dynamic CP is configured with a maximum CP16, yielding 4K local tokens and four local experts per GPU.
The same configuration family also contains:
TP1/PP1/EP16/max-CP16, THD64KTP1/PP1/EP64/max-CP64, THD256KTP1/PP4/EP64/max-CP64, layout18/20/20/20, THD256KBF16 and MXFP8 overlays exist for GB200 and GB300. These are benchmark/smoke recipes, not convergence recipes. MLA Muon split semantics remain an explicit area of ongoing parity work.
Latest formal performance
The latest low-variance formal result was measured on source
03017e849on 2026-08-27. The current tracker head has subsequent integration/head refreshes and has not yet been rerun as a formal performance gate.Workload: 16×GB200, GLM-5.2 21L (2 dense + 19 MoE) + repeated MTP7, 64 experts, MXFP8, THD4K,
TP1/PP1/EP16/CP1/DP16, MBS1/GBS64, four fixed microbatches, cuDNN DSA, force-balanced routing, TE op fuser, paged stash, no recompute/offload. Each variant used 8 warmup + 20 measured iterations in a same-allocation ABBA run.The TFLOPS numerator is 36.499350490 PFLOP/step after correcting detached-MTP output-weight wgrad, repeated-MTP IndexShare/KVShare, sparse-indexer-loss, and DSA pair overcounts. It is an audited model-GEMM estimate, not hardware-executed FLOPs.
There is no qualifying current-stack 64-GPU or 256-GPU formal result yet. Older full-model runs were short smokes, high-variance exploratory runs, or did not reliably prove CUDA Graph capture, so they are intentionally excluded from the formal table.
Current validation snapshot
Known limitations and update policy
PR 6326aggregate commit is a dev-compatible port of a main-targeted PR; main-only generalized tensor-parallel code is not present on this dev base.