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

files

data/
BUILD.json195 B
README.md18.9 KiB
TRIMMED.md469 B
bench_server.py10.7 KiB
common.py5.7 KiB
image_check.py5.7 KiB
monitor.py1.4 KiB
run_needles.py2.8 KiB
runs.csv2.7 KiB
strata-iq3_s.json1.3 KiB
summarize.py4.9 KiB
summary.json9.2 KiB

Community benchmark on RTX 2080 Ti 11 GB

Measured on 2026-10-02 by homeofe. This tests Strata engine 0.1.33 (source build, CUDA 12.0, sm_75) with Qwen3.8-Flash-Next IQ3_S at a 262,144-token context on an 11 GB Turing card, a 24-core Zen 2 CPU and 128 GB of DDR4-2133. It is a single-GPU, low-VRAM configuration: KV streaming (32,768 cells per layer on the GPU) and a 3.25 GiB expert cache, with the image encoder on the CPU.

Median results over three runs: prompt read of 497 tok/s at 4,096 tokens, 637 tok/s at 32,768, and 566 tok/s at 128,000. Decode ran at 39.6, 38.0 and 34.1 tok/s. One 250,000-token prompt read at 466.6 tok/s (536.8 s to first token) and then decoded at 31.8 tok/s. A follow-up turn on that conversation started answering after 4.6 s. Every recall check found its code word, and all three image questions were answered exactly.

The main limitation is that everything was measured through the server that runs on this PC. That server is a shared service, not a dedicated benchmark instance: it was not restarted for this report, and an agent also uses it. Each request was checked for overlap with other traffic (see Method), and none overlapped.

Hardware and software

Model and configuration

Configuration with the API key removed and the install path replaced by <workspace>: strata-iq3_s.json. The launch, from the systemd user unit (LimitMEMLOCK=16867729408), was:

.venv/bin/python serve/server.py --engine strata --config strata-iq3_s.json --port 8080
# the engine command it starts (from the config):
engine/strata --pack <data>/packs/iq3_s --native <data>/models/IQ3_S/...-00001-of-00002.gguf \
  --ple-gguf <data>/models/IQ3_S/...-00002-of-00002.gguf --expert-profile data/expert-profile.bin \
  --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp <data>/mtp/rt \
  --max-context 262144 --kv int8 --kv-resident 32768 --vision --vram-reserve-mib 700

The engine's startup lines for this server process are in engine-startup.log. The first line, ggml_cuda_init: failed to initialize CUDA, comes from the CPU image encoder, which runs with CUDA hidden. The relevant startup lines:

strata generate: KV streaming: 32768 of 262144 cells per QSA layer in VRAM, the K/V in 3.09 GiB of pinned RAM
strata generate: loaded 46.84 GiB at 2.25 GiB/s
strata generate: expert cache auto: 4.15 GiB free, 700 MiB reserved (+218 MiB for the draft head) -> 1313 slots
strata generate: expert cache 1692 slots, 3.25 GiB of VRAM; policy is ... PROFILE, ranked by routing frequency, no eviction.
strata serve: prompt chunk auto: 3072 tokens
strata serve: the prompt path borrows 1361 CUDA0 cache slots (2.61 GiB)
strata serve: 421 MiB of VRAM free with everything loaded

Method

The scripts are in this folder. Run them with the install's Python, which provides regex for the tokenizer. Each script reads the API key at run time from STRATA_API_KEY or from --key-config; the key is never written.

Foreign-traffic check:

Warm-up and state:

Timing boundaries:

Memory:

Per-run JSON in data/ holds the request hash, client timings, usage, the /metrics record, the parsed engine timing, the output text, and that request's engine and server log lines. Paths in these files are shortened to <workspace> (common.py, STRATA_SCRUB_PREFIX).

Results

Each cell is the median [minimum-maximum] of three runs, except where marked "1 run". Every speed request generated 400 tokens and stopped at the output cap. No speed request failed or was cancelled.

ConfigurationActual prompt tokensReused tokensGenerated tokensRunsPrompt tok/s median and rangeDecode tok/s median and rangeTTFT seconds median and range
Fresh 4K4,09604003496.9 [483.7-498.6]39.6 [39.3-41.2]8.30 [8.27-8.52]
Fresh 32K32,76804003636.9 [635.8-638.5]38.0 [37.7-40.0]51.61 [51.48-51.70]
Fresh 128K128,00004003566.2 [566.0-566.9]34.1 [33.7-34.3]226.59 [226.34-226.67]
Fresh 250K250,00004001 run466.631.8536.80
Follow-up at 128K depth128,463128,4004001 run63 tokens read in 1.28 s35.01.85
Follow-up at 250K depth250,463249,9934001 run470 tokens read in 3.56 s34.64.55

Further per-configuration values. Draft acceptance is MTP drafts accepted / proposed, from the engine line drafts accepted A of B. Hit rate and KV hits are from decode expert cache hit rate and KV streaming: N% of block reads hit VRAM.

