feat(glm52): add checkpoint-native MTP speculative decoding#762
Merged
Conversation
Signed-off-by: xiaguan <751080330@qq.com>
Signed-off-by: xiaguan <751080330@qq.com>
Signed-off-by: xiaguan <751080330@qq.com>
Signed-off-by: xiaguan <751080330@qq.com>
Signed-off-by: xiaguan <751080330@qq.com>
Signed-off-by: xiaguan <751080330@qq.com>
Signed-off-by: xiaguan <751080330@qq.com>
Signed-off-by: xiaguan <751080330@qq.com>
Signed-off-by: xiaguan <751080330@qq.com>
xiaguan
force-pushed
the
feat/glm52-native-mtp-forward
branch
from
July 25, 2026 12:19
8f83dcd to
8612129
Compare
Signed-off-by: xiaguan <751080330@qq.com>
Collaborator
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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.
Description
Add checkpoint-native GLM5.2 MTP speculative decoding with a separate layer-78 KV lane, proposal/recycle execution, scheduler-wide collectives, and an official-vLLM oracle harness.
The integration also:
Accuracy
8.62e-3, chained hidden RMS1.87e-2, exact top-1, top-8 overlap8/8, and top-32 overlap30/32.1.753before the hidden-boundary fix,3.725after it, versus official vLLM3.786.1.000to5.795mean accepted length; the first draft matches token98825.195/200, native MTP196/200. There is no identical pre-change plain-task A/B, so this is a regression check rather than a task-accuracy improvement claim.234.13 s, including a released-slot reuse request, at least 32 reuse verification rounds, and eight mixed-length rank-pinned requests.g64/g32/g16/g8groupings with62/64probes inside tolerance per grouping and two permitted near-tie outliers.Performance
All comparisons below use the same 8×H200 node, checkpoint, greedy sampling, fixed output length, disabled prefix cache, and matched request corpus.
7.749 ms3.876230.04 ms8.814 ms3.485830.72 ms23.44 ms1.75341.10 ms11.31 ms3.72542.11 ms16.90 ms3.78663.98 msThe repeated c1 result shows no remaining decode TPOT deficit: OpenInfer is
1.065 mslower, while proxy round cost differs by0.69 ms. OpenInfer TTFT is higher (432.50 msversus232.57 ms), so this is a decode result, not a broad end-to-end latency win. The c8 engines use different target topologies and generation trajectories; accepted length is reported as serving evidence, not isolated MTP-forward parity.Validation
cargo fmt --all -- --checkcargo check --release -p openinfer-server --features glm52cargo test --release -p openinfer-glm52 --lib— 86 passed, 0 failed, 20 ignored234.13 sType of Change
Checklist
docs/conventions/coding-style.md).CLAUDE.md).