mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2765] [CLOSED] Experimental gfx803 (RX 580) Q36 Linux path #4254
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#4254
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/2765
Author: @minkiboo
Created: 10/16/2026
Status: ❌ Closed
Base:
main← Head:feat/rx580-gfx803-experimental📝 Commits (3)
4530989Add experimental gfx803 Qwen3.6 candidate452eb85Keep gfx803 verification batches within the hybrid row limitf82214dCorrect documented gfx803 hybrid row minimum📊 Changes
11 files changed (+472 additions, -6 deletions)
View changed files
📝
CMakeLists.txt(+26 -0)📝
docs/AMD_HIP.md(+51 -0)📝
include/strata/platform/hip_compat/cublas_v2.h(+6 -0)➕
include/strata/qwen35/gfx803_batch_limits.hpp(+14 -0)➕
include/strata/qwen35/pageable_transfer.hpp(+26 -0)📝
src/prefill/kernels.cu(+5 -0)📝
src/qwen35/q36_engine.cu(+101 -6)➕
tests/qwen35/fp16_conversion_test.cpp(+37 -0)➕
tests/qwen35/gfx803_batch_limits_test.cpp(+30 -0)➕
tests/qwen35/gfx803_hardware_acceptance.py(+120 -0)➕
tests/qwen35/pageable_transfer_test.cpp(+56 -0)📄 Description
Title
Experimental gfx803 (RX 580) Q36 Linux path
Issue: Related to #2768 (experimental native RX580/gfx803 support).
Summary
Opt-in Linux RX580/native gfx803 enablement for
strata-q36, not general Polaris support.Leaves Q8 KV/tiled attention, CPU batching optimizations, startup caching, setup auto-detection and dependency installation out of this PR.
What changed
CMakeLists.txt: explicit experimental gfx803 selection and three focused host tests.src/prefill/kernels.cu: gfx803 fallback for an unavailable packed-FP16 instruction.tests/qwen35/: transfer chunking, CPU FP16 conversion, batch-limit regression tests and configurable API smoke harness.docs/AMD_HIP.md: experimental build prerequisites, usage and limitations.Evidence
After: The bounded hybrid implementation passed the in-repository API harness: tool request/result round-trip, stream disconnect during generation, recovery, and fresh-process restart. This avoids the failing path; it does not fix or qualify streamed MMQ.
strata-q36build passed. All 3/3 host tests andgit diff --checkpassed. The FP16 host test does not exercise the changed GPU fallback.STRATA_Q8_PACKED=0; native FP32 KV. This is a tested configuration, not a hardware context limit.296b59d2f73c8f04a805df29c2fa97655adace78. Hardware-tested implementation:452eb85a42eb177b195e44e5cb6d9d28fde2d202. Head:f82214d627f5fd4318de9a30f48d3c1d60674028, differing only by a docs correction. Fresh independent final-head review verified unchanged executable/test/build tree identities and found no material findings.Reproduce host checks after configuring/building the focused test targets:
Hardware harness (run under an external thermal/memory/kernel-error guard; it is not itself a resource monitor):
Build prerequisites are documented in
docs/AMD_HIP.md. Guard receipts remain local; this is not bundled hardware CI or a same-day comparative performance benchmark.Merge Danger
Door: two-way
Opt-in source/build changes can be reverted; no data migration or host/driver changes.
Blast Radius: backend
The gfx803 path is opt-in, but shared CMake/HIP compatibility/prefill files are touched. Non-gfx803 runtime semantics were checked by source review, not demonstrated byte-identical to the last release. CUDA, existing gfx906/RDNA HIP and SYCL build/regression checks remain outstanding. Do not treat this draft as satisfying the repository's all-affected-backends build gate.
Extra Notes
Contribution-guide status — incomplete
AGENTS.md.AGENTS.md.Why draft
Unresolved historical model-logit differences prevent a numerical-equivalence claim. GPU fallback numerical qualification, full populated 262K context, sustained long-context thermals, MTP/speculative decoding, vision and other models/quantizations/cards are unverified. Synchronous staging sacrifices overlap. No performance gain is claimed for this patch, and results from the separately optimized local runtime are not attributed to it.
This is an experimental draft with contribution gates outstanding, not a request to merge as supported hardware.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.