Repository navigation
[Perf] deepseek-v4.1: Run encoder SWA bounded replay in the breakable prefill graph - #44930
Merged
Merged
Conversation
… tests Co-authored-by: Vincent Zhong <[email protected]>
hnyls2002
requested review from
Fridge003,
HaiShaw,
Qiaolin-Yu,
Ying1123,
alphabetc1,
hanming-lu,
hebiao064,
huangtingwei9988,
hzh0425,
ispobock,
merrymercy,
xiezhq-hermann and
yizhang2077
as code owners
October 17, 2026 20:48
…for prefill graph buckets; set encoder replay state in one place; tidy tests and comments
Collaborator
Author
|
/rerun-test test_encoder_swa_replay.py test_dsv4_compressed_pools.py |
Contributor
|
🚀 🚀 🚀 |
…the vote test and repeated comments
Contributor
|
🚀 |
Collaborator
Author
|
/tag-and-rerun-ci |
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.
--enable-encoder-swa-bounded-replaynow accepts--cuda-graph-backend-prefill breakable; other prefill graph backends stay rejected, and so does any prefill graph on ROCm, which replays hits in a forward of their ownencoder_swa_replay,encoder_swa_row_floorandencoder_swa_compress_rows, so capture and replay build the same window floors and compressor slots as an eager prefillwindow_layout(padded_rows=...),WindowLayout.leading_rows); the window groups are fixed at one per request slot, at most one per rowrefresh_for_breakable_cuda_graph_replay_copies the request-window layout in place, and capture and replay activate it_compressor_out_loc(own_buffer=True)), so the in-place refresh before a replay leaves the staticout_cache_locas the runner filled itSupersedes #43010.
No behavior change unless encoder replay runs with the breakable prefill graph, which used to be rejected at startup; in every breakable prefill graph the captured compressor slots are now a copy refreshed before each replay instead of the static
out_cache_locitself.CI States
Latest PR Test (Base): ❌ Run #39080782541
Latest PR Test (Extra): ❌ Run #39080782521
Latest PR Test (AMD ROCm 10): ❌ Run #39080782546