mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #505] gfx1100 (W7800 48 GB, 30 GB RAM): full-resident experts — decode 76.5 t/s @ ~100K ctx on 0.1.34 (no thinking), + hipBLASLt 100202 table, IQ2_XS vs IQ3_XXS reversed #234
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#234
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 @lawsirlawsir-png on GitHub (Oct 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/505
Platform (all values verified on the machine)
b3bcb0f5…(0.1.34 build, 2026-10-02); earlier campaign on 0.1.27/0.1.29ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS(2 shards, HF revisioned59f92…)Engine args (production, unchanged since 09-30):
Env:
STRATA_PREFILL_MMQ=1,STRATA_PREFILL_RING=96,STRATA_IO_THREADS=32,STRATA_HIPBLASLT_TUNING=tools/hip/gfx1100-hipblaslt-100202.txt(self-calibrated, 26 rows).🔴 All speed numbers below are measured with thinking OFF (
chat_template_kwargs: {"enable_thinking": false}). Perdocs/DETAILS.md, the model default is high — so these are not directly comparable with the official rates tables unless the bench's thinking level is pinned on both sides. (One GSM8K arm ran with thinking on; it is listed separately as a throughput reference only.)Headline: 48 GB VRAM full-resident is a regime the official tables never measured
The official IQ3_XXS reference (RTX 5070 12 GB + 64 GB RAM) assumes experts spill to host/SSD. Here the expert cache auto-sizes to 24,576 slots / 39.97 GiB with 100% decode hit rate — experts never leave VRAM. In this regime:
1. Production workload, engine 0.1.34 (server log, mechanical extraction, n=573 arms)
Real interactive session, no thinking, context accumulated to 80–120K tokens:
decode at 100K context (76.5) exceeds the official IQ3_XXS 4K reference (61.6) by ~24%. We did not run the controlled
STRATA_HIP_ROUTER_OLD=1A/B (interrupted), so this is observational — but it suggests the 0.1.31–0.1.34 AMD-line gains (#262intrinsics, 0.1.32hip_router_fast) also benefit gfx1100, not only RDNA4.Also: no decode cliff from 4K→100K in our config (
--kv k8v4,--spec 3) — decode actually rises (55→76) because long arms have higher draft acceptance (0.85–0.94 vs 0.63–0.76 in bench). Another gfx1100 report (7900 XTX, 24 GB) saw a 32K cliff attributed to the default 32K MTP draft window. Could you confirm the MTP draft-window default in 0.1.34 and whether--kv k8v4changes it?2. Official
bench_prefill.py, engine 0.1.27 + self-calibrated table (conditions matched exactly: 4 fresh prompts 140/280/140/280 rules + 4 follow-ups, 128 max_tokens, temp 0, seed 42,--prefill auto --kv int8 --mtp mtp/rt --expert-cache auto)vs official IQ3_XXS (RTX 5070): prefill 4K 108–117%, decode 4K 90%.
3. 256K context (
--kv k8v4)--kv int8) → 256K (k8v4): decode 55.0 → 56.6 (+2.9%), prefill 1,151.4 → 1,204.4 (+4.6%), resident experts −3.1%--kv-residentnot needed)Four findings worth documenting
hipBLASLt table version gate silently costs 75% prefill. Shipped tables are 100100/100200; ROCm 7.2.4 ships hipBLASLt 1.2.2 (100202). Mismatch prints one stderr line (
… version mismatch: file=100200 runtime=100202; using hipBLASEx) and prefill drops 622 → 1,088 tok/s when fixed. A community 7900 XTX user on ROCm 7.2.3 independently hit 100202; PR #170 added a 100202 table but it appears absent fromtools/hip/in 0.1.33. Suggestion: ship a 100202 table for gfx1100, or make setup print an explicit "run tools/hip/tune_hipblaslt.cpp" hint on mismatch. Our tuner command (works verbatim):Decode variance is driven by MTP acceptance rate, which the docs never mention. Same server, same session,
decode expert cache hit rate: 100.0%(77,760/83,520): acceptance 0.63→49.8 t/s, 0.67→51.0, 0.72→56.0, 0.76→56.4. Docs say "2.4–3.2 tokens per pass" without an acceptance-rate baseline; we measured 1.65–1.73 tokens/pass during bench. Suggestion: publish per-model draft acceptance alongside the rates table so users can tell cache misses from drafting variance.IQ2_XS is 30% SLOWER than IQ3_XXS on this machine — opposite of the official table. Strict interleaved A/B (same host/script/args, 8 runs each, fixed prompt wording): decode IQ3_XXS 54.0 ± 2.5 vs IQ2_XS 41.5 ± 0.6 (IQ3 faster 27–36% across 1K/4K/16K); prefill differs only +1.7%. We believe the official IQ2_XS row (78.6 @4K) comes from Swift 1.5 (shorter-thinking fine-tune, different output-length distribution) — if so, the table should label the model variant, because users comparing original Flash-Next get the opposite ranking. We ruled out 13 candidates (config diff, RAM speed, CPU ISA, cache hit rate, draft quality,
STRATA_NO_IQ4NL,STRATA_CPU_YMM, PR #241, PR #242 — gap even widened to 35.1%). With experts 100% GPU-resident, CPU-side knobs (STRATA_IQ_MT_MIN) can't explain it. Open question for you: what in the single-token decode path makes IQ2_XS slower on gfx1100?Vision on gfx1100 via llama.cpp
GGML_HIP=ON— one CMake flag, not a port. Upstream 0.1.33 still says "no HIP encoder build yet". We builttools/vision/strata_vision.cppwithcmake -DGGML_HIP=ON -DAMDGPU_TARGETS=gfx1100 -DCMAKE_HIP_COMPILER=/opt/rocm/llvm/bin/clang++(llama.cpp pin3cf03257already in_deps): READY 6.0 s vs CPU 10–30+ min; per image 4,000 tokens / 5.3 s vs CPU 480 tokens / 12 s (~30×); peak VRAM +1.61 GiB (inside--vram-reserve-mib 2048); end-to-end image QA correct through the OpenAI endpoint. Worth formalizing as an official build option.Parameter-level confirmations (for the FAQ)
--expert-cache automust not be hand-setauto: 42.52 GiB, 6.9 t/s (8.4×)--mtp mtp/rtis not optional--specdesign ceiling is 3--pool-workers2→5 no changeserve.serverstartup line is misleading--mmap-expertspath is what actually runsThroughput reference (thinking ON, conc 4, n=200 GSM8K, seed 42, greedy, max_tokens 3072)
Strata Flash-Next IQ3_XXS: 190/200 = 95.0%, mean 394.9 completion tokens (incl.
reasoning_content), 50.68 t/s aggregate. Listed only as a workload reference — not comparable with the no-thinking speed numbers above.Method notes
bench_prefill.pyrules.Happy to run any controlled follow-up on this box (e.g.
STRATA_HIP_ROUTER_OLD=1vs default at 4K/16K, or re-runningbench_prefill.pyat a pinnedreasoning_effortto align with the official tables).@xyzzing commented on GitHub (Oct 2, 2026):
Excellent write-up — this corroborates several things we've measured on a 24 GB RX 7900 XTX (gfx1100, 96 GB desktop Ryzen 9 7900X, ROCm 7.1.1 / hipBLASLt 100100, IQ3_S), and adds two knobs we hadn't prioritized:
--spec 3(we run the default 2; your ceiling measurement) and--kv k8v4(+2.9% decode / +4.6% prefill at 256K on your box). Both are going into our paired A/B queue on the 7900 XTX — we'll report what we get on 24 GB at int8→k8v4 with a smaller resident window, where the tradeoff may differ.One methodology note from our side: we one-shot
strata generateper cell (greedy, 256 tokens, median of 3 non-stalled runs per tier) rather than a server workload, so our absolute numbers run a bit under your production n=573 means — your 76.5 t/s at ~100K with full-resident experts on 48 GB is a useful upper reference for the family.@xyzzing commented on GitHub (Oct 2, 2026):
Following up on our own last comment — the promised paired measurements on the 7900 XTX (24 GB) are in, on the 0.1.35 engine (our HIP integration line), one-shot cells, 5 interleaved pairs × 2 slots, paired medians:
--spec 3vs default--spec 2: +9.49% median decode (66.4 vs 59.5 tok/s at 1K; aggregate +14.6%, CI95 [+7.4, +26.6], 5/5 pairs). Confirms your spec-ceiling-3 finding on our card, with a bigger delta than we expected — this has gone into our serving config.--kv k8v4: structurally unavailable in our config — the engine refuses--kv k8v4 does not support --kv-resident streaming (yet)and we serve with--kv-resident 32768. Your 256K k8v4 numbers presumably came from a no-resident config; flagging the combination restriction in case it's worth lifting upstream (k8v4 + a resident window is exactly what a 24 GB card wants at long context).STRATA_VERIFY_DEVICE_PLAN=1(−4.2%),--pool-workers 16(−2.7% median, SMT contention),--pcie-mode dma(−2.3% median) — defaults all stand.@Niko1221 commented on GitHub (Oct 2, 2026):
Thanks for the report. 0.1.37 fixes the start messages for the mapped / resident / budget modes. A gfx1100 hipBLASLt table for hipBLASLt 1.2.2 (100202) would be welcome as a PR (tools/hip/README explains the tuner). Closing.
@lawsirlawsir-png commented on GitHub (Oct 3, 2026):
On
--kv k8v4(replying to @xyzzing): your inference is right. Our 256K numbers came from a config with no--kv-resident— a 48 GB card with the experts fully resident and the KV cache fully in VRAM, sok8v4costs nothing there. Your result draws the boundary we should have drawn ourselves: on a card that needs a resident window,k8v4is currently unusable, so "+2.9% decode / +4.6% prefill at 256K" should be read as "on large cards at long context, when no resident window is required" — not as a general win. Lifting thek8v4+ resident-window restriction upstream would be worth doing; on a 24 GB card that combination is exactly what long context wants.--spec 3confirmed on a second gfx1100 board is useful to us — our production line already runs it, and your paired-median method is stricter than our observational server-log numbers.PR incoming:
tools/hip/gfx1100-hipblaslt-100202.txt(26 rows, calibrated withtools/hip/tune_hipblaslt.cppon a W7800 / ROCm 7.2.4, hipBLASLt 1.2.2 = 100202).setup.py:hipblaslt_table()will pick it up by name alone, which is the whole fix — today the version gate rejects every gfx1100 table on ROCm 7.2.x and prefill silently drops to plain hipBLAS (622 → 1,088 tok/s on this box).Still unanswered from the original report (happy to run controlled follow-ups on this machine):
--kv k8v4changes it. This is the difference between our flat 4K→100K decode and the 32K cliff reported on a 7900 XTX.@xyzzing commented on GitHub (Oct 4, 2026):
The missing-table follow-up, closed from our side: we tuned
tools/hip/gfx1100-hipblaslt-100500.txt(26 shapes × {4096, 8192}-token, f16+bf16) on the ROCm 10.2 nightly SDK withtools/hip/tune_hipblaslt.cpp, and validated it in-engine on a 7900 XTX 24 GB / IQ3_S / 128K context:Table header:
STRATA_HIPBLASLT_TUNING_V1 gfx1100 100500(tuned against hipBLASLt 100500, HIP runtime 7.17.26392). The file is in our fork'stools/hip/on branchhip-decode-autotune— say the word and we'll open the table-only PR (we kept it out of #744, which is the autotune engine change), or include it in your #560/#516-adjacent batch if that lands first.