[GH-ISSUE #4106] [Benchmark] Strix Halo 128 GB: v0.2.4 stable and faster than llama.cpp, but greedy output diverges more and image text misread #1796

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

Originally created by @thregit on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4106

What did you measure, or what went wrong

Thanks for the Strix Halo work. Here is a report from a Ryzen AI Max+ 395, 128 GB (115 GiB GTT), Ubuntu 24.04.5, kernel 7.0.

Setup

  • Strata v0.2.4 (96ca438), source build per docs/STRIX_HALO.md, ROCm 7.14.1 TheRock, hipBLASLt table enabled (gfx1151 100401).
  • Model: huihui-ai Qwen3.8-Flash-Next abliterated, UD-Q4_K_XL GGUF (Unsloth layout), packed with tools/iq_pack.py --compat-bf16.
    Draft layer via tools/mtp_fetch.py + mtp_pack.py (q2_0) + mtp_rt.py.
  • Args: --resident-budget-gib 71 --expert-cache 7788 (engine reported 46.43 GiB resident, 9928 slots / 28.97 GiB),
    --prefill auto --spec 4 --spec-min-p 0.5 --kv int8 --max-context 204800 --kv-resident 32768 --vision (CPU reader).
    Run 1 with the gfx1151 defaults, run 2 with STRATA_HC_Q8=0 STRATA_GFX1151_CHUNK=0.
  • Baseline: llama.cpp b11474 Vulkan, same GGUF and mmproj, q8_0 KV, 204,800 context, MTP draft (Unsloth MTP Q8_0, n-max 3).

Results (Strata defaults vs llama.cpp)

  • Stable: no crashes or OOM in about 25 min of requests (a 0.1.44-era build crashed and ran out of memory here on 16 Oct).
  • Decode tok/s: prose 32.4 vs 28.9, code 44.2 vs 40.5, complex code 43.6 vs 42.9, thinking 35.2 vs 29.0, copy-edit 59.0 vs 45.1;
    after a 93K prompt 30.5 vs 22.7.
  • Prefill tok/s: 474 vs 383 (7.3K), 452 vs 349 (29K), 437 vs 272 (93K).
  • 93K needle found by both; coding exam 12/12 both; tool-call chats 5/5 (llama.cpp 4/5); no outside connections.

Possible issues

  1. Greedy agreement: 24 short prompts, temperature 0, thinking off, 64 tokens. Strata matched llama.cpp's output in 5/24
    (mean shared prefix 49%). For scale, llama.cpp with vs without MTP matched each other in 14/24 (76%), and Strata defaults
    vs STRATA_HC_Q8=0 matched in 14/24 (79%). In this run the budget mode read part of the experts from the file
    (about 92 GB of reads during the 93K request). Next I will rerun with every expert in the GPU cache and compare top-20
    log-probs per position (STRATA_LOGPOS) against llama.cpp, as docs/UNSLOTH_Q4.md did on NVIDIA.
  2. Image: a test PNG with three shapes and a short text label. Strata got the shapes right but misread two letters of the label
    (335 image tokens; the CPU reader's default vision.max_tokens is 300). llama.cpp with the same mmproj used 803 image
    tokens and read it correctly. I will rerun with a higher vision.max_tokens.
  3. Branch reuse: the same 8K document with a different second question is re-read in full (16.5 s), where llama.cpp
    restores a checkpoint (3.1 s). Plain continuation is fast in both.
  4. Prefill at 204,800 max context with KV streaming is about 450 tok/s, below the ~1,200 in docs/STRIX_HALO.md (shorter
    contexts, IQ4_XS, fast config). Is there a setting we missed for long-context agent use?
  5. Which switch turns off the 0.2.4 long-prompt skip (prompts over about 3,700 tokens)? For a no-compromise comparison
    I would like every answer-changing shortcut off.

Happy to run specific checks. I can't attach full logs, but can share specific lines.

Reproduction status

Measured locally

Originally created by @thregit on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4106 ### What did you measure, or what went wrong Thanks for the Strix Halo work. Here is a report from a Ryzen AI Max+ 395, 128 GB (115 GiB GTT), Ubuntu 24.04.5, kernel 7.0. **Setup** - Strata v0.2.4 (96ca438), source build per docs/STRIX_HALO.md, ROCm 7.14.1 TheRock, hipBLASLt table enabled (gfx1151 100401). - Model: huihui-ai Qwen3.8-Flash-Next abliterated, UD-Q4_K_XL GGUF (Unsloth layout), packed with `tools/iq_pack.py --compat-bf16`. Draft layer via `tools/mtp_fetch.py` + `mtp_pack.py` (q2_0) + `mtp_rt.py`. - Args: `--resident-budget-gib 71 --expert-cache 7788` (engine reported 46.43 GiB resident, 9928 slots / 28.97 GiB), `--prefill auto --spec 4 --spec-min-p 0.5 --kv int8 --max-context 204800 --kv-resident 32768 --vision` (CPU reader). Run 1 with the gfx1151 defaults, run 2 with `STRATA_HC_Q8=0 STRATA_GFX1151_CHUNK=0`. - Baseline: llama.cpp b11474 Vulkan, same GGUF and mmproj, q8_0 KV, 204,800 context, MTP draft (Unsloth MTP Q8_0, n-max 3). **Results (Strata defaults vs llama.cpp)** - Stable: no crashes or OOM in about 25 min of requests (a 0.1.44-era build crashed and ran out of memory here on 16 Oct). - Decode tok/s: prose 32.4 vs 28.9, code 44.2 vs 40.5, complex code 43.6 vs 42.9, thinking 35.2 vs 29.0, copy-edit 59.0 vs 45.1; after a 93K prompt 30.5 vs 22.7. - Prefill tok/s: 474 vs 383 (7.3K), 452 vs 349 (29K), 437 vs 272 (93K). - 93K needle found by both; coding exam 12/12 both; tool-call chats 5/5 (llama.cpp 4/5); no outside connections. **Possible issues** 1. Greedy agreement: 24 short prompts, temperature 0, thinking off, 64 tokens. Strata matched llama.cpp's output in 5/24 (mean shared prefix 49%). For scale, llama.cpp with vs without MTP matched each other in 14/24 (76%), and Strata defaults vs `STRATA_HC_Q8=0` matched in 14/24 (79%). In this run the budget mode read part of the experts from the file (about 92 GB of reads during the 93K request). Next I will rerun with every expert in the GPU cache and compare top-20 log-probs per position (`STRATA_LOGPOS`) against llama.cpp, as docs/UNSLOTH_Q4.md did on NVIDIA. 2. Image: a test PNG with three shapes and a short text label. Strata got the shapes right but misread two letters of the label (335 image tokens; the CPU reader's default `vision.max_tokens` is 300). llama.cpp with the same mmproj used 803 image tokens and read it correctly. I will rerun with a higher `vision.max_tokens`. 3. Branch reuse: the same 8K document with a different second question is re-read in full (16.5 s), where llama.cpp restores a checkpoint (3.1 s). Plain continuation is fast in both. 4. Prefill at 204,800 max context with KV streaming is about 450 tok/s, below the ~1,200 in docs/STRIX_HALO.md (shorter contexts, IQ4_XS, fast config). Is there a setting we missed for long-context agent use? 5. Which switch turns off the 0.2.4 long-prompt skip (prompts over about 3,700 tokens)? For a no-compromise comparison I would like every answer-changing shortcut off. Happy to run specific checks. I can't attach full logs, but can share specific lines. ### Reproduction status Measured locally
bsakaguchi 2026-11-04 01:54:08 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 25, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6399010454 --> @github-actions[bot] commented on GitHub (Oct 25, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@thregit commented on GitHub (Oct 25, 2026):

Follow-up: deep test with every expert in GPU memory. Same task scores as llama.cpp, now in daily use.

Same box (Ryzen AI Max+ 395, 128 GB, Ubuntu 24.04.5, kernel 7.0), Strata v0.2.4 (96ca438), ROCm 7.14.1, same
GGUF.
Changed since my first report: --expert-cache 24576 --resident-budget-gib 8 --adapt-every 100000 (all experts
in the
GPU cache, 71.73 GiB), STRATA_ROUTE_TAIL_SKIP=0, vision.max_tokens 0. Rest as before (KV int8, 204,800
context,
--kv-resident 32768, --spec 4).

Tasks (llama.cpp b11474 Vulkan + MTP -> Strata)

  • HumanEval 164, greedy, thinking off: 156 -> 156
  • MATH-500 level 5 (20, thinking medium): 18 -> 18 (same two missed)
  • 4-step tool chain with nested arguments, 20 runs, every argument checked: 20/20 -> 20/20
  • 11 images (chart, dense text, table, counting, receipt, equation, landmarks): 11/11 -> 11/11 (label read
    correctly with vision.max_tokens 0)
  • 5 needles in a 178,744-token prompt: 5/5 in 845 s -> 5/5 in 431 s
  • variable chain at ~138K tokens: right -> right

Speed

  • Decode tok/s, prose / code / complex code / thinking / copy-edit: 31.2 / 41.7 / 42.6 / 29.2 / 45.2 -> 39.8 /
    55.1 / 55.7 / 41.9 / 74.4
  • Prefill tok/s at 8K / 32K / 179K: 390 / 350 / 212 -> 464 / 449 / 416
  • 12-turn growing chat, last turn at ~116K: 54 s -> 29 s
  • No crashes, no OOM, no outside connections. Memory: 110 GiB peak (13 GiB available) in the test, about 93 GiB
    in daily use.

Fidelity (teacher-forced on your yardstick set, top-64 as in docs/QUANTS.md, against llama.cpp on the same
ids)

  • Top-1 agreement: code 96.7, docs 86.5, english 92.6, multilingual 96.3, agent 92.0 %; mean KL 0.014-0.087;
    perplexity x0.98-x1.01.
  • For scale, llama.cpp against itself with f16 K/V or ubatch 512: 97.4, 89-90, 94.7-96.0, 96.4-97.3, 92.9-93.4
    %; KL 0.008-0.074.
  • STRATA_GFX1151_DEFAULTS=0 gave bit-identical rows (the 19 switches are exact here). --kv fp16 against
    llama.cpp f16 K/V gave the same distance, so the K/V format is not the cause. STRATA_HC_Q8=0 was mixed.

Questions

  1. Is the remaining word-level distance expected on HIP (kernel order, the --compat-bf16 copies of the Q8_0
    projections in the prompt path)? A pack path that reads them all as Q8_0 would be interesting.
  2. The CPU picture reader takes 17-77 s per photo, where llama.cpp's GPU path takes 12-20 s. Should
    strata-vision-hip (STRATA_VISION_HIP=ON) work on gfx1151?
  3. Branch reuse: a different second question on the same 8K document is re-read in full (16.5 s vs 3.1 s with
    llama.cpp's checkpoints).
  4. Server: with several devices it would help to have an option that turns off /settings, /config, /load, /unload
    and /slots for API-key clients (any key holder can change shared defaults or unload the model). For now I put a
    small allow-list proxy in front. Comma-separated keys in STRATA_API_KEY work well.

Running it daily now; I'll report how the week goes.

<!-- gh-comment-id:6403103587 --> @thregit commented on GitHub (Oct 25, 2026): Follow-up: deep test with every expert in GPU memory. Same task scores as llama.cpp, now in daily use. Same box (Ryzen AI Max+ 395, 128 GB, Ubuntu 24.04.5, kernel 7.0), Strata v0.2.4 (96ca438), ROCm 7.14.1, same GGUF. Changed since my first report: `--expert-cache 24576 --resident-budget-gib 8 --adapt-every 100000` (all experts in the GPU cache, 71.73 GiB), `STRATA_ROUTE_TAIL_SKIP=0`, `vision.max_tokens 0`. Rest as before (KV int8, 204,800 context, `--kv-resident 32768`, `--spec 4`). **Tasks (llama.cpp b11474 Vulkan + MTP -> Strata)** - HumanEval 164, greedy, thinking off: 156 -> 156 - MATH-500 level 5 (20, thinking medium): 18 -> 18 (same two missed) - 4-step tool chain with nested arguments, 20 runs, every argument checked: 20/20 -> 20/20 - 11 images (chart, dense text, table, counting, receipt, equation, landmarks): 11/11 -> 11/11 (label read correctly with `vision.max_tokens 0`) - 5 needles in a 178,744-token prompt: 5/5 in 845 s -> 5/5 in 431 s - variable chain at ~138K tokens: right -> right **Speed** - Decode tok/s, prose / code / complex code / thinking / copy-edit: 31.2 / 41.7 / 42.6 / 29.2 / 45.2 -> 39.8 / 55.1 / 55.7 / 41.9 / 74.4 - Prefill tok/s at 8K / 32K / 179K: 390 / 350 / 212 -> 464 / 449 / 416 - 12-turn growing chat, last turn at ~116K: 54 s -> 29 s - No crashes, no OOM, no outside connections. Memory: 110 GiB peak (13 GiB available) in the test, about 93 GiB in daily use. **Fidelity** (teacher-forced on your yardstick set, top-64 as in docs/QUANTS.md, against llama.cpp on the same ids) - Top-1 agreement: code 96.7, docs 86.5, english 92.6, multilingual 96.3, agent 92.0 %; mean KL 0.014-0.087; perplexity x0.98-x1.01. - For scale, llama.cpp against itself with f16 K/V or ubatch 512: 97.4, 89-90, 94.7-96.0, 96.4-97.3, 92.9-93.4 %; KL 0.008-0.074. - `STRATA_GFX1151_DEFAULTS=0` gave bit-identical rows (the 19 switches are exact here). `--kv fp16` against llama.cpp f16 K/V gave the same distance, so the K/V format is not the cause. `STRATA_HC_Q8=0` was mixed. **Questions** 1. Is the remaining word-level distance expected on HIP (kernel order, the `--compat-bf16` copies of the Q8_0 projections in the prompt path)? A pack path that reads them all as Q8_0 would be interesting. 2. The CPU picture reader takes 17-77 s per photo, where llama.cpp's GPU path takes 12-20 s. Should `strata-vision-hip` (`STRATA_VISION_HIP=ON`) work on gfx1151? 3. Branch reuse: a different second question on the same 8K document is re-read in full (16.5 s vs 3.1 s with llama.cpp's checkpoints). 4. Server: with several devices it would help to have an option that turns off /settings, /config, /load, /unload and /slots for API-key clients (any key holder can change shared defaults or unload the model). For now I put a small allow-list proxy in front. Comma-separated keys in STRATA_API_KEY work well. Running it daily now; I'll report how the week goes.
Author
Owner

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

Thank you for measuring this and writing it up. We are building a Strata website with a page for community benchmarks, and results like these will be added there when it launches, so we are closing this here. If your numbers change with a new version, you are welcome to post them again.

<!-- gh-comment-id:6495672275 --> @Niko1221 commented on GitHub (Oct 29, 2026): Thank you for measuring this and writing it up. We are building a Strata website with a page for community benchmarks, and results like these will be added there when it launches, so we are closing this here. If your numbers change with a new version, you are welcome to post them again.
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#1796
No description provided.