[GH-ISSUE #3271] [Other] gfx906 (2× Radeon Pro VII): install report, 200K k8v4 + CPU vision, and a 50% CPU question #1324

Closed
opened 2026-11-04 01:50:22 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @Marczellito on GitHub (Oct 19, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3271

Area

[Other] (anything else, including setup and installation)

Your question

Two minor questions; everything else works:

  1. CPU use: top peaks at ~50% (18 of 36 logical CPUs) on this 18C/36T Xeon. The engine log says 17 pool workers + the host thread; docs/AMD_HIP.md and docs/DETAILS.md:557 suggest one worker per physical core is deliberate and all-logical was slower on gfx1030. Is that the expected behavior on Haswell-EP too?
  2. Setup path: the docs say setup does not build gfx906, but on v0.1.45 setup stops at its first GPU check, so the model download and pack preparation are also unreachable without patching setup.py. Is a download-only route (or clearer by-hand download instructions) planned? That was the only real install dead end I hit.

The report below is a successful end-to-end run on v0.1.45 (477ac13c), 2× Radeon Pro VII 16 GB (gfx906), 64 GB RAM, CachyOS kernel 7.2.3: Qwen3.8-Flash-Next IQ3_S, 200K context, --kv k8v4, pictures on (CPU encoder). It is also posted as a comment on #2883 (the gfx906 validation thread); #3172 tracks the gfx906 build blockers I hit. I am not asking for a new feature; I am sharing what worked and where the friction is.

What you tried

Environment

GPUs 2× AMD Radeon Pro VII 16 GB, gfx906 (Vega 20, 1002:66a1), 190 W power limit, PCIe 3.0 (engine probe 13.8 GB/s host→device)
CPU / RAM Intel Xeon E5-2696 v3, 18C/36T, AVX2; 64 GB DDR4-2133 ECC at 1866 MT/s (setup reports 63 GB)
OS CachyOS (Arch-based), kernel 7.2.3-1-cachyos, GCC 16.2.1
ROCm system ROCm 7.2.4 at /opt/rocm, HIP 7.2.53211, AMD clang 22.0.0; no container, no HSA_OVERRIDE_GFX_VERSION. The distro package ships gfx906 rocBLAS kernels (Kernels.so-000-gfx906-xnack-.hsaco); the community image was not needed.
Strata source v0.1.45, commit 477ac13c, engine 0.1.45; llama.cpp 3cf03257f
Model Qwen3.8-Flash-Next GSQ-RCO IQ3_S, two shards 54.82 + 28.80 GB; vision mmproj-Qwen3.8-Flash-Next-BF16.gguf on CPU
Config --max-context 204800 --kv k8v4 --vision --gpus 0,1 --layer-split auto --spec 4 --spec-min-p 0.5 --prefill auto --expert-cache auto --vram-reserve-mib 700 --vram-reserve-later-mib 1006
MTP draft layer reused from an earlier install under Strata-data/mtp/rt; tools/mtp_fetch.py verify rc=0

Setup command: ./setup.sh --yes --backend hip --gpus 0,1 --family qwen --model IQ3_S --vision cpu --no-start, then the 200K / k8v4 choices.

Note: setup's step-2 summary prints KV cache: 4-bit (Hadamard-rotated) for any non-int8 choice (setup.py:6581); the written config is --kv k8v4 (K 8-bit, V 4-bit). Wording only.

What worked

  • Build: the documented -DSTRATA_HIP_GFX906=ON -DCMAKE_HIP_ARCHITECTURES=gfx906 path, with the compat layer, built the engine and the CPU vision encoder. Build time ~15 min at -j18. The 4-file diff is in the gist below; the CMake + cublas hunks are the same set posted in #2459, and #3172 tracks the same blockers.
  • KV parity on the cards: kv_hybrid_parity ALL PASS (k8v4 appends/gathers, 0 bad of 786,432/24,576; mode-3 batched attention 7.82e-08 vs the dequant reference), kv_stream_parity k8v4 ring 0 failures, kv_window_parity 0 bad/0 stale, kv_steps_parity 120/120, kv_q8_parity OK.
  • End-to-end: setup (patched) → engine → download → pack → start script; server /health ready; text 17*23? → 391; vision (64×64 red PNG) → Red; images on. The docs' gfx906 section lists images (--vision) as not done — this run verifies the CPU encoder path on Radeon Pro VII.
  • Start: ~75–90 s to ready; 46.84 GiB of experts into RAM at 1.51 GiB/s; expert cache 5,724 slots (10.30 GiB) and, on CUDA1, 4,180 slots (8.42 GiB); 586 MiB / 768 MiB free after load.
  • 200K config: k8v4 at 204,800 costs ~2.2 GB and stays in VRAM. KV streaming is off: it needs ~2.2 GB beside the ~62 GB of experts on a 63 GB machine. No KV-related errors.
  • Long sessions: several chats with 23K–35K-token prompts and 22K–42K-token outputs; decode held 43.8–51.6 tok/s (table below). The requests completed; the only warnings were the VRAM notes.
  • Downloads / MTP: 86 download interrupted retry lines across 13 setup attempts (mostly DNS, 12 read timeouts) on a flaky link; every resume continued from .part, zero corruption. MTP verify passed.

What did not work / known issues

Known / already tracked

  1. setup.py refuses gfx906 at step 1 — documented as "Setup does not build it yet", but the failure also makes the ~84 GB download and pack preparation unreachable through setup. Exact first-run output (before the local patch):

      Your AMD GPUs:
        GPU 0: AMD Radeon (gfx906), 16 GB VRAM - cannot be used
      [!] AMD GPU 0 (AMD Radeon (gfx906)) cannot be used: not supported - [...]
          this is gfx906
      Setup stopped. Fix the item above and run it again - everything already done is kept and skipped.
    

    My local setup.py change adds gfx906 to AMD_ARCHS/AMD_NAMES and passes the gfx906 flags (including -DSTRATA_ENABLE_HIP=OFF). I am not proposing it as the default (the docs say manual build); a download-only path, or clearer by-hand download instructions, would remove the dead end. This is the main friction I hit.

  2. Build blockers on 0.1.45 (reproduced locally; exact messages in build-errors.txt in the gist):

    • missing cublasSgemm, cublasSgemmStridedBatched, cublasGemmStridedBatchedEx aliases in platform/hip_compat/cublas_v2.h (qwen35 q36_engine.cu);
    • strata_mmq_w4a4 compiled without GGML_USE_HIP → cuda.h not found;
    • f16kq::* undefined at link — missing src/prefill/moe_f16_kq.cu in strata_mmq under STRATA_HIP_GFX906;
    • GCC 16 <format> vs HIP's __noinline__ macro (fix: #undef __noinline__ in the gfx906 compat header);
    • stale build-hip cache with STRATA_ENABLE_HIP=ON + STRATA_HIP_GFX906=ON → "enable only one"; pass -DSTRATA_ENABLE_HIP=OFF or use a fresh build directory.

    These are in #3172 (open; confirmed on 0.2.0-beta) and were reported in #2459 (closed by the tracker reset). I am adding the end-to-end result, not a new build bug.

Rough edges found here

  1. VRAM is tight at request start. The first start (only --vram-reserve-mib 700) logged CUDA1: 462 MiB ... LOW; adding --vram-reserve-later-mib 1006 removed it (768 MiB free after load). One later request still logged:

    WARNING: only 493 MiB of VRAM free at the start of this request (below 512 MiB) ... Add --vram-reserve-mib 768 ...
    

    The following long requests still ran at 44–52 tok/s, but if the driver starts paging, --vram-reserve-mib 768 (or 1024) is the engine's own suggestion. The desktop here is on CUDA1; --vram-reserve-later-mib 1006 is what fixed the CUDA1 window-capture warning.

  2. qsa_prompt_attn mode 3 refuses on HIP and the older kernel runs; output is correct, but if mode 3 is expected to work on gfx906 this is masking it. (Observed in the parity tests; not a correctness failure.)

  3. No hipBLASLt tuning table for gfx906 (hipBLASLt 100202): setup says the prompt's dense GEMMs use plain hipBLAS. Expected for this arch, but it is a prompt-speed opportunity.

  4. Network: the only reason setup needed 13 attempts; not a Strata issue, but the log is full of it.

CPU usage: ~50% (18 of 36 threads)

top peaks around 50% on this 18C/36T Xeon. The engine log says:

strata generate: 17 pool workers on logical processors 1,...,17, the host thread on 0 (--host-core first)
strata aux cpus: ... CPUs 18 (off at start; a request's aux_cpus=1 turns it on)

So it uses one logical CPU per physical core (17 workers + host = 18 threads) and leaves the 18 SMT siblings alone. docs/AMD_HIP.md (gfx1030 report) says the default is one worker per physical core and that using all logical CPUs was slower there (27 vs 38–42 tok/s); docs/DETAILS.md:557 documents --pool-workers. I think this is expected, not a bug. If a sweep on Haswell-EP would be useful, I can run --pool-workers 8/17/24/35 with a fixed prompt, but I have not done it.

Not tested

  • 0.2.0-beta (3d1fb480): not run; #3172 says the gfx906 build still fails there. This report is v0.1.45 only.
  • Full 200K prompt / needle tests; KV streaming on; concurrent requests; a 12 h soak; a formal 3-run benchmark or tools/strata_bench.py; vision accuracy/speed beyond one image; CUDA/SYCL builds; Windows; a fresh MTP download.
  • I did not run the CUDA build. My CMake changes are inside STRATA_HIP_GFX906, and the cublas/__noinline__ changes are in the gfx906 compat headers, but I cannot claim the other backends from this machine.

Logs

Sanitized files in one secret gist (link-only, not indexed): setup-evidence.log (curated; the full setup log is 1,193 lines), engine-session-evidence.log, build-errors.txt, strata-gfx906-fixes.patch, config-iq3_s-sanitized.json — https://gist.github.com/Marczellito/9e9324702246fe9f1acfb0306e868c9e. Local paths are shortened to ~; no API keys, passwords, emails, or hostnames. Full logs on request.

Results (optional)

From strata-iq3_s.log after the 1006 restart. These are engine-reported averages from one continuous session, not the 3-run benchmark protocol. "Prompt read" is the newly read part; the reused prefix is excluded, so the prompt speed is the speed of that read, not of the whole context.

prompt tokens (reused + new) prompt speed generated decode drafts accepted cache hit end context
23,133 (81 + 23,052) 590.3 tok/s 41,406 51.6 tok/s 25,704 / 33,271 97.4% ~64.5K
31,231 (23,128 + 8,103) 403.8 tok/s 33,051 43.8 tok/s 17,267 / 27,890 97.2% ~64.3K
32,910 (31,226 + 1,684) 295.7 tok/s 42,604 50.3 tok/s 27,297 / 38,890 96.9% ~75.5K
34,916 (32,905 + 2,011) 312.2 tok/s 22,758 50.4 tok/s 14,153 / 17,521 94.4% ~57.7K
500 (56 + 444) 157.5 tok/s 2,829 48.2 tok/s 1,638 / 2,453 94.5% —
  • First request after start: 50 tokens at 12.9 tok/s (graph capture), then 50.3 tok/s on the next one. Do not judge from the first request.
  • Tiny prompts (61–86 tokens) read at 46–76 tok/s; short prompts are fixed-overhead bound, as the docs say.
  • The 200K limit was configured, but the largest verified request ended at ~75.5K total tokens; I did not fill 200K. Anyone reading "200K" as tested should know this.
  • My earlier "45–70 tok/s" was from the chat UI; the engine's sustained averages are 44–52 tok/s. The 70 figure was a short burst.
Originally created by @Marczellito on GitHub (Oct 19, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3271 ### Area [Other] (anything else, including setup and installation) ### Your question Two minor questions; everything else works: 1. **CPU use:** `top` peaks at ~50% (18 of 36 logical CPUs) on this 18C/36T Xeon. The engine log says *17 pool workers + the host thread*; `docs/AMD_HIP.md` and `docs/DETAILS.md:557` suggest one worker per physical core is deliberate and all-logical was slower on gfx1030. Is that the expected behavior on Haswell-EP too? 2. **Setup path:** the docs say setup does not build gfx906, but on v0.1.45 setup stops at its first GPU check, so the model download and pack preparation are also unreachable without patching `setup.py`. Is a **download-only** route (or clearer by-hand download instructions) planned? That was the only real install dead end I hit. The report below is a successful end-to-end run on v0.1.45 (`477ac13c`), 2× Radeon Pro VII 16 GB (gfx906), 64 GB RAM, CachyOS kernel 7.2.3: Qwen3.8-Flash-Next IQ3_S, 200K context, `--kv k8v4`, pictures on (CPU encoder). It is also posted as a comment on #2883 (the gfx906 validation thread); #3172 tracks the gfx906 build blockers I hit. I am not asking for a new feature; I am sharing what worked and where the friction is. ### What you tried #### Environment | | | |---|---| | GPUs | 2× AMD Radeon Pro VII 16 GB, gfx906 (Vega 20, `1002:66a1`), 190 W power limit, PCIe 3.0 (engine probe 13.8 GB/s host→device) | | CPU / RAM | Intel Xeon E5-2696 v3, 18C/36T, AVX2; 64 GB DDR4-2133 ECC at 1866 MT/s (setup reports 63 GB) | | OS | CachyOS (Arch-based), kernel 7.2.3-1-cachyos, GCC 16.2.1 | | ROCm | system ROCm 7.2.4 at `/opt/rocm`, HIP 7.2.53211, AMD clang 22.0.0; no container, no `HSA_OVERRIDE_GFX_VERSION`. The distro package ships gfx906 rocBLAS kernels (`Kernels.so-000-gfx906-xnack-.hsaco`); the community image was not needed. | | Strata | source v0.1.45, commit `477ac13c`, engine `0.1.45`; llama.cpp `3cf03257f` | | Model | Qwen3.8-Flash-Next GSQ-RCO IQ3_S, two shards 54.82 + 28.80 GB; vision `mmproj-Qwen3.8-Flash-Next-BF16.gguf` on CPU | | Config | `--max-context 204800 --kv k8v4 --vision --gpus 0,1 --layer-split auto --spec 4 --spec-min-p 0.5 --prefill auto --expert-cache auto --vram-reserve-mib 700 --vram-reserve-later-mib 1006` | | MTP | draft layer reused from an earlier install under `Strata-data/mtp/rt`; `tools/mtp_fetch.py verify` rc=0 | Setup command: `./setup.sh --yes --backend hip --gpus 0,1 --family qwen --model IQ3_S --vision cpu --no-start`, then the 200K / `k8v4` choices. Note: setup's step-2 summary prints `KV cache: 4-bit (Hadamard-rotated)` for any non-int8 choice (`setup.py:6581`); the written config is `--kv k8v4` (K 8-bit, V 4-bit). Wording only. #### What worked - **Build:** the documented `-DSTRATA_HIP_GFX906=ON -DCMAKE_HIP_ARCHITECTURES=gfx906` path, with the compat layer, built the engine and the CPU vision encoder. Build time ~15 min at `-j18`. The 4-file diff is in the gist below; the CMake + cublas hunks are the same set posted in #2459, and #3172 tracks the same blockers. - **KV parity on the cards:** `kv_hybrid_parity` **ALL PASS** (k8v4 appends/gathers, 0 bad of 786,432/24,576; mode-3 batched attention 7.82e-08 vs the dequant reference), `kv_stream_parity` k8v4 ring 0 failures, `kv_window_parity` 0 bad/0 stale, `kv_steps_parity` 120/120, `kv_q8_parity` OK. - **End-to-end:** setup (patched) → engine → download → pack → start script; server `/health` ready; text `17*23?` → `391`; vision (64×64 red PNG) → `Red`; images on. The docs' gfx906 section lists images (`--vision`) as not done — this run verifies the CPU encoder path on Radeon Pro VII. - **Start:** ~75–90 s to ready; 46.84 GiB of experts into RAM at 1.51 GiB/s; expert cache 5,724 slots (10.30 GiB) and, on CUDA1, 4,180 slots (8.42 GiB); 586 MiB / 768 MiB free after load. - **200K config:** `k8v4` at 204,800 costs ~2.2 GB and stays in VRAM. KV streaming is off: it needs ~2.2 GB beside the ~62 GB of experts on a 63 GB machine. No KV-related errors. - **Long sessions:** several chats with 23K–35K-token prompts and 22K–42K-token outputs; decode held 43.8–51.6 tok/s (table below). The requests completed; the only warnings were the VRAM notes. - **Downloads / MTP:** 86 `download interrupted` retry lines across 13 setup attempts (mostly DNS, 12 read timeouts) on a flaky link; every resume continued from `.part`, zero corruption. MTP verify passed. #### What did not work / known issues **Known / already tracked** 1. **`setup.py` refuses gfx906 at step 1** — documented as "Setup does not build it yet", but the failure also makes the ~84 GB download and pack preparation unreachable through setup. Exact first-run output (before the local patch): ``` Your AMD GPUs: GPU 0: AMD Radeon (gfx906), 16 GB VRAM - cannot be used [!] AMD GPU 0 (AMD Radeon (gfx906)) cannot be used: not supported - [...] this is gfx906 Setup stopped. Fix the item above and run it again - everything already done is kept and skipped. ``` My local `setup.py` change adds gfx906 to `AMD_ARCHS`/`AMD_NAMES` and passes the gfx906 flags (including `-DSTRATA_ENABLE_HIP=OFF`). I am **not** proposing it as the default (the docs say manual build); a **download-only** path, or clearer by-hand download instructions, would remove the dead end. This is the main friction I hit. 2. **Build blockers on 0.1.45** (reproduced locally; exact messages in `build-errors.txt` in the gist): - missing `cublasSgemm`, `cublasSgemmStridedBatched`, `cublasGemmStridedBatchedEx` aliases in `platform/hip_compat/cublas_v2.h` (qwen35 `q36_engine.cu`); - `strata_mmq_w4a4` compiled without `GGML_USE_HIP` → `cuda.h` not found; - `f16kq::*` undefined at link — missing `src/prefill/moe_f16_kq.cu` in `strata_mmq` under `STRATA_HIP_GFX906`; - GCC 16 `<format>` vs HIP's `__noinline__` macro (fix: `#undef __noinline__` in the gfx906 compat header); - stale `build-hip` cache with `STRATA_ENABLE_HIP=ON` + `STRATA_HIP_GFX906=ON` → "enable only one"; pass `-DSTRATA_ENABLE_HIP=OFF` or use a fresh build directory. These are in **#3172** (open; confirmed on 0.2.0-beta) and were reported in **#2459** (closed by the tracker reset). I am adding the end-to-end result, not a new build bug. **Rough edges found here** 3. **VRAM is tight at request start.** The first start (only `--vram-reserve-mib 700`) logged `CUDA1: 462 MiB ... LOW`; adding `--vram-reserve-later-mib 1006` removed it (768 MiB free after load). One later request still logged: ``` WARNING: only 493 MiB of VRAM free at the start of this request (below 512 MiB) ... Add --vram-reserve-mib 768 ... ``` The following long requests still ran at 44–52 tok/s, but if the driver starts paging, `--vram-reserve-mib 768` (or 1024) is the engine's own suggestion. The desktop here is on CUDA1; `--vram-reserve-later-mib 1006` is what fixed the CUDA1 window-capture warning. 4. **`qsa_prompt_attn mode 3` refuses on HIP** and the older kernel runs; output is correct, but if mode 3 is expected to work on gfx906 this is masking it. (Observed in the parity tests; not a correctness failure.) 5. **No hipBLASLt tuning table for gfx906** (hipBLASLt 100202): setup says the prompt's dense GEMMs use plain hipBLAS. Expected for this arch, but it is a prompt-speed opportunity. 6. **Network:** the only reason setup needed 13 attempts; not a Strata issue, but the log is full of it. #### CPU usage: ~50% (18 of 36 threads) `top` peaks around 50% on this 18C/36T Xeon. The engine log says: ``` strata generate: 17 pool workers on logical processors 1,...,17, the host thread on 0 (--host-core first) strata aux cpus: ... CPUs 18 (off at start; a request's aux_cpus=1 turns it on) ``` So it uses one logical CPU per physical core (17 workers + host = 18 threads) and leaves the 18 SMT siblings alone. `docs/AMD_HIP.md` (gfx1030 report) says the default is one worker per physical core and that using all logical CPUs was slower there (27 vs 38–42 tok/s); `docs/DETAILS.md:557` documents `--pool-workers`. I think this is expected, not a bug. If a sweep on Haswell-EP would be useful, I can run `--pool-workers 8/17/24/35` with a fixed prompt, but I have not done it. #### Not tested - **0.2.0-beta** (`3d1fb480`): not run; #3172 says the gfx906 build still fails there. This report is v0.1.45 only. - Full 200K prompt / needle tests; KV streaming on; concurrent requests; a 12 h soak; a formal 3-run benchmark or `tools/strata_bench.py`; vision accuracy/speed beyond one image; CUDA/SYCL builds; Windows; a fresh MTP download. - I did not run the CUDA build. My CMake changes are inside `STRATA_HIP_GFX906`, and the cublas/`__noinline__` changes are in the gfx906 compat headers, but I cannot claim the other backends from this machine. #### Logs Sanitized files in one secret gist (link-only, not indexed): `setup-evidence.log` (curated; the full setup log is 1,193 lines), `engine-session-evidence.log`, `build-errors.txt`, `strata-gfx906-fixes.patch`, `config-iq3_s-sanitized.json` — https://gist.github.com/Marczellito/9e9324702246fe9f1acfb0306e868c9e. Local paths are shortened to `~`; no API keys, passwords, emails, or hostnames. Full logs on request. ### Results (optional) From `strata-iq3_s.log` after the 1006 restart. These are engine-reported averages from one continuous session, **not** the 3-run benchmark protocol. "Prompt read" is the newly read part; the reused prefix is excluded, so the prompt speed is the speed of that read, not of the whole context. | prompt tokens (reused + new) | prompt speed | generated | decode | drafts accepted | cache hit | end context | |---|---|---|---|---|---|---| | 23,133 (81 + 23,052) | 590.3 tok/s | 41,406 | 51.6 tok/s | 25,704 / 33,271 | 97.4% | ~64.5K | | 31,231 (23,128 + 8,103) | 403.8 tok/s | 33,051 | 43.8 tok/s | 17,267 / 27,890 | 97.2% | ~64.3K | | 32,910 (31,226 + 1,684) | 295.7 tok/s | 42,604 | 50.3 tok/s | 27,297 / 38,890 | 96.9% | ~75.5K | | 34,916 (32,905 + 2,011) | 312.2 tok/s | 22,758 | 50.4 tok/s | 14,153 / 17,521 | 94.4% | ~57.7K | | 500 (56 + 444) | 157.5 tok/s | 2,829 | 48.2 tok/s | 1,638 / 2,453 | 94.5% | — | - First request after start: 50 tokens at **12.9 tok/s** (graph capture), then 50.3 tok/s on the next one. Do not judge from the first request. - Tiny prompts (61–86 tokens) read at 46–76 tok/s; short prompts are fixed-overhead bound, as the docs say. - The 200K limit was **configured**, but the largest verified request ended at ~75.5K total tokens; I did not fill 200K. Anyone reading "200K" as tested should know this. - My earlier "45–70 tok/s" was from the chat UI; the engine's sustained averages are 44–52 tok/s. The 70 figure was a short burst.
Author
Owner

@Niko1221 commented on GitHub (Oct 20, 2026):

Thank you for the long report. The three build blockers are fixed in 0.2.1 (see #3172): the cublas names (the Qwen3.6 engine is not built for gfx906), the W4A4 target's missing GGML_USE_HIP, and the f16kq and trellis-overlay link errors. Your other questions: the 17 workers are expected, one per physical core is the default and a count above it usually costs decode (docs/DETAILS.md, --pool-workers; a sweep on your Haswell-EP is welcome, and there is a note there about the two-socket cases). Download-only for gfx906 is a fair ask: setup refuses the card at its first check, so for now the model has to be fetched and prepared by hand; I did not change that here. Also the KV wording (setup prints "4-bit (Hadamard-rotated)" for k8v4) is noted.

This is in Strata 0.2.1: https://github.com/Niko1221/Strata/releases/tag/v0.2.1

<!-- gh-comment-id:6286736570 --> @Niko1221 commented on GitHub (Oct 20, 2026): Thank you for the long report. The three build blockers are fixed in 0.2.1 (see #3172): the cublas names (the Qwen3.6 engine is not built for gfx906), the W4A4 target's missing GGML_USE_HIP, and the f16kq and trellis-overlay link errors. Your other questions: the 17 workers are expected, one per physical core is the default and a count above it usually costs decode (docs/DETAILS.md, --pool-workers; a sweep on your Haswell-EP is welcome, and there is a note there about the two-socket cases). Download-only for gfx906 is a fair ask: setup refuses the card at its first check, so for now the model has to be fetched and prepared by hand; I did not change that here. Also the KV wording (setup prints "4-bit (Hadamard-rotated)" for k8v4) is noted. This is in Strata 0.2.1: https://github.com/Niko1221/Strata/releases/tag/v0.2.1
Author
Owner

@Marczellito commented on GitHub (Oct 20, 2026):

Sweep done — here are the numbers, and the answer to the 50 % CPU question in the report.

Box (nothing updated): Xeon E5-2696 v3, 18 physical cores / 36 logical, one socket, one NUMA node, AVX2 (no AVX-512), 64 GB DDR4-2133 ECC; 2x Radeon Pro VII 16 GB (gfx906), layer split over both, PCIe 3.0 x16 at 13.8 GB/s; CachyOS, kernel 7.2.3-1-cachyos, ROCm 7.2.4. Strata v0.1.45 source (commit 477ac13c), engine 0.1.45, the installed local gfx906 build; I did not update or modify the checkout — the config was copied to a scratch file and the installed engine and server were used. Model Qwen3.8-Flash-Next GSQ-RCO IQ3_S, 200K, --kv k8v4, --spec 4 --spec-min-p 0.5, --prefill auto --expert-cache auto, MTP draft layer, everything else as in the config file.

Method: one fresh server per value (the pool is built at start), 3 servers per value, 3 measured requests each = 9 samples per value; the same fresh ~3,983-token prompt every time (the bench's word-list prompt with a unique tag, so the conversation cache never helps) and 512 new tokens, temperature 0, thinking off; one discarded warm-up request per server. Decode tok/s is the engine's own predicted_per_second. The default (17) was measured again at the end of the run as a drift control.

workers samples decode tok/s (mean ± se) median min–max prompt tok/s engine CPU s / request cores busy in a decode % of 36
8 9 48.24 ± 0.74 (+1.8 %) 47.7 45.9–53.8 394.0 123 8.6 24 %
12 9 47.81 ± 0.34 (+0.9 %) 48.0 45.6–48.8 394.9 161 13.9 39 %
17 (default) 9 47.38 ± 1.52 47.0 38.1–55.5 395.8 213 14.9 41 %
17 (control, re-run at the end) 9 45.82 ± 1.26 (−3.3 %) 46.4 38.8–49.8 395.0 214 14.9 41 %
18 9 46.40 ± 1.48 (−2.1 %) 48.0 35.8–49.9 394.7 220 18.0 50 %
24 9 46.51 ± 0.45 (−1.8 %) 46.5 44.6–48.5 394.0 286 25.8 72 %
35 9 38.93 ± 1.62 (−17.8 %) 40.1 30.4–44.5 391.5 441 32.3 90 %

What it says

  1. From 8 to 24 workers there is no difference I can measure. 46.4–48.2 tok/s (mean), and every pairwise Welch t against the default is inside the noise (t = −1.34 vs 8, −1.17 vs 12, +0.11 vs 18, +0.08 vs 24). The default of 17 is not the fastest here, but nothing else is faster either. Prompt speed did not move (391–396 tok/s in every arm).
  2. 35 workers (every logical CPU) is clearly slower: 38.9 tok/s mean, −17.8 %, the worst run 30.4. The engine pins only as many workers as it has physical cores — the log says 35 pool workers on logical processors 1,2,…,17 — so the extra 18 run unpinned on the same cores. That is the "a worker without a core of its own takes time from the others" case of your note, and the window grows with it: 56.45 ms per decode window against 47.43 ms at 17 workers (+19 %). Two parts of it: the CPU's own expert part goes from 1.97 to 3.20 ms per window (+62 %), and the host's wait for the GPU goes from 18.2 to 22.5 ms — the unpinned workers take CPU from the host thread too.
  3. Why the curve is so flat here: the pool has almost nothing to do on this box. The engine's own per-window numbers at the default give 25.69 VRAM hits per layer-window against 0.57 CPU entries and 0.06 over PCIe — 97.6 % of the routed experts are already in the two cards' caches — and the CPU expert run is 1.97 ms of a 47.4 ms window (the GPU-reach wait, 18.2 ms, is the largest single term). Two 16 GB cards hold the hot expert set, so the decode is GPU-bound and the worker count has little to work on. On a box where the CPU computes a real share of the experts, expect a steeper curve than this one.
  4. The CPU cost is real, though, and it is the 50 %. The workers spin while they wait, so the engine's own CPU time grows almost linearly with the count: 123 CPU-s per request at 8 workers, 213 at 17, 441 at 35. During a decode phase the process holds 8.6 / 13.9 / 14.9 / 18.0 / 25.8 / 32.3 of the 36 logical CPUs. So the default's 17 workers put 12–19 of the 36 logical CPUs at 100 % (median 15, 41 %) — the "18 of 36" my top showed — while the real expert work is only 1.97 ms of every 47 ms window: most of those busy cores are the pool waiting, not working. Fewer workers cost nothing measurable in decode speed here and leave the box idle for other work.
  5. On the two-socket note: this box is single-socket (one package, one NUMA node), so it is the one-socket case only — the default is the whole CPU here, and there is no second socket to spread onto. The part that does transfer is the "above the core count" rule: 35 workers on 36 logical CPUs cost 18 % even with nothing for the pool to do, and the same mechanism (workers without a core of their own) is what your note and #3201 describe for the second socket.

Cross-reference: #3417's "Work" profile writes --pool-workers 12 on an 8-core box. On this box 8 and 12 workers measured the same as the default (48.2 / 47.8 vs 47.4 tok/s), so the count that hurts is the one above the physical core count, not the one below it — the report's point, measured on a different CPU and a different card pair.

Not tested: the 0.2.1 engine (this ran the installed 0.1.45 gfx906 build, since #3172's blockers were fixed after this install); a two-socket box; other models, quantizations, context sizes, cards, backends or Windows; a long-context session (the workload is a ~4K prompt and a 512-token decode, so the CPU share of a decode is smaller here than in the long chat of the report). The X server had a display on the same cards during the run. The arms ran in a fixed order (8 → 35) and the control arm covers the drift: 45.8 against 47.4 tok/s (means), −3.3 %, inside the ±1.3–1.5 tok/s standard errors.

Raw data, the harness and the tables: https://gist.github.com/Marczellito/3825f6233d3cd739f762dd374dfee664

<!-- gh-comment-id:6297897795 --> @Marczellito commented on GitHub (Oct 20, 2026): Sweep done — here are the numbers, and the answer to the 50 % CPU question in the report. **Box (nothing updated):** Xeon E5-2696 v3, 18 physical cores / 36 logical, **one** socket, one NUMA node, AVX2 (no AVX-512), 64 GB DDR4-2133 ECC; 2x Radeon Pro VII 16 GB (gfx906), layer split over both, PCIe 3.0 x16 at 13.8 GB/s; CachyOS, kernel 7.2.3-1-cachyos, ROCm 7.2.4. Strata **v0.1.45** source (commit `477ac13c`), engine 0.1.45, the installed local gfx906 build; I did not update or modify the checkout — the config was copied to a scratch file and the installed engine and server were used. Model Qwen3.8-Flash-Next GSQ-RCO IQ3_S, 200K, `--kv k8v4`, `--spec 4 --spec-min-p 0.5`, `--prefill auto --expert-cache auto`, MTP draft layer, everything else as in the config file. **Method:** one fresh server per value (the pool is built at start), 3 servers per value, 3 measured requests each = 9 samples per value; the same fresh ~3,983-token prompt every time (the bench's word-list prompt with a unique tag, so the conversation cache never helps) and 512 new tokens, temperature 0, thinking off; one discarded warm-up request per server. Decode tok/s is the engine's own `predicted_per_second`. The default (17) was measured again at the end of the run as a drift control. | workers | samples | decode tok/s (mean ± se) | median | min–max | prompt tok/s | engine CPU s / request | cores busy in a decode | % of 36 | |---|---|---|---|---|---|---|---|---| | 8 | 9 | 48.24 ± 0.74 (+1.8 %) | 47.7 | 45.9–53.8 | 394.0 | 123 | 8.6 | 24 % | | 12 | 9 | 47.81 ± 0.34 (+0.9 %) | 48.0 | 45.6–48.8 | 394.9 | 161 | 13.9 | 39 % | | **17 (default)** | 9 | 47.38 ± 1.52 | 47.0 | 38.1–55.5 | 395.8 | 213 | 14.9 | 41 % | | 17 (control, re-run at the end) | 9 | 45.82 ± 1.26 (−3.3 %) | 46.4 | 38.8–49.8 | 395.0 | 214 | 14.9 | 41 % | | 18 | 9 | 46.40 ± 1.48 (−2.1 %) | 48.0 | 35.8–49.9 | 394.7 | 220 | 18.0 | 50 % | | 24 | 9 | 46.51 ± 0.45 (−1.8 %) | 46.5 | 44.6–48.5 | 394.0 | 286 | 25.8 | 72 % | | 35 | 9 | 38.93 ± 1.62 (**−17.8 %**) | 40.1 | 30.4–44.5 | 391.5 | 441 | 32.3 | 90 % | **What it says** 1. **From 8 to 24 workers there is no difference I can measure.** 46.4–48.2 tok/s (mean), and every pairwise Welch t against the default is inside the noise (t = −1.34 vs 8, −1.17 vs 12, +0.11 vs 18, +0.08 vs 24). The default of 17 is not the fastest here, but nothing else is faster either. Prompt speed did not move (391–396 tok/s in every arm). 2. **35 workers (every logical CPU) is clearly slower**: 38.9 tok/s mean, −17.8 %, the worst run 30.4. The engine pins only as many workers as it has physical cores — the log says `35 pool workers on logical processors 1,2,…,17` — so the extra 18 run unpinned on the same cores. That is the "a worker without a core of its own takes time from the others" case of your note, and the window grows with it: 56.45 ms per decode window against 47.43 ms at 17 workers (+19 %). Two parts of it: the CPU's own expert part goes from 1.97 to 3.20 ms per window (+62 %), and the host's wait for the GPU goes from 18.2 to 22.5 ms — the unpinned workers take CPU from the host thread too. 3. **Why the curve is so flat here: the pool has almost nothing to do on this box.** The engine's own per-window numbers at the default give 25.69 VRAM hits per layer-window against 0.57 CPU entries and 0.06 over PCIe — 97.6 % of the routed experts are already in the two cards' caches — and the CPU expert run is 1.97 ms of a 47.4 ms window (the GPU-reach wait, 18.2 ms, is the largest single term). Two 16 GB cards hold the hot expert set, so the decode is GPU-bound and the worker count has little to work on. On a box where the CPU computes a real share of the experts, expect a steeper curve than this one. 4. **The CPU cost is real, though, and it is the 50 %.** The workers spin while they wait, so the engine's own CPU time grows almost linearly with the count: 123 CPU-s per request at 8 workers, 213 at 17, 441 at 35. During a decode phase the process holds 8.6 / 13.9 / 14.9 / 18.0 / 25.8 / 32.3 of the 36 logical CPUs. So the default's 17 workers put 12–19 of the 36 logical CPUs at 100 % (median 15, 41 %) — the "18 of 36" my `top` showed — while the real expert work is only 1.97 ms of every 47 ms window: most of those busy cores are the pool waiting, not working. Fewer workers cost nothing measurable in decode speed here and leave the box idle for other work. 5. **On the two-socket note:** this box is single-socket (one package, one NUMA node), so it is the one-socket case only — the default is the whole CPU here, and there is no second socket to spread onto. The part that does transfer is the "above the core count" rule: 35 workers on 36 logical CPUs cost 18 % even with nothing for the pool to do, and the same mechanism (workers without a core of their own) is what your note and #3201 describe for the second socket. **Cross-reference:** #3417's "Work" profile writes `--pool-workers 12` on an 8-core box. On this box 8 and 12 workers measured the same as the default (48.2 / 47.8 vs 47.4 tok/s), so the count that hurts is the one **above** the physical core count, not the one below it — the report's point, measured on a different CPU and a different card pair. **Not tested:** the 0.2.1 engine (this ran the installed 0.1.45 gfx906 build, since #3172's blockers were fixed after this install); a two-socket box; other models, quantizations, context sizes, cards, backends or Windows; a long-context session (the workload is a ~4K prompt and a 512-token decode, so the CPU share of a decode is smaller here than in the long chat of the report). The X server had a display on the same cards during the run. The arms ran in a fixed order (8 → 35) and the control arm covers the drift: 45.8 against 47.4 tok/s (means), −3.3 %, inside the ±1.3–1.5 tok/s standard errors. Raw data, the harness and the tables: https://gist.github.com/Marczellito/3825f6233d3cd739f762dd374dfee664
Author
Owner

@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.

<!-- gh-comment-id:6383463882 --> @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.
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#1324
No description provided.