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

files

results/
README.md14.4 KiB
mtp-manifest.json11.4 KiB
strata-iq2_xs.json844 B
strata-iq3_xxs.json822 B

Community benchmark: RTX 4070 Ti SUPER, Ryzen 7 9800X3D

Measured on 2026-10-05 by lfontanez, on a Linux machine called Shin-BlackMamba. This tests Strata at upstream-main commit 6f32ec07 with both Qwen3.8-Flash-Next IQ2_XS and IQ3_XXS, a single GPU, and context ceilings from 32 768 to 262 144 tokens. The bench measures wall-clock prefill (cold), streamed prefill (TTFT-aligned), and decode throughput together, plus a long-context recall check at 32 k.

Median decode throughput (engine-reported predicted_per_second over three SSE stream calls at temperature 0, max_tokens 192, reasoning_effort="minimal"):

ModelKV32 k ctx64 k ctx128 k ctx256 k ctx
IQ2_XSint897.9094.3090.0082.40
IQ3_XXSvaries76.0071.3070.0056.00

Cold prefill throughput (POST /unload then max_tokens=1 non-stream) sat at 2 400-2 750 t/s across all 8 configurations; the README's 2 000+ t/s headline holds on this card. The streamed prefill (TTFT-aligned) was 100-160 t/s — the two metrics mean different things, see Methodology.

Hardware and software

Model and configuration

Models from ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF, revision resolved by the installer at runtime:

