Repository navigation
[Perf] dsv4: Dequantize each shared sparse-prefill KV source once per forward - #45909
Merged
Merged
Conversation
hnyls2002
requested review from
Fridge003,
HaiShaw,
Qiaolin-Yu,
hebiao064,
ispobock and
merrymercy
as code owners
October 22, 2026 23:12
Collaborator
Author
|
/rerun-test test_deepseek_v4.py test_q8kv8_sparse_prefill_backend.py test_dsv4_compressed_pools.py test_deepseek_v41_flash_gb300_encoder_bcg.py |
Contributor
|
🚀 🚀 🚀 🚀 |
Collaborator
Author
|
/tag-and-rerun-ci |
Open
5 tasks
chaohu2000
added a commit
to flytiger-eco/sglang-for-sail
that referenced
this pull request
Oct 27, 2026
… forward (sgl-project#45909) (cherry picked from commit b5ce3ff9e547be0388ef34d26606763b41766626)
Merged
5 tasks done
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.
SparsePrefillWorkspaceis renamedSparsePrefillKVBufferand owns the reuse.get_with_headreturns the rows and whether the head already holds the given source (source cache, gather ids, row count). A plainget, a reallocation, or the start of a new forward forgets the head.Outputs are unchanged: the skipped dequants would have written the same rows.
Verification:
CI States
Latest PR Test (Base): 🚫 Run #39872578951
Latest PR Test (Extra): ❌ Run #39872578855
Latest PR Test (AMD ROCm 10): 🚫 Run #39872578944