mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #641] AMD Instinct MI50 / MI60 / Radeon VII (gfx906, wave64): a working port, numbers, and PRs to upstream it #300
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#300
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 @JeanP00l on GitHub (Oct 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/641
I've been running Strata on 2x AMD Instinct MI50 16 GB (gfx906, wave64) daily since 29.09, as the backend for a coding agent: Coder IQ1_M, 128K context, layer split across the two cards. It runs at 57-59 tok/s decode on a 17K-token agent prompt. For comparison, llama.cpp on the same model and machine does 26.9 tok/s
tg128.Each upstream release currently has to be merged into my port by hand, so I'd like to upstream it. I split it into small PRs:
STRATA_HIP_GFX906=ON). It adds a compat layer, correctness fixes that changed results or hung (FMA contraction of__fmul_rn, ggml MMQ getting cc 9.0,__byte_permin scratch memory, the 25 MHz wall clock) and wave64 kernels. Nothing changes with the option off. It builds for CUDA sm_86, HIP gfx1100 and HIP gfx906.STRATA_ARENA_MMAP=1, the native-pack expert arena as a read-only mapped file, for machines where the GPUs hold most experts but RAM is small. RAM available on 32 GB: ~1 GB -> 25 GB. It also covers a ROCclr pin-in-place behaviour worth knowing about.400 ... context (0)forever.Questions for the maintainers:
STRATA_ENABLE_HIP/cmake/hip_backend.cmake(wave64 next to wave32)? I can do the second if you prefer. The current shape came from getting the CUDA path running unchanged first, with a CUDA warp as half a wavefront.docs/AMD_HIP.mdenough for now?Also available, not submitted: a tensor split (each layer's halves on two cards, an own P2P all-reduce at 7.4-7.9 µs per exchange on gfx906). It works, but is not faster than the layer split on these cards for long prompts.
Next: the drafts become ready once the cleaned branches have re-run on the cards (ctest, a greedy-text comparison with the port), and I'll add a community benchmark in the
docs/COMMUNITY_BENCHMARKS.mdformat.🤖 Generated with Claude Code
@Niko1221 commented on GitHub (Oct 3, 2026):
Thanks, this is a well-prepared port and the numbers are impressive. Answers to your questions:
STRATA_HIP_GFX906) for now. It leaves the CUDA and RDNA builds untouched and is easier to review; we can fold it intohip_backend.cmakelater once it has settled.docs/AMD_HIP.mdis enough. No detection or automatic build in setup for now.We'll review in this order: #637 first (server only, with tests; please rebase it on 0.1.38, where
restart()already ends and waits for the old process, so the retry and the kept context are the parts that add to it), then #639 and #640 once you've re-run them on the cards, then #638 when it's out of draft with the ctest results and the greedy-text comparison. We have no gfx906 card, so for #638 we'll rely on your runs and check that the CUDA and RDNA builds and their results stay the same.@JeanP00l commented on GitHub (Oct 3, 2026):
Thanks! I am keeping
STRATA_HIP_GFX906as its own option and the docs as a "build from source" section, without setup changes.@zqdeepblueskyzq commented on GitHub (Oct 3, 2026):
谢谢你做出的贡献,我现在也在尝试用Radeon VII*2运行 strata,刚开始着手做这件事情,加油
@JeanP00l commented on GitHub (Oct 3, 2026):
Update: all four PRs are re-run on the cards and out of draft.
gr_down, now opt-in); both are fixed. CUDA sm_86 and RDNA gfx1100 builds pass at the branch head.COMMUNITY_BENCHMARKS.mdformat. Decode 50.1 / 47.8 / 45.7 tok/s at 4K / 32K / 128K, prompt about 520 tok/s, 6/6 needles.@Niko1221 commented on GitHub (Oct 4, 2026):
#638 and #677 are in for the next release, after #639 and #640 in 0.1.39. gfx906 stays its own opt-in build, documented in docs/AMD_HIP.md and the new docs/OLDER_GPUS.md (the support matrix for older cards). Closing this; new findings on the cards are welcome as issues or PRs.
@JeanP00l commented on GitHub (Oct 4, 2026):
Post-merge validation update on current upstream
main(6f32ec0) with the gfx906 port:cudaFuncSetAttributecompatibility fix proposed in #808.ple_parityneeds a Q2_0 GGUF fixture that was not available; IQ fixture tests were not registered because NumPy was unavailable.STRATA_ARENA_MMAP=1, returned identical generated code on the candidate and existing gfx906 build (SHA-256114cf38b24ff3651c135481a4791a9f30597e7c71229d432ce5e2dd3d3956f63). This is a smoke check, not the original long greedy comparison or the multi-client 128K acceptance run.The old tensor-split experiment was not included in the active build targets: its implementation no longer compiles against current upstream APIs, and it was not part of the validated gfx906 serving configuration. The existing checkout and deployed build were left unchanged.