Repository navigation
Conversation
ashhart
force-pushed
the
lead/flashnext-fact-rows-128
branch
2 times, most recently
from
November 26, 2026 22:01
ddebf83 to
12ca23e
Compare
8 tasks done
ashhart
force-pushed
the
lead/flashnext-fact-rows-128
branch
2 times, most recently
from
November 28, 2026 06:58
74ae9d9 to
bbad06e
Compare
6 tasks done
Owner
Author
Synthena Initial Review — Performance receipt required (
|
…test experts_fact.zig's launch takes its threads, shared bytes and grid from shape() and grid(). A host test (test-moetile-host) checks promptSmemWM(1, 2, 4) = 41984 and promptSmemWM(2, 2, 4) = 51200 against Prompt4<M, 4, WM, WN>'s staging as nvfp4_experts.cu declares it, and that decoding every block of items * ceil(nb / wn) the way prompt_body does covers each item's column groups exactly once at wn 4 and 8 (the grid math was right; nothing changed in it).
…ared bytes A host test (test-moetile-host) finds both pending FACT128 records and requires their threads and dynamic shared bytes to equal what runFact128 launches (Nvfp4Experts.factShape). The records stay pending until their compiler measurements are supplied.
…nd 8192 chunks The bit-equality checks already cover every row of every chunk; the FP64 bound covered rows through 300 only. It now also samples every 64th row of the large chunks.
Any other row count, the old thresholds among them, is refused at startup by name; the env test checks the three values and refuses 1, 32, 63, 65, 96, 127, 129 and 256. The default (64) is unchanged.
ashhart
force-pushed
the
lead/flashnext-fact-rows-128
branch
from
December 5, 2026 10:18
bbad06e to
5992d40
Compare
This branch has not been deployed
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
Flash Next's routed NVFP4 expert prompt kernels split each expert's tokens into 64-row items, so an expert with more tokens in a 2,048- or 8,192-row chunk re-reads (and re-decodes) its weights per item. With
TF_FLASHNEXT_FACT_ROWS=128, prompt items are 128 rows (WM=2,RT=4) sharing the staged weight tile across both M-warps; every (row, expert) output keeps the sameFACT=truearithmetic. Decode (under 64 rows) is untouched. Default 64. GLM's prefill has the same change in #4493.Checks
check-release-paths; contract cells compare wide vs current outputs byte for byte (skewed routing, experts over 64 and 128 tokens, empty experts).Still to run
One GB10: the kernel contract, then pp 8K and 32K A-B-B-A with the following decode tokens compared.