okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
707fd49eb
main
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
- GPU: NVIDIA GeForce RTX 2080 Ti, 11,264 MiB, compute capability 7.5, VBIOS
90.02.17.00.47. Power limit 260 W (default, not changed); clocks not fixed.
PCIe 3.0 x16 capable; nvidia-smi shows Gen 1 x16 at idle (power management). The
engine's startup probe measured
13.1 GB/s host->device -> pcie_frac 0.28. - CPU: AMD Ryzen Threadripper 3960X, 24 cores / 48 threads, Zen 2, AVX2, no
AVX-512. Governor
schedutil. The engine uses 23 expert-pool workers plus the host thread; the image encoder uses 24 threads. - RAM: 128 GB installed, 8 x 16 GB DDR4 (rated DDR4-3200, running at 2133 MT/s); Linux reports 125.7 GiB. Swap: an 8 GiB swap file, already full (8.0 GiB used) before and during all runs. vmstat showed no swap-in or swap-out during a prompt read, so the swap was occupied but not actively paging.
- Storage: model files on an ext4 LVM volume spanning two Samsung SSD 970 EVO Plus 1 TB NVMe drives.
- OS: Ubuntu 24.04.4 LTS, kernel 6.8.0-139-generic, NVIDIA driver 595.84 (CUDA 13.2 driver API).
- Strata:
- Engine 0.1.33, built from source on this PC with CUDA 12.0 (nvcc 12.0.140), GCC 13.3.0, arch 75 (BUILD.json).
- The server runs
mainataeb35be(tagv0.1.33plus one HIP-only commit) with the server-side change from PR #436 applied (serve/server.py: a request is cancelled when its client disconnects). That change does not touch the engine and does not affect requests whose client stays connected, which covers every measurement here. - Python 3.12.3 (the install's venv).
- Background workloads:
- Docker, an OpenClaw agent gateway and other services ran on the CPU.
- The OpenClaw agent sends requests to this same Strata server from time to time.
- No other process used the GPU; the systemd unit stops the PC's other GPU model services when it starts.
Model and configuration
- Model:
ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF, quantization IQ3_S, downloaded bysetup.shon 2026-10-01. Setup pins revisioned59f92082b1e93c0e96d60a8b11aab089b52f09; the file hashes were not re-verified for this report.IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf(54,817,524,224 bytes)IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf(28,800,138,432 bytes)mmproj-Qwen3.8-Flash-Next-BF16.gguf(907,543,008 bytes)
- Native pack
packs/iq3_sprepared by setup (tools/iq_pack.py); MTP draft layermtp/rtfrom setup; the bundleddata/expert-profile.bin. No calibration, no custom profile, no control vectors. - Vision:
strata-visionon the CPU ("gpu": false, 24 threads, at most 1,024 image tokens). The engine binary was built with GPU vision support; the config moves the encoder to the CPU by hand (see the encoder note below). - Context and memory:
- Context 262,144 with INT8 KV. KV streaming keeps 32,768 cells per QSA layer in
VRAM (
--kv-resident 32768) and the rest in 3.09 GiB of pinned RAM. - Expert cache
auto: 1,692 slots, 3.25 GiB of VRAM, profile-prefilled, no eviction. - Prefill
autochose 3,072-token prompt chunks; the prompt path borrows 1,361 cache slots (2.61 GiB). - VRAM reserve 700 MiB. Low-RAM mode off.
- Context 262,144 with INT8 KV. KV streaming keeps 32,768 cells per QSA layer in
VRAM (
- Decoding: MTP
--spec 4 --spec-min-p 0.5(plus the built-in suffix drafts). Requests usedreasoning_effort: "none"andtemperature: 0. Experimental speed projection off (projection: nullin every request record). - The server unloads the model after 1,800 s idle (
idle_unload_s). It stayed loaded throughout; every run checked/healthloaded: truefirst.
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.
- bench_server.py: fresh-prompt and follow-up speed.
- Prompts: the haystack from
tools/needle_bench.py(this repository's docs and sources, in fixed order;third_party/llama.cpp/docswas not present in the checkout used, which was ataeb35be). It is cut to an exact token count with the pack's tokenizer and chat template, then followed by a request for a 600-word prose overview. - Output: 400 tokens maximum; every speed run generated exactly 400 tokens
(
finish: length) of English prose. Streaming withstream_options.include_usage. - No reuse: every prompt starts with its own random nonce, so no earlier prompt prefix can be reused. The engine log confirms 0 reused tokens for every fresh run.
- Needle: prompts of 100K tokens or more carry a code word at 40% depth.
- Follow-up: after the third 128K run and after the 250K run, a second user turn is sent on the same conversation (the long prefix plus the first answer). It asks for the code word and about 400 more words of prose.
- Commands:
--targets 4096,32768,128000 --runs 3 --followup --warmup- then
--targets 250000 --runs 1 --followup --seed 2027
- Prompts: the haystack from
- run_needles.py: runs the unchanged
tools/needle_bench.pywith--lengths 32k,128k --depths 10,50,90and keeps the engine log lines. - image_check.py: three newly drawn 768x512 PNGs, so the server's
encoded-image cache cannot serve them. Each has a code in large type and a known
number of red circles and blue squares. The answer must match
CODE; circles; squaresexactly. - monitor.py: once per second, nvidia-smi memory/utilization/power,
/proc/meminfoand the RSS ofstrataandstrata-vision, written to data/telemetry.jsonl. It ran through all measurements. - summarize.py: builds runs.csv and summary.json, including per-run memory peaks.
Foreign-traffic check:
- Before every request, the scripts wait until
GET /statusreportsbusy: false, queued: 0for 3 s. - After it, the run is discarded and repeated if
GET /metricscounted more than one finished request or the engine log gained more than onestrata serve: promptline. - No run was discarded. Each JSON file records
totals_before/totals_after.
Warm-up and state:
- One 8-token warm-up request was excluded.
- The server had been started about 6 minutes before the first run. It had served two short requests and was not restarted between runs.
- The expert cache is profile-filled with no eviction, so its contents do not depend on earlier requests. Model loading is excluded.
- Runs were serial, in increasing size.
Timing boundaries:
- Prompt tok/s is the freshly read tokens divided by the engine's
prompt_ms. - Decode tok/s is the engine-generated tokens (draft-verified tokens included)
divided by
decode_ms. - Both come from
GET /metrics, which has 0.1 ms resolution and matches the engine log lines. - TTFT is client wall time from just before the HTTP request to the first non-empty text delta. With reasoning off, that is answer text. Keep-alive comments and the empty role chunk are ignored.
- Total is client time to the end of the stream.
- All client times are over loopback and include the server's tokenization.
Memory:
- GPU memory is nvidia-smi
memory.usedfor the whole card. - Host RAM is
MemTotal - MemAvailablefor the whole system, including other services. It is not process RSS.
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.
| Configuration | Actual prompt tokens | Reused tokens | Generated tokens | Runs | Prompt tok/s median and range | Decode tok/s median and range | TTFT seconds median and range |
|---|---|---|---|---|---|---|---|
| Fresh 4K | 4,096 | 0 | 400 | 3 | 496.9 [483.7-498.6] | 39.6 [39.3-41.2] | 8.30 [8.27-8.52] |
| Fresh 32K | 32,768 | 0 | 400 | 3 | 636.9 [635.8-638.5] | 38.0 [37.7-40.0] | 51.61 [51.48-51.70] |
| Fresh 128K | 128,000 | 0 | 400 | 3 | 566.2 [566.0-566.9] | 34.1 [33.7-34.3] | 226.59 [226.34-226.67] |
| Fresh 250K | 250,000 | 0 | 400 | 1 run | 466.6 | 31.8 | 536.80 |
| Follow-up at 128K depth | 128,463 | 128,400 | 400 | 1 run | 63 tokens read in 1.28 s | 35.0 | 1.85 |
| Follow-up at 250K depth | 250,463 | 249,993 | 400 | 1 run | 470 tokens read in 3.56 s | 34.6 | 4.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.
| Configuration | Total s | Draft acceptance | Decode expert-cache hit rate | KV block reads that hit VRAM | KV read from RAM |
|---|---|---|---|---|---|
| Fresh 4K | 18.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 32K | 62.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 128K | 238.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.33 | 53.4% (195/365) | 54.9% | 94.25% | 825 MiB |
| Follow-up 128K | 13.25 | 59.5% (209/351) | 54.2% | 95.86% | 1,177 MiB |
| Follow-up 250K | 16.08 | 59.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):
- GPU: 10,525 MiB of 11,264 MiB used, constant from the first to the last
sample. The engine allocates everything at startup (
421 MiB of VRAM free with everything loaded), and VRAM use does not grow with prompt length. strataRSS: 52.3 GiB at 4K, rising to 52.9 GiB at 128K and 250K. That includes the expert arena (loaded 46.84 GiB) and 3.09 GiB of pinned KV.strata-visionRSS: about 1.0 GiB.- Host RAM used (
MemTotal - MemAvailable, whole system): 62.7-65.6 GiB. The remaining RAM was mostly page cache (the PLE table is read from the mapped second GGUF shard). - Swap: 8.0 of 8.0 GiB occupied throughout, with no swap I/O seen during a prompt read (see Hardware). No out-of-memory failure.
Image questions (CPU encoder)
| Run | Expected | Answer | Prompt tokens | Prompt read | Client TTFT | Approx. encode (TTFT - prompt_ms) |
|---|---|---|---|---|---|---|
| 1 | KAZ-14; 2; 4 | KAZ-14; 2; 4 | 441 | 3.44 s | 5.02 s | 1.58 s |
| 2 | NCC-91; 3; 4 | NCC-91; 3; 4 | 441 | 3.43 s | 5.08 s | 1.65 s |
| 3 | JTT-57; 4; 3 | JTT-57; 4; 3 | 441 | 3.39 s | 4.95 s | 1.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).
| Length | Depth | Prompt tokens | Reused | Seconds | Found |
|---|---|---|---|---|---|
| 32k | 10% | 31,075 | 0 | 50.5 | yes |
| 32k | 50% | 31,075 | 0 | 50.2 | yes |
| 32k | 90% | 31,076 | 0 | 50.3 | yes |
| 128k | 10% | 122,151 | 0 | 214.7 | yes |
| 128k | 50% | 122,149 | 0 | 214.9 | yes |
| 128k | 90% | 122,149 | 55,296 | 129.9 | yes |
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.
| Encoder | Context, KV streaming | Expert cache | Prompt chunk | Fresh prompt read |
|---|---|---|---|---|
| GPU | 131,072, 32,768 resident | 1,169 slots, 2.26 GiB | 1,024 | 33,038 tokens: 243.3 tok/s; 25,918: 242.8; 33,046: 242.5 |
| GPU | 131,072, KV not streamed (no KV-streaming line in that start) | 509 slots, 0.99 GiB | 512 | 25,918: 162.6 tok/s; 33,046: 318.3 |
| CPU | 131,072, 32,768 resident | 1,811 slots, 3.48 GiB | 4,096 | 25,918: 750.0 tok/s; 33,046: 774.5 |
| CPU | 262,144, 32,768 resident | 1,694 slots, 3.26 GiB | 3,072 | 25,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
- Checks:
- Recall: 6 of 6 needles found at 31K and 122K tokens, plus 2 of 2 code words found at 40% depth after 128K and 250K prompts.
- Images: 3 of 3 exact answers.
- Every speed request produced 400 tokens of coherent English. Outputs are stored per run.
- These checks measure recall and reading on these inputs, not general model quality.
- Single runs: the 250K fresh read and both follow-up turns ran once each. The 250K run takes about 9 minutes.
- Not measured:
- Sampled decoding (temperature > 0) and reasoning on.
- Tool calls, coding tasks and long outputs (over 400 tokens).
- Concurrency, a sustained thermal run and the Anthropic endpoint.
- The low-RAM mode, other quantizations, and a comparison against another engine.
- Same-session state: speed runs, recall and image checks all ran on the same loaded engine without restarts. OS page cache was not dropped.
- Shared service:
- The server is the PC's live service. Its configuration was not tuned or changed for this report.
- It runs
mainplus the #430 server fix (PR #436), not a tagged release. - CPU-side services (Docker, an agent gateway) were running.
- Memory peaks: values are 1 s samples. Brief spikes between samples may be missed.
1# Community benchmark on RTX 2080 Ti 11 GB 2 3Measured on 2026-10-02 by [homeofe](https://github.com/homeofe). This tests Strata 4engine 0.1.33 (source build, CUDA 12.0, sm_75) with Qwen3.8-Flash-Next IQ3_S at a 5**262,144-token context** on an 11 GB Turing card, a 24-core Zen 2 CPU and 128 GB of 6DDR4-2133. It is a single-GPU, low-VRAM configuration: KV streaming (32,768 cells 7per layer on the GPU) and a 3.25 GiB expert cache, with the image encoder on the CPU. 8 9Median results over three runs: prompt read of **497 tok/s at 4,096 tokens, 637 10tok/s at 32,768, and 566 tok/s at 128,000**. Decode ran at **39.6, 38.0 and 1134.1 tok/s**. One 250,000-token prompt read at 466.6 tok/s (536.8 s to first 12token) and then decoded at 31.8 tok/s. A follow-up turn on that conversation started 13answering after 4.6 s. Every recall check found its code word, and all three image 14questions were answered exactly. 15 16The main limitation is that everything was measured through the server that runs on 17this PC. That server is a shared service, not a dedicated benchmark instance: it was 18not restarted for this report, and an agent also uses it. Each request was checked 19for overlap with other traffic (see Method), and none overlapped. 20 21## Hardware and software 22 23- **GPU:** NVIDIA GeForce RTX 2080 Ti, 11,264 MiB, compute capability 7.5, VBIOS 2490.02.17.00.47. Power limit 260 W (default, not changed); clocks not fixed. 25 PCIe 3.0 x16 capable; nvidia-smi shows Gen 1 x16 at idle (power management). The 26 engine's startup probe measured `13.1 GB/s host->device -> pcie_frac 0.28`. 27 - **CPU:** AMD Ryzen Threadripper 3960X, 24 cores / 48 threads, Zen 2, AVX2, no 28AVX-512. Governor `schedutil`. The engine uses 23 expert-pool workers plus the host 29 thread; the image encoder uses 24 threads. 30 - **RAM:** 128 GB installed, 8 x 16 GB DDR4 (rated DDR4-3200, running at 2133 MT/s); 31Linux reports 125.7 GiB. Swap: an 8 GiB swap file, **already full (8.0 GiB used) 32 before and during all runs**. vmstat showed no swap-in or swap-out during a prompt 33 read, so the swap was occupied but not actively paging. 34 - **Storage:** model files on an ext4 LVM volume spanning two Samsung SSD 970 EVO 35Plus 1 TB NVMe drives. 36 - **OS:** Ubuntu 24.04.4 LTS, kernel 6.8.0-139-generic, NVIDIA driver 595.84 (CUDA 3713.2 driver API). 38 - **Strata:** 39- Engine 0.1.33, built from source on this PC with CUDA 12.0 (nvcc 12.0.140), GCC 4013.3.0, arch 75 ([BUILD.json](BUILD.json)). 41 - The server runs `main` at `aeb35be` (tag `v0.1.33` plus one HIP-only commit) 42with the server-side change from PR #436 applied (`serve/server.py`: a request is 43 cancelled when its client disconnects). That change does not touch the engine 44 and does not affect requests whose client stays connected, which covers every 45 measurement here. 46 - Python 3.12.3 (the install's venv). 47- **Background workloads:** 48- Docker, an OpenClaw agent gateway and other services ran on the CPU. 49- The OpenClaw agent sends requests to this same Strata server from time to time. 50- No other process used the GPU; the systemd unit stops the PC's other GPU model 51services when it starts. 52 53 ## Model and configuration 54 55- Model: `ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF`, quantization IQ3_S, 56downloaded by `setup.sh` on 2026-10-01. Setup pins revision 57`ed59f92082b1e93c0e96d60a8b11aab089b52f09`; the file hashes were not re-verified 58for this report. 59- `IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf` (54,817,524,224 bytes) 60- `IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf` (28,800,138,432 bytes) 61- `mmproj-Qwen3.8-Flash-Next-BF16.gguf` (907,543,008 bytes) 62- Native pack `packs/iq3_s` prepared by setup (`tools/iq_pack.py`); MTP draft layer 63`mtp/rt` from setup; the bundled `data/expert-profile.bin`. No calibration, no 64custom profile, no control vectors. 65- **Vision:** `strata-vision` on the CPU (`"gpu": false`, 24 threads, at most 1,024 66image tokens). The engine binary was built with GPU vision support; the config 67moves the encoder to the CPU by hand (see the encoder note below). 68- **Context and memory:** 69- Context 262,144 with INT8 KV. KV streaming keeps 32,768 cells per QSA layer in 70VRAM (`--kv-resident 32768`) and the rest in 3.09 GiB of pinned RAM. 71- Expert cache `auto`: 1,692 slots, 3.25 GiB of VRAM, profile-prefilled, no eviction. 72- Prefill `auto` chose 3,072-token prompt chunks; the prompt path borrows 1,361 73cache slots (2.61 GiB). 74- VRAM reserve 700 MiB. Low-RAM mode off. 75- **Decoding:** MTP `--spec 4 --spec-min-p 0.5` (plus the built-in suffix drafts). 76Requests used `reasoning_effort: "none"` and `temperature: 0`. Experimental speed 77projection off (`projection: null` in every request record). 78- The server unloads the model after 1,800 s idle (`idle_unload_s`). It stayed 79loaded throughout; every run checked `/health` `loaded: true` first. 80 81Configuration with the API key removed and the install path replaced by `<workspace>`: 82[strata-iq3_s.json](strata-iq3_s.json). The launch, from the systemd user unit 83(`LimitMEMLOCK=16867729408`), was: 84 85``` text 86.venv/bin/python serve/server.py --engine strata --config strata-iq3_s.json --port 8080 87# the engine command it starts (from the config): 88engine/strata --pack <data>/packs/iq3_s --native <data>/models/IQ3_S/...-00001-of-00002.gguf \ 89--ple-gguf <data>/models/IQ3_S/...-00002-of-00002.gguf --expert-profile data/expert-profile.bin \ 90--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp <data>/mtp/rt \ 91--max-context 262144 --kv int8 --kv-resident 32768 --vision --vram-reserve-mib 700 92``` 93 94The engine's startup lines for this server process are in 95[engine-startup.log](engine-startup.log). The first line, `ggml_cuda_init: failed 96to initialize CUDA`, comes from the CPU image encoder, which runs with CUDA hidden. 97The relevant startup lines: 98 99``` text 100strata generate: KV streaming: 32768 of 262144 cells per QSA layer in VRAM, the K/V in 3.09 GiB of pinned RAM 101strata generate: loaded 46.84 GiB at 2.25 GiB/s 102strata generate: expert cache auto: 4.15 GiB free, 700 MiB reserved (+218 MiB for the draft head) -> 1313 slots 103strata generate: expert cache 1692 slots, 3.25 GiB of VRAM; policy is ... PROFILE, ranked by routing frequency, no eviction. 104strata serve: prompt chunk auto: 3072 tokens 105strata serve: the prompt path borrows 1361 CUDA0 cache slots (2.61 GiB) 106strata serve: 421 MiB of VRAM free with everything loaded 107``` 108 109## Method 110 111The scripts are in this folder. Run them with the install's Python, which provides 112`regex` for the tokenizer. Each script reads the API key at run time from 113`STRATA_API_KEY` or from `--key-config`; the key is never written. 114 115- [bench_server.py](bench_server.py): fresh-prompt and follow-up speed. 116- **Prompts:** the haystack from `tools/needle_bench.py` (this repository's docs 117and sources, in fixed order; `third_party/llama.cpp/docs` was not present in the 118checkout used, which was at `aeb35be`). It is cut to an exact token count with the pack's 119tokenizer and chat template, then followed by a request for a 600-word prose 120overview. 121- **Output:** 400 tokens maximum; every speed run generated exactly 400 tokens 122(`finish: length`) of English prose. Streaming with `stream_options.include_usage`. 123- **No reuse:** every prompt starts with its own random nonce, so no earlier 124prompt prefix can be reused. The engine log confirms **0 reused tokens** for 125every fresh run. 126- **Needle:** prompts of 100K tokens or more carry a code word at 40% depth. 127- **Follow-up:** after the third 128K run and after the 250K run, a second user 128turn is sent on the same conversation (the long prefix plus the first answer). 129It asks for the code word and about 400 more words of prose. 130- Commands: 131- `--targets 4096,32768,128000 --runs 3 --followup --warmup` 132- then `--targets 250000 --runs 1 --followup --seed 2027` 133- [run_needles.py](run_needles.py): runs the unchanged `tools/needle_bench.py` with 134`--lengths 32k,128k --depths 10,50,90` and keeps the engine log lines. 135- [image_check.py](image_check.py): three newly drawn 768x512 PNGs, so the server's 136encoded-image cache cannot serve them. Each has a code in large type and a known 137number of red circles and blue squares. The answer must match `CODE; circles; 138squares` exactly. 139- [monitor.py](monitor.py): once per second, nvidia-smi memory/utilization/power, 140`/proc/meminfo` and the RSS of `strata` and `strata-vision`, written to 141[data/telemetry.jsonl](data/telemetry.jsonl). It ran through all measurements. 142- [summarize.py](summarize.py): builds [runs.csv](runs.csv) and 143[summary.json](summary.json), including per-run memory peaks. 144 145**Foreign-traffic check:** 146- Before every request, the scripts wait until `GET /status` reports `busy: false, 147queued: 0` for 3 s. 148- After it, the run is discarded and repeated if `GET /metrics` counted more than 149one finished request or the engine log gained more than one `strata serve: 150prompt` line. 151- No run was discarded. Each JSON file records `totals_before` / `totals_after`. 152 153**Warm-up and state:** 154- One 8-token warm-up request was excluded. 155- The server had been started about 6 minutes before the first run. It had served 156two short requests and was not restarted between runs. 157- The expert cache is profile-filled with no eviction, so its contents do not depend 158on earlier requests. Model loading is excluded. 159- Runs were serial, in increasing size. 160 161**Timing boundaries:** 162- Prompt tok/s is the freshly read tokens divided by the engine's `prompt_ms`. 163- Decode tok/s is the engine-generated tokens (draft-verified tokens included) 164divided by `decode_ms`. 165- Both come from `GET /metrics`, which has 0.1 ms resolution and matches the engine 166log lines. 167- TTFT is client wall time from just before the HTTP request to the first non-empty 168text delta. With reasoning off, that is answer text. Keep-alive comments and the 169empty role chunk are ignored. 170- Total is client time to the end of the stream. 171- All client times are over loopback and include the server's tokenization. 172 173**Memory:** 174- GPU memory is nvidia-smi `memory.used` for the whole card. 175- Host RAM is `MemTotal - MemAvailable` for the whole system, including other 176services. It is not process RSS. 177 178Per-run JSON in [data/](data/) holds the request hash, client timings, usage, the 179`/metrics` record, the parsed engine timing, the output text, and that request's 180engine and server log lines. Paths in these files are shortened to `<workspace>` (`common.py`, `STRATA_SCRUB_PREFIX`). 181 182## Results 183 184Each cell is the median **[minimum-maximum]** of three runs, except where marked 185"1 run". Every speed request generated 400 tokens and stopped at the output cap. No 186speed request failed or was cancelled. 187 188| Configuration | Actual prompt tokens | Reused tokens | Generated tokens | Runs | Prompt tok/s median and range | Decode tok/s median and range | TTFT seconds median and range | 189| --- | ---: | ---: | ---: | ---: | --- | --- | --- | 190| Fresh 4K | 4,096 | 0 | 400 | 3 | 496.9 [483.7-498.6] | 39.6 [39.3-41.2] | 8.30 [8.27-8.52] | 191| Fresh 32K | 32,768 | 0 | 400 | 3 | 636.9 [635.8-638.5] | 38.0 [37.7-40.0] | 51.61 [51.48-51.70] | 192| Fresh 128K | 128,000 | 0 | 400 | 3 | 566.2 [566.0-566.9] | 34.1 [33.7-34.3] | 226.59 [226.34-226.67] | 193| Fresh 250K | 250,000 | 0 | 400 | **1 run** | 466.6 | 31.8 | 536.80 | 194| Follow-up at 128K depth | 128,463 | 128,400 | 400 | 1 run | 63 tokens read in 1.28 s | 35.0 | 1.85 | 195| Follow-up at 250K depth | 250,463 | 249,993 | 400 | 1 run | 470 tokens read in 3.56 s | 34.6 | 4.55 | 196 197Further per-configuration values. Draft acceptance is MTP drafts accepted / 198proposed, from the engine line `drafts accepted A of B`. Hit rate and KV hits are 199from `decode expert cache hit rate` and `KV streaming: N% of block reads hit VRAM`. 200 201| Configuration | Total s | Draft acceptance | Decode expert-cache hit rate | KV block reads that hit VRAM | KV read from RAM | 202| --- | --- | --- | --- | --- | --- | 203| Fresh 4K | 18.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 | 204| Fresh 32K | 62.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 | 205| Fresh 128K | 238.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 | 206| Fresh 250K (1 run) | 549.33 | 53.4% (195/365) | 54.9% | 94.25% | 825 MiB | 207| Follow-up 128K | 13.25 | 59.5% (209/351) | 54.2% | 95.86% | 1,177 MiB | 208| Follow-up 250K | 16.08 | 59.3% (214/361) | 57.2% | 94.66% | 1,498 MiB | 209 210The engine's lines for the long runs, as logged: 211 212``` text 213strata 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 214strata 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 215strata serve: decode expert cache hit rate: 54.9% (135616 hits / 247239 lookups) 216strata serve: KV streaming: 94.25% of 3561648 block reads hit VRAM, 824.9 MiB read from RAM 217strata 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 218``` 219 220The complete lines for every request are in its JSON file. Per run: 221[runs.csv](runs.csv); aggregates: [summary.json](summary.json). 222 223**Follow-up reuse:** at 128K, the follow-up reused the entire previous prompt plus 224the previous answer (128,000 + 400 = 128,400) and read only the 63 new tokens. At 225250K, it reused 249,993 tokens and read 470. That is 7 tokens of the original 226prompt, the 400-token answer and the new turn, so the previous answer was not reused 227in that case. Both runs are recorded as observed; this report does not investigate 228the difference. 229 230**Memory during the runs** (sampled once per second; peaks over all measurements): 231 232- GPU: **10,525 MiB of 11,264 MiB** used, constant from the first to the last 233sample. The engine allocates everything at startup (`421 MiB of VRAM free with 234everything loaded`), and VRAM use does not grow with prompt length. 235- `strata` RSS: 52.3 GiB at 4K, rising to **52.9 GiB** at 128K and 250K. That 236includes the expert arena (`loaded 46.84 GiB`) and 3.09 GiB of pinned KV. 237`strata-vision` RSS: about 1.0 GiB. 238- Host RAM used (`MemTotal - MemAvailable`, whole system): 62.7-65.6 GiB. The 239remaining RAM was mostly page cache (the PLE table is read from the mapped 240second GGUF shard). 241- Swap: 8.0 of 8.0 GiB occupied throughout, with no swap I/O seen during a prompt 242read (see Hardware). No out-of-memory failure. 243 244### Image questions (CPU encoder) 245 246| Run | Expected | Answer | Prompt tokens | Prompt read | Client TTFT | Approx. encode (TTFT - prompt_ms) | 247| --- | --- | --- | ---: | ---: | ---: | ---: | 248| 1 | `KAZ-14; 2; 4` | `KAZ-14; 2; 4` | 441 | 3.44 s | 5.02 s | 1.58 s | 249| 2 | `NCC-91; 3; 4` | `NCC-91; 3; 4` | 441 | 3.43 s | 5.08 s | 1.65 s | 250| 3 | `JTT-57; 4; 3` | `JTT-57; 4; 3` | 441 | 3.39 s | 4.95 s | 1.56 s | 251 252All three are exact. Each image was new, so each was encoded fresh by 253`strata-vision` on 24 CPU threads. The encode estimate also contains HTTP and 254tokenization time. The images are in [data/](data/). 255 256### Recall: tools/needle_bench.py 257 258`python tools/needle_bench.py --url http://127.0.0.1:8080 --api-key <redacted> --lengths 32k,128k --depths 10,50,90` 259found **6 of 6** code words, each answer exactly the code word 260([data/needles.json](data/needles.json); engine lines in 261[data/needles-run.json](data/needles-run.json)). 262 263| Length | Depth | Prompt tokens | Reused | Seconds | Found | 264| --- | ---: | ---: | ---: | ---: | --- | 265| 32k | 10% | 31,075 | 0 | 50.5 | yes | 266| 32k | 50% | 31,075 | 0 | 50.2 | yes | 267| 32k | 90% | 31,076 | 0 | 50.3 | yes | 268| 128k | 10% | 122,151 | 0 | 214.7 | yes | 269| 128k | 50% | 122,149 | 0 | 214.9 | yes | 270| 128k | 90% | 122,149 | 55,296 | 129.9 | yes | 271 272The 128k/90% case reused the first 55,296 tokens, the part of the text it shares 273with the 50% case, so its time is not a fresh read. The code words at 40% depth in 274the 128K and 250K speed runs were also found, by the follow-up turns 275(`lantern-falcon-213` at 128K and `glacier-falcon-113` at 250K). 276 277### Note: GPU image encoder vs CPU image encoder (earlier measurements, same day) 278 279Earlier on 2026-10-02, before this report, the same engine 0.1.33 build and model 280were run on this PC with `strata-vision` on the GPU. The resident GPU encoder takes 281VRAM away from the engine on this 11 GB card, so `--prefill auto` chose smaller 282prompt chunks and the expert cache shrank. Fresh reads of 26K-33K-token prompts 283**fell to about 243 tok/s**. These numbers are earlier measurements, not repeated 284for this report. Only the current configuration (CPU encoder, 256K) was re-measured 285above. Log excerpts: [earlier-encoder-comparison.log](earlier-encoder-comparison.log), 286with original log line numbers. 287 288| Encoder | Context, KV streaming | Expert cache | Prompt chunk | Fresh prompt read | 289| --- | --- | --- | --- | --- | 290| GPU | 131,072, 32,768 resident | 1,169 slots, 2.26 GiB | 1,024 | 33,038 tokens: 243.3 tok/s; 25,918: 242.8; 33,046: 242.5 | 291| GPU | 131,072, KV not streamed (no KV-streaming line in that start) | 509 slots, 0.99 GiB | 512 | 25,918: 162.6 tok/s; 33,046: 318.3 | 292| CPU | 131,072, 32,768 resident | 1,811 slots, 3.48 GiB | 4,096 | 25,918: 750.0 tok/s; 33,046: 774.5 | 293| CPU | 262,144, 32,768 resident | 1,694 slots, 3.26 GiB | 3,072 | 25,920: 621.9 tok/s; 33,048: 634.4 | 294 295The last row is the configuration measured in this report. A restart later gave 2961,692 slots / 3.25 GiB, and its 32,768-token reads (636.9 tok/s median) agree with 297the earlier 622-634 tok/s. In this setup the CPU encoder costs about 1.6 s per new 298768x512 image (above). The GPU encoder would cost the engine more than half its 299prompt-read speed for every request. 300 301## Correctness and limitations 302 303- **Checks:** 304- Recall: 6 of 6 needles found at 31K and 122K tokens, plus 2 of 2 code words 305found at 40% depth after 128K and 250K prompts. 306- Images: 3 of 3 exact answers. 307- Every speed request produced 400 tokens of coherent English. Outputs are stored 308per run. 309- These checks measure recall and reading on these inputs, not general model 310quality. 311- **Single runs:** the 250K fresh read and both follow-up turns ran once each. The 312250K run takes about 9 minutes. 313- **Not measured:** 314- Sampled decoding (temperature > 0) and reasoning on. 315- Tool calls, coding tasks and long outputs (over 400 tokens). 316- Concurrency, a sustained thermal run and the Anthropic endpoint. 317- The low-RAM mode, other quantizations, and a comparison against another engine. 318- **Same-session state:** speed runs, recall and image checks all ran on the same 319loaded engine without restarts. OS page cache was not dropped. 320- **Shared service:** 321- The server is the PC's live service. Its configuration was not tuned or changed 322for this report. 323- It runs `main` plus the #430 server fix (PR #436), not a tagged release. 324- CPU-side services (Docker, an agent gateway) were running. 325- **Memory peaks:** values are 1 s samples. Brief spikes between samples may be 326missed.