Repository navigation
flashnext cuda: opt-in window graph keyed on the settle buffer parity - #4492
Merged
Merged
Conversation
ashhart
force-pushed
the
lead/flashnext-window-graph-parity
branch
3 times, most recently
from
November 24, 2026 01:54
be05d52 to
6768774
Compare
ashhart
force-pushed
the
lead/flashnext-window-graph-parity
branch
from
November 24, 2026 11:18
6768774 to
a2feaf1
Compare
Count every cache attempt alongside captures, updates and replays so steady-state graph behavior has a per-round denominator.
Opt into separate graph slots for the two whole-accept state/spare directions. Compare replayed argument bytes, target tokens and full acceptance lengths on the fake CUDA graph driver.
Main already registers the batch GDN switch. Count it and the parity switch together in the strict environment inventory; parsing and inference stay unchanged.
ashhart
force-pushed
the
lead/flashnext-window-graph-parity
branch
from
November 24, 2026 12:50
a2feaf1 to
63d25ab
Compare
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
Draft.settleswaps the state and spare buffers, and the verify-window graph cache keys on neither pointer, so after a full-accept round the cached graph points at the other buffer and is refreshed. WithTF_FLASHNEXT_WINDOW_GRAPH_PARITY=1the pointer parity is part of the graph key, so both graphs stay resident (within the cache's limit) and steady-state rounds replay. Same kernels and arguments; no arithmetic change. A separate commit adds update/replay counters to see the effect.Checks
Still to run
One GB10, Flash Next one stream, default drafts: updates/replays with the switch off and on, then A-B-B-A served cells (greedy and sampled, prose and code) with tokens compared.