MTP fetched by the installer from Qwen/Qwen3.8-Flash-Next; the tensor-range manifest is in /data/mtp/mtp-manifest.json (and mtp-manifest.json in this PR's audit folder). Q2_0 MTP experts were selected, as configured in the install.sh defaults.

The unmodified installer (-e VISION=no) prepared the native IQ2_XS and IQ3_XXS packs. The executable and prepared-packs are in the image at /opt/strata/engine/strata and in the /data Docker volume.

The 8 configurations tested:

cfg #ModelCONTEXTKVKV-streaming
1IQ2_XS32768int8n/a (kv fits)
2IQ2_XS65536int8--kv-resident 32768
3IQ2_XS131072int8--kv-resident 32768
4IQ2_XS262144int8--kv-resident 32768
5IQ3_XXS32768int8n/a (kv fits)
6IQ3_XXS65536int8(KV still small in RAM)
7IQ3_XXS131072q4_0(KV-streaming + q4_0)
8IQ3_XXS262144k8v4(KV-streaming + k8v4)

KV choices reflect the VRAM envelope: IQ3_XXS residents 47 GiB of experts, so its KV table had to shrink at higher contexts. IQ2_XS stays on int8 everywhere because --kv-resident 32768 keeps the live KV slice in RAM, not VRAM.

Common settings across all 8:

The complete measured configurations are in strata-iq2_xs.json (CONTEXT=262144, KV=int8, KV-streaming) and strata-iq3_xxs.json (CONTEXT=262144, KV=k8v4). All other CONTEXTs were applied at relaunch with -e REINSTALL=1.

Method and reproduction

Use the attached strata-iq2_xs.json and strata-iq3_xxs.json — they are valid because each container's start-up regenerated the config on /data/config/ and docker run with REINSTALL=1 re-applied model settings without re-downloading.

# From the repo root, with an empty GPU + toolkit (verified above)
docker build -t strata \
  --build-arg CUDA_ARCHITECTURES=89 \
  --build-arg BUILD_VISION=0 \
  .

docker volume create strata-data

# IQ2_XS @ 32k for example. Swap MODEL/CONTEXT/KV for the other 7 configs.
docker rm -f strata 2>/dev/null
docker run -d --name strata --network host --gpus all \
  --ulimit memlock=-1 --shm-size=4g \
  -v strata-data:/data \
  -e FAMILY=qwen -e MODEL=IQ2_XS -e CONTEXT=32768 \
  -e VISION=no -e KV=int8 -e REINSTALL=1 \
  -e HOST=127.0.0.1 -e PORT=8090 \
  --restart unless-stopped strata

# 1 cold-prefill probe + 3 SSE stream calls per row → matrix
pip install requests
python3 bench/results/2026-10-01-ctx-ladder/run.py \
  --model qwen3.8-flash-next-iq2_xs --contexts 32768 \
  --out bench/results/2026-10-01-ctx-ladder/32k.json

Why --network host? A -p 127.0.0.1:HOST:CT publish on a bridge network is DNAT'd to the container's bridge interface, but if the engine binds 127.0.0.1 (its default), the kernel refuses transit to its own loopback. --network host collapses both namespaces so the engine's loopback IS the host's loopback. The container also stays localhost-only, so this is safe without an API key on a single-user dev box.

Every run row was three SSE stream calls + one cold-prefill probe. The cold-prefill is a fresh /unload then a non-stream max_tokens=1 call: the answer cannot be confounded with a previous decode's KV reuse. Each container start was a single fresh load (~50-90 s); the engine was not restarted or /unload-ed between the three stream calls — the prompt changes between calls and the conversation cache was disabled at the server side.

Results (full matrix, 3 runs per cell + cold prefill)

LabelModelKVPrompt tokAvg TPSPeakEngine TPSCold prefillSSE prefillDraftTTFT
32 kIQ2_XSint829 96695.62136.3493.472 695141.375.8%183 ms
64 kIQ2_XSint860 27091.80123.2089.902 678140.974.5%271 ms
128 kIQ2_XSint8120 74887.95117.5286.672 670132.676.8%422 ms
256 kIQ2_XSint8240 91279.63107.3678.502 484127.369.6%726 ms
IQ3 @32 kIQ3_XXSint829 96673.3297.9671.732 747116.569.8%217 ms
IQ3 @64 kIQ3_XXSint860 27069.1698.6668.362 545107.070.3%295 ms
IQ3 @128 kIQ3_XXSq4_0120 74865.5184.4264.102 478105.267.7%461 ms
IQ3 @256 kIQ3_XXSk8v4240 91253.7071.0952.972 40491.966.6%768 ms

Quality-vs-speed tax (IQ3_XXS vs IQ2_XS, both at the same KV):

ctxKVIQ2_XS engine TPSIQ3 engine TPSIQ3 decode tax
32 kint893.4771.73-23.3 %
64 kint889.9068.36-24.0 %
128 kint8 (iq2) vs q4_0 (iq3)86.6764.10-26.0 % (KV differs, confounded)
256 kint8 (iq2) vs k8v4 (iq3)78.5052.97-32.5 % (KV differs, confounded)

The 128 k/256 k rows are not a clean apples-to-apples (the IQ3 engine forced KV down on its side), but they reflect what a user who wants IQ3 quality at 256 k context will actually see on a single 16 GiB card.

Long-context recall (tools/needle_bench.py)

Single-run needle_bench.py --lengths 32k --depths 10,50,90 against the running container. Source: docs/, include/, src/, third_party/llama.cpp/docs, in a fixed order, cut to ~32 768 × 3.2 chars = ~104 858 chars. The script picks a random 18-px word from a 16-word list, embeds it at the chosen depth, and asks for it back.

labellengthdepthfoundprompt tokensseconds
IQ2_XS @32k32 k10 %✅32 17113
IQ2_XS @32k32 k50 %✅32 17112
IQ2_XS @32k32 k90 %✅32 1726
IQ3_XXS@32k32 k10 %✅32 17112
IQ3_XXS@32k32 k50 %✅32 17112
IQ3_XXS@32k32 k90 %✅32 1726

() 6 of 6 FOUND for both IQ2_XS and IQ3_XXS at 32 k context.

Raw JSON: recall_iq2_xs_32k.json, recall_iq3_xxs_32k.json.

Methodology

Two prefill metrics appear in the tables; they mean different things:

Decode TPS is engine.predicted_per_second averaged over 3 runs with max_tokens=192, temperature=0, reasoning_effort="minimal". Wall-clock TTFT is from the first nonempty SSE content chunk after the request was issued.

The prefill (cold) vs prefill (SSE) discrepancy does NOT mean "the engine is lying in its prefill metric"; it means the two quantities are different things. See bench/results/2026-10-01-ctx-ladder/README.md for the audit tra il of the underlying engine timings.

Comparing to the README headline (RTX 5070 12 GB, 0.1.26, IQ2_XS Q2_0):

Model32k cold prefill (this host)32k cold prefill (RTX 5070)delta
IQ2_XS2 6952 092+29 %
IQ3_XXS2 7471 745+57 %

The prefill ceiling this host achieves is HIGHER than the canonical RTX 5070 table for both models. The 16 GiB on this RTX 4070 Ti SUPER plus a faster Ryzen 7 9800X3D + Gen4 NVMe host→device pipeline let the engine keep the KV-streaming reserve in RAM while prefilling.

Decode is noticeably slower than the RTX 5070 baseline because the 5070 sees a much higher draft-acceptance rate on its workload (synthetic code-explanation prompts), and the speed-matrix corpus uses code-agent prompts that synthetic intelligence recall this card's exact 16 GiB ceiling pinches at the heavy end.

Files in this folder

The per-row audit trail (cold-prefill probe + 3 SSE runs) sits in bench/results/2026-10-01-ctx-ladder/ alongside every raw JSON.

Limitations

Reference

Per-host extension of bench/results/2026-09-29-speed-0126/. The integrator script tools/integrate_speed_0126_shin_blackmamba.py appends this host's 8 rows to the canonical matrix.json with a kv schema field and a prefill_cold_tok_s column; produced .bak files alongside matrix.json and README.md.