Skip to content

feature(pytorch): add model-specialized target decode and MTP verification - #5195

Draft
silencelamb wants to merge 1 commit into
InternLM:mainfrom
silencelamb:feat/specialized-step-execution
Draft

silencelamb wants to merge 1 commit into
InternLM:mainfrom
silencelamb:feat/specialized-step-execution

Conversation

@silencelamb

@silencelamb silencelamb commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Changes

Add an opt-in provider for the PyTorch target forward. Providers declare exact per-rank batch size, query width and KV length coverage. Workers agree before using a plan and can reuse a dedicated CUDA graph. Other shapes follow the normal runner.

The hook supports ordinary decode and uniform deepseek_mtp target verification. LMDeploy runs the checkpoint’s draft predictor and manages rejection sampling and state commit. The default configuration and Ascend execution path use the existing runner.

Validation

808 regression tests passed. One Ascend hardware test was skipped. On eight H200s, GLM-5.3-Flash ran MTP3 with specialized KDA output projections. Same-snapshot checks passed for every accepted prefix and after a group fallback. Full R11 AR reproduced 12.341 ms/step at 64K over 512 steps. Integration guide and examples · Measurements, HTTP comparison limits and reproduction

@silencelamb silencelamb changed the title [Feature] Add opt-in model-specialized decode execution and a GLM-5.3 H200 provider [Feature] Add model-specialized decode execution and the full GLM-5.3 R11 H200 executor Nov 25, 2026
@silencelamb
silencelamb force-pushed the feat/specialized-step-execution branch from 1b5d3c6 to f86378a Compare November 26, 2026 02:26
@silencelamb silencelamb changed the title [Feature] Add model-specialized decode execution and the full GLM-5.3 R11 H200 executor [Feature] Add opt-in model-specialized target decode and MTP verification Nov 26, 2026
@silencelamb silencelamb changed the title [Feature] Add opt-in model-specialized target decode and MTP verification feature(): add model-specialized target decode and MTP verification Nov 26, 2026
@silencelamb silencelamb changed the title feature(): add model-specialized target decode and MTP verification feature(pytorch): add model-specialized target decode and MTP verification Nov 26, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant