Repository navigation
flash next hip: the first stream's caches at load, direct weight reads, a wider n-gram gather (@llstrk, Strix 1/12) - #3644
Merged
Merged
Conversation
ashhart
force-pushed
the
lead/strix-s1
branch
from
November 18, 2026 03:49
e2415c6 to
be4f7ef
Compare
…prompt does not wait on allocating and clearing them
…ads, the next while one uploads (the n-gram layer stays mapped)
…parts, not 32, so more of its page reads wait together (same bytes)
ashhart
force-pushed
the
lead/strix-s1
branch
from
November 21, 2026 04:38
be4f7ef to
9e6f240
Compare
ashhart
added a commit
that referenced
this pull request
Nov 21, 2026
Owner
Author
|
Thank you @llstrk. This is merged into main with your commits under your own name, so you're credited as a TensorFold contributor. |
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.
Adopts part 1 of 12 of @llstrk's Strix Halo (gfx1151) work for Qwen3.8 Flash Next on HIP: the first stream's caches at load, direct weight reads and a wider n-gram gather. His commits keep his authorship; the last commit is ours (changelog line and comment folding). Only his exact default path is adopted; the opt-in settings that change tokens are not.
What changes. The first stream's caches are made at load, so the first prompt doesn't wait on allocating them. Each layer's weights are read past the page cache by threads, the next layer's read in flight while one uploads. The n-gram gather spreads over the pool's 128 parts instead of 32. These change load and first-prompt latency only.
Checked so far.
Before it lands: served checks on gfx1151 with Qwen3.8-Flash-Next-MLX-4bit-MTP, main against this head. Loaded bytes, cold load and first-token time, n-gram-heavy prompt throughput and memory against main; the direct-read to mapped transition and load-failure cleanup, not only the ready state. Compare complete token-ID arrays, greedy and seeded, prose and code, 2K/8K/32K/64K prompts. Our Strix can't hold the 105 GiB checkpoint yet, so @llstrk, if you can run these on your box at this head with the default policy (no
TF_POLICYkeys), that settles it; otherwise we will once our disk is grown.Thanks to @llstrk for the work and the measurements.