mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3329] [CLOSED] [Engine] Linux RX 6000 engine package: build_hip_linux.sh variant rx6900 (gfx1030, gfx1031) #4570
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#4570
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/3329
Author: @elightcap
Created: 10/20/2026
Status: ❌ Closed
Base:
main← Head:linux-hip-rx6000-package📝 Commits (1)
22d634cLinux RX 6000 engine package: build_hip_linux.sh variant rx6900 (gfx1030, gfx1031), the release matrix entry, the AMD_HIP note📊 Changes
3 files changed (+21 additions, -3 deletions)
View changed files
📝
docs/AMD_HIP.md(+7 -0)📝
packaging/build_hip_linux.sh(+4 -2)📝
tests/terminal/test_release_matrix.py(+10 -1)📄 Description
Problem and result
On Linux the Terminal and
strata updatehave no engine for an RX 6000 card. The 0.2.0-beta feed has HIP packages forgfx1100-1102, gfx1151 and gfx1200/1201 only, so
strata launchon an RX 6900 XT stops with:#3296 reports the same on an RX 6700 XT (gfx1031). The engine itself runs on these cards (the RDNA2 section of
docs/AMD_HIP.md); only the package is missing.
This adds an
rx6900variant topackaging/build_hip_linux.sh(gfx1030 and gfx1031), puts it in the release matrixtest and adds a note to docs/AMD_HIP.md. With the package in the components folder,
strata launchpicks it and serves.Related discussion: #3296
Approach
The same script and steps as the
rx9070,rx7900andhalopackages; only the variant's arch list is new. ROCm isTheRock's
gfx103X-all7.13.0a20260515, the version setup pins for this family (ROCM_FAMILY_PINS, #1103). Thatlibrary set has rocBLAS kernels for gfx1031 of its own (142 files for each of gfx1030 and gfx1031), so a gfx1031 card
runs its own code and needs no
HSA_OVERRIDE_GFX_VERSION(which #3145 needed for ROCm 7.1.1). hipBLASLt has no gfx103xkernels, as before.
Compatibility: no existing package, default or code path changes. The feed offers the package only after a maintainer
builds and publishes it. The release matrix test now lists
rx6900for linux-x86_64 and expects gfx1030 and gfx1031on Linux to get it; Windows still has no RX 6000 package, and gfx1030 moved from the "no engine" list to that new test.
Validation
Machine: RX 6900 XT 16 GB (gfx1030), Ryzen 9 5950X, 128 GB DDR4, Arch Linux (kernel 7.2.5, glibc 2.44, GCC 16.2.1,
CMake 4.4.4). Source
e88ee39dplus this change; llama.cpp at setup'sLLAMA_CPP_COMMIT(3cf03257).Built with:
(
rocm[libraries,devel]==7.13.0a20260515from https://rocm.nightlies.amd.com/v2/gfx103X-all/; 950.7 MiB, 314 files.)Passed
python packaging/binary_deps.py <package>: every imported library is bundled or belongs to the OS / GPU driver.python packaging/package_engine.py --verify <package>: ok (313 files).llvm-objdump --offloading:strata66 gfx1030 + 66 gfx1031 code objects,strata-vision-hip138 + 138, no other arch.env -i <package>/strata --version:strata 0.1.45.3.strata launch --model ud-q4_k_xl --family unsloth --context 128k --yes --no-tuiwith the package in~/.local/share/strata/components/engine/: the Terminal picks it and serves; the engine andlibrocblas.so.5load fromthe package folder.
strata connect <app> --checkfor opencode, codex, claude-code and pi: prompt and tool call PASS (8 of 8).strata-vision-hipon the card,strata-visionon the CPU) read a 640x480test picture correctly ("STRATA 6900", a red rectangle and a blue circle): 8.2 s and 9.3 s per request.
gfx1030-only build of it: 725), engine 0.1.45.3 built by hand against the system ROCm 7.2.4 with its rocBLAS table
733 tok/s. Settings:
STRATA_HIP_PROMPT_F16=1 STRATA_ROCBLAS_TUNING=tools/hip STRATA_SH_STREAM=1 STRATA_ROUTE_TAIL_SKIP=7 STRATA_PREFILL_CPU_SHARE=auto STRATA_HIP_ADAPT_KERNEL_COPY=1,--resident-budget-gib 71 --pcie-frac 0.35 --mtp-draft-vocab data/draft_vocab_en.bin, the rest asstrata launchwrites it (--kv int8 --kv-resident 32768 --max-context 131072 --spec 4). One run per cell.python -m pytest tests/terminal/test_release_matrix.py: 11 passed.Failed
python -m pytest tests/terminalin this checkout: 848 passed, 16 skipped, 6 failed. None comes from this change:five also fail on a clean origin/main worktree on this machine (
test_discovery.py::GuiLayoutx2,test_launch_tui.py::AccessStep::test_cloudflare_without_the_helper_says_how_to_install_it_and_does_not_block,test_private_files.py::...not_strictly_private,test_procs.py::...engine_orphan...). The sixth,test_discovery.py::GuiLayout::test_list_and_the_wizard_agree_on_the_install, fails only because this checkout isitself a setup install (
/home/.../Strata != /tmp/strata-discovery-.../install); with this diff applied to the cleanworktree it passes, together with the release matrix tests (12 passed).
Not run
here. The published packages are built in an Ubuntu 22.04 chroot; that build was not made.
Limits
tools/hiphas no rocBLAS table for the package's rocBLAS (5.4.0.ad84daa81c), so the engine logs that it cannot opengfx1030-rocblas-5.4.0.ad84daa81c.txtand runs rocBLAS's own kernels. Making one withtools/hip/tune_rocblasisfollow-up work.
Measured and written with Claude Code.
🤖 Generated with Claude Code
https://claude.ai/code/session_012oqtnhtRwYGZ7yDfoVULrX
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.