okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
53623e56f
main
Community benchmark: RTX 5090 Laptop, Core Ultra 9 275HX, 188 GB RAM — Unsloth UD-IQ4_XS (first NVIDIA measurement)
Measured on 2026-10-06/07 on a laptop called s18. This tests Strata 0.1.40 (commit
1735d64) with Unsloth UD-IQ4_XS (unsloth/Qwen3.8-Flash-Next-GGUF, revision 38bb39e),
one GPU, 262,144-token context. Per docs/UNSLOTH_Q4.md this pack had "not been measured on
NVIDIA yet"; this is a first data point.
Headline: 22–33 tok/s decode on the Chinese greedy prompt (cold starts at the low end; see the raw lines), versus 53–59 tok/s for IQ3_S on the same machine and settings — the ~4-bit pack is about 2x slower here, and the decode-time breakdown says the GPU itself is the bottleneck (its Q8_0 dense side and larger expert blobs), not the CPU expert pool, not PCIe, and not RAM residency.
Hardware and software
- NVIDIA GeForce RTX 5090 Laptop GPU; 24,463 MiB VRAM; PCIe Gen 5, x16. Driver 595.91.07.
- Intel Core Ultra 9 275HX: 24 cores (8 P + 16 E, no HT). The engine picks AVX2 (no AVX-512).
- 192 GB RAM installed; 188 GiB usable. NVMe SSDs (the GGUFs on one, the OS on another).
- Ubuntu 24.04.5 LTS, kernel 7.0.0-38-generic; CUDA 13.3 toolkit; locally compiled engine
(
CMAKE_CUDA_ARCHITECTURES=120). Strata commit1735d64, engine 0.1.40.
Model and configuration
Three shards, 93.7 GB, all SHA-256-verified against the table in docs/UNSLOTH_Q4.md
(5ce89370…, 577a38a2…, d4634e6d…). The installer prepared the pack with --compat-bf16
and reused the shared MTP draft layer with the CJK draft vocabulary (106,299 ids, 212.9 MiB
draft head). Launch configuration: strata-unsloth-ud-iq4_xs.json.
- Context 262,144; INT8 KV; 32,768 KV cells per QSA layer resident on GPU.
- Expert cache
auto: 6,030 slots, 13.59 GiB VRAM (IQ3_S on the same box: 8,000 slots, 15.17 GiB). --resident-budget-gib 55: 41.84 GiB of experts pinned in RAM (every expert the GPU cache does not hold); adaptive swaps exchange them with the VRAM tier.--pool-workers 15chosen by setup for this hybrid CPU (8P+16E).- As installed:
--spec 4 --spec-min-p 0.5, no--pcie-frac. After the sweep below I set--pcie-frac 0.55 --spec-min-p 0.70by hand.
Startup layout (from bench.log):
expert cache 6030 slots, 13.59 GiB of VRAM resident RAM mode: 41.84 GiB of experts in RAM (page-locked), 6030 in the GPU cache mtp: draft head over 106299 tokens (212.9 MiB) 213 MiB of VRAM free with everything loaded - LOW: requests may stall
Workload
OpenAI chat requests against the local server, one at a time, reasoning default (high),
max_tokens=512. Two prompt types, several runs each after a warm-up run (the first request
after every server start is ~20% slower here):
- Chinese prose: "请用中文写一份关于上海城市发展的详细介绍,分五个部分展开,每部分至少一百五十字。" (temperature 1.0, and greedy runs of the same prompt)
- English code: "Write a Python module implementing a red-black tree with insert, delete and search, with detailed comments explaining each step." (temperature 1.0)
All tok/s figures are the engine's own strata serve: prompt … log lines, decode only
(prefill reported separately there). Raw lines in bench.log.
Results
As installed (--spec-min-p 0.5, no --pcie-frac):
| Run | Decode tok/s | Drafts accepted |
|---|---|---|
| Chinese, temp 1.0 | 29.6 | 241/423 (57%) |
| English code, temp 1.0 | 21.3 | 287/406 (71%) |
| Chinese, greedy (warm 1) | 21.6 | 251/414 |
| Chinese, greedy (warm 2) | 28.1 | 234/424 |
Calibration sweep (./setup.sh --calibrate, engine 0.1.40, this pack):
| PCIe share | tok/s | draft floor | tok/s | |
|---|---|---|---|---|
| 0.00 | 26.6 | 0.30 | 23.3 | |
| 0.20 | 27.6 | 0.50 | 26.4 | |
| 0.25 | 25.1 | 0.70 | 27.3 | |
| 0.35 | 27.5 | |||
| 0.55 | 28.2 | |||
| 0.75 | 21.9 |
With --pcie-frac 0.55 --spec-min-p 0.70 applied, warm greedy runs of the Chinese prompt:
27.0, 28.8, 33.0 tok/s.
Decode-time breakdown (STRATA_DECODE_TIMING=1, warm run at 33.0 tok/s):
291 windows, 1.76 tokens/window, 53.39 ms/window = verify 36.85 (GPU-reach wait 27.02 + per-layer host 8.30 [CPU experts 7.17] + stage 0.21) + commit/emit 0.06 + draft 4.10; per layer-window: CPU experts 1.16, VRAM hits 18.68, PCIe 0.81
i.e. most of the window is spent waiting on the GPU (27 ms of 53 ms), while the CPU expert pool contributes ~7 ms and PCIe expert copies ~0.8 ms per layer-window. That points at the pack's larger GPU-side work (Q8_0 dense projections, IQ4_NL/IQ3_S experts) rather than at expert delivery.
IQ3_S measured on the same machine for contrast (same protocol, calibrated settings
--pcie-frac 0.35 --spec-min-p 0.70 --pool-workers 15): 53.1–59.1 tok/s warm on the same
two prompts, 8,000 VRAM expert slots, ~1.6 GiB VRAM free.
Issues and notes worth acting on
-
--calibrateaborted mid-sweep on this configuration. During the "23 CPU workers" restart the MTP draft head no longer fit VRAM (212.9 MiB needed, ~213–274 MiB free), so the whole tuning run failed and kept defaults:strata mtp: the draft head over 106299 tokens needs 213 MiB of VRAM and 274 MiB is free. strata serve: mtp: the draft head does not fit): the default settings stay
Workaround: apply the sweep winners by hand (they are printed before the failure), or start once with a smaller
--draft-vocaband re-run calibration. It may be worth making the sweep treat a non-fitting restart as "this setting loses" instead of failing the run. -
STRATA_EXCHANGE_ROTATE=1is unavailable for this pack ("requires equal-size expert blocks and a fully mapped/pinned RAM complement" — the blocks are IQ3_S/IQ4_NL mixes), so swaps keep the host copy path. Fine, just noted since the doc says rotation helps swap churn; something to know for mixed-format packs. -
213 MiB of VRAM free with everything loaded (262K context, CJK draft head). The engine warns requests may stall and suggests
--vram-reserve-mib ~999or a smaller context. I did not hit an actual stall in ~30 short requests, but agentic long-context use has little headroom; on 24 GB cards the 262K context + CJK draft vocab combination leaves almost nothing. -
Adaptive swap counts grow during use (5,369 → 20,938 exchanges over four requests), and decode warms up over the first requests (21.6 → 28.1 → 33.0 tok/s in consecutive runs). Short-lived servers will sit at the low end of the range above.
-
Quality side: on a small 12-item suite (math, logic, code execution, Chinese knowledge, instruction following, a long-context needle), UD-IQ4_XS passed 12/12, indistinguishable from IQ3_S at that difficulty — the speed/quality trade here is about capability on hard long-horizon work, which this report does not measure.
Reproduce
./setup.sh --setup --family unsloth--model UD-IQ4_XS--yes --no-start --context 262144--kv int8# start script: run-unsloth-ud-iq4_xs.sh (config strata-unsloth-ud-iq4_xs.json) # bench: POST /v1/chat/completions, the two prompts above, max_tokens 512; # read decode tok/s from strata-unsloth-ud-iq4_xs.log ("strata serve: prompt ...")
Trial logs: bench.log (startup + bench lines + decode timing), config: strata-unsloth-ud-iq4_xs.json.
1# Community benchmark: RTX 5090 Laptop, Core Ultra 9 275HX, 188 GB RAM — Unsloth UD-IQ4_XS (first NVIDIA measurement) 2 3Measured on 2026-10-06/07 on a laptop called s18. This tests Strata 0.1.40 (commit 4`1735d64`) with **Unsloth UD-IQ4_XS** (`unsloth/Qwen3.8-Flash-Next-GGUF`, revision `38bb39e`), 5one GPU, 262,144-token context. Per docs/UNSLOTH_Q4.md this pack had "not been measured on 6NVIDIA yet"; this is a first data point. 7 8**Headline:** 22–33 tok/s decode on the Chinese greedy prompt (cold starts at the low end; 9see the raw lines), versus 53–59 tok/s for IQ3_S on the same machine and settings — the 10~4-bit pack is about **2x slower** here, and the decode-time 11breakdown says the GPU itself is the bottleneck (its Q8_0 dense side and larger expert blobs), 12not the CPU expert pool, not PCIe, and not RAM residency. 13 14## Hardware and software 15 16- NVIDIA GeForce RTX 5090 Laptop GPU; 24,463 MiB VRAM; PCIe Gen 5, x16. Driver 595.91.07. 17- Intel Core Ultra 9 275HX: 24 cores (8 P + 16 E, no HT). The engine picks AVX2 (no AVX-512). 18- 192 GB RAM installed; 188 GiB usable. NVMe SSDs (the GGUFs on one, the OS on another). 19- Ubuntu 24.04.5 LTS, kernel 7.0.0-38-generic; CUDA 13.3 toolkit; locally compiled engine 20(`CMAKE_CUDA_ARCHITECTURES=120`). Strata commit `1735d64`, engine 0.1.40. 21 22 ## Model and configuration 23 24Three shards, 93.7 GB, all SHA-256-verified against the table in docs/UNSLOTH_Q4.md 25(`5ce89370…`, `577a38a2…`, `d4634e6d…`). The installer prepared the pack with `--compat-bf16` 26and reused the shared MTP draft layer with the CJK draft vocabulary (106,299 ids, 212.9 MiB 27draft head). Launch configuration: [strata-unsloth-ud-iq4_xs.json](strata-unsloth-ud-iq4_xs.json). 28 29- Context 262,144; INT8 KV; 32,768 KV cells per QSA layer resident on GPU. 30- Expert cache `auto`: 6,030 slots, 13.59 GiB VRAM (IQ3_S on the same box: 8,000 slots, 15.17 GiB). 31- `--resident-budget-gib 55`: 41.84 GiB of experts pinned in RAM (every expert the GPU cache 32does not hold); adaptive swaps exchange them with the VRAM tier. 33- `--pool-workers 15` chosen by setup for this hybrid CPU (8P+16E). 34- As installed: `--spec 4 --spec-min-p 0.5`, no `--pcie-frac`. After the sweep below I set 35`--pcie-frac 0.55 --spec-min-p 0.70` by hand. 36 37Startup layout (from [bench.log](bench.log)): 38 39``` 40expert cache 6030 slots, 13.59 GiB of VRAM 41resident RAM mode: 41.84 GiB of experts in RAM (page-locked), 6030 in the GPU cache 42mtp: draft head over 106299 tokens (212.9 MiB) 43213 MiB of VRAM free with everything loaded - LOW: requests may stall 44``` 45 46## Workload 47 48OpenAI chat requests against the local server, one at a time, reasoning default (high), 49`max_tokens=512`. Two prompt types, several runs each after a warm-up run (the first request 50after every server start is ~20% slower here): 51 52- Chinese prose: "请用中文写一份关于上海城市发展的详细介绍,分五个部分展开,每部分至少一百五十字。" (temperature 1.0, and greedy runs of the same prompt) 53- English code: "Write a Python module implementing a red-black tree with insert, delete and search, with detailed comments explaining each step." (temperature 1.0) 54 55All tok/s figures are the engine's own `strata serve: prompt …` log lines, decode only 56(prefill reported separately there). Raw lines in [bench.log](bench.log). 57 58## Results 59 60As installed (`--spec-min-p 0.5`, no `--pcie-frac`): 61 62| Run | Decode tok/s | Drafts accepted | 63| --- | --- | --- | 64| Chinese, temp 1.0 | 29.6 | 241/423 (57%) | 65| English code, temp 1.0 | 21.3 | 287/406 (71%) | 66| Chinese, greedy (warm 1) | 21.6 | 251/414 | 67| Chinese, greedy (warm 2) | 28.1 | 234/424 | 68 69Calibration sweep (`./setup.sh --calibrate`, engine 0.1.40, this pack): 70 71| PCIe share | tok/s | | draft floor | tok/s | 72| --- | --- | --- | --- | --- | 73| 0.00 | 26.6 | | 0.30 | 23.3 | 74| 0.20 | 27.6 | | 0.50 | 26.4 | 75| 0.25 | 25.1 | | 0.70 | 27.3 | 76| 0.35 | 27.5 | | | | 77| 0.55 | **28.2** | | | | 78| 0.75 | 21.9 | | | | 79 80With `--pcie-frac 0.55 --spec-min-p 0.70` applied, warm greedy runs of the Chinese prompt: 81**27.0, 28.8, 33.0 tok/s**. 82 83Decode-time breakdown (`STRATA_DECODE_TIMING=1`, warm run at 33.0 tok/s): 84 85``` 86291 windows, 1.76 tokens/window, 53.39 ms/window = 87verify 36.85 (GPU-reach wait 27.02 + per-layer host 8.30 [CPU experts 7.17] + stage 0.21) 88+ commit/emit 0.06 + draft 4.10; 89per layer-window: CPU experts 1.16, VRAM hits 18.68, PCIe 0.81 90``` 91 92i.e. most of the window is spent waiting on the GPU (27 ms of 53 ms), while the CPU expert 93pool contributes ~7 ms and PCIe expert copies ~0.8 ms per layer-window. That points at the 94pack's larger GPU-side work (Q8_0 dense projections, IQ4_NL/IQ3_S experts) rather than at 95expert delivery. 96 97IQ3_S measured on the same machine for contrast (same protocol, calibrated settings 98`--pcie-frac 0.35 --spec-min-p 0.70 --pool-workers 15`): 53.1–59.1 tok/s warm on the same 99two prompts, 8,000 VRAM expert slots, ~1.6 GiB VRAM free. 100 101## Issues and notes worth acting on 102 1031. **`--calibrate` aborted mid-sweep on this configuration.** During the "23 CPU workers" 104restart the MTP draft head no longer fit VRAM (212.9 MiB needed, ~213–274 MiB free), so the 105whole tuning run failed and kept defaults: 106 107``` 108strata mtp: the draft head over 106299 tokens needs 213 MiB of VRAM and 274 MiB is free. 109strata serve: mtp: the draft head does not fit): the default settings stay 110``` 111 112Workaround: apply the sweep winners by hand (they are printed before the failure), or 113start once with a smaller `--draft-vocab` and re-run calibration. It may be worth making 114the sweep treat a non-fitting restart as "this setting loses" instead of failing the run. 115 1162. **`STRATA_EXCHANGE_ROTATE=1` is unavailable for this pack** ("requires equal-size expert 117blocks and a fully mapped/pinned RAM complement" — the blocks are IQ3_S/IQ4_NL mixes), so 118swaps keep the host copy path. Fine, just noted since the doc says rotation helps swap 119churn; something to know for mixed-format packs. 120 1213. **213 MiB of VRAM free** with everything loaded (262K context, CJK draft head). The engine 122warns requests may stall and suggests `--vram-reserve-mib ~999` or a smaller context. I did 123not hit an actual stall in ~30 short requests, but agentic long-context use has little 124headroom; on 24 GB cards the 262K context + CJK draft vocab combination leaves almost 125nothing. 126 1274. **Adaptive swap counts grow during use** (5,369 → 20,938 exchanges over four requests), 128and decode warms up over the first requests (21.6 → 28.1 → 33.0 tok/s in consecutive 129runs). Short-lived servers will sit at the low end of the range above. 130 1315. Quality side: on a small 12-item suite (math, logic, code execution, Chinese knowledge, 132instruction following, a long-context needle), UD-IQ4_XS passed 12/12, indistinguishable 133from IQ3_S at that difficulty — the speed/quality trade here is about capability on hard 134long-horizon work, which this report does not measure. 135 136## Reproduce 137 138``` bash 139./setup.sh --setup --family unsloth --model UD-IQ4_XS --yes --no-start --context 262144 --kv int8 140# start script: run-unsloth-ud-iq4_xs.sh (config strata-unsloth-ud-iq4_xs.json) 141# bench: POST /v1/chat/completions, the two prompts above, max_tokens 512; 142# read decode tok/s from strata-unsloth-ud-iq4_xs.log ("strata serve: prompt ...") 143``` 144 145Trial logs: [bench.log](bench.log) (startup + bench lines + decode timing), config: 146[strata-unsloth-ud-iq4_xs.json](strata-unsloth-ud-iq4_xs.json).