Repository navigation
flashnext cuda: opt-in cache-only MTP work during prefill - #4529
Merged
Merged
Conversation
ashhart
force-pushed
the
lead/flashnext-prefill-mtp-lean
branch
4 times, most recently
from
November 24, 2026 11:11
4cb9d57 to
be4a654
Compare
4 of 8 tasks
ashhart
added a commit
that referenced
this pull request
Nov 25, 2026
Main's zig/src/families/flashnext/cuda_batch.zig was 599 lines and #4529 adds six. Its scratch-size test moves unchanged into cuda_paging_batch_test.zig, which it already imported; the private unused ple import and the unreferenced proj_row constant (cuda_batch_state.zig keeps its own) go. No code that runs changes; the gradient-serving pin is re-hashed.
ashhart
force-pushed
the
lead/flashnext-prefill-mtp-lean
branch
from
November 25, 2026 11:15
be4a654 to
ee2e112
Compare
Main's zig/src/families/flashnext/cuda_batch.zig was 599 lines and #4529 adds six. Its scratch-size test moves unchanged into cuda_paging_batch_test.zig, which it already imported; the private unused ple import and the unreferenced proj_row constant (cuda_batch_state.zig keeps its own) go. No code that runs changes; the gradient-serving pin is re-hashed.
ashhart
force-pushed
the
lead/flashnext-prefill-mtp-lean
branch
from
November 25, 2026 12:20
ee2e112 to
86e2ebf
Compare
ashhart
added a commit
that referenced
this pull request
Nov 25, 2026
Main's zig/src/families/flashnext/cuda_batch.zig was 599 lines and #4529 adds six. Its scratch-size test moves unchanged into cuda_paging_batch_test.zig, which it already imported; the private unused ple import and the unreferenced proj_row constant (cuda_batch_state.zig keeps its own) go. No code that runs changes; the gradient-serving pin is re-hashed.
ashhart
added a commit
to gilby/TensorFold
that referenced
this pull request
Nov 25, 2026
ashhart
added a commit
that referenced
this pull request
Nov 25, 2026
ashhart
added a commit
to BlivionIaG/TensorFold
that referenced
this pull request
Nov 25, 2026
ashhart
added a commit
that referenced
this pull request
Nov 25, 2026
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.
What this changes
From a read-only review of Flash Next prefill on a GB10: during prefill only the MTP layer's KV and indexer caches are read later, yet the MTP step also computed proposals and query-side work. With
TF_FLASHNEXT_PREFILL_MTP_LEAN=1, prefill runs only the cache-writing part. Default off.Checks
Still to run
One GB10: pp 8K and 32K A-B-B-A with following decode tokens compared.