ConfigurationTotal sDraft acceptanceDecode expert-cache hit rateKV block reads that hit VRAMKV read from RAM
Fresh 4K18.34 [17.97-18.67]65.6% [62.2-67.0] (240/366, 234/349, 227/365)55.0% [50.2-55.1]99.59%54 MiB
Fresh 32K62.18 [61.45-62.19]63.7% [62.6-67.2] (238/354, 228/364, 226/355)54.0% [52.9-54.6]97.71% [97.69-97.81]295-308 MiB
Fresh 128K238.32 [238.03-238.42]55.7% [54.3-58.4] (195/350, 189/348, 187/320)55.2% [54.9-55.6]95.62% [95.54-95.73]596-616 MiB
Fresh 250K (1 run)549.3353.4% (195/365)54.9%94.25%825 MiB
Follow-up 128K13.2559.5% (209/351)54.2%95.86%1,177 MiB
Follow-up 250K16.0859.3% (214/361)57.2%94.66%1,498 MiB

The engine's lines for the long runs, as logged:

strata serve: prompt 128000 tokens = 0 reused + 128000 read in 225806 ms (566.9 tok/s), 400 generated in 11727 ms (34.1 tok/s), drafts accepted 195 of 350, 6 checkpoints
strata serve: prompt 250000 tokens = 0 reused + 250000 read in 535798 ms (466.6 tok/s), 400 generated in 12571 ms (31.8 tok/s), drafts accepted 195 of 365, 6 checkpoints
strata serve: decode expert cache hit rate: 54.9% (135616 hits / 247239 lookups)
strata serve: KV streaming: 94.25% of 3561648 block reads hit VRAM, 824.9 MiB read from RAM
strata serve: prompt 250463 tokens = 249993 reused + 470 read in 3556 ms (132.2 tok/s), 400 generated in 11568 ms (34.6 tok/s), drafts accepted 214 of 361, 6 checkpoints

The complete lines for every request are in its JSON file. Per run: runs.csv; aggregates: summary.json.

Follow-up reuse: at 128K, the follow-up reused the entire previous prompt plus the previous answer (128,000 + 400 = 128,400) and read only the 63 new tokens. At 250K, it reused 249,993 tokens and read 470. That is 7 tokens of the original prompt, the 400-token answer and the new turn, so the previous answer was not reused in that case. Both runs are recorded as observed; this report does not investigate the difference.

Memory during the runs (sampled once per second; peaks over all measurements):

Image questions (CPU encoder)

RunExpectedAnswerPrompt tokensPrompt readClient TTFTApprox. encode (TTFT - prompt_ms)
1KAZ-14; 2; 4KAZ-14; 2; 44413.44 s5.02 s1.58 s
2NCC-91; 3; 4NCC-91; 3; 44413.43 s5.08 s1.65 s
3JTT-57; 4; 3JTT-57; 4; 34413.39 s4.95 s1.56 s

All three are exact. Each image was new, so each was encoded fresh by strata-vision on 24 CPU threads. The encode estimate also contains HTTP and tokenization time. The images are in data/.

Recall: tools/needle_bench.py

python tools/needle_bench.py --url http://127.0.0.1:8080 --api-key <redacted> --lengths 32k,128k --depths 10,50,90 found 6 of 6 code words, each answer exactly the code word (data/needles.json; engine lines in data/needles-run.json).

LengthDepthPrompt tokensReusedSecondsFound
32k10%31,075050.5yes
32k50%31,075050.2yes
32k90%31,076050.3yes
128k10%122,1510214.7yes
128k50%122,1490214.9yes
128k90%122,14955,296129.9yes

The 128k/90% case reused the first 55,296 tokens, the part of the text it shares with the 50% case, so its time is not a fresh read. The code words at 40% depth in the 128K and 250K speed runs were also found, by the follow-up turns (lantern-falcon-213 at 128K and glacier-falcon-113 at 250K).

Note: GPU image encoder vs CPU image encoder (earlier measurements, same day)

Earlier on 2026-10-02, before this report, the same engine 0.1.33 build and model were run on this PC with strata-vision on the GPU. The resident GPU encoder takes VRAM away from the engine on this 11 GB card, so --prefill auto chose smaller prompt chunks and the expert cache shrank. Fresh reads of 26K-33K-token prompts fell to about 243 tok/s. These numbers are earlier measurements, not repeated for this report. Only the current configuration (CPU encoder, 256K) was re-measured above. Log excerpts: earlier-encoder-comparison.log, with original log line numbers.

EncoderContext, KV streamingExpert cachePrompt chunkFresh prompt read
GPU131,072, 32,768 resident1,169 slots, 2.26 GiB1,02433,038 tokens: 243.3 tok/s; 25,918: 242.8; 33,046: 242.5
GPU131,072, KV not streamed (no KV-streaming line in that start)509 slots, 0.99 GiB51225,918: 162.6 tok/s; 33,046: 318.3
CPU131,072, 32,768 resident1,811 slots, 3.48 GiB4,09625,918: 750.0 tok/s; 33,046: 774.5
CPU262,144, 32,768 resident1,694 slots, 3.26 GiB3,07225,920: 621.9 tok/s; 33,048: 634.4

The last row is the configuration measured in this report. A restart later gave 1,692 slots / 3.25 GiB, and its 32,768-token reads (636.9 tok/s median) agree with the earlier 622-634 tok/s. In this setup the CPU encoder costs about 1.6 s per new 768x512 image (above). The GPU encoder would cost the engine more than half its prompt-read speed for every request.

Correctness and limitations