Repository navigation
flashnext cuda: opt-in lone verify tail in the window graph - #4544
Merged
Merged
Conversation
ashhart
force-pushed
the
lead/fn-graph-tail
branch
3 times, most recently
from
November 24, 2026 02:04
2d78f39 to
60eabd4
Compare
ashhart
force-pushed
the
lead/fn-graph-tail
branch
from
November 24, 2026 11:20
60eabd4 to
b7b9d64
Compare
ashhart
force-pushed
the
lead/fn-graph-tail
branch
2 times, most recently
from
November 25, 2026 08:42
9dcb9ef to
cebe9dc
Compare
Contributor
|
On M5 Max, the exact #5021 train at zig build test-flashnext-rank-graphs-host -Dfixed-cpu -j2 --summary allOne test wiring gap remains. That command skips the ranked eager-fallback test in test {
_ = @import("cuda_mtp_ops.zig");
}On the source trial merge, I removed the single-GPU guard as a control. The newly registered ranked test then failed at the assertion that row-best was neither queued nor computed ahead. Restoring the guard made the suite pass again. This was host coverage for scheduling and fallback. CUDA device performance remains unverified in my run. Igor Lessio - AIFLOW LABS |
…nd row best TF_FLASHNEXT_GRAPH_TAIL=1 (default off) hands a lone drafted window's rollback copies (the n-gram tail before the pass, its rows after) and, for a greedy unmasked draw, its fn_row_best to the pass, which queues them around its kernels: inside the window's captured graph when it has one, at the same points when it runs eagerly. The same copies and kernel with the same arguments in the same order; draws then waits and reads as before. Without a tail the window key hashes as before.
… switches) Main reached 41 Flash Next settings (29 switches) with another setting, so the PR's own count commit (40 to 41) became empty on rebase. With TF_FLASHNEXT_GRAPH_TAIL registered the table holds 42: 30 switches, 9 integers, 1 real, 2 structured. docs/environment.md and the count test say so.
ashhart
force-pushed
the
lead/fn-graph-tail
branch
from
November 25, 2026 10:53
cebe9dc to
fa8aba5
Compare
ashhart
added a commit
to plotarmordev/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
On one GPU with one drafted window, the verify pass runs as a captured window graph, but the copies around it and the greedy
fn_row_bestthat follows were queued eagerly. WithTF_FLASHNEXT_GRAPH_TAIL=1they go inside the same graph, before and after the pass, with the same arguments in the same order (the after-copy reads the pass's own scratch when it runs, as today). Sampled, masked and multi-window rounds keep today's path.Not built: folding
fn_late_rolland chaining the greedy MTP steps on the device. Both need host-picked values each round, so they could not be moved without changing what the host decides; the expected gain is therefore small (fewer launches, no saved host sync).Checks
Still to run
GB10 pair: Flash Next NVFP4 one stream, switch off vs on, tokens compared; land only if level or faster.