Repository navigation
[Spec] Support ReplaySSM spec-verify for DFlash and DSPARK on hybrid GDN models - #36683
Open
EanWang211123 wants to merge 4 commits into
Open
EanWang211123 wants to merge 4 commits into
EanWang211123 wants to merge 4 commits into
Conversation
EanWang211123
marked this pull request as ready for review
August 27, 2026 10:19
EanWang211123
requested review from
Qiaolin-Yu,
Ying1123,
alphabetc1,
hanming-lu,
hnyls2002,
huangtingwei9988,
hzh0425,
ispobock,
merrymercy,
xiezhq-hermann and
yizhang2077
as code owners
August 27, 2026 10:19
|
Tested this PR as a Python-only overlay on the released Ran DFLASH (
Confirms DFLASH + GDN + ReplaySSM works on Hopper for the Qwen3.5-A3B lineage, not just KDA. Would love to see this merged. Thanks for the work! |
EanWang211123
force-pushed
the
feat/ssm-ring-replay/main
branch
from
September 14, 2026 03:20
9b2e85b to
5c07ac5
Compare
EanWang211123
added a commit
to EanWang211123/sglang
that referenced
this pull request
Sep 14, 2026
Li-brua
pushed a commit
to Li-brua/sglang
that referenced
this pull request
Sep 17, 2026
EanWang211123
force-pushed
the
feat/ssm-ring-replay/main
branch
from
September 21, 2026 02:29
5c07ac5 to
532c689
Compare
Signed-off-by: EanWang211123 <wangyiheng@sangfor.com.cn>
Signed-off-by: EanWang211123 <wangyiheng@sangfor.com.cn>
Signed-off-by: EanWang211123 <wangyiheng@sangfor.com.cn>
EanWang211123
force-pushed
the
feat/ssm-ring-replay/main
branch
from
October 8, 2026 02:08
532c689 to
7ad5ad1
Compare
This branch has not been 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
ReplaySSM spec-verify support was introduced for MTP in:
It avoids storing a full intermediate SSM state for every draft token. Instead, the verify stage stores compact raw inputs in ReplaySSM buffers and folds only the accepted prefix into the persistent SSM state after verification.
DFlash and DSPARK have their own post-verify state commit paths, so hybrid GDN models could not reuse the existing ReplaySSM implementation. Enabling
--enable-linear-replayssm-specwith these algorithms was therefore rejected or could fall back to a commit path that expectsintermediate_ssm.This PR connects DFlash and DSPARK to the existing ReplaySSM fold-every-commit path while preserving their original KDA and non-ReplaySSM behavior.
Modifications
dflash_worker_v2.pydspark_worker_v2.pykv_cache_configurator.pyAccuracy Tests
Speed Tests and Profiling
Checklist
Review and Merge Process
/tag-and-rerun-ci,/tag-run-ci-label,/rerun-failed-ciCI States
Latest PR Test (Base): ❌ Run #37716399910
Latest PR Test (Extra): ❌ Run #37716399565
Latest PR Test (AMD ROCm 10): ❌ Run #37716399934