mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3173] [Benchmark] 2x MI50 16 GB (gfx906) + Ryzen 7 5700X: IQ3_XXS at 128K, --pipeline-windows 2 gives +36% decode #1276
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#1276
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 19, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3173
Measured on 2026-10-19 by a machine owner (reported here for the project). This is
Strata v0.1.43.1 (
a0116b2), the gfx906 HIP build, with the originalFlash-Next IQ3_XXS at the model's full 131,072-token context.
The point of this report is not a single throughput number but a tuning result:
on this two-card gfx906 split,
--pipeline-windows 2lifts decode by +36%(49.2 → 66.9 tok/s) with prompt throughput unchanged, and
--trim-stage-weightsadds another +5% on prompt reading. Both options are off by default, and
neither is mentioned in
docs/AMD_HIP.mdfor gfx906.Hardware and software
1002:66af, solspciand the engine print "Radeon VII"; the cards are sold asMI50 16 GB. 16 GiB BAR each (Re-Size BAR on).
64 GB DDR4-3600 (2×32 GB, FCLK 1:1) — see the RAM section below.
6.8.0-147-generic(amdgpu from the kernel).mixa3607/rocm-gfx906:7.14-complete(rocBLAS/hipBLAS with gfx906 kernels; hipBLASLt is not used).
-DSTRATA_HIP_GFX906=ON -DCMAKE_HIP_ARCHITECTURES=gfx906,clang from
/opt/rocm/llvm/bin. Container runs with--device=/dev/kfd --device=/dev/dri --group-add video --ipc=host --ulimit memlock=-1.power1_cap, 80% of the 250 W default).tools/iq_pack.py/tools/mtp_*.py.Note: 0.1.44+ does not build for gfx906 on this machine (separate issue): a
cublas*symbol error insrc/qwen35/q36_engine.cuand acuda.h/cuda_bf16.herror in the
strata_mmq_w4a4target.v0.1.43.1builds cleanly, so that iswhat the measurements use.
Model and configuration
ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF, revisioned59f92082b1e93c0e96d60a8b11aab089b52f09, IQ3_XXS (71 GB, two shards).Base configuration (everything below is one change against it):
The engine reports 918 MiB of VRAM free with everything loaded; the prompt path
borrows cache slots across both cards.
Method
Two measurements per configuration, both served through
serve.server, greedy(
temperature 0), one request at a time:is reused),
max_tokens 128; the number is the engine's ownpredicted_per_second.prompt_per_second.max_tokens 256; note that its length varies (83–133 tokens), so it is noisier.Each configuration: one discarded warm-up pass, then 7 long and 5 short runs,
median reported. A configuration change means a full container restart and model
reload (38–42 s, so the VRAM tier is rebuilt from the same profile).
Reproduction data: the raw per-run numbers are in the block below.
Raw per-run data (results.json)
Results
Medians of 7 long / 5 short runs; tok/s.
STRATA_GFX906_ATTN_QUERY_SWIZZLE=1+STRATA_GFX906_ATTN_REDUCE12=1--prefill 4096--pipeline-windows 2--trim-stage-weightsSTRATA_ARENA_MMAP=1--pipeline-windows 2 --trim-stage-weights... --trim-stage-weights+ the two attn switches--pipeline-windows 2: decode +36%, prompt unchanged. On a two-stage layersplit it overlaps the verify windows (stage 0 computes the next window while
stage 1 verifies the current one), which is exactly the decode path here.
--trim-stage-weights(with the explicit--layer-split 27): prompt +5%,decode +2%. It frees dense weights of foreign layers and the cache grows.
machine's run-to-run noise; not adopted because they change the attention
summation order.
--prefill 4096andSTRATA_ARENA_MMAP=1: no measurable change (the latteralso makes the model load 98 s instead of ~38 s).
tok/s (+38%), prompt 352.5 → 371 tok/s (+5%).
Concurrency (
--batch)Four requests fired at once, 128 tokens each, aggregate tokens / wall time:
--batch--batch 2--batch 4Aggregate throughput barely moves while per-request decode collapses (70 → 11–37
tok/s at
--batch 2/4). For a single interactive user batching is a net loss onthis machine, so it is off.
--kv-residentsweepShort context (the 1.6K prompt):
0(all K/V in VRAM),20480,32768,49152,65536— decode 65.4–67.3 tok/s and prompt 370.9–371.4 tok/s for everyvalue, i.e. inside the run-to-run noise. At 1.6K tokens nothing streams at any
setting, so the only effect is VRAM taken away from the expert cache.
Deep context (~31.3K prompt tokens, 64 tokens out):
--kv-residentA 73.7 outlier appeared once per configuration and did not reproduce; it is MTP
draft acceptance, not the KV setting. Net effect: no measurable difference, so
the default 32768 stays.
Worth noting separately: prompt reading at 31K tokens runs at ~700 tok/s, about
twice the 371 tok/s measured with a 1.6K prompt — the chunked prefill path is more
efficient on long prompts than on short ones.
RAM speed: 2400 → 3600 MT/s
The same machine, same configuration, JEDEC 2400 vs DOCP 3600 (FCLK 1:1):
decode 48.0 → 49.1 tok/s (+2.3%), prompt 352.5 → 353.3 (unchanged). The
CPU-side expert pool is only part of the work here, so memory bandwidth is not
the lever it is on a CPU-only setup.
Stability and thermals
memory 43–46 °C, 23–122 W per card (the cards never approach the cap).
OOM,
dmesgclean (no MCE/EDAC reports at 3600 MT/s).--kv int8 --kv-resident 32768holds the K/V in 0.77 GiB ofpinned RAM and leaves ~1 GiB of VRAM for the expert cache.
What this suggests for the project
--pipeline-windows 2deserves a mention for two-GPU layer splits ongfx906 (and probably any two-stage HIP split): +36% decode for one flag.
--trim-stage-weightsis a cheap +5% on prompt reading whenever an explicit--layer-splitis used.--batchon this workload is not worth it (one user, MTP on).who follows
docs/AMD_HIP.mdon a current checkout hits a wall.@romeo5353535353-ui commented on GitHub (Oct 19, 2026):
IQ3_S vs IQ3_XXS on the same machine (2026-10-20)
Follow-up to the report above: same box, same flags
(
--pipeline-windows 2 --trim-stage-weights --kv int8 --kv-resident 32768 --layer-split 27 --spec 3 --spec-min-p 0.9,vision on, 131,072 context), only the model changed to IQ3_S (same HF repo, same revision
ed59f92).Each number is the median of 7 long / 5 short runs (1.6K prompt, 128-token cap) or of 4 deep runs (31,285-token prompt,
64 tokens out); the same benchmark scripts were used for both models.
The 31K decode gap is MTP draft acceptance, not model speed. The engine's own per-request lines:
On that prompt IQ3_S's output happened to be perfectly predictable for the drafter, IQ3_XXS's was ~86-90% predictable.
Change the prompt and the ordering changes; it is not a property of the quantization.
What does look like a property of the quantization: prefill is 4-10% slower on IQ3_S (bigger expert blobs to read
during the prompt pass), short-context decode ~4% slower, short chat unchanged. Memory: IQ3_S leaves 10 GB of 62 GB
free with 131K context and vision on; it loads through the normal path (no low-RAM fallback), and the expert cache
stays at 97-99.7% hit rate.
@Niko1221 commented on GitHub (Oct 20, 2026):
Thank you, this is a useful result. We do not change defaults for gfx906 on one machine's numbers (it has no gfx906 card on our side to repeat it), but 0.2.1's docs/AMD_HIP.md now has a two-card tip with your numbers and credit: --pipeline-windows 2 (decode 49.2 -> 66.9 tok/s) and --trim-stage-weights (prompt 353 -> 371 tok/s) with an explicit --layer-split, off by default, measure on your own card; plus the note that --batch did not help one user. The build blockers you mentioned are fixed on the branch too (see #3172).
This is in Strata 0.2.1: https://github.com/Niko1221/Strata/releases/tag/v0.2.1
@Niko1221 commented on GitHub (Oct 22, 2026):
Thanks — the +36% --pipeline-windows 2 result on 2x MI50 is exactly the kind of tuning data worth keeping. I'll add it to docs/COMMUNITY_BENCHMARKS.md (v0.1.43.1, gfx906) with the flags recorded as local tuning, not defaults.
@Niko1221 commented on GitHub (Oct 24, 2026):
This is fixed in Strata 0.2.1. Please update to the latest release (in the Terminal:
strata update; in the app: download the newest installer from the releases page). If it still happens on the latest version, reply here and we will reopen it. Thank you for the report.@romeo5353535353-ui commented on GitHub (Oct 24, 2026):
IQ4_XS (UD) on the same 2x MI50: 262K context works, and two practical notes
Follow-up with a bigger quant on the same box. Same cards, same engine, only the model and the RAM changed.
Environment: Strata 0.2.1 (engine 0.1.46), 2x Instinct MI50 16 GB (gfx906), Ryzen 7 5700X, now 128 GB DDR4
(4x32 GB, JEDEC 2400 — at 3200/3600 the machine hangs under long inference, so it runs stock), 2x16 GB VRAM,
ROCm 7.14 from
mixa3607/rocm-gfx906:7.14-complete. Modelunsloth/Qwen3.8-Flash-Next-GGUFUD-IQ4_XS(3 shards, 87 GB) instead of the GSQ-RCO IQ3_S we reported earlier. Flags unchanged:
--max-context 262144 --kv int8 --kv-resident 32768 --layer-split 27 --spec 3 --spec-min-p 0.9 --prefill 2048 --vram-reserve-mib 1024 --pipeline-windows 2 --trim-stage-weights --vision.Results (greedy, unique prompts so the prompt cache never helps)
The 140K test: a 140,908-token prompt with a five-digit code buried in the middle, read in 259 s at 546 tok/s,
answer correct. So the 262,144-token window is real and usable on 2x16 GB, with KV streaming.
Quality is identical on our suite (arithmetic, code with edge cases, JSON, a needle with decoy numbers, Russian
case, unit conversion), so the 4.25 vs 3.06 bpw difference did not show up in short tasks — it costs 15-22% of
decode and ~23% of prefill instead.
Two notes for anyone building an IQ4_XS pack
--compat-bf16is required for unsloth UD quants. The pack refused with "output_hc_down.weight is Q8_0,but the engine requires BF16; use --compat-bf16" for 195 dense tensors (1.20 GiB). With the flag the pack builds
and runs (tokenizer and expert bytes unchanged).
mtp_rt.py.MTP/mtp-Qwen3.8-Flash-Next-Q8_0.gguffails withKeyError: 'mtp.layers.0.mlp.experts.gate_up_proj'— its tensors are named differently from the ISTA-DASLabMTP layout that
mtp_pack.py/mtp_rt.pyexpect. We reused the draft runtime built earlier from the same basemodel (786 MB) and it drafts normally against IQ4_XS.
Still open from earlier
The promised entry in
docs/COMMUNITY_BENCHMARKS.md(from the comment above, 2026-10-22) is not inmainyet —the file has no MI50 entry with these flags. We are on 0.2.1 and both threads got closed with the "fixed in 0.2.1"
template, so I am not sure where you want this data now. Happy to send a small PR to
docs/COMMUNITY_BENCHMARKS.mdwith both setups (IQ3_S at 131K and IQ4_XS at 262K) if that is easier for you than writing it yourself.
@romeo5353535353-ui commented on GitHub (Oct 24, 2026):
Added one more finding to the 0.2.1 report, because it turned out to be worth more than any flag we tuned:
The 28.8 GB PLE table was the real cost. With the default
--ple-io directthe engine reads the per-layerembedding rows (320,001,536 rows x 90 B) from the SSD on the decode path, with a 90 MB row cache. On this box that
was 4-11 MB/s of disk reads during generation and a decode of 57.5 tok/s at a 31K prompt.
With 128 GB of RAM,
--ple-io ramlocks the table in memory (14.3 s at start, +28.8 GB):directramThat is +28% decode, and it puts the 87 GB IQ4_XS at the same speed IQ3_S had (73.5 vs 73.7 tok/s) while keeping the
262,144-token window. For a machine without the spare RAM, a larger
--ple-row-cacheis the bounded compromise.README and the
docs/COMMUNITY_BENCHMARKS.mdbullet now say so.@Profex86 commented on GitHub (Nov 5, 2026):
Hi, wollte gerne mal Strata ausprobieren, habe aber festgestellt, das die gfx906 nicht zu den Unterstützen Modelle von Strata gehören. Aber, dann sehe ich hier die "Benchmark" Werte und ich bin überrascht, das sie so niedrig sind. Jedenfalls hier nur zur Orientierung und mit dem Hinweis, das hier von mir getestete model "ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S" ca 60% LANGSAMER als das Original in Q8_0 auf meiner Hardware läuft und dennoch die Werte vergleichbar mit den hier sind. ALLES Stock, kein Tuning, keine "Optimierungen" llama.cpp + Linux + Vulkan! nix ROCm kacke
4x MI50/60
Promt: "Schreibe eine 1000 Wörter lange Geschichte" + Unbekanntes Systempromt von Openwebui
Nov 05 20:13:33 Makina3x128 llama-server[1360]: [34659] 0.15.629.457 I srv load_model: loaded multimodal model, '/Models/models/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF/mmproj-Qwen3.8-Flash-Next-BF16.gguf'
Nov 05 20:13:34 Makina3x128 llama-server[1360]: [34659] 0.15.689.344 I srv load_model: initializing, n_slots = 4, n_ctx_slot = 262144, kv_unified = 'true'
Nov 05 20:13:34 Makina3x128 llama-server[1360]: [34659] 0.15.694.624 I srv server_run_i: model loaded
Nov 05 20:13:34 Makina3x128 llama-server[1360]: [34659] 0.15.694.628 I srv server_on_li: listening on http://127.0.0.1:34659
Nov 05 20:13:34 Makina3x128 llama-server[1360]: 592.28.668.557 I srv proxy_reques: proxying request to model Qwen3.8-Flash-Next-GSQ-RCO-GGUF on port 34659
Nov 05 20:13:34 Makina3x128 llama-server[1360]: [34659] 0.15.695.664 I srv operator(): child server monitoring thread started, waiting for EOF on stdin...
Nov 05 20:13:34 Makina3x128 llama-server[1360]: [34659] 0.15.718.547 I slot get_availabl: id 0 | task -1 | selected slot by LRU, n_tokens = 0, t_last = -1
Nov 05 20:13:34 Makina3x128 llama-server[1360]: [34659] 0.15.719.070 I slot launch_slot_: id 0 | task 0 | processing task, is_child = 0
Nov 05 20:13:40 Makina3x128 llama-server[1360]: [34659] 0.21.656.101 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 2048, progress = 0.26, t = 5.94 s / 345.00 tokens per second
Nov 05 20:13:45 Makina3x128 llama-server[1360]: [34659] 0.27.409.767 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 4096, progress = 0.52, t = 11.69 s / 350.39 tokens per second
Nov 05 20:13:51 Makina3x128 llama-server[1360]: [34659] 0.33.299.671 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 6144, progress = 0.77, t = 17.58 s / 349.49 tokens per second
Nov 05 20:13:55 Makina3x128 llama-server[1360]: [34659] 0.37.494.507 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 7433, progress = 0.94, t = 21.77 s / 341.36 tokens per second
Nov 05 20:13:57 Makina3x128 llama-server[1360]: [34659] 0.39.256.843 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 7926, progress = 1.00, t = 23.54 s / 336.75 tokens per second
Nov 05 20:13:58 Makina3x128 llama-server[1360]: [34659] 0.40.015.107 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 7945, progress = 1.00, t = 24.30 s / 327.02 tokens per second
Nov 05 20:14:01 Makina3x128 llama-server[1360]: [34659] 0.43.232.319 I slot print_timing: id 0 | task 0 | n_gen = 110, tg = 36.15 t/s, tg_3s = 36.48 t/s
Nov 05 20:14:04 Makina3x128 llama-server[1360]: [34659] 0.46.257.894 I slot print_timing: id 0 | task 0 | n_gen = 220, tg = 36.25 t/s, tg_3s = 36.36 t/s
Nov 05 20:14:07 Makina3x128 llama-server[1360]: [34659] 0.49.271.959 I slot print_timing: id 0 | task 0 | n_gen = 328, tg = 36.11 t/s, tg_3s = 35.83 t/s
Nov 05 20:14:10 Makina3x128 llama-server[1360]: [34659] 0.52.275.077 I slot print_timing: id 0 | task 0 | n_gen = 436, tg = 36.08 t/s, tg_3s = 35.96 t/s
Nov 05 20:14:13 Makina3x128 llama-server[1360]: [34659] 0.55.287.824 I slot print_timing: id 0 | task 0 | n_gen = 543, tg = 35.96 t/s, tg_3s = 35.52 t/s
Nov 05 20:14:16 Makina3x128 llama-server[1360]: [34659] 0.58.310.830 I slot print_timing: id 0 | task 0 | n_gen = 651, tg = 35.92 t/s, tg_3s = 35.73 t/s
Nov 05 20:14:19 Makina3x128 llama-server[1360]: [34659] 1.01.327.195 I slot print_timing: id 0 | task 0 | n_gen = 758, tg = 35.86 t/s, tg_3s = 35.47 t/s
Nov 05 20:14:22 Makina3x128 llama-server[1360]: [34659] 1.04.341.396 I slot print_timing: id 0 | task 0 | n_gen = 866, tg = 35.86 t/s, tg_3s = 35.83 t/s
Nov 05 20:14:25 Makina3x128 llama-server[1360]: [34659] 1.07.349.632 I slot print_timing: id 0 | task 0 | n_gen = 974, tg = 35.86 t/s, tg_3s = 35.90 t/s
Nov 05 20:14:28 Makina3x128 llama-server[1360]: [34659] 1.10.352.715 I slot print_timing: id 0 | task 0 | n_gen = 1081, tg = 35.84 t/s, tg_3s = 35.63 t/s
Nov 05 20:14:31 Makina3x128 llama-server[1360]: [34659] 1.13.376.910 I slot print_timing: id 0 | task 0 | n_gen = 1190, tg = 35.86 t/s, tg_3s = 36.04 t/s
Nov 05 20:14:34 Makina3x128 llama-server[1360]: [34659] 1.16.395.867 I slot print_timing: id 0 | task 0 | n_gen = 1298, tg = 35.85 t/s, tg_3s = 35.77 t/s
Nov 05 20:14:37 Makina3x128 llama-server[1360]: [34659] 1.19.419.008 I slot print_timing: id 0 | task 0 | n_gen = 1407, tg = 35.87 t/s, tg_3s = 36.06 t/s
Nov 05 20:14:40 Makina3x128 llama-server[1360]: [34659] 1.22.441.120 I slot print_timing: id 0 | task 0 | n_gen = 1516, tg = 35.88 t/s, tg_3s = 36.07 t/s
Nov 05 20:14:43 Makina3x128 llama-server[1360]: [34659] 1.25.460.662 I slot print_timing: id 0 | task 0 | n_gen = 1624, tg = 35.87 t/s, tg_3s = 35.77 t/s
Nov 05 20:14:45 Makina3x128 llama-server[1360]: [34659] 1.27.595.288 I slot print_timing: id 0 | task 0 | prompt eval time = 24497.20 ms / 7949 tokens ( 3.08 ms per token, 324.49 tokens per second)
Nov 05 20:14:45 Makina3x128 llama-server[1360]: [34659] 1.27.595.290 I slot print_timing: id 0 | task 0 | eval time = 47378.28 ms / 1701 tokens ( 27.87 ms per token, 35.88 tokens per second)
Nov 05 20:14:45 Makina3x128 llama-server[1360]: [34659] 1.27.595.291 I slot print_timing: id 0 | task 0 | total time = 71875.48 ms / 9650 tokens
Nov 05 20:14:45 Makina3x128 llama-server[1360]: [34659] 1.27.595.291 I slot print_timing: id 0 | task 0 | graphs reused = 1688
Nov 05 20:14:45 Makina3x128 llama-server[1360]: [34659] 1.27.595.291 I slot print_timing: id 0 | task 0 | graph reallocs = 0 / 0 (same size) / (changed size)
Nov 05 20:14:45 Makina3x128 llama-server[1360]: [34659] 1.27.595.508 I slot release: id 0 | task 0 | stop processing: n_tokens = 9649, truncated = 0