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
1 folder34 files

files

patches/
BUILD.json3.9 KiB
README.md13.3 KiB
TRIMMED.md1.9 KiB
benchmark_rpv.py7.5 KiB
engine-0.1.40.4.log22.4 KiB
engine-0.1.41.log19.6 KiB
initial-status-0.1.40.4-first-sweep.json1.1 KiB
initial-status-0.1.41.json1.1 KiB
initial-status.json1.1 KiB
model-sha256.txt317 B
monitor_rpv.py3.0 KiB
needles-0.1.41.json1011 B
needles.json1011 B
provenance.json2.9 KiB
raw-lspci-gpu.txt1.2 KiB
raw-power-vram.txt1.3 KiB
raw-rocminfo-gfx.txt458 B
raw-system.txt1.6 KiB
results-0.1.40.4-first-sweep.json19.9 KiB
results-0.1.41-first-sweep.json9.5 KiB
results-0.1.41.json19.5 KiB
results.json19.4 KiB
run-0.1.40.4-b.log7.3 KiB
run-0.1.40.4.log7.7 KiB
run-0.1.41-b.log7.3 KiB
run-0.1.41.log7.7 KiB
strata-iq2_xs-0.1.41.json1012 B
strata-iq2_xs.json1012 B
summary-0.1.40.4-first-sweep.json2.3 KiB
summary-0.1.41-first-sweep.json2.3 KiB
summary-0.1.41.json2.3 KiB
summary.json2.3 KiB
telemetry-0.1.41.jsonl720.0 KiB
telemetry.jsonl703.0 KiB

Community benchmark: AMD Radeon Pro VII 16 GB (gfx906), Xeon E5-2666 v3

Measured on 2026-10-09 by the machine's owner (host R7-SERVER), on Linux. This tests Strata 0.1.40.4 (mainline) and 0.1.41 (fb58e0d) with the original Flash-Next IQ2_XS, one GPU (the Radeon Pro VII — a 16 GB Vega 20 card of the same family as the MI50), at the 131,072-token context with KV streaming. The engine was built on the host with the distribution's own ROCm 6.2 instead of the community rocm-gfx906:7.14 image; see BUILD.json for the four host patches that needed.

Median decode throughput was 24.2 tok/s at 4,096 prompt tokens, 24.0 tok/s at 32,768 and 23.7 tok/s at 128,000 on 0.1.40.4 — it barely drops as the context grows. Prompt processing held 350 / 339 / 284 tok/s at those lengths. All nine speed requests processed their entire prompt: zero reused tokens. The 2026-10-04 MI50 32 GB report measured 36.0 / 34.0 / 33.5 tok/s decode and ~330 / 330 / 305 tok/s prompt on the same model: this 16 GB card decodes about a third slower, and reads prompts at the same speed or slightly faster.

The two runs are on different hosts (an i5-12400F against this Xeon E5-2666 v3) and different ROCm versions, so that pair is an orientation, not a controlled comparison; the decode gap is the part the expert-cache numbers in the Results section explain.

Hardware and software

Model and configuration

The original Flash-Next IQ2_XS at revision ed59f92082b1e93c0e96d60a8b11aab089b52f09 (the same quantization as the 2026-10-04 MI50 32 GB report, for direct comparison). Both shards' sha256 match the repository's published LFS oids — see model-sha256.txt and provenance.json.

The run configuration (strata-iq2_xs.json) carries the MI50 32 GB report's args array item for item, with only the paths and the server's host/port changed (api_key dropped, backend and gpu added): --prefill 2048 --max-context 131072 --kv int8 --kv-resident 32768 --spec 3 --spec-min-p 0.9 --vram-reserve-mib 1024, --expert-cache auto, MTP draft layer, and no vision (no mmproj passed), exactly as the reference run.

Method and reproduction

benchmark_rpv.py is the repository's community harness (via the MI50 report's benchmark_mi50.py); the only changes are the default paths and port — the engine is in a normal checkout on this host rather than in a container, and the server listens on 8080 without an API key.

python3 benchmark_rpv.py --targets 4096,32768,128000 --runs 3 --out .

The script generates deterministic synthetic Python functions, adds a different nonce near the start of each request, counts the complete rendered chat prompt with Strata's tokenizer, adjusts the filler to the target and verifies the count against the server afterwards. One warm-up request was excluded. Three runs at each length ran serially in increasing-length order on the same loaded engine, with the expert cache kept between requests. All measured speed requests processed their entire prompt: zero reused tokens. TTFT is client-side (from before the HTTP request to the first nonempty delta); engine prompt throughput uses freshly read tokens over prompt_ms, decode throughput uses engine_generated / decode_ms.

System RAM, GPU memory, edge/junction/memory temperature and socket power were sampled once per second by monitor_rpv.py from before the load through the last run (telemetry.jsonl); the power cap comes from hwmon because ROCm 6.2 has no --showpowercap.

Recall on long contexts: tools/needle_bench.py --lengths 32k,128k --depths 10,50,90 (needles.json).

Results

