okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

albedocmake: strata_kernels links strata_kernels_cpu (iq_kernels.cu reads the latent colscale table from expert_layout.cpp; strata-q36ref failed to link)a4af4df61

main
5 files

files

README.md11.6 KiB
TRIMMED.md503 B
check.py2.0 KiB
config-q4-512k-yarn-res-p.json983 B
pr783-raw.txt3.8 KiB

Community benchmark: RTX 4090 24 GB with 32 GB of system RAM, 512K context (IQ2_XS)

Measured on 2026-10-04 by T-Crypt on a Linux desktop. This tests Strata 0.1.39 with the original Flash-Next IQ2_XS on one RTX 4090 at a 524,288-token context - past the model's trained 262,144 - with --rope-scaling yarn --rope-scale 2, q4_0 KV streamed (--kv-resident 32768) and --resident-experts, on a box with 32 GB of RAM. 24 GB of VRAM plus 32 GB of system RAM, 56 GB of memory in total, is what the model is spread across: 17.02 GiB of experts in the GPU cache and 17.28 GiB page-locked in RAM, plus 3.38 GiB of streamed KV.

Headline: a 476,820-token prompt read in 135.5 s (3,411 tok/s) and decoded at 122.0 tok/s at depth, with recall at all four sizes tested. The number that decides whether this is usable is not the speed but the RAM floor: with the engine's default headroom the same run left 1.41 GiB of MemAvailable; with STRATA_RESIDENT_HEADROOM_GIB=6 it left 3.53 GiB and kept the speed. On a 32 GB box the headroom setting is the difference between a working 512K config and one that has to swap.

Hardware and software

Model and configuration

Model: ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF, IQ2_XS. The repository revision was not recorded. Files used: Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf (37 GB) and -00002-of-00002.gguf (27 GB), the native pack prepared with the repository's tools (34 GB experts.bin, 1.5 GB dense.bin), and the shipped data/expert-profile.bin (24,576 ranked pairs, built for 24,576 slots). MTP draft layer from the prepared mtp/rt.

Configuration (config-q4-512k-yarn-res-p.json):

--pack ~/Strata-data/packs/iq2_xs
  --native ~/Strata-data/models/IQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf
  --ple-gguf ~/Strata-data/models/IQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf
  --expert-profile data/expert-profile.bin --expert-cache auto --prefill auto
  --spec 4 --spec-min-p 0.5 --mtp ~/Strata-data/mtp/rt --resident-experts
  --max-context 524288 --kv q4_0 --kv-resident 32768
  --rope-scaling yarn --rope-scale 2

plus fit_max_tokens: true and reasoning_budget_tokens: 4096. Temperature 0, thinking off.

At start, from the engine log (engine-512k-2026-10-03.log, the same config on the 0.1.38-era engine) and from the 0.1.39 runs:

Load took 114 s (page-locking the experts from the SATA SSD).

Method

check.py (it imports the haystack and chat helpers from our ctx_sweep.py, which is not part of this repo), one run per size, no repeats, no warm-up, serial on the same loaded engine. For each of 32,000 / 120,000 / 240,000 and 480,000 target prompt tokens it builds a synthetic service-log haystack with one planted line in the middle, asks for the planted number (48-token cap), then sends a second request for a 200-word summary to measure decode at depth. Prompt throughput is the engine's own prompt_per_second on the recall request; decode at depth is predicted_per_second on the summary request. MemAvailable and swap sampled every second. Three short follow-up prompts after the 480K run check stability.

Two arms, each a fresh server start: STRATA_RESIDENT_HEADROOM_GIB=6 and the default 4. Not interleaved. The 0.1.38 baseline is the previous night's run on the same box and the same config, also not interleaved.

Results

Headroom 6, the deployed arm (results-headroom6.jsonl):

