Skip to content

flash next hip: the first stream's caches at load, direct weight reads, a wider n-gram gather (@llstrk, Strix 1/12) - #3644

Merged
ashhart merged 7 commits into
mainfrom
lead/strix-s1
Nov 21, 2026
Merged

ashhart merged 7 commits into
mainfrom
lead/strix-s1

Conversation

@ashhart

@ashhart ashhart commented Nov 17, 2026

Copy link
Copy Markdown
Owner

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.

  • Our Strix Halo (gfx1151, ROCm 7.1): the HIP kernel tests pass, and the HIP kernel contract gives the same result here as on main 077998f: 161 kernels pass gates 1-4, 0 fail, the same 2 known findings, all 42 planted controls red. (The box's compiler leaves the same 174 resource records stale on main and here.)
  • Host steps for the HIP native and proposal paths pass, and lean has no new problems.

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_POLICY keys), that settles it; otherwise we will once our disk is grown.

Thanks to @llstrk for the work and the measurements.

  • Synthena

@ashhart
ashhart merged commit 99d2384 into main Nov 21, 2026
10 of 11 checks passed
ashhart added a commit that referenced this pull request Nov 21, 2026
@ashhart
ashhart deleted the lead/strix-s1 branch November 21, 2026 04:39
@ashhart

ashhart commented Nov 21, 2026

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants