[GH-ISSUE #5302] [Benchmark] RX 5700 XT 8 GB (gfx1010, 0.1.56 source build): Qwen3.8-Flash-Next IQ2_XS + DFlash2, standard run complete; STRATA_PREFILL_CPU_SHARE works on HIP (+29% prefill) #3163

Closed
opened 2026-11-07 14:38:34 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @statou666 on GitHub (Nov 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5302

What I measured

A single RX 5700 XT (gfx1010, RDNA1, 8 GB) running Qwen3.8-Flash-Next IQ2_XS with the DFlash2 drafter on a source-built engine 0.1.56 (Strata 0.2.10). Two results:

  1. the standard protocol run (status complete, 12/12 sanity checks), and
  2. a switch A/B showing that STRATA_PREFILL_CPU_SHARE works on HIP/gfx1010 here (+29% prompt throughput on a 15.6K prompt), although docs/DETAILS.md describes it as CUDA-only and says HIP keeps it off unless set.

A full report folder (README.md, results.json, outputs.jsonl, engine log, sanitized config, provenance) is ready; I can open the results-only PR if that is preferred over an issue.

Hardware

  • GPU: AMD Radeon RX 5700 XT, 8 GB, gfx1010 (RDNA1), SCLK capped at 1800 MHz (pp_od_clk_voltage). At the stock 2100 MHz any prompt above ~15K tokens ends in a gfxhub page fault and a GPU reset, so everything here is at 1800 MHz.
  • CPU: Xeon E5-2680 v4, 14C/28T; RAM 62 GiB; Ubuntu 24.04; desktop (gdm) stopped during the runs.
  • The engine probes PCIe at 11.6 GB/s host->device ... -> pcie_frac 0.32.

Software

  • Strata 0.2.10 (engine 0.1.56) source build at ffa80d73133ea5c548aefe57889a16e8085a938f; no prebuilt gfx1010 engine exists, so it is built locally with CMAKE_HIP_ARCHITECTURES=gfx1010, -DSTRATA_GGML_DIR=<llama.cpp @ 3cf03257>, HIP/ROCm from a TheRock-based Strata venv.
  • Community tuning fires: AMD community tuning ... gfx1010 dot4 uses the SDWA sequence (#4855).
  • Packs: tools/iq_pack.py, tools/dflash2_pack.py; CPU vision reader from tools/vision.

Model

  • ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF IQ2_XS/, revision ed59f92082b1e93c0e96d60a8b11aab089b52f09; two shards 39,225,954,592 + 28,800,138,432 B. --ple-gguf points at shard 2 (shard 1 fails: per_layer_token_embd.weight is not in ...-00001-of-00002.gguf).
  • Drafter: incoai/Qwen3.8-Flash-Next-DFlash2 @ a22a1744e85c17364dcc54a6a420af7135d4c7f6, packed q8 (760 MB).

Settings

--pack <iq2_xs_base> --native <shard1> --ple-gguf <shard2> --expert-profile <profile> --expert-cache auto --expert-cache-per-layer --prefill auto --spec 4 --spec-min-p 0.5 --mtp <mtp/rt> --max-context 262144 --kv int8 --kv-resident 32768 --vram-reserve-mib 512 --prompt-cache-every 4096 --prompt-cache-spread --draft dflash2 --draft-model <pack>, drafting: dflash2, env: {"STRATA_PREFILL_CPU_SHARE": "0.80"}. Expert cache 1,248 slots / 1.68 GiB; VRAM 7.29 GiB of 7.98.

Standard run (strata-qwen38-thinking-v1-draft.1, status complete)

21/21 required requests, 0 failed, 0 skipped, 12/12 sanity checks, 14 min 32 s after load. Track custom (hand-written config). Medians, engine timings:

Case Prompt tok/s Decode tok/s TTFT s Total s
short n/a 27.5 2.27 16.1
prompt-4k 161.6 23.8 25.39 46.9
prompt-16k 162.6 23.5 100.85 122.6

Some requests hit the 512-token cap while reasoning (shown in the report). No optional concurrency stage.

Prefill A/B (15.6K fresh prompt, engine's own rate)

Arm tok/s
baseline (--prefill auto) 133.6
--prefill 8192 145.9 (+9%)
--prefill 8192 + STRATA_DEFAULTS=026 146.2
--prefill 8192 + --kv-resident 16384 145.7
--pcie-frac 0 133.0
STRATA_HIP_PROMPT_F16=1 133.7
STRATA_PF_FUSED=1 STRATA_PF_GEMM=1 STRATA_PF_SWITCH_MIN_T=4096 104.3
STRATA_PREFILL_CPU_SHARE=auto 170.1
STRATA_PREFILL_CPU_SHARE=0.80 172.2 (+29%)
share=auto + --prefill 8192 170.8
share=auto + --prefill 1024 / 512 150.7 / 128.3
share=auto + --pool-workers 26 170.9

Each arm: fresh engine, desktop stopped, one request with a brand-new random-word prefix only (unique nonce, nothing cached), 8 generated tokens; numbers are the engine's own line. Single run per arm, arms back-to-back; repeat spread ≤2%.

Notes

  1. CPU share on HIP: explicit STRATA_PREFILL_CPU_SHARE runs on gfx1010 and is the largest prompt-path gain I found; auto (170.1) is slightly behind a fixed 0.80 (172.2) on 14 cores. This matches the AMD measurement in #1378 (−25…−33% prompt time).
  2. Bigger chunks alone: +9%, flat from 4096 to 8192, and they do not stack with the CPU share (170.8). Chunks below 1536 lose (150.7 at 1024, 128.3 at 512).
  3. More expert slots do not help prompt speed here: 1,728 slots (STRATA_DEFAULTS=026) and --kv-resident 16384 land on the same 145–146 as chunk 8192 alone.
  4. STRATA_HIP_PROMPT_F16=1 gave nothing on gfx1010 (133.7), unlike the RDNA2 reports.
  5. The VRAM warning is real: at --vram-reserve-mib 256 the engine prints only 494 MiB of VRAM free ... (below 512 MiB) and decode fell to 25.9/25.0 tok/s; at 512 it does 33.4/39.7 with no warning.
  6. Prefix cache with --prompt-cache-every 4096 --prompt-cache-spread: a 15,605-token prefix re-reads in 4.3–4.4 s (cached=15360; 89 s cold). With the default --prompt-cache-every 16384 the same prompt produced one checkpoint and cached=0 on 0.1.51.
  7. Decode is draft-acceptance-bound on this box: 27–42 tok/s across six 200-token requests on the same config (acceptance 86–96%), 31.7 at 2K context (94%), 22.6 at 8.2K context (77%).

For reference on the same card, docs/OLDER_GPUS.md:344 (Coder IQ1_M, 32K) lists prompt 115/144/149 tok/s at 4K/16K/30K, and #4734 reports ~120 tok/s prefill with IQ3_S at 256K.

Reproduction status: measured locally. Happy to run anything gfx1010-specific.

Originally created by @statou666 on GitHub (Nov 5, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5302 ## What I measured A single **RX 5700 XT (gfx1010, RDNA1, 8 GB)** running **Qwen3.8-Flash-Next IQ2_XS** with the **DFlash2** drafter on a source-built **engine 0.1.56** (Strata 0.2.10). Two results: 1. the standard protocol run (status **complete**, 12/12 sanity checks), and 2. a switch A/B showing that **`STRATA_PREFILL_CPU_SHARE` works on HIP/gfx1010** here (+29% prompt throughput on a 15.6K prompt), although `docs/DETAILS.md` describes it as CUDA-only and says HIP keeps it off unless set. A full report folder (`README.md`, `results.json`, `outputs.jsonl`, engine log, sanitized config, provenance) is ready; I can open the results-only PR if that is preferred over an issue. ## Hardware - GPU: AMD Radeon RX 5700 XT, 8 GB, **gfx1010 (RDNA1)**, SCLK capped at 1800 MHz (`pp_od_clk_voltage`). At the stock 2100 MHz any prompt above ~15K tokens ends in a gfxhub page fault and a GPU reset, so everything here is at 1800 MHz. - CPU: Xeon E5-2680 v4, 14C/28T; RAM 62 GiB; Ubuntu 24.04; desktop (gdm) stopped during the runs. - The engine probes PCIe at `11.6 GB/s host->device ... -> pcie_frac 0.32`. ## Software - Strata 0.2.10 (engine 0.1.56) source build at `ffa80d73133ea5c548aefe57889a16e8085a938f`; no prebuilt gfx1010 engine exists, so it is built locally with `CMAKE_HIP_ARCHITECTURES=gfx1010`, `-DSTRATA_GGML_DIR=<llama.cpp @ 3cf03257>`, HIP/ROCm from a TheRock-based Strata venv. - Community tuning fires: `AMD community tuning ... gfx1010 dot4 uses the SDWA sequence (#4855)`. - Packs: `tools/iq_pack.py`, `tools/dflash2_pack.py`; CPU vision reader from `tools/vision`. ## Model - `ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF` `IQ2_XS/`, revision `ed59f92082b1e93c0e96d60a8b11aab089b52f09`; two shards 39,225,954,592 + 28,800,138,432 B. `--ple-gguf` points at **shard 2** (shard 1 fails: `per_layer_token_embd.weight is not in ...-00001-of-00002.gguf`). - Drafter: `incoai/Qwen3.8-Flash-Next-DFlash2` @ `a22a1744e85c17364dcc54a6a420af7135d4c7f6`, packed q8 (760 MB). ## Settings `--pack <iq2_xs_base> --native <shard1> --ple-gguf <shard2> --expert-profile <profile> --expert-cache auto --expert-cache-per-layer --prefill auto --spec 4 --spec-min-p 0.5 --mtp <mtp/rt> --max-context 262144 --kv int8 --kv-resident 32768 --vram-reserve-mib 512 --prompt-cache-every 4096 --prompt-cache-spread --draft dflash2 --draft-model <pack>`, `drafting: dflash2`, `env: {"STRATA_PREFILL_CPU_SHARE": "0.80"}`. Expert cache 1,248 slots / 1.68 GiB; VRAM 7.29 GiB of 7.98. ## Standard run (`strata-qwen38-thinking-v1-draft.1`, status complete) 21/21 required requests, 0 failed, 0 skipped, 12/12 sanity checks, 14 min 32 s after load. Track `custom` (hand-written config). Medians, engine timings: | Case | Prompt tok/s | Decode tok/s | TTFT s | Total s | |---|---|---|---|---| | short | n/a | 27.5 | 2.27 | 16.1 | | prompt-4k | **161.6** | 23.8 | 25.39 | 46.9 | | prompt-16k | **162.6** | 23.5 | 100.85 | 122.6 | Some requests hit the 512-token cap while reasoning (shown in the report). No optional concurrency stage. ## Prefill A/B (15.6K fresh prompt, engine's own rate) | Arm | tok/s | |---|---| | baseline (`--prefill auto`) | 133.6 | | `--prefill 8192` | 145.9 (+9%) | | `--prefill 8192` + `STRATA_DEFAULTS=026` | 146.2 | | `--prefill 8192` + `--kv-resident 16384` | 145.7 | | `--pcie-frac 0` | 133.0 | | `STRATA_HIP_PROMPT_F16=1` | 133.7 | | `STRATA_PF_FUSED=1 STRATA_PF_GEMM=1 STRATA_PF_SWITCH_MIN_T=4096` | 104.3 | | `STRATA_PREFILL_CPU_SHARE=auto` | 170.1 | | **`STRATA_PREFILL_CPU_SHARE=0.80`** | **172.2 (+29%)** | | share=auto + `--prefill 8192` | 170.8 | | share=auto + `--prefill 1024` / `512` | 150.7 / 128.3 | | share=auto + `--pool-workers 26` | 170.9 | Each arm: fresh engine, desktop stopped, one request with a brand-new random-word prefix only (unique nonce, nothing cached), 8 generated tokens; numbers are the engine's own line. Single run per arm, arms back-to-back; repeat spread ≤2%. ## Notes 1. **CPU share on HIP**: explicit `STRATA_PREFILL_CPU_SHARE` runs on gfx1010 and is the largest prompt-path gain I found; `auto` (170.1) is slightly behind a fixed `0.80` (172.2) on 14 cores. This matches the AMD measurement in #1378 (−25…−33% prompt time). 2. Bigger chunks alone: +9%, flat from 4096 to 8192, and they do not stack with the CPU share (170.8). Chunks below 1536 lose (150.7 at 1024, 128.3 at 512). 3. More expert slots do not help prompt speed here: 1,728 slots (`STRATA_DEFAULTS=026`) and `--kv-resident 16384` land on the same 145–146 as chunk 8192 alone. 4. `STRATA_HIP_PROMPT_F16=1` gave nothing on gfx1010 (133.7), unlike the RDNA2 reports. 5. The VRAM warning is real: at `--vram-reserve-mib 256` the engine prints `only 494 MiB of VRAM free ... (below 512 MiB)` and decode fell to 25.9/25.0 tok/s; at 512 it does 33.4/39.7 with no warning. 6. Prefix cache with `--prompt-cache-every 4096 --prompt-cache-spread`: a 15,605-token prefix re-reads in 4.3–4.4 s (`cached=15360`; 89 s cold). With the default `--prompt-cache-every 16384` the same prompt produced one checkpoint and `cached=0` on 0.1.51. 7. Decode is draft-acceptance-bound on this box: 27–42 tok/s across six 200-token requests on the same config (acceptance 86–96%), 31.7 at 2K context (94%), 22.6 at 8.2K context (77%). For reference on the same card, `docs/OLDER_GPUS.md:344` (Coder IQ1_M, 32K) lists prompt 115/144/149 tok/s at 4K/16K/30K, and #4734 reports ~120 tok/s prefill with IQ3_S at 256K. Reproduction status: measured locally. Happy to run anything gfx1010-specific. <!-- Submitted via the Benchmark form fields: hardware, version, model, command, numbers; reproduction status measured locally. -->
Author
Owner

@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

<!-- gh-comment-id:6658782855 --> @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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3163
No description provided.