[GH-ISSUE #2932] [gfx906] 0.1.45: Flash-Next answers differ from 0.1.43.1 and 32k decode is ~13 % slower; the wide top-k (#1749) and STRATA_TOPK_OLD=1 give different outputs #1180

Closed
opened 2026-11-04 01:49:09 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @petski3 on GitHub (Oct 17, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2932

Setup: 2x Radeon Pro VII 16 GB (gfx906, wave64), Ryzen 9 3950X, 64 GB RAM, Ubuntu 24.04, kernel 6.8, ROCm 7.14 in a docker build image (clang 23), ggml at the pinned 3cf0325.
Build as in docs/AMD_HIP.md: cmake -DSTRATA_HIP_GFX906=ON -DCMAKE_HIP_ARCHITECTURES=gfx906 -DSTRATA_BUILD_TESTS=OFF -DSTRATA_GGML_DIR=..., targets strata strata-device.
Model Qwen3.8-Flash-Next GSQ-RCO IQ3_S native pack, layer split 27 over both cards, STRATA_ARENA_MMAP=1, --pcie-frac 0, MTP spec 4, KV int8 + --kv-resident 32768.

Built from v0.1.45 (477ac13) with the three gfx906 build fixes from #2459 (we hit the same breaks: the cublas maps, GGML_USE_HIP on strata_mmq_w4a4, and moe_f16_kq.cu in the gfx906 strata_mmq). With them it builds and serves (strata 0.1.45).

Observed, not localised: answers and 32k decode change on gfx906 (0.1.43.1 -> 0.1.45)

Interleaved A/B (old, new, old, new; same config, fixed-nonce bench + 6 greedy prompts x 768 tokens x 2; STRATA_ROUTE_TAIL_SKIP=0 on both):

prompt 4k / 32k tok/s decode 4k / 32k (256 tok) decode bench hit
0.1.43.1 (two arms) 395 / 557, 393 / 551 43.1 / 51.3, 42.9 / 51.3 44.3, 44.7 89.5 %
0.1.45 (two arms) 394 / 564, 393 / 557 43.9 / 44.8, 43.7 / 44.8 43.7, 44.0 89.9 %
  • Each version reproduces itself exactly, arm to arm, but 12 of 12 greedy decode-bench texts differ between the versions, from character 9-259. The release notes say Flash-Next answers are byte-identical; the identity gates listed are RTX 3060 / P100 / R9700 / A750, not gfx906.
  • 32k: the 256-token reply to the same prompt takes 6258 vs 5227 ms with 229 vs 208 verify windows (drafts accepted 139 vs 162), so roughly +9 % per window on top of the different text.
  • STRATA_TOPK_OLD=1 on 0.1.45 gives a third set of texts (matches neither version), although #1749's docs say the wide and the original top-k give the same ids. On gfx906 they do not, possibly a wave64 issue in the wide kernel. It does not explain the whole difference.
  • Separate good news: --pipeline-windows 2 with STRATA_ARENA_MMAP=1 no longer stalls on 0.1.45 (it stalled on 0.1.41 / 0.1.43.1 with "verify window (pipelined): the CPU experts of layer 22"), but it gives no decode gain on the mmap arena here (43.0 vs 44.0).

Happy to run any parity test or switch you want on the cards.

Originally created by @petski3 on GitHub (Oct 17, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2932 **Setup:** 2x Radeon Pro VII 16 GB (gfx906, wave64), Ryzen 9 3950X, 64 GB RAM, Ubuntu 24.04, kernel 6.8, ROCm 7.14 in a docker build image (clang 23), ggml at the pinned 3cf0325. Build as in docs/AMD_HIP.md: `cmake -DSTRATA_HIP_GFX906=ON -DCMAKE_HIP_ARCHITECTURES=gfx906 -DSTRATA_BUILD_TESTS=OFF -DSTRATA_GGML_DIR=...`, targets `strata strata-device`. Model Qwen3.8-Flash-Next GSQ-RCO IQ3_S native pack, layer split 27 over both cards, `STRATA_ARENA_MMAP=1`, `--pcie-frac 0`, MTP spec 4, KV int8 + `--kv-resident 32768`. Built from v0.1.45 (477ac13) with the three gfx906 build fixes from #2459 (we hit the same breaks: the cublas maps, `GGML_USE_HIP` on `strata_mmq_w4a4`, and `moe_f16_kq.cu` in the gfx906 `strata_mmq`). With them it builds and serves (`strata 0.1.45`). ## Observed, not localised: answers and 32k decode change on gfx906 (0.1.43.1 -> 0.1.45) Interleaved A/B (old, new, old, new; same config, fixed-nonce bench + 6 greedy prompts x 768 tokens x 2; `STRATA_ROUTE_TAIL_SKIP=0` on both): | | prompt 4k / 32k tok/s | decode 4k / 32k (256 tok) | decode bench | hit | |---|---|---|---|---| | 0.1.43.1 (two arms) | 395 / 557, 393 / 551 | 43.1 / 51.3, 42.9 / 51.3 | 44.3, 44.7 | 89.5 % | | 0.1.45 (two arms) | 394 / 564, 393 / 557 | 43.9 / 44.8, 43.7 / 44.8 | 43.7, 44.0 | 89.9 % | - Each version reproduces itself exactly, arm to arm, but **12 of 12 greedy decode-bench texts differ between the versions**, from character 9-259. The release notes say Flash-Next answers are byte-identical; the identity gates listed are RTX 3060 / P100 / R9700 / A750, not gfx906. - 32k: the 256-token reply to the same prompt takes 6258 vs 5227 ms with 229 vs 208 verify windows (drafts accepted 139 vs 162), so roughly +9 % per window on top of the different text. - `STRATA_TOPK_OLD=1` on 0.1.45 gives a **third** set of texts (matches neither version), although #1749's docs say the wide and the original top-k give the same ids. On gfx906 they do not, possibly a wave64 issue in the wide kernel. It does not explain the whole difference. - Separate good news: `--pipeline-windows 2` with `STRATA_ARENA_MMAP=1` no longer stalls on 0.1.45 (it stalled on 0.1.41 / 0.1.43.1 with "verify window (pipelined): the CPU experts of layer 22"), but it gives no decode gain on the mmap arena here (43.0 vs 44.0). Happy to run any parity test or switch you want on the cards.
Author
Owner

@petski3 commented on GitHub (Oct 17, 2026):

Follow-up with more runs, and one correction to the post above.

Correction. The "12 of 12 greedy decode-bench texts differ" point is weak evidence: that bench is not reproducible within one build either (arm vs arm 6/12, round 1 vs round 2 inside one arm 0-2/6; the expert cache adapts during the session). The deterministic test here is the fixed-nonce 4k / 32k bench on a fresh engine. It is identical within a version (every arm, and also mmap vs buffered arena), and different between 0.1.43.1 and 0.1.45 at both 4k and 32k. So the answer change holds, but on that test, not the decode bench. STRATA_TOPK_OLD=1 equals 0.1.45 at 4k and differs at 32k, so the wide and the original top-k disagree only at long context.

Buffered arena (STRATA_ARENA_MMAP=0, experts in pinned RAM), same interleaved A/B, STRATA_ROUTE_TAIL_SKIP=0, 0 stall reports:

prompt 4k / 32k decode 4k / 32k (256 tok) decode bench
0.1.43.1 (two arms) 443 / 735, 440 / 739 50.7 / 54.6, 47.4 / 54.4 51.1, 51.7
0.1.45 (two arms) 441 / 741, 441 / 743 50.3 / 49.3, 50.1 / 49.5 51.0, 49.8
0.1.43.1 + --pipeline-windows 2 424 / 738 56.2 / 50.8 58.0
0.1.45 + --pipeline-windows 2 441 / 737 49.4 / 47.0 50.4
0.1.45 + pw2 + STRATA_MTP_STAGE0=1 432 / 722 50.9 / 49.7 50.1

So the 32k decode drop is there in both memory modes (-10 % buffered, -13 % mmap), and on gfx906 0.1.45 loses the whole +13 % that --pipeline-windows 2 gave 0.1.43.1 (pw2 is on in both: "two verifiers per stage"). Moving the draft layer to card 0 does not bring it back.

<!-- gh-comment-id:6237948788 --> @petski3 commented on GitHub (Oct 17, 2026): Follow-up with more runs, and one correction to the post above. **Correction.** The "12 of 12 greedy decode-bench texts differ" point is weak evidence: that bench is not reproducible within one build either (arm vs arm 6/12, round 1 vs round 2 inside one arm 0-2/6; the expert cache adapts during the session). The deterministic test here is the fixed-nonce 4k / 32k bench on a fresh engine. It is identical within a version (every arm, and also mmap vs buffered arena), and different between 0.1.43.1 and 0.1.45 at both 4k and 32k. So the answer change holds, but on that test, not the decode bench. `STRATA_TOPK_OLD=1` equals 0.1.45 at 4k and differs at 32k, so the wide and the original top-k disagree only at long context. **Buffered arena (`STRATA_ARENA_MMAP=0`, experts in pinned RAM)**, same interleaved A/B, `STRATA_ROUTE_TAIL_SKIP=0`, 0 stall reports: | | prompt 4k / 32k | decode 4k / 32k (256 tok) | decode bench | |---|---|---|---| | 0.1.43.1 (two arms) | 443 / 735, 440 / 739 | 50.7 / 54.6, 47.4 / 54.4 | 51.1, 51.7 | | 0.1.45 (two arms) | 441 / 741, 441 / 743 | 50.3 / 49.3, 50.1 / 49.5 | 51.0, 49.8 | | 0.1.43.1 + `--pipeline-windows 2` | 424 / 738 | 56.2 / 50.8 | **58.0** | | 0.1.45 + `--pipeline-windows 2` | 441 / 737 | 49.4 / 47.0 | **50.4** | | 0.1.45 + pw2 + `STRATA_MTP_STAGE0=1` | 432 / 722 | 50.9 / 49.7 | 50.1 | So the 32k decode drop is there in both memory modes (-10 % buffered, -13 % mmap), and on gfx906 0.1.45 loses the whole +13 % that `--pipeline-windows 2` gave 0.1.43.1 (pw2 is on in both: "two verifiers per stage"). Moving the draft layer to card 0 does not bring it back.
Author
Owner

@petski3 commented on GitHub (Oct 18, 2026):

Correction: most of this issue was #2940, not the engine.

Our benches send temperature: 0 + reasoning_effort: "none" and no presence_penalty, and our config sampling block has none either. Since 0.1.45, server.py merges the card's instruct set under the config block for thinking-off requests (_run, server.py:4193), so presence_penalty: 1.5 survived the request's temperature 0. The harness runs each tree's own serve/server.py, and 0.1.43.1's has no card merge. So every 0.1.45 arm above ran with presence 1.5 and every 0.1.43.1 arm without it.

Rerun with "presence_penalty": 0 in the config sampling block, everything else as before (same configs, STRATA_ROUTE_TAIL_SKIP=0, fixed-nonce 4k / 32k x2 on a fresh engine + the 6 x 768 decode bench, 0 stall reports):

prompt 4k / 32k decode 4k / 32k (256 tok) decode bench
0.1.43.1, buffered arena 433 / 744, 446 / 738 46.4 / 54.4, 53.2 / 54.9 51.1
0.1.45, buffered arena 429 / 745, 451 / 742 44.2 / 54.1, 53.5 / 53.8 51.1 (2nd arm 51.3)
0.1.43.1 + --pipeline-windows 2, buffered 408 / 742, 449 / 735 52.5 / 59.0, 56.3 / 56.6 58.0
0.1.45 + --pipeline-windows 2, buffered 431 / 728, 449 / 737 53.7 / 52.8, 59.8 / 56.8 57.6
0.1.45, STRATA_ARENA_MMAP=1 238* / 559, 421 / 554 38.3 / 49.8, 48.2 / 54.2 43.9
(10-17) 0.1.43.1, STRATA_ARENA_MMAP=1 371 / 553, 418 / 561 38.1 / 49.0, 48.1 / 53.5 44.3

Prompt and decode cells: run 1, run 2 of one arm. A second 0.1.45 buffered arm gave the same texts and 32k decode 54.8 / 52.9. * = first request after a buffered arm, cold page cache.

What this changes:

  • No 0.1.45 speed regression on gfx906. The 32k decode drop (-10 % buffered, -13 % mmap) is gone, and the --pipeline-windows 2 gain is back (57.6 vs 58.0).

  • Answers: 0.1.45 on the mmap arena is byte-identical to 0.1.43.1 in all four fixed-nonce texts (4k and 32k, both runs), with the same draft counts. So the "Flash-Next answers are byte-identical" claim from the release notes holds on gfx906 in that mode.

  • One small difference remains, on the buffered arena only (STRATA_ARENA_MMAP=0): 0.1.45 differs from 0.1.43.1 late in the reply (char 190-1090 instead of 71/77). It is reproducible on both 0.1.45 arms. 0.1.43.1 gives the same texts on mmap and buffered; 0.1.45 does not. Not localised, and possibly not worth chasing. Mentioning it in case it points at something.

  • Withdrawn, not re-measured with presence 0:

    • the STRATA_TOPK_OLD=1 "third set of texts" point
    • "--pipeline-windows 2 gives no gain on the mmap arena"

    Both were measured with presence 1.5 on 0.1.45 only. "pw2 + mmap no longer stalls on 0.1.45" was also only seen with presence 1.5.

Sorry for the noise. +1 to #2940's suggestion that temperature: 0 (or an explicit config sampling block) should not pick up the card set: it made a sampling change look like an engine regression here too. That may also be worth a look for anyone comparing 0.1.45 against an older server with thinking-off requests (#2936?).

Fine to close this one unless you want the buffered-arena difference tracked here.

<!-- gh-comment-id:6246687929 --> @petski3 commented on GitHub (Oct 18, 2026): Correction: most of this issue was #2940, not the engine. Our benches send `temperature: 0` + `reasoning_effort: "none"` and no `presence_penalty`, and our config `sampling` block has none either. Since 0.1.45, `server.py` merges the card's instruct set under the config block for thinking-off requests (`_run`, server.py:4193), so `presence_penalty: 1.5` survived the request's temperature 0. The harness runs each tree's own `serve/server.py`, and 0.1.43.1's has no card merge. So every 0.1.45 arm above ran with presence 1.5 and every 0.1.43.1 arm without it. Rerun with `"presence_penalty": 0` in the config `sampling` block, everything else as before (same configs, `STRATA_ROUTE_TAIL_SKIP=0`, fixed-nonce 4k / 32k x2 on a fresh engine + the 6 x 768 decode bench, 0 stall reports): | | prompt 4k / 32k | decode 4k / 32k (256 tok) | decode bench | |---|---|---|---| | 0.1.43.1, buffered arena | 433 / 744, 446 / 738 | 46.4 / 54.4, 53.2 / 54.9 | 51.1 | | 0.1.45, buffered arena | 429 / 745, 451 / 742 | 44.2 / 54.1, 53.5 / 53.8 | 51.1 (2nd arm 51.3) | | 0.1.43.1 + `--pipeline-windows 2`, buffered | 408 / 742, 449 / 735 | 52.5 / 59.0, 56.3 / 56.6 | 58.0 | | 0.1.45 + `--pipeline-windows 2`, buffered | 431 / 728, 449 / 737 | 53.7 / 52.8, 59.8 / 56.8 | **57.6** | | 0.1.45, `STRATA_ARENA_MMAP=1` | 238\* / 559, 421 / 554 | 38.3 / 49.8, 48.2 / 54.2 | 43.9 | | (10-17) 0.1.43.1, `STRATA_ARENA_MMAP=1` | 371 / 553, 418 / 561 | 38.1 / 49.0, 48.1 / 53.5 | 44.3 | Prompt and decode cells: run 1, run 2 of one arm. A second 0.1.45 buffered arm gave the same texts and 32k decode 54.8 / 52.9. \* = first request after a buffered arm, cold page cache. What this changes: - **No 0.1.45 speed regression on gfx906.** The 32k decode drop (-10 % buffered, -13 % mmap) is gone, and the `--pipeline-windows 2` gain is back (57.6 vs 58.0). - **Answers: 0.1.45 on the mmap arena is byte-identical to 0.1.43.1** in all four fixed-nonce texts (4k and 32k, both runs), with the same draft counts. So the "Flash-Next answers are byte-identical" claim from the release notes holds on gfx906 in that mode. - **One small difference remains, on the buffered arena only** (`STRATA_ARENA_MMAP=0`): 0.1.45 differs from 0.1.43.1 late in the reply (char 190-1090 instead of 71/77). It is reproducible on both 0.1.45 arms. 0.1.43.1 gives the same texts on mmap and buffered; 0.1.45 does not. Not localised, and possibly not worth chasing. Mentioning it in case it points at something. - **Withdrawn, not re-measured with presence 0:** - the `STRATA_TOPK_OLD=1` "third set of texts" point - "`--pipeline-windows 2` gives no gain on the mmap arena" Both were measured with presence 1.5 on 0.1.45 only. "pw2 + mmap no longer stalls on 0.1.45" was also only seen with presence 1.5. Sorry for the noise. +1 to #2940's suggestion that `temperature: 0` (or an explicit config `sampling` block) should not pick up the card set: it made a sampling change look like an engine regression here too. That may also be worth a look for anyone comparing 0.1.45 against an older server with thinking-off requests (#2936?). Fine to close this one unless you want the buffered-arena difference tracked here.
Author
Owner

@Niko1221 commented on GitHub (Oct 19, 2026):

Thanks for taking the time to report this.

We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6271369784 --> @Niko1221 commented on GitHub (Oct 19, 2026): Thanks for taking the time to report this. We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1180
No description provided.