mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #5025] [Engine] hip: gfx1151 hipBLASLt rows for Qwen3.6 prompt projections #5288
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#5288
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/5025
Author: @storm-ace
Created: 11/2/2026
Status: 🔄 Open
Base:
main← Head:q36-gfx1151-hipblaslt📝 Commits (2)
e0b18bbhip: gfx1151 hipBLASLt rows for Qwen3.6's prompt projections0d1e7f7docs(hip): the gfx1151 Qwen3.6 rows and their measurement📊 Changes
2 files changed (+38 additions, -1 deletions)
View changed files
📝
docs/AMD_HIP.md(+2 -1)📝
tools/hip/gfx1151-hipblaslt-100500.txt(+36 -0)📄 Description
Problem and result
On a Strix Halo (gfx1151) with hipBLASLt 1.5.0, every Qwen3.6-35B-A3B prompt projection missed
tools/hip/gfx1151-hipblaslt-100500.txtand ran on the hipBLAS fallback:STRATA_HIPBLASLT_VERBOSE=1reportedlaunches=0 fallbacks=1250for a 4K prompt. The table only had rows for the Flash-Next shapes. This adds 35 rows for Qwen3.6's shapes. With them, the prompt read on a Radeon 8060S goes from ~590 to ~1,100 tok/s at 4K and from ~350 to ~500 tok/s at 32K (fallbacks=0). Decode does not change. Data only: no code changes, and the existing 32 rows are untouched.Related discussion
None needed for a table addition, as far as I can tell. #4295 adds a gfx1151 table for hipBLASLt 1.2.2 (system ROCm 7.2.4); this one is for the 1.5.0 table the Windows build ships.
Approach
prefill::Gemm::nativeruns for this model), at T = 16, 64, 256, 512, 1024, 2048, 4096. T up to 4096 covers the prompt chunk the engine picks with every expert in VRAM.tune_hipblaslton the same card and ROCm as the measurements below. The tuner picked solution 2540, 2541 or 2542 for every row. For T = 4096, N = 2048, K = 512 it reportedspeedup_vs_blas=5.5822x(the one row whose tuner output I kept); the whole-model numbers below are the claim.docs/AMD_HIP.md: the 100500 file's note and a row in the measured table.Validation
Environment: Ryzen AI MAX+ PRO 395, Radeon 8060S (gfx1151), Windows 11 Pro 10.0.26200, built from this branch (upstream
c62d5e3a+ this table) withtools/hip/build_windows.bat(STRATA_HIP_ARCHS=gfx1151, ROCm 10.2.0a20260930 TheRock wheels, hipBLASLt 1.5.0), Qwen3.6-35B-A3B UD-Q4_K_XL, every routed expert in VRAM,--max-context 131072, prompt chunk 4096 (auto).Passed
STRATA_HIPBLASLT_TABLE=off. Arms in the order off / on / off, each a fresh engine start:strata --native <gguf> --max-context 131072 --bench-pp N --bench-tg 32, 3 repetitions per arm:With the table:
prefill gemm: hipBLASLt tuning enabled (67 rows, gfx1151, version 100500)andhipBLASLt summary launches=1250 fallbacks=0(pp4096) /launches=6500 fallbacks=0(pp32768).tools/qwen35/parity_prompts.idsrow 1 plus its greedy continuation), 32 forced steps,--dump-full-logits. In 256-cell chunks (STRATA_Q36_CHUNK=256): mean KL 1.41e-6, max 1.10e-5, top-1 32 of 32. With chunk 4096: mean KL 1.50e-6, max 1.39e-5, top-1 32 of 32. (For scale, the floor in docs/QWEN36.md, llama.cpp CPU against HIP, is 0.0019 to 0.056.)Failed: none observed.
Not run
100500). The file is version-scoped as before.Limits
tune_hipblaslt; I have only this card.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.