Repository navigation
[Perf] dsv41: Use the fused ratio-2 compressor in the prefill graph - #46230
Merged
Merged
Conversation
hnyls2002
requested review from
Fridge003,
HaiShaw,
Qiaolin-Yu,
hebiao064,
ispobock and
merrymercy
as code owners
October 24, 2026 03:14
Collaborator
Author
|
/rerun-test test_deepseek_v4.py test_c2_prefill_ring.py test_encoder_swa_replay.py test_dsv41_late_layer_tail_readers.py test_deepseek_v41_flash_gb300_encoder_bcg.py test_deepseek_v41_flash_gb300_trtllm_bounded_bcg.py |
Collaborator
Author
|
/tag-and-rerun-ci |
Contributor
|
🚀 🚀 🚀 🚀 |
This was referenced Oct 24, 2026
Open
5 tasks
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.
Inside the DeepSeek-V4.1 prefill CUDA graph, the ratio-2 compressor ran its torch path (dozens of small launches per source layer, plus a separate index-K store), because the fused compressor reads per-request extend offsets that were not graph-static. Eager extend already uses the fused kernel.
low_ratio_extend_offsets, an int32[2, request slots]tensor of each request's first row and row count, refreshed in place at replay. Slots past the batch hold no rows, and DP padding rows belong to no request.| kv | score |rows into one buffer, and_low_ratio_compress_fusedtakes that projection (projected=) with the static offsets.kvandscorebuffers, unchanged.Verification
CI States
Latest PR Test (Base): 🚫 Run #40059037613
Latest PR Test (Extra): ❌ Run #40059037493
Latest PR Test (AMD ROCm 10): 🚫 Run #40059037529