mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #944] [CLOSED] hip: gfx11 WMMA prompt attention and selection scorer, gfx1151 hipBLASLt table #2927
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#2927
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/944
Author: @nsbradley88
Created: 10/5/2026
Status: ❌ Closed
Base:
main← Head:gfx11-wmma-gfx1151-tuning📝 Commits (10+)
5a30024calibrate: the engine's arguments come from the server's engine_args; a failed tuning says why (#447)9f60d13serve, 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)6a09387setup (--gguf-dir): GGUFs Strata cannot run are named as such, with the --family/--model to use (#444)d6a91e2docs: the Coder is weaker outside code, Chinese/CJK text included; the unpruned sizes for that (#438)d8d4ad3Merge branch 'f-135-eng' into rel-0.1.357b600d5Merge branch 'f-135-small' into rel-0.1.35d9ab843Engine 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 it57bd713sycl: pipeline the expert cache's profile fill (model load 3-4x faster)e3bdd74A prompt cancelled mid-read is logged and recorded with the tokens it read (#471)📊 Changes
1 file changed (+34 additions, -0 deletions)
View changed files
➕
tools/hip/gfx1151-hipblaslt-100500.txt(+34 -0)📄 Description
Summary
Three changes that take Strata's prompt path on Strix Halo (gfx1151, Ryzen AI Max+ 395 / Radeon 8060S) from ~230 to ~700 tok/s at 16K–250K context:
STRATA_HIP_WMMA=1runs the RDNA4 matrix-core prompt attention on gfx11 (RDNA3 / RDNA3.5) too. gfx11'sv_wmma_f32_16x16x16_f16keeps all 16 k of a lane's A row / B column in that lane (both wave halves the same), and puts accumulator elementiin row2*i + lane/16. Every fragment in the kernel is loaded directly, so the two layouts differ only inFK/PA_KOFF(which k a lane loads) andPA_ROW(an accumulator element's row). The gfx12 code path is unchanged.STRATA_SELECT_WMMA=1gets the same treatment (SEL_FK/SEL_KOFF/SEL_ROW). The 32-byte gfx11 B fragment is read from LDS as two 16-byte halves, because the LDS rows are only 16-byte aligned.tools/hip/gfx1151-hipblaslt-100500.txt.tune_hipblasltwas run on the 32 shapes of the gfx1201-100500 table, with ROCm 10.2.0a20260930 (whl-next) and hipBLASLt 1.5.0efafc1c1.Both kernels stay opt-in, as on RDNA4, and nothing changes for other architectures. The parity test's skip check now also accepts gfx11.
This PR does not add gfx1151 to setup.py or the CMake arch list, since you mentioned bringing up Strix Halo yourselves in #422. The changes are meant to drop into that work. To build for gfx1151, I used #422's
CMAKE_HIP_ARCHITECTURESchange locally.Validation (gfx1151, ROCm 10.2.0a20260930, Linux 7.0)
hip_prompt_attn_wmma 32768 2048 3qsa_select_bench 32768 256 3 262144qsa_select_bench 262144 256 3 262144STRATA_HIPBLASLT_VERBOSE=1:launches=3138 fallbacks=0gfx1100 and gfx1201: the branch compiles with
-DCMAKE_HIP_ARCHITECTURES="gfx1100;gfx1201"(strata,hip_prompt_attn_wmma,qsa_select_bench). Not run on RDNA3 or RDNA4, since I only have the gfx1151 machine.Prefill on gfx1151 (UD-IQ4_XS, engine
--stats, 256K context)--prefill auto:16384Through the server (OpenAI API, 512-token answers, 256K context; prefill / decode tok/s)
Same UD-IQ4_XS file in both engines. llama.cpp is ROCm master
f7b384c1e,-fa on -ub 2048 -b 2048, one slot.Notes for the Strix Halo bring-up
rocr::AMD::GpuAgent::QueueCreate→ReleaseQueueMainScratch, on the first DMA queue (called fromprobe_pcie_h2d_gbps). ROCm 10.2.0a20260930 fromwhl-next(rocm[libraries,devel,device-gfx1151]) has no such crash, gives +20% prefill on its own, and is what the table above was tuned with.mem_info_vram_totalis the BIOS carve-out (512 MB here); the GPU's real pool ismem_info_gtt_total.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.