[PR #1000] [CLOSED] HIP: gfx1102 (RX 7600) community-validated, with an end-to-end run (follow-up to #192) #2956

Closed
opened 2026-11-04 02:04:28 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1000
Author: @nexus2905
Created: 10/5/2026
Status: ❌ Closed

Base: main ← Head: rx7600-v0139


📝 Commits (10+)

  • 5a30024 calibrate: the engine's arguments come from the server's engine_args; a failed tuning says why (#447)
  • 9f60d13 serve, setup: name the small split card that caps the prompt chunk; setup recommends the big card alone (#448)
  • eb8da1d /metrics: each request's speculative draft counts, and their sums in the totals (#457)
  • 6a09387 setup (--gguf-dir): GGUFs Strata cannot run are named as such, with the --family/--model to use (#444)
  • d6a91e2 docs: the Coder is weaker outside code, Chinese/CJK text included; the unpruned sizes for that (#438)
  • d8d4ad3 Merge branch 'f-135-eng' into rel-0.1.35
  • 7b600d5 Merge branch 'f-135-small' into rel-0.1.35
  • d9ab843 Engine 0.1.35: Windows AMD uses its bundled HIP runtime (#468 #461), the low-RAM resident mode on Windows 32 GB PCs (#467), fixes #460 #459 #446 #447 #457 #448 #444; setup requires it
  • 57bd713 sycl: pipeline the expert cache's profile fill (model load 3-4x faster)
  • e3bdd74 A prompt cancelled mid-read is logged and recorded with the tokens it read (#471)

📊 Changes

2 files changed (+35 additions, -2 deletions)

View changed files

📝 docs/AMD_HIP.md (+7 -2)
➕ tools/hip/gfx1102-hipblaslt-100401.txt (+28 -0)

📄 Description

Follow-up to #192, which was closed pending (1) a startup check against the exact compiled architecture and (2) an end-to-end RX 7600 run.

(1) Exact-architecture startup check

This is already upstream: src/core/device.cu compares the running card's gcnArchName (up to the : feature suffix) with STRATA_HIP_ARCHS, the architectures the binary was compiled for. A gfx1100 build carried to a gfx1102 card stops with the card's name, its architecture and the build's list. This PR doesn't change it.

Changes

  • cmake/hip_backend.cmake: move gfx1102 from _strata_hip_unvalidated to _strata_hip_community (a status message instead of a warning), and update the comment
  • setup.py: add gfx1102 to AMD_ARCHS, AMD_NAMES and AMD_CARDS, and map it to TheRock's gfx110X-dgpu index in ROCM_INDEXES. Without that entry, a PC without a system ROCm would hit KeyError in rocm_index()
  • docs/AMD_HIP.md: gfx1102 in the title and arch lists, and an RX 7600 entry under Community-validated cards

(2) End-to-end run: RX 7600 8 GB, engine 0.1.39

Ryzen 5 5600 (AVX2, no AVX-512), 64 GiB DDR4, B450 board (PCIe 3.0 x8, 7.0 GB/s probed), Ubuntu 26.04, system ROCm with hipBLASLt 1.4.1 (no gfx1102 tuning table).

  • ./setup.sh --backend hip (with this patch) detects the card, compiles for gfx1102 and prepares the model
  • strata-device --selftest: OK
  • ctest --test-dir build -E '^(ple_parity|platform_memory_test)$': 62/63. hip_prompt_attn_wmma and hip_prefill_hipblaslt_gemm were skipped. The one failure is expert_multi_test, which requires AVX-512 ("this CPU cannot run the expert kernel"); the engine uses the AVX2 kernels on this CPU
  • IQ2_XS, 32K context, --kv int8, MTP --spec 4 --spec-min-p 0.5, --vram-reserve-mib 2560: 347 expert slots
    • decode: 24.0 tok/s (three 320-token replies, greedy, thinking off). The same benchmark gave 14.2 tok/s on engine 0.1.27
    • prompts (fresh, cache_n 0): 4,716 tokens at 59.1 tok/s, 16,535 tokens at 57.4 tok/s. The engine chose 256-token chunks ("too few cache slots to borrow")
    • answers were correct (arithmetic, code)

Notes for an 8 GB card that also drives the desktop

  • With the auto reserve (700 MiB), only ~0.5 GiB was left once the model loaded. The kernel then rejected GNOME Shell's command submissions (amdgpu: Not enough memory for command submission), GNOME Shell aborted and the session ended. That happened three times while working out the reserve. --vram-reserve-mib 2048–2560 is stable here; the desktop itself used ~0.6–1.9 GiB depending on open apps. It might be worth a setup hint for AMD cards of 8 GB or less that also drive a display.
  • The Coder IQ1_M leaves only 2.34 GiB after its dense weights (IQ2_XS: 3.13 GiB). With a reserve that keeps the desktop alive it gets 0 cache slots, and then verify: needs the profile-filled VRAM expert tier, so I couldn't run it safely on this card.
  • Not tested: the TheRock wheel path for gfx1102 (I used system ROCm), and a hipBLASLt tuning table.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1000 **Author:** [@nexus2905](https://github.com/nexus2905) **Created:** 10/5/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `rx7600-v0139` --- ### 📝 Commits (10+) - [`5a30024`](https://github.com/Niko1221/Strata/commit/5a3002446dbb9dfcabb7d0bd9f113da90cc2f3c0) calibrate: the engine's arguments come from the server's engine_args; a failed tuning says why (#447) - [`9f60d13`](https://github.com/Niko1221/Strata/commit/9f60d13246e46b02b1dd0841980b4d18b0faaea7) serve, setup: name the small split card that caps the prompt chunk; setup recommends the big card alone (#448) - [`eb8da1d`](https://github.com/Niko1221/Strata/commit/eb8da1d8c26ec41e6ffb084fdf579dba7cad10bd) /metrics: each request's speculative draft counts, and their sums in the totals (#457) - [`6a09387`](https://github.com/Niko1221/Strata/commit/6a093874fe037020f49bd5cf053879ff6a133c21) setup (--gguf-dir): GGUFs Strata cannot run are named as such, with the --family/--model to use (#444) - [`d6a91e2`](https://github.com/Niko1221/Strata/commit/d6a91e2d1770d0f469d6ec15890acc7ee93e764c) docs: the Coder is weaker outside code, Chinese/CJK text included; the unpruned sizes for that (#438) - [`d8d4ad3`](https://github.com/Niko1221/Strata/commit/d8d4ad337d3c98ba21d3bd0af1a16e9177e112b6) Merge branch 'f-135-eng' into rel-0.1.35 - [`7b600d5`](https://github.com/Niko1221/Strata/commit/7b600d55ff801caaaa11542af1523050992e049b) Merge branch 'f-135-small' into rel-0.1.35 - [`d9ab843`](https://github.com/Niko1221/Strata/commit/d9ab8435f654c368c586340d490915f6addf56a3) Engine 0.1.35: Windows AMD uses its bundled HIP runtime (#468 #461), the low-RAM resident mode on Windows 32 GB PCs (#467), fixes #460 #459 #446 #447 #457 #448 #444; setup requires it - [`57bd713`](https://github.com/Niko1221/Strata/commit/57bd713454ddb4b965f994e95d95cacd68c93fb1) sycl: pipeline the expert cache's profile fill (model load 3-4x faster) - [`e3bdd74`](https://github.com/Niko1221/Strata/commit/e3bdd7449223c4305ef53e331538346765855a2c) A prompt cancelled mid-read is logged and recorded with the tokens it read (#471) ### 📊 Changes **2 files changed** (+35 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/AMD_HIP.md` (+7 -2) ➕ `tools/hip/gfx1102-hipblaslt-100401.txt` (+28 -0) </details> ### 📄 Description Follow-up to #192, which was closed pending (1) a startup check against the exact compiled architecture and (2) an end-to-end RX 7600 run. ## (1) Exact-architecture startup check This is already upstream: `src/core/device.cu` compares the running card's `gcnArchName` (up to the `:` feature suffix) with `STRATA_HIP_ARCHS`, the architectures the binary was compiled for. A gfx1100 build carried to a gfx1102 card stops with the card's name, its architecture and the build's list. This PR doesn't change it. ## Changes - `cmake/hip_backend.cmake`: move gfx1102 from `_strata_hip_unvalidated` to `_strata_hip_community` (a status message instead of a warning), and update the comment - `setup.py`: add gfx1102 to `AMD_ARCHS`, `AMD_NAMES` and `AMD_CARDS`, and map it to TheRock's `gfx110X-dgpu` index in `ROCM_INDEXES`. Without that entry, a PC without a system ROCm would hit `KeyError` in `rocm_index()` - `docs/AMD_HIP.md`: gfx1102 in the title and arch lists, and an RX 7600 entry under *Community-validated cards* ## (2) End-to-end run: RX 7600 8 GB, engine 0.1.39 Ryzen 5 5600 (AVX2, no AVX-512), 64 GiB DDR4, B450 board (PCIe 3.0 x8, 7.0 GB/s probed), Ubuntu 26.04, system ROCm with hipBLASLt 1.4.1 (no gfx1102 tuning table). - `./setup.sh --backend hip` (with this patch) detects the card, compiles for gfx1102 and prepares the model - `strata-device --selftest`: OK - `ctest --test-dir build -E '^(ple_parity|platform_memory_test)$'`: **62/63**. `hip_prompt_attn_wmma` and `hip_prefill_hipblaslt_gemm` were skipped. The one failure is `expert_multi_test`, which requires AVX-512 ("this CPU cannot run the expert kernel"); the engine uses the AVX2 kernels on this CPU - **IQ2_XS**, 32K context, `--kv int8`, MTP `--spec 4 --spec-min-p 0.5`, `--vram-reserve-mib 2560`: 347 expert slots - decode: **24.0 tok/s** (three 320-token replies, greedy, thinking off). The same benchmark gave 14.2 tok/s on engine 0.1.27 - prompts (fresh, `cache_n` 0): 4,716 tokens at **59.1 tok/s**, 16,535 tokens at **57.4 tok/s**. The engine chose 256-token chunks ("too few cache slots to borrow") - answers were correct (arithmetic, code) ### Notes for an 8 GB card that also drives the desktop - With the auto reserve (700 MiB), only ~0.5 GiB was left once the model loaded. The kernel then rejected GNOME Shell's command submissions (`amdgpu: Not enough memory for command submission`), GNOME Shell aborted and the session ended. That happened three times while working out the reserve. `--vram-reserve-mib 2048`–`2560` is stable here; the desktop itself used ~0.6–1.9 GiB depending on open apps. It might be worth a setup hint for AMD cards of 8 GB or less that also drive a display. - The **Coder IQ1_M** leaves only 2.34 GiB after its dense weights (IQ2_XS: 3.13 GiB). With a reserve that keeps the desktop alive it gets 0 cache slots, and then `verify: needs the profile-filled VRAM expert tier`, so I couldn't run it safely on this card. - Not tested: the TheRock wheel path for gfx1102 (I used system ROCm), and a hipBLASLt tuning table. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:04:28 +07:00
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#2956
No description provided.