[GH-ISSUE #213] Validation on Radeon AI PRO R9700 (gfx1201, ROCm 7.0): v1.1.12 +15% decode, 384K context tested, thinking control confirmed #83

Closed
opened 2026-10-29 21:20:31 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @potatopote-debug on GitHub (Oct 16, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/213

Title: Validation on Radeon AI PRO R9700 (gfx1201, ROCm 7.0): v1.1.12 +15% decode, 384K context tested, thinking control confirmed

Environment: Radeon AI PRO R9700 (gfx1201) / i5-14400F / 128 GB RAM / Ubuntu, ROCm 7.0 (pip ROCm SDK wheels)
Model: Maya-S-v2-IQ2_XXS (96.5 GB, 3-shard GGUF)

Results:

  • v1.1.11: ~18 tok/s decode. v1.1.12: 19.7 cold / 21.4 warm (+15%) — the #198 fix (VRAM swaps beside a DFlash window) is the likely cause; disk reads 0.00/tok, KV streaming hit 85-99%.
  • Context scaling (NoPE native 1M): needle tests (exact code string recall at position 0) PASS at 111k / 185k / 296k tokens. Prefill ~563 tok/s at 296k. KV ~13.2 KB/token (MLA compressed): 296k conversation = 3.90 GB slot, no RAM-tier interference, full recovery after long context (temporary dip during slot eviction, then 25-28 tok/s).
  • Thinking control: reasoning_effort: "none" and chat_template_kwargs: {"enable_thinking": false} both remove reasoning_content; {"thinking": false} alone does NOT.
  • Minor: hipBLASLt version mismatch: file=100202 runtime=100200; using hipBLASEx (ROCm 7.0 runtime ships 100200). Harmless fallback, prefill still fast.
  • env findings on this box: CPU_LANE=16 harmful (RAM bandwidth saturation on i5-14400F), PCIE_SHARE=1 ~-20% (latency-bound), all other env tuning ineffective. Default config is optimal.
Originally created by @potatopote-debug on GitHub (Oct 16, 2026). Original GitHub issue: https://github.com/mw00/project-maya/issues/213 **Title:** Validation on Radeon AI PRO R9700 (gfx1201, ROCm 7.0): v1.1.12 +15% decode, 384K context tested, thinking control confirmed **Environment:** Radeon AI PRO R9700 (gfx1201) / i5-14400F / 128 GB RAM / Ubuntu, ROCm 7.0 (pip ROCm SDK wheels) **Model:** Maya-S-v2-IQ2_XXS (96.5 GB, 3-shard GGUF) **Results:** - v1.1.11: ~18 tok/s decode. **v1.1.12: 19.7 cold / 21.4 warm (+15%)** — the #198 fix (VRAM swaps beside a DFlash window) is the likely cause; disk reads 0.00/tok, KV streaming hit 85-99%. - **Context scaling (NoPE native 1M):** needle tests (exact code string recall at position 0) PASS at 111k / 185k / **296k tokens**. Prefill ~563 tok/s at 296k. KV ~13.2 KB/token (MLA compressed): 296k conversation = 3.90 GB slot, no RAM-tier interference, **full recovery after long context** (temporary dip during slot eviction, then 25-28 tok/s). - **Thinking control:** `reasoning_effort: "none"` and `chat_template_kwargs: {"enable_thinking": false}` both remove `reasoning_content`; `{"thinking": false}` alone does NOT. - Minor: `hipBLASLt version mismatch: file=100202 runtime=100200; using hipBLASEx` (ROCm 7.0 runtime ships 100200). Harmless fallback, prefill still fast. - env findings on this box: CPU_LANE=16 harmful (RAM bandwidth saturation on i5-14400F), PCIE_SHARE=1 ~-20% (latency-bound), all other env tuning ineffective. Default config is optimal.
Author
Owner

@potatopote-debug commented on GitHub (Oct 16, 2026):

Follow-up: CPU vision encoder on this box — default warmup deadlocks, --no-warmup fixes it

Following up on this report with a vision finding (v1.1.12, same box: R9700 / gfx1201, i5-14400F, 128 GB RAM, ROCm 7.0).

I enabled the CPU image encoder by hand per docs/AMD_MAYA.md ("CPU image encoder on Linux"): applied glm5next_patch.py to the pinned llama.cpp, built strata-vision CPU-only into a separate build-vision-cpu dir, downloaded the vision GGUFs (sha256 verified), and added the vision block with "gpu": false to the HIP config.

Problem: with the default warmup, the helper never prints READY and the server hangs at "Loading the model 0%" forever — serve/server.py waits on stdout.readline() with no timeout, so the helper's hang is invisible. Repro and diagnosis (no strace needed):

default (warmup on): hangs — no output after the tokenizer warnings,

single thread, ~0 CPU, wchan do_sigtimedwait

timeout 120 ./build-vision-cpu/bin/strata-vision --mmproj ... --model ... </dev/null # rc=124, no READY

--no-warmup: READY immediately

timeout 60 ./build-vision-cpu/bin/strata-vision --mmproj ... --model ... --no-warmup </dev/null
→ READY 4096

The 2048×2048 dummy-image warmup encode seems to deadlock on this machine (discrete RDNA4 + i5-14400F). Your official CPU-vision validation was on gfx1151, so this may be a first on a discrete card.

Workaround (working fine): a wrapper that adds --no-warmup (exec .../strata-vision --no-warmup --threads 8 "$@"), pointed to from the config's vision.exe. Since the warmup's purpose (GPU paging avoidance) doesn't apply to a CPU-only encoder, skipping it should be harmless — first real image just pays the buffer allocation. /health reports images: true, a green-circle check answered correctly in 2.5 s, and a complex real photo described correctly. Text decode is unaffected (19-21 tok/s as in the main report).

Hope this helps — happy to provide the full startup log or a --measure run if useful.

<!-- gh-comment-id:6209689163 --> @potatopote-debug commented on GitHub (Oct 16, 2026): Follow-up: CPU vision encoder on this box — default warmup deadlocks, --no-warmup fixes it Following up on this report with a vision finding (v1.1.12, same box: R9700 / gfx1201, i5-14400F, 128 GB RAM, ROCm 7.0). I enabled the CPU image encoder by hand per docs/AMD_MAYA.md ("CPU image encoder on Linux"): applied glm5next_patch.py to the pinned llama.cpp, built strata-vision CPU-only into a separate build-vision-cpu dir, downloaded the vision GGUFs (sha256 verified), and added the vision block with "gpu": false to the HIP config. Problem: with the default warmup, the helper never prints READY and the server hangs at "Loading the model 0%" forever — serve/server.py waits on stdout.readline() with no timeout, so the helper's hang is invisible. Repro and diagnosis (no strace needed): # default (warmup on): hangs — no output after the tokenizer warnings, # single thread, ~0 CPU, wchan do_sigtimedwait timeout 120 ./build-vision-cpu/bin/strata-vision --mmproj ... --model ... </dev/null # rc=124, no READY # --no-warmup: READY immediately timeout 60 ./build-vision-cpu/bin/strata-vision --mmproj ... --model ... --no-warmup </dev/null → READY 4096 The 2048×2048 dummy-image warmup encode seems to deadlock on this machine (discrete RDNA4 + i5-14400F). Your official CPU-vision validation was on gfx1151, so this may be a first on a discrete card. Workaround (working fine): a wrapper that adds --no-warmup (exec .../strata-vision --no-warmup --threads 8 "$@"), pointed to from the config's vision.exe. Since the warmup's purpose (GPU paging avoidance) doesn't apply to a CPU-only encoder, skipping it should be harmless — first real image just pays the buffer allocation. /health reports images: true, a green-circle check answered correctly in 2.5 s, and a complex real photo described correctly. Text decode is unaffected (19-21 tok/s as in the main report). Hope this helps — happy to provide the full startup log or a --measure run if useful.
Author
Owner

@mw00 commented on GitHub (Oct 16, 2026):

Thanks for the thorough validation, @potatopote-debug - the long-context needle runs and the thinking-control check are especially useful. The hipBLASLt version mismatch: file=100202 runtime=100200 line is harmless, as you saw: the shipped gfx1201 table is for hipBLASLt 100202 (ROCm 7.2), and ROCm 7.0 ships 100200, so prompts take hipBLASEx's default kernels instead of the tuned ones. ROCm 7.2 would pick the table up. On thinking: {"thinking": false} is not a field GLM-5.3-Flash's template reads; reasoning_effort: "none" or chat_template_kwargs: {"enable_thinking": false} are the two that work, as you found.

<!-- gh-comment-id:6209703886 --> @mw00 commented on GitHub (Oct 16, 2026): Thanks for the thorough validation, @potatopote-debug - the long-context needle runs and the thinking-control check are especially useful. The `hipBLASLt version mismatch: file=100202 runtime=100200` line is harmless, as you saw: the shipped gfx1201 table is for hipBLASLt 100202 (ROCm 7.2), and ROCm 7.0 ships 100200, so prompts take hipBLASEx's default kernels instead of the tuned ones. ROCm 7.2 would pick the table up. On thinking: `{"thinking": false}` is not a field GLM-5.3-Flash's template reads; `reasoning_effort: "none"` or `chat_template_kwargs: {"enable_thinking": false}` are the two that work, as you found.
Author
Owner

@mw00 commented on GitHub (Oct 20, 2026):

Thank you, @potatopote-debug - the R9700 validation is now in the README's speed table.

<!-- gh-comment-id:6295600073 --> @mw00 commented on GitHub (Oct 20, 2026): Thank you, @potatopote-debug - the R9700 validation is now in [the README's speed table](https://github.com/mw00/project-maya#how-fast-is-it).
Sign in to join this conversation.
No labels
pull-request
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
mw00/project-maya#83
No description provided.