mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #323] [CLOSED] hip: add experimental RX 5500 XT 8 GB (gfx1012) support #2576
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2576
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
3b7ce8ahip: add experimental gfx1012 support and legacy BLAS compatibility97ac669serve: allow non-MTP decoding and omit unavailable PCIe expert pathsa94081dbench: compare RDNA1 text throughput with and without MTPa228f5fdocs: 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.
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.