[PR #323] [CLOSED] hip: add experimental RX 5500 XT 8 GB (gfx1012) support #2576

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

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/323
Author: @CC-David-CC
Created: 10/1/2026
Status: ❌ Closed

Base: main ← Head: contrib/gfx1012-hip


📝 Commits (4)

  • 3b7ce8a hip: add experimental gfx1012 support and legacy BLAS compatibility
  • 97ac669 serve: allow non-MTP decoding and omit unavailable PCIe expert paths
  • a94081d bench: compare RDNA1 text throughput with and without MTP
  • a228f5f docs: report RX 5500 XT 8GB 8K results with and without MTP

📊 Changes

17 files changed (+1051 additions, -49 deletions)

View changed files

📝 CMakeLists.txt (+7 -3)
📝 README.md (+3 -0)
📝 cmake/hip_backend.cmake (+17 -5)
📝 docs/AMD_HIP.md (+75 -2)
📝 docs/AMD_HIP_PERFORMANCE.md (+90 -1)
➕ docs/benchmarks/2026-09-30-gfx1012.json (+397 -0)
📝 include/strata/core/verify.hpp (+5 -1)
📝 include/strata/hip_compat/cublas_v2.h (+41 -0)
📝 include/strata/hip_compat/cuda_runtime.h (+4 -4)
📝 include/strata/hip_compat/intrinsics.hpp (+26 -1)
➕ include/strata/hip_compat/math_constants.h (+4 -0)
📝 src/core/verify.cpp (+16 -10)
📝 src/program/generate.cpp (+45 -17)
📝 tests/hip/intrinsics.cpp (+25 -5)
➕ tests/hip/prefill_gemm.cpp (+93 -0)
➕ tools/hip/bench_rdna1.py (+171 -0)
➕ tools/hip/rx5500xt-iq3s.example.json (+32 -0)

📄 Description

This adds a manual Linux HIP source-build path for the consumer AMD Radeon RX 5500 XT 8 GB (RDNA1 / gfx1012).

The changes cover RDNA1 signed-byte dot and wave synchronization compatibility, legacy hipBLAS/rocBLAS compatibility, serving without MTP, and omission of unavailable PCIe expert paths. They include targeted GPU tests, a reproducible benchmark, and the hardware configuration and results. The pinned llama.cpp/ggml dependency is unchanged. Upstream README content is preserved, with a short link to the new hardware documentation.

Tested hardware: RX 5500 XT 8 GB, Ryzen 5 3600, 56 GB installed DDR4 at 1866 MT/s (about 54.8 GiB usable), NVMe SSD, Ubuntu 24.04, HIP 5.7.1 and clang 17. Model: Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S, text only, Q8 KV.

Every request used 8,192 input tokens, 9,216 allocated context tokens, and a maximum of 512 output tokens. Single observations, one request at a time, without prompt KV reuse.

Task Output tokens Generation tok/s, MTP off/on Total seconds, MTP off/on
Counting 512 11.35 / 16.81 128.96 / 132.55
Coding 125 10.45 / 15.30 93.71 / 107.01
Writing 232 10.17 / 10.91 104.64 / 120.60

MTP accelerated generation, but its additional prefill time increased total completion time for these fresh 8K requests. Total time excludes model startup. Full prefill and effective-throughput results, source/binary hashes, and sanitized raw output are included in docs/AMD_HIP_PERFORMANCE.md and docs/benchmarks/2026-09-30-gfx1012.json.

Validation: 16/16 focused GPU tests and real IQ3_S expert parity checks at layers 0, 8, 24, 40, and 47 passed. All six benchmark requests completed without runtime errors. Both coding outputs passed six functional cases. The writing output exceeded its requested word limit; that is documented.

Validation covers this single-GPU, text-only setup at the stated context. Windows HIP, vision, other architectures, concurrency, and a maximum context limit were not established by these runs. MTP, expert caching, and the inference engine originate in upstream Strata.


🔄 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/323 **Author:** [@CC-David-CC](https://github.com/CC-David-CC) **Created:** 10/1/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `contrib/gfx1012-hip` --- ### 📝 Commits (4) - [`3b7ce8a`](https://github.com/Niko1221/Strata/commit/3b7ce8a8379d9698dba07cc384547245bc62c7a6) hip: add experimental gfx1012 support and legacy BLAS compatibility - [`97ac669`](https://github.com/Niko1221/Strata/commit/97ac669d80a61e81f89d6275200655dcd324fbbc) serve: allow non-MTP decoding and omit unavailable PCIe expert paths - [`a94081d`](https://github.com/Niko1221/Strata/commit/a94081db395398651e52cde5c6f458e3d0376928) bench: compare RDNA1 text throughput with and without MTP - [`a228f5f`](https://github.com/Niko1221/Strata/commit/a228f5f2bc6f418e21dbc00e3511402698a2cc36) docs: report RX 5500 XT 8GB 8K results with and without MTP ### 📊 Changes **17 files changed** (+1051 additions, -49 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+7 -3) 📝 `README.md` (+3 -0) 📝 `cmake/hip_backend.cmake` (+17 -5) 📝 `docs/AMD_HIP.md` (+75 -2) 📝 `docs/AMD_HIP_PERFORMANCE.md` (+90 -1) ➕ `docs/benchmarks/2026-09-30-gfx1012.json` (+397 -0) 📝 `include/strata/core/verify.hpp` (+5 -1) 📝 `include/strata/hip_compat/cublas_v2.h` (+41 -0) 📝 `include/strata/hip_compat/cuda_runtime.h` (+4 -4) 📝 `include/strata/hip_compat/intrinsics.hpp` (+26 -1) ➕ `include/strata/hip_compat/math_constants.h` (+4 -0) 📝 `src/core/verify.cpp` (+16 -10) 📝 `src/program/generate.cpp` (+45 -17) 📝 `tests/hip/intrinsics.cpp` (+25 -5) ➕ `tests/hip/prefill_gemm.cpp` (+93 -0) ➕ `tools/hip/bench_rdna1.py` (+171 -0) ➕ `tools/hip/rx5500xt-iq3s.example.json` (+32 -0) </details> ### 📄 Description This adds a manual Linux HIP source-build path for the consumer AMD Radeon RX 5500 XT 8 GB (RDNA1 / gfx1012). The changes cover RDNA1 signed-byte dot and wave synchronization compatibility, legacy hipBLAS/rocBLAS compatibility, serving without MTP, and omission of unavailable PCIe expert paths. They include targeted GPU tests, a reproducible benchmark, and the hardware configuration and results. The pinned llama.cpp/ggml dependency is unchanged. Upstream README content is preserved, with a short link to the new hardware documentation. Tested hardware: RX 5500 XT 8 GB, Ryzen 5 3600, 56 GB installed DDR4 at 1866 MT/s (about 54.8 GiB usable), NVMe SSD, Ubuntu 24.04, HIP 5.7.1 and clang 17. Model: Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S, text only, Q8 KV. Every request used 8,192 input tokens, 9,216 allocated context tokens, and a maximum of 512 output tokens. Single observations, one request at a time, without prompt KV reuse. | Task | Output tokens | Generation tok/s, MTP off/on | Total seconds, MTP off/on | | --- | ---: | ---: | ---: | | Counting | 512 | 11.35 / 16.81 | 128.96 / 132.55 | | Coding | 125 | 10.45 / 15.30 | 93.71 / 107.01 | | Writing | 232 | 10.17 / 10.91 | 104.64 / 120.60 | MTP accelerated generation, but its additional prefill time increased total completion time for these fresh 8K requests. Total time excludes model startup. Full prefill and effective-throughput results, source/binary hashes, and sanitized raw output are included in docs/AMD_HIP_PERFORMANCE.md and docs/benchmarks/2026-09-30-gfx1012.json. Validation: 16/16 focused GPU tests and real IQ3_S expert parity checks at layers 0, 8, 24, 40, and 47 passed. All six benchmark requests completed without runtime errors. Both coding outputs passed six functional cases. The writing output exceeded its requested word limit; that is documented. Validation covers this single-GPU, text-only setup at the stated context. Windows HIP, vision, other architectures, concurrency, and a maximum context limit were not established by these runs. MTP, expert caching, and the inference engine originate in upstream Strata. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:01: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#2576
No description provided.