mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5277] [Benchmark] Community benchmark: single Radeon VII (gfx906), IQ3_S, 61k context #3142
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#3142
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 @archadrian on GitHub (Nov 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5277
[Benchmark] Community benchmark on AMD Radeon VII
Measured on 2026-11-05 with
tools/strata_bench.py(suite 1, 3 runs per test, medians with ranges). Speeds are the engine's own timings; first-token times are measured by the client over HTTP. Speed only: no correctness check was run.Hardware and software
Model and configuration
Method
Run by
python tools/strata_bench.pyagainst the HTTP API of a Strata server (already running); model loading is not timed. One warm-up chat and a 1K prompt are discarded first. Every prompt starts with a unique tag, so the conversation cache cannot help the fresh-prompt tests.tools/ab_engine.py, up to 100 new tokens, 3 runscached_tokens) and timings (prompt_n)Results
Ranges are the lowest and highest of the runs;
Runscounts requests that returned a token.Agent session (conversation cache)
Cache hit over the follow-up turns: 69.3 % (69.1-69.5); earlier-turn tokens read again per session: 73 (1-143) (earlier turns that the cache did not hold; the 12065 (12065-12066) new tokens of the files are read once); first turn (nothing cached) first token: 11.87 s (11.54-12.48).
Per-request data:
results.json. Engine log lines from the start:engine-log-excerpt.txt(when this run started the server).Correctness and limitations
Not measured: this is a speed suite. The conversation uses the model's own replies, so token counts differ a little between runs. Machine details come from the server,
nvidia-smi/rocm-smiand the OS; background load is not recorded. Total time of the suite: 556 s.results.json
@github-actions[bot] commented on GitHub (Nov 5, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@archadrian commented on GitHub (Nov 5, 2026):
Context the auto-report couldn't capture:
inside the community image mixa3607/rocm-gfx906:7.14-complete, no host ROCm,
kernel 6.12 amdgpu driver. 16 GB VRAM; card on an M.2→PCIe x4 riser.
cudaStreamCreateWithPriority / cudaDeviceGetStreamPriorityRange; dflash2.cpp
gates its HIP branch on STRATA_USE_HIP (wave32), which this build keeps off.
Adding the two #define mappings fixes it. Happy to PR.
three hard freezes; the tell is GRBM counters hot while Activity reads 0% and
sensors return garbage (511 C, 65 V). Stable at a 180 W cap (peak draw 157 W,
75 C hotspot, no hang through the suite). A VII owner hitting random freezes
should try the cap first.
@github-actions[bot] commented on GitHub (Nov 5, 2026):
Thanks, this follows the format now.
@archadrian commented on GitHub (Nov 5, 2026):
The ask (for agention, where we hope you have standing). Your gfx906 build proves the demand for GCN5 as a cheap Strata helper. The other half of the story: in agention's llama.cpp fork, the TQ integer dp4a mmq path exists for CUDA/CDNA/RDNA3-5 (
mmq-config-cdna.cuh,mmq-config-rdna3-5.cuh) but the Vulkan TQ path has no integer/coopmat route — it dequant-matvecs in fp32. Measured on our VII: TQ2_T expert decode via ggml-Vulkan is 2.6–6.1 t/s vs 22 t/s on identical-path NVIDIA silicon — the gap is the fp32-FMA shader path, not the silicon (the same card does 37 t/s through your HIP kernels). An integer mmq variant for GCN5 in ggml-vulkan (or the equivalent fp16-mmq fallback, since GCN5 lacks Vulkan integer-dot) would make $180–300 GCN5 cards viable ggml experts too. We have the full ladder — CUDA/CUDA, CUDA/Vulkan on NVIDIA, and the VII rows — if a numbers-backed issue to agention would help.@romeo5353535353-ui commented on GitHub (Nov 5, 2026):
A two-card MI50 row on the same ISA, and one more confirmation of the dflash2 block
Thanks for posting this -- it is the first single-card gfx906 row we have seen too, and the power-cap note is the most useful
part of it. Adding the two-card side so the gfx906 rows are not all one card.
Our box (also gfx906, wave64): 2x Instinct MI50 16 GB, Ryzen 7 5700X, 128 GB DDR4, kernel amdgpu, the same
mixa3607/rocm-gfx906:7.14-completeimage, engine 0.1.54 (prod) and 0.1.56 (0.2.10 build), llama.cpp3cf03257f.Config: IQ3_S,
--layer-split 24 --max-context 262144 --kv int8 --kv-resident 32768 --expert-cache auto --prefill 4096 --pipeline-windows 2 --trim-stage-weights --ple-io ram --spec 2 --spec-min-p 0.9, conversation cache on. So not yoursettings (you run
--mmap-experts,--pcie-frac 0.00, 61K), but the same model and the same ISA.Two things explain most of the gap, and neither is the card: the second card, and
--expert-cachewith a profile(we hold 6648 expert slots of 12288 and prefetch from the profile) instead of
--mmap-experts. If you ever get a secondVII,
--pipeline-windows 2was worth +36 % decode for us on a layer split (#3173) -- that is the single largest leverwe found on this ISA.
On your dflash2 workaround
Same break, same fix:
src/core/dflash2.cppgates its HIP branch onSTRATA_USE_HIP, which a gfx906 build never defines.We took nfriedly's #4766 (both guards,
load()andcapture()), builtv0.2.10 with it and verified it end to end on the MI50s:
dflash2.cpp, nothing else in 165 targets;strata 0.1.56,strata-device --selftest OKon both cards;Full receipts and the logs are in #4766. If you
would rather route it as the compat-header mapping, note the two differ at runtime: the call-site guard keeps the default
stream priority (and one drafter stream), the shim gives the highest priority and the CUDA forked-context default.
We also ran the drafter itself, since #4766 says nobody had: the pack from
incoai/Qwen3.8-Flash-Next-DFlash2ata22a1744packs to the pinned 522,458,112 B /cda40d62...and runs on the MI50s (800 MiB of VRAM, and the expert cachegrows by ~150 slots because the MTP layer is not loaded). It is simply slower here: 46–50 tok/s against 66–67 with
MTP, because the engine turns
--pipeline-windows 2off for DFlash2 on a layer split. On one card that trade may lookdifferent, so a DFlash2 row from your VII would be a genuinely new data point.
Power and stability
Your SMU hang at 250 W is worth knowing about. Our MI50s pull 505–527 W for the pair (~250–260 W each) at stock under
the bench, with no hangs in our runs -- but our sessions are minutes, not hours, and MI50s are passively cooled server cards
in a different chassis. Two things from our side that may help a VII owner hitting this:
tools/strata_bench.pyin the repo is the right shape for a stability suite; running it with the card capped and thenuncapped is a cheap way to prove the cap is the fix rather than the workload.
docs/OLDER_GPUS.md(orAMD_HIP.md'sgfx906 section) -- it is the kind of symptom people misread as a driver problem for days.
If you want a two-card row for the same suite on the same IQ3_S, say so and I will run
tools/strata_bench.pyhere andpost it in the same format; that would give the gfx906 section a 1-card and a 2-card row on one model.
@Niko1221 commented on GitHub (Nov 5, 2026):
Thank you for the benchmark. We have collected these results for the benchmarks page on the Strata website, so we are closing this here. If you measure again, for example on 0.2.11, you are welcome to open a new report.
The Strata project