Target prompt tokensActual prompt tokensRead secondsPrefill tok/sDecode at depth tok/sRecallMin MemAvailable GiBMax swap GiB
32,00031,84112.92,486.1117.9yes3.711.41
120,000119,23332.33,709.4129.8yes3.642.27
240,000238,48060.43,696.9128.2yes3.532.38
480,000476,820135.53,411.1122.0yes3.532.50

The same harness on the default headroom 4 (results-headroom4.jsonl), and the 0.1.38 baseline for context:

Prompt tokens0.1.38 (baseline)0.1.39, headroom 40.1.39, headroom 6
31,84115.1 s / 2,133 / 112.98.5 s / 3,791 / 120.112.9 s / 2,486 / 117.9
119,23332.0 s / 3,748 / 131.030.2 s / 3,975 / 135.032.3 s / 3,709 / 129.8
238,48064.8 s / 3,444 / 121.859.1 s / 3,778 / 126.560.4 s / 3,697 / 128.2
476,820154.6 s / 2,990 / 111.3133.1 s / 3,473 / 121.6135.5 s / 3,411 / 122.0
Recall, all four sizesyesyesyes
Min MemAvailable / max swap (GiB)3.36 / 3.471.41 / 2.383.53 / 2.50

Read seconds / prefill tok/s / decode at depth tok/s.

The prefill finding (2026-10-03, same box)

The earlier sweep (sweep-2026-10-03.jsonl, engine 0.1.38-era fork) compared the same 512K config with --prefill auto:32768 against the default --prefill auto. auto:32768 cut long-prompt reading 2.7-3.4x on this box (238K: 1,336 vs 3,796 t/s; 512K at 119K: 1,073 vs 3,664). KV streaming itself cost nothing measurable. Upstream #669 measured the opposite (+21%) on a 5090 with 128 GB of RAM - the bigger chunk's buffers come out of a cache that is already short here: auto:32768 picks 16,384-token chunks and lends about 6,000 cache slots (8 GiB), and on 31 GB of RAM 2,292-3,974 of those lent experts are not kept in RAM and are re-read from the SSD per chunk. Default auto (8,192) lends about 3,200, all kept in RAM at 262K. So the sign of this effect is RAM-dependent, and on a 32 GB box the default is the right choice.

The 262K daily config

512K is a stretch on 32 GB of RAM, so the config left running day to day is the model's trained window: --max-context 262144 --kv q4_0 with fit_max_tokens: true. Measured on the same box (2026-10-03 sweep): 11,819 GPU expert slots, 21.26 GiB pinned, min MemAvailable 2.52 GiB, short decode 116.4 t/s, and 32K / 120K / 240K read at 3,985 / 4,006 / 3,767 t/s with decode at depth 103.3 / 115.7 / 112.6 t/s. Recall held at every size. q4_0 beat int8 at 262K on every axis measured here, and the 262K window costs little because QSA attends to about 2K selected positions however long the context is - decode at 240K deep is within 10% of 120K.

PR #783 on the same card (short context, 2026-10-04)

strata bench on the live 262K q4_0 config, base and #783 alternated twice each (pr783-raw.txt). Base = 0.1.39 + #700, the same build as above.

ShapeBase run 1Base run 2#783 run 1#783 run 2Mean delta
code138.5138.5141.9140.3+1.9%
reason155.3151.0158.6159.8+3.9%
agent134.1134.3141.8139.1+4.7%

Small but consistent across the alternation. Parity: 30/33 as run; qsa_topk_parity --selftest PASS; iq_parity 0 failures with fixtures; native_expert_parity --synthetic q4_K q5_1 has 2 failures on stock 0.1.39 too, so pre-existing and not #783. Short-context only - depth was not measured for #783.

Limits of this report

Files in this folder

check.py (the harness), results-headroom6.jsonl and results-headroom4.jsonl (per-run records), sweep-2026-10-03.jsonl (the 2026-10-03 context sweep, including the prefill comparison), config-q4-512k-yarn-res-p.json, engine-512k-2026-10-03.log, pr783-raw.txt.

The report was drafted with an AI assistant (Claude) from our measurements, and checked by me.