mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2883] [Other] gfx906 / MI50: reproducible Linux releases and community validation #1165
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#1165
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?
Originally created by @romeo5353535353-ui on GitHub (Oct 17, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2883
Area
[Other]
What do you want to do?
I am planning a local API server with AMD Instinct MI50 (gfx906), primarily running Qwen3.8-Flash-Next. The application will extract GPU mining benchmark records into JSON from Discord message text and locally generated OCR text. Reliable repeated requests and correct extracted values matter more to this workload than peak token throughput.
Thank you for keeping the community gfx906 path available. I understand that it is an opt-in wave64 build, that setup does not install it automatically, and that the maintainers do not have a gfx906 card. I have not built or benchmarked v0.1.45 on this hardware yet.
Could we establish a small, reproducible Linux validation path for current releases?
strataserving executable. An optional community-maintained recipe or container would already help; automatic installation could follow later. This would make build regressions such as #2459 easier to catch.Related work:
For v0.1.45, source inspection still shows the missing cuBLAS aliases discussed in #2459 in
include/strata/platform/hip_compat/cublas_v2.h, whilesrc/qwen35/q36_engine.cuuses those names. This is a static observation, not a claim that I reproduced a v0.1.45 build failure.Would a community-maintained Linux recipe plus this validation checklist be a useful first contribution? Which of these steps would you prefer us to start with?
Re-test on 0.2.0-beta (2026-10-19)
3d1fb4801002:66af), Ryzen 7 5700X, 64 GB DDR4-3600, ASUS ROG Strix X570-Emixa3607/rocm-gfx906:7.14-complete(the imagedocs/AMD_HIP.mdnames)Result: the gfx906 build still fails on 0.2.0-beta, with the same errors as 0.1.44+:
The
qwen35targets are still added unconditionally inCMakeLists.txt(around line 730), andinclude/strata/platform/hip_compat/strata_hip.hstill has nocublasSgemm/cublasGemmStridedBatchedExmapping.
generate.cppalready guards every use with#if defined(STRATA_HAVE_QWEN35), so wrapping that block inif(NOT STRATA_HIP_GFX906)is enough for the engine to build and link (verified locally by applying exactly thatpatch to 0.1.45).
What works today: the same machine builds and runs v0.1.43.1 (
a0116b2) withSTRATA_HIP_GFX906=ON, 2x MI50,Flash-Next IQ3_XXS at the full 131,072-token context. Measured decode 66-68 tok/s with
--pipeline-windows 2(+36% over the default) and 371 tok/s prompt reading; report in #3173 and PR #3175.
So the gfx906 path is usable, but only by pinning the checkout to 0.1.43.1. A build fix for the qwen35 block (or a
-DSTRATA_SKIP_QWEN35=ONswitch) would let MI50 owners followdocs/AMD_HIP.mdon a current release again.@ken2425pm commented on GitHub (Oct 18, 2026):
A full 2x MI50 (gfx906) report on system ROCm 6.3.3 is open as PR #3077: the build, runtime (warm decode 21-24 tok/s on the final config vs 11.6 tok/s on the earlier verified tree — not a same-request A/B), serve-mode A/Bs, dual-GPU layer split (~+20% decode vs one clean single GPU), and a 12-hour split-config soak answering the TEST_REQUESTS.md row. Setup-side card recognition is #3080 (lists the card, points at the hand build — no builder branch, no wheels for this arch). The report also states what was not tested: CUDA/SYCL builds,
-Werror, deep-context KV-streaming cost, 64K+ prefill timing.@romeo5353535353-ui commented on GitHub (Oct 18, 2026):
Thanks @ken2425pm for the detailed report and the pointers to #3077 and #3080.
@Niko1221, could we make automated Linux installation for gfx906 (MI50 / MI60 / Radeon VII) an explicit follow-up to this issue? An experimental, opt-in path would already be very useful.
I understand that #3080 only recognizes the cards and points to a manual build, and that the normal TheRock wheel path does not include gfx906. The request is for a setup path that also handles the compatible dependencies and engine build, rather than stopping at card recognition. A pinned container would also be a useful first solution if that is easier to maintain than a host installation.
The practical goal is one documented command that checks compatibility, builds the actual serving engine, prepares the selected model and starts the server, with a short smoke test and clear errors when prerequisites are missing.
I am willing to help as much as I can: prepare reproducible test cases, collect installation/runtime logs and MI50 test reports when hardware is available, reproduce failures, and help with small installer or documentation changes. I have not validated the proposed installer or claimed any new measurements yet.
Would you accept an experimental installer contribution along these lines? Which approach would you prefer, and what minimum checks would you require before merging it? Is this planned for a particular release, or should we start by helping prepare a small PR here?
Thank you for keeping the community gfx906 path available.
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.
@romeo5353535353-ui commented on GitHub (Oct 19, 2026):
/reopen
@github-actions[bot] commented on GitHub (Oct 19, 2026):
Not reopened yet. Still missing:
Edit the issue and comment
/reopenagain. Details: CONTRIBUTING.md@romeo5353535353-ui commented on GitHub (Oct 19, 2026):
/reopen
@github-actions[bot] commented on GitHub (Oct 19, 2026):
Reopened, thank you. A maintainer will pick it up from here.
@Marczellito commented on GitHub (Oct 19, 2026):
2× Radeon Pro VII (gfx906), v0.1.45: end-to-end report (200K k8v4, CPU vision)
First, thanks — the opt-in wave64 build and the compat layer do real work. This is a data point for the validation path discussed in this issue, not a new bug report. It is on v0.1.45 (
477ac13c), not 0.2.0-beta; #3172 already confirms the build still fails on 0.2.0-beta.Short version: two Radeon Pro VII 16 GB cards, system ROCm 7.2.4 (no container), Qwen3.8-Flash-Next IQ3_S, 200K context with
--kv k8v4, CPU vision: works end-to-end after a 4-file patch (the CMake + cublas hunks match the patch posted in #2459; my copy adds the__noinline__undef for GCC 16 and a localsetup.pyenablement). Long chats up to ~75.5K total tokens ran at 44–52 tok/s decode; a 23K-token prompt read at 590 tok/s.setup.pystill refuses gfx906 at step 1, which is the main install friction.Environment
1002:66a1), 190 W power limit, PCIe 3.0 (engine probe 13.8 GB/s host→device)/opt/rocm, HIP 7.2.53211, AMD clang 22.0.0; no container, noHSA_OVERRIDE_GFX_VERSION. The distro package ships gfx906 rocBLAS kernels (Kernels.so-000-gfx906-xnack-.hsaco); I did not need the community image.477ac13c, engine reportsstrata 0.1.45; llama.cpp3cf03257fmmproj-Qwen3.8-Flash-Next-BF16.ggufon CPU--max-context 204800 --kv k8v4 --vision --gpus 0,1 --layer-split auto --spec 4 --spec-min-p 0.5 --prefill auto --expert-cache auto --vram-reserve-mib 700 --vram-reserve-later-mib 1006Strata-data/mtp/rt;tools/mtp_fetch.py verifyrc=0Note: setup's step-2 summary prints
KV cache: 4-bit (Hadamard-rotated)for any non-int8 choice (setup.py:6581); the written config is--kv k8v4(K 8-bit, V 4-bit). Wording only.What worked
-DSTRATA_HIP_GFX906=ON -DCMAKE_HIP_ARCHITECTURES=gfx906path, with the compat layer, built the engine and the CPU vision encoder. Build time ~15 min at-j18. The 4-file diff is attached; the CMake + cublas hunks are the same set posted in #2459, and #3172 tracks the same blockers.kv_hybrid_parityALL PASS (k8v4 appends/gathers, 0 bad of 786,432/24,576; mode-3 batched attention 7.82e-08 vs the dequant reference),kv_stream_parityk8v4 ring 0 failures,kv_window_parity0 bad/0 stale,kv_steps_parity120/120,kv_q8_parityOK./healthready; text17*23?→391; vision (64×64 red PNG) →Red; images on. The docs' gfx906 section currently lists images (--vision) as not done — this run verifies the CPU encoder path on Radeon Pro VII.k8v4at 204,800 costs ~2.2 GB and stays in VRAM. KV streaming is off: it needs ~2.2 GB beside the ~62 GB of experts on a 63 GB machine. No KV-related errors.download interruptedretry lines across 13 setup attempts (mostly DNS, 12 read timeouts) on a flaky link; every resume continued from.part, zero corruption. MTP verify passed.What did not work / known issues
Known / already tracked
setup.pyrefuses gfx906 at step 1 — documented as "Setup does not build it yet", but the failure also makes the ~84 GB download and pack preparation unreachable through setup. Exact first-run output (before the local patch):My local
setup.pychange adds gfx906 toAMD_ARCHS/AMD_NAMESand passes the gfx906 flags (including-DSTRATA_ENABLE_HIP=OFF). I am not proposing it as the default (the docs say manual build); a download-only path, or a clearer "these are the commands to get the model" in the docs, would remove the dead end. This is the main friction I hit.Build blockers on 0.1.45 (reproduced locally; exact messages in
build-errors.txt):cublasSgemm,cublasSgemmStridedBatched,cublasGemmStridedBatchedExaliases inplatform/hip_compat/cublas_v2.h(qwen35q36_engine.cu);strata_mmq_w4a4compiled withoutGGML_USE_HIP→cuda.hnot found;f16kq::*undefined at link — missingsrc/prefill/moe_f16_kq.cuinstrata_mmqunderSTRATA_HIP_GFX906;<format>vs HIP's__noinline__macro (fix:#undef __noinline__in the gfx906 compat header);build-hipcache withSTRATA_ENABLE_HIP=ON+STRATA_HIP_GFX906=ON→ "enable only one"; pass-DSTRATA_ENABLE_HIP=OFFor use a fresh build directory.These are in #3172 (open; confirmed on 0.2.0-beta) and were reported in #2459 (closed by the tracker reset). I am adding the end-to-end result, not a new build bug.
Rough edges found here
VRAM is tight at request start. The first start (only
--vram-reserve-mib 700) loggedCUDA1: 462 MiB ... LOW; adding--vram-reserve-later-mib 1006removed it (768 MiB free after load). One later request still logged:The following long requests still ran at 44–52 tok/s, but if the driver starts paging,
--vram-reserve-mib 768(or 1024) is the engine's own suggestion. The desktop here is on CUDA1;--vram-reserve-later-mib 1006is what fixed the CUDA1 window-capture warning.qsa_prompt_attn mode 3refuses on HIP and the older kernel runs; output is correct, but if mode 3 is expected to work on gfx906 this is masking it. (Observed in the parity tests; not a correctness failure.)No hipBLASLt tuning table for gfx906 (hipBLASLt 100202): setup says the prompt's dense GEMMs use plain hipBLAS. Expected for this arch, but it is a prompt-speed opportunity.
Network: the only reason setup needed 13 attempts; not a Strata issue, but the log is full of it.
Measurements (informal, one session)
From
strata-iq3_s.logafter the 1006 restart. These are engine-reported averages from one continuous session, not the 3-run benchmark protocol. "Prompt read" is the newly read part; the reused prefix is excluded, so the prompt speed is the speed of that read, not of the whole context.CPU usage: ~50% (18 of 36 threads)
toppeaks around 50% on this 18C/36T Xeon. The engine log says:So it uses one logical CPU per physical core (17 workers + host = 18 threads) and leaves the 18 SMT siblings alone.
docs/AMD_HIP.md(gfx1030 report) says the default is one worker per physical core and that using all logical CPUs was slower there (27 vs 38–42 tok/s);docs/DETAILS.md:557documents--pool-workers. I think this is expected, not a bug. If a sweep on Haswell-EP would be useful, I can run--pool-workers 8/17/24/35with a fixed prompt, but I have not done it.Not tested
3d1fb480): not run; #3172 says the gfx906 build still fails there. This report is v0.1.45 only.tools/strata_bench.py; vision accuracy/speed beyond one image; CUDA/SYCL builds; Windows; a fresh MTP download.STRATA_HIP_GFX906, and the cublas/__noinline__changes are in the gfx906 compat headers, but I cannot claim the other backends from this machine.Logs
Sanitized files in one secret gist (link-only, not indexed):
setup-evidence.log(curated; the full setup log is 1,193 lines),engine-session-evidence.log,build-errors.txt,strata-gfx906-fixes.patch,config-iq3_s-sanitized.json— https://gist.github.com/Marczellito/9e9324702246fe9f1acfb0306e868c9e. Local paths are shortened to~; no API keys, passwords, emails, or hostnames. Full logs on request.If this is useful, I can turn it into the community checklist runs (warm-up + 3 repeats per size + failures) or a results-only PR; I have not done that yet, so please treat the table as informal.
Cross-reference: the two questions from this report (the gfx906 setup/download path, and the ~50% CPU use) are also filed as a Question-form issue: #3271.
@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.