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
14 files

files

128k.json3.3 KiB
256k.json3.3 KiB
32k.json3.3 KiB
64k.json3.3 KiB
README.md4.4 KiB
aggregate.py13.3 KiB
iq3_xxs_128k.json3.3 KiB
iq3_xxs_256k.json3.3 KiB
iq3_xxs_32k.json3.3 KiB
iq3_xxs_64k.json3.3 KiB
matrix.json23.3 KiB
matrix.md7.3 KiB
run.py13.1 KiB
summary.json23.3 KiB

2026-10-01 — Strata IQ2_XS context-ladder TPS on RTX 4070 Ti SUPER

Benchmark target: Qwen3.8-Flash-Next IQ2_XS (the README's "recommended" variant for a 16 GiB consumer GPU), serving on 127.0.0.1:8090 from inside the strata container (--network host, otherwise the docker-proxy DNAT/loopback interaction bites — see commit 02f14e1 in the vps1 project for the parallel diagnostic pattern).

Summary

ContextKVPrompt tokensAvg TPSPeak TPS (best of 3)Engine-predicted TPS (avg)Prefill TPS (avg)Draft acceptedTTFT
32kint829,96697.15130.0695.10167.479.9 %168 ms
64kint860,27083.93114.3882.23127.875.8 %264 ms
128kq4_0120,74873.97114.6872.97132.873.7 %409 ms

(Three stream runs per row; reasoning_effort=minimal, max_tokens=192, temperature=0, prompt filled to 92 % of --max-context.)

Reading guide

Why KV flips at 128 k

At --max-context 131072 with KV=int8 the VRAM estimate exceeds the 16 GiB card, so we re-launched with KV=q4_0. That is the only way to keep the engine inside VRAM at 128 k on this card; the model degrades ~12 % vs int8 at 64 k. The 128 k row is therefore a different configuration than the lower rows; do not compare the 32k→64k→128k slope as a pure context effect — about half of the slope is KV compression overhead.

Draft acceptance also glides down modestly with context (80 → 76 → 74 %); the MTP layer's head was tuned for short windows and degrades slightly with longer reasoning spans.

Method

Caveats / honesty disclaimers

Reproduction

cd /home/lfontanez/dev/strata/bench/results/2026-10-01-ctx-ladder
python3 run.py --contexts 32768 65536 131072 --out all.json --note "full ladder"
python3 aggregate.py     # writes matrix.md and summary.json

For an additional ladder step you'd want --build-arg BUILD_VISION=1 (and rebuild) to enable image inputs, and the container needs RAM ≈ 33 GiB × expert count / 16 GiB VRAM to be safe at rest; this host has 94 GiB so the engine stays in resident-expert mode.