Both versions were measured twice: a first sweep and, after the telemetry sampler was fixed, a second sweep that the tables below use as the canonical numbers (-first-sweep files hold the first one; the 0.1.41 one was rebuilt from run-0.1.41.log — see that file's note). Each sweep is one loaded engine, three runs per length, increasing length, one discarded warm-up request. reused is 0 in every row of every sweep.

Strata 0.1.40.4 (canonical = second sweep; first sweep in parentheses where it differs)

Actual prompt tokensReusedGeneratedRunsPrompt tok/s median [min-max]Decode tok/s median [min-max]TTFT s median [min-max]Total s median [min-max]
4,09602563350 [345-351]24.2 [22.4-24.5]11.8 [11.7-12.0]22.3 [22.2-23.4]
32,76802563339 [334-346]24.0 [23.5-24.2]96.8 [94.9-98.3]107.7 [105.4-108.9]
128,00002563284 [280-299]23.7 [23.7-23.8]451.7 [428.9-457.0]462.5 [439.6-467.7]

First sweep of 0.1.40.4, same engine and config, back to back with the one above (summary-0.1.40.4-first-sweep.json):

Actual prompt tokensReusedGeneratedRunsPrompt tok/s median [min-max]Decode tok/s median [min-max]TTFT s median [min-max]Total s median [min-max]
4,09602563350 [345-350]24.1 [22.3-24.6]11.8 [11.8-11.9]22.3 [22.1-23.3]
32,76802563343 [341-346]24.1 [23.7-25.0]95.7 [94.8-96.2]106.5 [104.9-106.8]
128,00002563317 [317-318]23.4 [22.3-23.5]404.1 [402.8-404.5]415.4 [413.7-415.5]

The 4K and 32K numbers reproduce within 1%; the 128K prompt throughput is 10% lower in the second sweep (317 → 284 tok/s), and the per-second telemetry explains why: the GPU is hot by then (see below).

Strata 0.1.41 (fb58e0d)

Actual prompt tokensReusedGeneratedRunsPrompt tok/s median [min-max]Decode tok/s median [min-max]TTFT s median [min-max]Total s median [min-max]
4,09602563349 [344-349]23.9 [22.2-24.5]11.8 [11.8-12.0]22.5 [22.2-23.4]
32,76802563322 [317-334]23.9 [23.8-24.0]101.8 [98.3-103.4]112.5 [108.9-114.1]
128,00002563280 [279-283]23.5 [23.3-24.1]458.2 [452.7-458.5]468.8 [463.7-469.4]

First sweep of 0.1.41 (summary-0.1.41-first-sweep.json):

Actual prompt tokensReusedGeneratedRunsPrompt tok/s median [min-max]Decode tok/s median [min-max]TTFT s median [min-max]Total s median [min-max]
4,09602563349 [345-350]23.8 [22.0-24.4]11.8 [11.8-12.0]22.5 [22.3-23.5]
32,76802563346 [346-347]23.8 [23.3-23.9]94.8 [94.5-94.9]105.6 [105.2-105.7]
128,00002563318 [317-320]23.2 [23.1-23.6]403.0 [400.4-404.4]413.9 [411.4-415.4]

Again the 128K column is the one that moves with temperature.

0.1.40.4 vs 0.1.41: within 1% on decode at every length (24.2/24.0/23.7 vs 23.9/23.9/23.5) and within 1-2% on prompt throughput at 4K/32K. Issue #1691 did not reproduce here: no verify: timed out at layer N, no decode collapse, no engine exit, in either of the two 0.1.41 sweeps (9 requests each) or the 0.1.41 needle run. grep -ci 'timed out' over the whole 0.1.41 engine log is 0. See the limitations section for what that does not rule out.

Where the 16 GB card's decode goes. The engine logs every request's cache hit_rate. This card's expert cache holds 7,245 slots — the 2026-10-04 MI50 32 GB report's held 19,304, and the 2x MI50 16 GB build held all 12,288 experts of this model. Steady-state decode hit rate here is 87.7-89.6 % (the first request of a start reads 52.6 %; the prompt path raises it as the cache fills), against 97-99.5 % on the 32 GB card, and the experts that miss are read over PCIe (3-4 % of routed experts per request in steady state, 16.5 % on the first request). That, not the context length, is where the roughly one-third lower decode comes from — the 128K column shows context growth costs almost nothing. The 4K rows run directly after the warm-up, so their hit rate (83.9-87.9 %) is still below the 128K rows' 88-90 %.

Recall

tools/needle_bench.py --lengths 32k,128k --depths 10,50,90: 6 of 6 found on both versions (needles.json, needles-0.1.41.json). The 128K rows actually build 125,449-125,451 prompt tokens (the harness's text hits that length, not 131,072); the 32K rows build 32,171-32,172.

Memory, power and temperature

From the second sweeps' per-second telemetry.jsonl (1,655 samples over the 0.1.40.4 sweep, 1,695 over 0.1.41):

Reading0.1.40.4 sweep0.1.41 sweep
Peak VRAM used15.41 GiB (16,548,229,120 B)15.41 GiB
Minimum MemAvailable82.4 GiB (of 125.7 GiB)82.4 GiB
Peak edge / junction / HBM temperature79 / 109 / 84 °C79 / 110 / 84 °C
Peak socket power (rocm-smi)272 W278 W
Peak GPU use100 %100 %

Two things worth a maintainer's eye:

Correctness and limitations