Repository navigation
Flash Next on Metal: opt-in grouped expert launches for shared rounds - #4834
Merged
Merged
Conversation
Owner
Author
|
Confirming run, same M3 Ultra and checkpoint, switch on against off, three alternating runs a side, decode only:
No cell was slower, and the A/B found no token difference. This matches the first run.
|
ashhart
force-pushed
the
lead/flashnext-gx-shared
branch
from
November 24, 2026 12:24
761c670 to
da4ce74
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.
Flash Next's single-stream window on Metal already groups each expert's rows into one launch. Shared rounds (
--parallelabove 1, and the MTP head) still launch once per (row, expert) pair.This adds
TF_FN_GX_SHARED, off by default. When it is set, a shared round uses the same grouped kernels wherever the single-stream window already would: grouped state present, at least the minimum row count, no tensor parallelism, and 4-bit group-32 experts. Everything else keeps the per-pair path. No kernel arithmetic, weight layout, router or sampler changes.Measured on an M3 Ultra with Qwen3.8-Flash-Next MLX 4-bit MTP, two alternating runs of each arm:
A second confirming run is in progress.
Tests: