okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221Merge f-141-fixb: Python, docs and bench fixes and portsef8071303

main
16.9 KiB271 linesraw

Community benchmark: RTX 5080 in Docker Desktop on Windows (WSL2)

Measured on 2026-10-07 by xWinIcex, on a Windows 10 host using the repository's own Dockerfile and entrypoint — no bare-metal Linux, no setup.sh, no hand-written launch command. Coder IQ1_M, one RTX 5080, two context limits (131,072 and 65,536) on the same loaded model.

Median decode throughput was 75.7–80.8 tok/s at 4,096–32,768 prompt tokens and 72.2 tok/s at 130,560 with the 131,072-token limit, and 71.5–78.5 tok/s at 4,096–32,768 and 73.8 at 65,024 with the 65,536-token limit. These are synthetic code-explanation requests with greedy decoding and a 256-token output cap; they do not establish general answer quality. The main limitation is the host: everything ran inside Docker Desktop's WSL2 VM on Windows, which changes both the memory the installer sees and the storage path.

This is, as far as we could tell from the existing reports, the first report from that environment, so three things that are specific to it are written up in Notes for users of this environment.

Hardware and software

  • NVIDIA GeForce RTX 5080; 16,303 MiB reported VRAM; power limit 360 W (maximum 380 W). PCIe link Gen 5, x8, while the card reports a maximum width of x16. The engine's own startup probe measured 28.9 GB/s host-to-device (pcie_frac 0.55, the default). Clocks were not fixed and no thermal soak was run; the highest GPU temperature observed was 68 °C and the highest power 273 W.
  • AMD Ryzen 9 9950X, 16 cores / 32 threads, AVX-512. The engine chose the AVX-512 path, 48 pool tasks per phase, 15 expert-pool workers plus the host thread on core 0.
  • 64 GB installed RAM; the container sees 54.9 GiB (see the memory note below). Storage: C: XPG MARS 980 PRO 1908 GB NVMe SSD — the WSL2 VHDX, and therefore the image, the model files and /data all live there. The machine's other disk is a 3,726 GB HDD and was not used.
  • Windows 10 Pro 26H2 build 26300; WSL 2.7.10.0, kernel 6.18.33.2-2; Docker Desktop 4.84.0 (client and server 29.6.2, buildx v0.35.0-desktop.2); NVIDIA driver 617.14.
  • Strata commit d5ea7133741e67743c0e886bb426c0ce8d69cf6c ("Version 0.1.40.3"); engine 0.1.40.3, source=local, CUDA architectures [120], vision compiled for CUDA — BUILD.json.
  • CUDA 13.0.48 (nvcc V13.0.48); GCC 13.3.0; Python 3.12.3. Installed Python packages: python-packages.txt.
  • The whole environment is in environment.txt, including the exact docker run lines, the WSL2 memory setting and the base image digest.

Model and configuration

Model: ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-Coder-GGUF at the revision the installer pins, 5348543e0147355ac9cbcb031184a3546350988e (2026-09-29):

  • IQ1_M/Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf — 29,608,446,496 B
  • IQ1_M/Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf — 28,800,138,432 B
  • mmproj-Qwen3.8-Flash-Next-BF16.gguf — 907,543,008 B

All three local SHA-256 hashes matched the repository's published LFS oids (sha256.txt, model-provenance.json). The MTP draft layer was fetched from Qwen/Qwen3.8-Flash-Next by the installer (31 tensors, 5.214 GB, per-tensor hashes in mtp-manifest.json); the full BF16 shards were not downloaded. The unmodified installer prepared the pack (/data/packs/coder-iq1_m, 1.4 GB on disk) and the Q2_0 MTP experts.

Both configurations were produced by the image's own entrypoint from the same strata-data volume; only CONTEXT and REINSTALL differ between them. The recorded engine configuration is config-131072.json and config-65536.json:

# 131,072-token limit
docker run -d --name strata --gpus all --network strata-net \
  -p 127.0.0.1:8080:8080 --ulimit memlock=-1 --stop-timeout 60 \
  -v strata-data:/data \
  -e FAMILY=coder -e MODEL=IQ1_M -e CONTEXT=131072 -e VISION=cpu -e GPU=0 strata

# 65,536-token limit, same volume
  ... -e CONTEXT=65536 -e VISION=cpu -e GPU=0 -e REINSTALL=1 strata

Settings both configurations share: --expert-cache auto, --prefill auto, --kv int8, --spec 4 --spec-min-p 0.5, MTP on, --vram-reserve-mib 700, low-RAM mode off, the experimental speed projection off, no calibration, no custom expert profile, temperature 0, reasoning_effort: none, 256 generated tokens per speed run. Vision is on with the encoder on the CPU (VISION=cpu, 16 threads, 300 image tokens), which is the first thing worth noting: nothing about this configuration was tuned by hand.

What differs, from the engine's startup log:

131,072 limit65,536 limit
Expert cache3,554 slots, 6.78 GiB VRAM4,060 slots, 7.73 GiB VRAM
Free VRAM at load152 MiB178 MiB
KVINT8INT8, streaming off, resident in VRAM
Prefill chunk8,192 tokens, borrows 2,172 cache slots8,192 tokens

At 131,072 the engine warned about its own configuration:

strata serve: 152 MiB of VRAM free with everything loaded - LOW: requests may stall;
add --vram-reserve-mib 1060 to the config's args (or lower --max-context)

So a 16 GB card at a 128K context leaves almost nothing spare, and the engine says so itself. Nothing below failed because of it: no request was refused for VRAM and none stalled, at either limit, including the 130,560-token prompt.

Method

The benchmark is the script from bench/results/2026-09-30-community-rtx-5090/benchmark.py, attached here as benchmark.py, unchanged except for four defaults (--root /opt/strata, --pack /data/packs/coder-iq1_m, --url http://127.0.0.1:8080, --out /data/bench), so the numbers stay comparable with that report. It builds deterministic synthetic Python functions, puts a different nonce near the start of every request so no prompt prefix can be reused, counts the complete rendered chat prompt with Strata's own tokenizer, and verifies its count against the engine afterwards.

One warm-up request was excluded. Three runs were executed at each length, serially, in increasing-length order, on the same loaded engine. Every measured request read its entire prompt: zero reused tokens in all 33 runs (reused: 0, prompt_read == prompt_total). Loading time is not included. Both context limits were measured in their own session on a freshly loaded model; see the limitations.

Streaming TTFT is measured from immediately before the HTTP request until the first non-empty text delta, ignoring empty role chunks; with reasoning off that delta is answer text. Total latency ends at the end of the stream; both include HTTP and front-end tokenization on loopback. Prompt throughput is fresh tokens divided by the engine's prompt_ms; decode throughput is engine_generated / decode_ms. Per-run records — the engine's timings and draft statistics, the client's TTFT and total latency, the output text and a SHA-256 of each request body — are in data-131072/results.json and data-65536/results.json. The request bodies themselves are not committed because benchmark.py rebuilds them deterministically; compare the recorded request_sha256 after a re-run to confirm it reproduced the same prompt.

Memory was sampled once per second from the engine's own /metrics by monitor.py and summarised by summarize-telemetry.py. Every memory number in this report comes from the engine's view, not from nvidia-smi, which inside a container reports the whole GPU and not the container's share.

Results

Each cell is the median [minimum–maximum] of three runs. Every request generated 256 tokens and stopped at the output limit; there were no failed or cancelled speed requests.

Context limit 131,072 (data-131072/, session of 2026-10-07 ~22:22):

Prompt tokensReusedPrompt tok/sDecode tok/sTTFT secondsTotal seconds
4,09602,252.8 [2,138.8–2,267.5]75.7 [72.6–77.9]1.849 [1.839–1.948]5.306 [5.100–5.350]
8,19203,009.2 [2,998.9–3,063.1]79.9 [78.9–80.8]2.772 [2.706–2.780]5.929 [5.913–5.940]
16,38403,197.3 [3,184.2–3,304.9]79.1 [77.6–81.0]5.166 [5.002–5.189]8.402 [8.136–8.442]
32,76803,304.3 [3,271.8–3,311.9]80.8 [75.6–82.4]9.981 [9.960–10.081]13.223 [13.057–13.316]
65,53603,299.4 [3,269.5–3,310.9]73.8 [73.8–77.5]19.958 [19.884–20.137]23.400 [23.166–23.584]
130,56003,076.5 [2,942.9–3,200.6]72.2 [71.0–76.1]42.612 [40.959–44.532]46.131 [44.292–48.114]

Context limit 65,536 (data-65536/, session of 2026-10-07 ~22:37):

Prompt tokensReusedPrompt tok/sDecode tok/sTTFT secondsTotal seconds
4,09602,194.1 [2,113.8–2,221.6]73.1 [72.1–78.2]1.904 [1.882–1.970]5.379 [5.127–5.495]
8,19202,781.6 [2,760.3–2,804.9]76.4 [75.2–76.8]2.981 [2.963–3.010]6.332 [6.288–6.336]
16,38403,001.3 [2,997.2–3,016.8]78.5 [68.4–78.6]5.523 [5.480–5.539]8.741 [8.707–9.241]
32,76803,034.9 [3,016.7–3,084.7]71.5 [70.3–73.6]10.873 [10.702–10.945]14.419 [14.148–14.550]
65,02403,027.7 [3,003.6–3,197.0]73.8 [73.7–79.9]21.582 [20.441–21.762]25.028 [23.619–25.203]

The two limits are not in the expected order: at every shared prompt length the 131,072-token configuration measured equal or slightly faster (decode 80.8 vs 71.5 tok/s at 32,768; prefill 3,304 vs 3,035 tok/s), even though it has the smaller expert cache (3,554 vs 4,060 experts, 6.78 vs 7.73 GiB of VRAM) and only 152 MiB of free VRAM. Decode ranges at 32,768 do not overlap (128K: 75.6–82.4; 64K: 70.3–73.6), so this is not obviously run-to-run noise, but with one session per configuration and no interleaving we did not isolate the cause and do not claim that a smaller context is slower in general. It is reported because it is what was measured, and because the cache sizes alone do not predict it.

Decode expert-cache hit rates were 81.0–87.0% across the 33 measured runs (hit_rate in results.json); draft acceptance was 140–162 of the 196–237 drafts offered.

Memory

From the one-second samples (peaks and ranges; a sampled peak can miss a shorter spike):

131,072 limit65,536 limit
GPU memory used, peak (of 15.92 GiB)15.82 GiB15.74 GiB
Host RAM used, peak (of 54.92 GiB)29.77 GiB29.49 GiB
Free VRAM as the engine reports it152 MiB178 MiB
GPU temperature, peak68 °C65 °C
GPU power, peak (limit 360 W)267 W268 W
Disk read, peak230 MB/s (recall run) / 3.7 MB/s (speed run)3.6 MB/s

gpu_mem_used comes from the engine's /metrics, so it is the process-plus-context allocation rather than the card's total. The 230 MB/s peak was recorded during the 128K recall run: on very long prompts the experts that the prompt path's borrowed cache slots do not cover are read from the SSD, which is the behaviour the engine documents.

Correctness

The repository's unchanged tools/needle_bench.py found all nine needles on the 131,072-token configuration — depths 10%, 50% and 90% at lengths 32k, 64k and 128k. Actual prompt lengths were 32,343–32,344, 62,625–62,627 and 125,919–125,920 tokens; every answer matched the expected code word. On the 65,536-token configuration the same command found 6 of 6 (32k and 64k; 128k skipped because the server's context is 65,536), and the skip is recorded in the output rather than silently dropped. See data-131072/needles.json and data-65536/needles.json.

The vision path was checked with image-check.py, which draws a code word with Pillow and sends it as an OpenAI image_url data URL. With the encoder on the CPU the model answered K7QX-4291 for the drawn K7QX-4291 in 1.1 s at 261 prompt tokens (data-131072/image-check.json, image-check.png). The encoder falling back to the CPU is visible in the log as ggml_cuda_init: failed to initialize CUDA followed by strata-vision: on the CPU, 16 threads, which is what VISION=cpu asks for.

Notes for users of this environment

  1. Docker Desktop's default RAM makes the installer choose the low-RAM mode. With no %UserProfile%\.wslconfig, Docker Desktop caps the WSL2 VM at 50% of host RAM, so the container saw ~31 GB of the host's 64 GB. setup.py reads RAM from /proc/meminfo, so it did not error — it selected the low-RAM mode ("the GPU holds ~38% of IQ1_M's experts, the other ~15 GB stay in RAM, read once from a copy in the model folder"). A 32 GB PC is a documented low-RAM case, but on a 64 GB PC it is silent and unwanted. Adding [wsl2] / memory=56GB (wslconfig.txt) and restarting (wsl --shutdown) gives the container 54.9 GiB and the normal mode. Both measured runs used the normal mode.
  2. A request needs 8 tokens of headroom. prompt + max_tokens + 8 ≤ max_context, and the engine does not truncate. A 65,280-token prompt with max_tokens: 256 on the 65,536-token limit was refused with HTTP 400: "prompt (65280 tokens) + max tokens (256) exceeds the context (65536); requests are never truncated. Send a smaller max_tokens (at most 248 here)". probe-request.py reproduces it. The largest prompt measured here therefore leaves 512 tokens: 130,560 of 131,072 and 65,024 of 65,536.
  3. The port is published on 127.0.0.1 only, so no API key was set ("api_key": false in /health). Other containers reach the same server over a user-defined Docker network at http://strata:8080; nothing was exposed to the LAN.

Limitations

  • One session per configuration. The warm-up state differs between them, and the 128K-vs-64K comparison in the results is a comparison of two sessions, not of two interleaved settings. The engine's own log shows CUDA-graph capture (strata verify: capturing the N-token window) happening during the first requests of a session, which is one candidate explanation for the ordering; it was not tested. Treat the difference as an observation to reproduce, not a result.
  • One machine, one quantization, one GPU, one synthetic workload. Long output, sampled decoding, thinking, multi-request concurrency (parallel), tool use and a sustained thermal run were not evaluated. The needle and image checks measure recall and reading on those specific inputs, not general model quality.
  • The PCIe link ran at x8 of a possible x16, and the card reports a maximum width of x16. The engine measured 28.9 GB/s host-to-device; the RTX 5090 report on a Gen5 x16 link measured 50.0 GB/s. Whether the narrower link costs anything here was not tested — the link is a property of this machine's slot wiring, so absolute numbers may move on a host that runs the card at x16.
  • Windows and WSL2 are between Strata and the hardware. File I/O and page-locked memory go through the WSL2 VM; --ulimit memlock=-1 was passed and the engine reported MAP_HUGETLB unavailable with transparent huge pages requested instead. Numbers from a bare-metal Linux host with the same card are not guaranteed to match.
  • Timings include the whole client path (HTTP, front-end tokenization, loopback) and are measured at the client, not inside the engine.
  • The 131,072-token configuration logged the engine's own VRAM warning quoted above. It did not cause a failure in any measured run, but it is a real margin of 152 MiB and a reason to prefer --vram-reserve-mib 1060 (or a smaller context) for unattended use.
  • One telemetry file, data-131072/telemetry-speed-overlapped.jsonl, was written by two samplers that overlapped for about eleven minutes (819 of 820 lines parse; the timestamps contain one discontinuity). Only peaks and ranges are taken from it. The clean runs are data-131072/telemetry-checks.jsonl and data-65536/telemetry-speed.jsonl.

Files

FileWhat it is
benchmark.py, monitor.py, summarize-telemetry.py, image-check.py, probe-request.pythe scripts, runnable as documented above
data-131072/, data-65536/results.json (per-run engine timings, draft statistics, output text, request hashes) and summary.json, the telemetry and its memory summary, needles.json, the image check, and the engine's status at startup
config-131072.json, config-65536.json, engine-131072.log, engine-65536.logthe recorded configuration and the unabridged engine log of each session
environment.txt, python-packages.txt, wslconfig.txthost and container environment
model-provenance.json, sha256.txt, mtp-manifest.json, mtp-inventory.mdwhat was downloaded and its hashes
BUILD.jsonthe engine the image compiled
1# Community benchmark: RTX 5080 in Docker Desktop on Windows (WSL2)
2
3Measured on 2026-10-07 by [xWinIcex](https://github.com/xWinIcex), on a Windows 10 host
4using the repository's own Dockerfile and entrypoint — no bare-metal Linux, no
5`setup.sh`, no hand-written launch command. Coder IQ1_M, one RTX 5080, two context
6limits (131,072 and 65,536) on the same loaded model.
7
8Median decode throughput was **75.7–80.8 tok/s at 4,096–32,768 prompt tokens and 72.2
9tok/s at 130,560** with the 131,072-token limit, and **71.5–78.5 tok/s at 4,096–32,768
10and 73.8 at 65,024** with the 65,536-token limit. These are synthetic code-explanation
11requests with greedy decoding and a 256-token output cap; they do not establish general
12answer quality. The main limitation is the host: everything ran inside Docker Desktop's
13WSL2 VM on Windows, which changes both the memory the installer sees and the storage path.
14
15This is, as far as we could tell from the existing reports, the first report from that
16environment, so three things that are specific to it are written up in
17[Notes for users of this environment](#notes-for-users-of-this-environment).
18
19## Hardware and software
20
21- NVIDIA GeForce RTX 5080; 16,303 MiB reported VRAM; power limit 360 W (maximum 380 W).
22  PCIe link **Gen 5, x8**, while the card reports a maximum width of x16. The engine's own
23  startup probe measured **28.9 GB/s host-to-device** (`pcie_frac 0.55`, the default).
24  Clocks were not fixed and no thermal soak was run; the highest GPU temperature observed
25  was 68 °C and the highest power 273 W.
26- AMD Ryzen 9 9950X, 16 cores / 32 threads, AVX-512. The engine chose the AVX-512 path,
27  48 pool tasks per phase, 15 expert-pool workers plus the host thread on core 0.
28- 64 GB installed RAM; the container sees **54.9 GiB** (see the memory note below).
29  Storage: `C:` XPG MARS 980 PRO 1908 GB NVMe SSD — the WSL2 VHDX, and therefore the
30  image, the model files and `/data` all live there. The machine's other disk is a
31  3,726 GB HDD and was not used.
32- Windows 10 Pro 26H2 build 26300; WSL 2.7.10.0, kernel 6.18.33.2-2; Docker Desktop
33  4.84.0 (client and server 29.6.2, buildx v0.35.0-desktop.2); NVIDIA driver 617.14.
34- Strata commit `d5ea7133741e67743c0e886bb426c0ce8d69cf6c` ("Version 0.1.40.3"); engine
35  **0.1.40.3**, `source=local`, CUDA architectures `[120]`, vision compiled for CUDA —
36  [BUILD.json](BUILD.json).
37- CUDA 13.0.48 (`nvcc` V13.0.48); GCC 13.3.0; Python 3.12.3. Installed Python packages:
38  [python-packages.txt](python-packages.txt).
39- The whole environment is in [environment.txt](environment.txt), including the exact
40  `docker run` lines, the WSL2 memory setting and the base image digest.
41
42## Model and configuration
43
44Model: `ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-Coder-GGUF` at the revision the installer
45pins, `5348543e0147355ac9cbcb031184a3546350988e` (2026-09-29):
46
47- `IQ1_M/Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf` — 29,608,446,496 B
48- `IQ1_M/Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf` — 28,800,138,432 B
49- `mmproj-Qwen3.8-Flash-Next-BF16.gguf` — 907,543,008 B
50
51All three local SHA-256 hashes matched the repository's published LFS oids
52([sha256.txt](sha256.txt), [model-provenance.json](model-provenance.json)). The MTP draft
53layer was fetched from `Qwen/Qwen3.8-Flash-Next` by the installer (31 tensors, 5.214 GB,
54per-tensor hashes in [mtp-manifest.json](mtp-manifest.json)); the full BF16 shards were not
55downloaded. The unmodified installer prepared the pack (`/data/packs/coder-iq1_m`, 1.4 GB
56on disk) and the Q2_0 MTP experts.
57
58Both configurations were produced by the image's own entrypoint from the same
59`strata-data` volume; only `CONTEXT` and `REINSTALL` differ between them. The recorded
60engine configuration is [config-131072.json](config-131072.json) and
61[config-65536.json](config-65536.json):
62
63```text
64# 131,072-token limit
65docker run -d --name strata --gpus all --network strata-net \
66  -p 127.0.0.1:8080:8080 --ulimit memlock=-1 --stop-timeout 60 \
67  -v strata-data:/data \
68  -e FAMILY=coder -e MODEL=IQ1_M -e CONTEXT=131072 -e VISION=cpu -e GPU=0 strata
69
70# 65,536-token limit, same volume
71  ... -e CONTEXT=65536 -e VISION=cpu -e GPU=0 -e REINSTALL=1 strata
72```
73
74Settings both configurations share: `--expert-cache auto`, `--prefill auto`, `--kv int8`,
75`--spec 4 --spec-min-p 0.5`, MTP on, `--vram-reserve-mib 700`, low-RAM mode off, the
76experimental speed projection off, no calibration, no custom expert profile, temperature 0,
77`reasoning_effort: none`, 256 generated tokens per speed run. Vision is on with the encoder
78on the **CPU** (`VISION=cpu`, 16 threads, 300 image tokens), which is the first thing worth
79noting: nothing about this configuration was tuned by hand.
80
81What differs, from the engine's startup log:
82
83| | 131,072 limit | 65,536 limit |
84| --- | --- | --- |
85| Expert cache | 3,554 slots, 6.78 GiB VRAM | 4,060 slots, 7.73 GiB VRAM |
86| Free VRAM at load | 152 MiB | 178 MiB |
87| KV | INT8 | INT8, streaming off, resident in VRAM |
88| Prefill chunk | 8,192 tokens, borrows 2,172 cache slots | 8,192 tokens |
89
90At 131,072 the engine warned about its own configuration:
91
92```text
93strata serve: 152 MiB of VRAM free with everything loaded - LOW: requests may stall;
94add --vram-reserve-mib 1060 to the config's args (or lower --max-context)
95```
96
97So a 16 GB card at a 128K context leaves almost nothing spare, and the engine says so
98itself. Nothing below failed because of it: no request was refused for VRAM and none
99stalled, at either limit, including the 130,560-token prompt.
100
101## Method
102
103The benchmark is the script from
104[bench/results/2026-09-30-community-rtx-5090/benchmark.py](../2026-09-30-community-rtx-5090/benchmark.py),
105attached here as [benchmark.py](benchmark.py), **unchanged except for four defaults**
106(`--root /opt/strata`, `--pack /data/packs/coder-iq1_m`, `--url http://127.0.0.1:8080`,
107`--out /data/bench`), so the numbers stay comparable with that report. It builds
108deterministic synthetic Python functions, puts a different nonce near the start of every
109request so no prompt prefix can be reused, counts the complete rendered chat prompt with
110Strata's own tokenizer, and verifies its count against the engine afterwards.
111
112One warm-up request was excluded. Three runs were executed at each length, serially, in
113increasing-length order, on the same loaded engine. Every measured request read its entire
114prompt: **zero reused tokens** in all 33 runs (`reused: 0`, `prompt_read == prompt_total`).
115Loading time is not included. Both context limits were measured in their own session on a
116freshly loaded model; see the limitations.
117
118Streaming TTFT is measured from immediately before the HTTP request until the first
119non-empty text delta, ignoring empty role chunks; with reasoning off that delta is answer
120text. Total latency ends at the end of the stream; both include HTTP and front-end
121tokenization on loopback. Prompt throughput is fresh tokens divided by the engine's
122`prompt_ms`; decode throughput is `engine_generated / decode_ms`. Per-run records — the
123engine's timings and draft statistics, the client's TTFT and total latency, the output
124text and a SHA-256 of each request body — are in `data-131072/results.json` and
125`data-65536/results.json`. The request bodies themselves are not committed because
126`benchmark.py` rebuilds them deterministically; compare the recorded `request_sha256`
127after a re-run to confirm it reproduced the same prompt.
128
129Memory was sampled once per second from the engine's own `/metrics` by
130[monitor.py](monitor.py) and summarised by
131[summarize-telemetry.py](summarize-telemetry.py). Every memory number in this report comes
132from the engine's view, not from `nvidia-smi`, which inside a container reports the whole
133GPU and not the container's share.
134
135## Results
136
137Each cell is the median **[minimum–maximum]** of three runs. Every request generated 256
138tokens and stopped at the output limit; there were no failed or cancelled speed requests.
139
140**Context limit 131,072** (`data-131072/`, session of 2026-10-07 ~22:22):
141
142| Prompt tokens | Reused | Prompt tok/s | Decode tok/s | TTFT seconds | Total seconds |
143| ---: | ---: | ---: | ---: | ---: | ---: |
144| 4,096 | 0 | 2,252.8 [2,138.8–2,267.5] | 75.7 [72.6–77.9] | 1.849 [1.839–1.948] | 5.306 [5.100–5.350] |
145| 8,192 | 0 | 3,009.2 [2,998.9–3,063.1] | 79.9 [78.9–80.8] | 2.772 [2.706–2.780] | 5.929 [5.913–5.940] |
146| 16,384 | 0 | 3,197.3 [3,184.2–3,304.9] | 79.1 [77.6–81.0] | 5.166 [5.002–5.189] | 8.402 [8.136–8.442] |
147| 32,768 | 0 | 3,304.3 [3,271.8–3,311.9] | 80.8 [75.6–82.4] | 9.981 [9.960–10.081] | 13.223 [13.057–13.316] |
148| 65,536 | 0 | 3,299.4 [3,269.5–3,310.9] | 73.8 [73.8–77.5] | 19.958 [19.884–20.137] | 23.400 [23.166–23.584] |
149| 130,560 | 0 | 3,076.5 [2,942.9–3,200.6] | 72.2 [71.0–76.1] | 42.612 [40.959–44.532] | 46.131 [44.292–48.114] |
150
151**Context limit 65,536** (`data-65536/`, session of 2026-10-07 ~22:37):
152
153| Prompt tokens | Reused | Prompt tok/s | Decode tok/s | TTFT seconds | Total seconds |
154| ---: | ---: | ---: | ---: | ---: | ---: |
155| 4,096 | 0 | 2,194.1 [2,113.8–2,221.6] | 73.1 [72.1–78.2] | 1.904 [1.882–1.970] | 5.379 [5.127–5.495] |
156| 8,192 | 0 | 2,781.6 [2,760.3–2,804.9] | 76.4 [75.2–76.8] | 2.981 [2.963–3.010] | 6.332 [6.288–6.336] |
157| 16,384 | 0 | 3,001.3 [2,997.2–3,016.8] | 78.5 [68.4–78.6] | 5.523 [5.480–5.539] | 8.741 [8.707–9.241] |
158| 32,768 | 0 | 3,034.9 [3,016.7–3,084.7] | 71.5 [70.3–73.6] | 10.873 [10.702–10.945] | 14.419 [14.148–14.550] |
159| 65,024 | 0 | 3,027.7 [3,003.6–3,197.0] | 73.8 [73.7–79.9] | 21.582 [20.441–21.762] | 25.028 [23.619–25.203] |
160
161The two limits are **not** in the expected order: at every shared prompt length the
162131,072-token configuration measured equal or slightly faster (decode 80.8 vs 71.5 tok/s at
16332,768; prefill 3,304 vs 3,035 tok/s), even though it has the *smaller* expert cache
164(3,554 vs 4,060 experts, 6.78 vs 7.73 GiB of VRAM) and only 152 MiB of free VRAM. Decode
165ranges at 32,768 do not overlap (128K: 75.6–82.4; 64K: 70.3–73.6), so this is not obviously
166run-to-run noise, but with one session per configuration and no interleaving we did **not**
167isolate the cause and do not claim that a smaller context is slower in general. It is
168reported because it is what was measured, and because the cache sizes alone do not predict it.
169
170Decode expert-cache hit rates were 81.0–87.0% across the 33 measured runs (`hit_rate` in
171`results.json`); draft acceptance was 140–162 of the 196–237 drafts offered.
172
173### Memory
174
175From the one-second samples (peaks and ranges; a sampled peak can miss a shorter spike):
176
177| | 131,072 limit | 65,536 limit |
178| --- | ---: | ---: |
179| GPU memory used, peak (of 15.92 GiB) | 15.82 GiB | 15.74 GiB |
180| Host RAM used, peak (of 54.92 GiB) | 29.77 GiB | 29.49 GiB |
181| Free VRAM as the engine reports it | 152 MiB | 178 MiB |
182| GPU temperature, peak | 68 °C | 65 °C |
183| GPU power, peak (limit 360 W) | 267 W | 268 W |
184| Disk read, peak | 230 MB/s (recall run) / 3.7 MB/s (speed run) | 3.6 MB/s |
185
186`gpu_mem_used` comes from the engine's `/metrics`, so it is the process-plus-context
187allocation rather than the card's total. The 230 MB/s peak was recorded during the 128K
188recall run: on very long prompts the experts that the prompt path's borrowed cache slots do
189not cover are read from the SSD, which is the behaviour the engine documents.
190
191## Correctness
192
193The repository's unchanged `tools/needle_bench.py` found **all nine needles** on the
194131,072-token configuration — depths 10%, 50% and 90% at lengths 32k, 64k and 128k. Actual
195prompt lengths were 32,343–32,344, 62,625–62,627 and 125,919–125,920 tokens; every answer
196matched the expected code word. On the 65,536-token configuration the same command found
197**6 of 6** (32k and 64k; 128k skipped because the server's context is 65,536), and the skip
198is recorded in the output rather than silently dropped. See
199[data-131072/needles.json](data-131072/needles.json) and
200[data-65536/needles.json](data-65536/needles.json).
201
202The vision path was checked with [image-check.py](image-check.py), which draws a code word
203with Pillow and sends it as an OpenAI `image_url` data URL. With the encoder on the CPU the
204model answered `K7QX-4291` for the drawn `K7QX-4291` in 1.1 s at 261 prompt tokens
205([data-131072/image-check.json](data-131072/image-check.json),
206[image-check.png](data-131072/image-check.png)). The encoder falling back to the CPU is
207visible in the log as `ggml_cuda_init: failed to initialize CUDA` followed by
208`strata-vision: on the CPU, 16 threads`, which is what `VISION=cpu` asks for.
209
210## Notes for users of this environment
211
2121. **Docker Desktop's default RAM makes the installer choose the low-RAM mode.** With no
213   `%UserProfile%\.wslconfig`, Docker Desktop caps the WSL2 VM at 50% of host RAM, so the
214   container saw ~31 GB of the host's 64 GB. `setup.py` reads RAM from `/proc/meminfo`, so it
215   did not error — it selected the low-RAM mode ("the GPU holds ~38% of IQ1_M's experts, the
216   other ~15 GB stay in RAM, read once from a copy in the model folder"). A 32 GB PC is a
217   documented low-RAM case, but on a 64 GB PC it is silent and unwanted. Adding
218   `[wsl2]` / `memory=56GB` ([wslconfig.txt](wslconfig.txt)) and restarting
219   (`wsl --shutdown`) gives the container 54.9 GiB and the normal mode. Both measured runs
220   used the normal mode.
2212. **A request needs 8 tokens of headroom.** `prompt + max_tokens + 8 ≤ max_context`, and
222   the engine does not truncate. A 65,280-token prompt with `max_tokens: 256` on the
223   65,536-token limit was refused with HTTP 400: *"prompt (65280 tokens) + max tokens (256)
224   exceeds the context (65536); requests are never truncated. Send a smaller max_tokens (at
225   most 248 here)"*. [probe-request.py](probe-request.py) reproduces it. The largest prompt
226   measured here therefore leaves 512 tokens: 130,560 of 131,072 and 65,024 of 65,536.
2273. **The port is published on `127.0.0.1` only**, so no API key was set
228   (`"api_key": false` in `/health`). Other containers reach the same server over a
229   user-defined Docker network at `http://strata:8080`; nothing was exposed to the LAN.
230
231## Limitations
232
233- **One session per configuration.** The warm-up state differs between them, and the
234  128K-vs-64K comparison in the results is a comparison of two sessions, not of two
235  interleaved settings. The engine's own log shows CUDA-graph capture
236  (`strata verify: capturing the N-token window`) happening during the first requests of a
237  session, which is one candidate explanation for the ordering; it was not tested. Treat the
238  difference as an observation to reproduce, not a result.
239- **One machine, one quantization, one GPU, one synthetic workload.** Long output, sampled
240  decoding, thinking, multi-request concurrency (`parallel`), tool use and a sustained
241  thermal run were not evaluated. The needle and image checks measure recall and reading on
242  those specific inputs, not general model quality.
243- **The PCIe link ran at x8 of a possible x16**, and the card reports a maximum width of
244  x16. The engine measured 28.9 GB/s host-to-device; the RTX 5090 report on a Gen5 x16 link
245  measured 50.0 GB/s. Whether the narrower link costs anything here was not tested — the
246  link is a property of this machine's slot wiring, so absolute numbers may move on a host
247  that runs the card at x16.
248- **Windows and WSL2 are between Strata and the hardware.** File I/O and page-locked memory
249  go through the WSL2 VM; `--ulimit memlock=-1` was passed and the engine reported
250  `MAP_HUGETLB unavailable` with transparent huge pages requested instead. Numbers from a
251  bare-metal Linux host with the same card are not guaranteed to match.
252- **Timings include the whole client path** (HTTP, front-end tokenization, loopback) and are
253  measured at the client, not inside the engine.
254- The 131,072-token configuration logged the engine's own VRAM warning quoted above. It did
255  not cause a failure in any measured run, but it is a real margin of 152 MiB and a reason
256  to prefer `--vram-reserve-mib 1060` (or a smaller context) for unattended use.
257- One telemetry file, `data-131072/telemetry-speed-overlapped.jsonl`, was written by two
258  samplers that overlapped for about eleven minutes (819 of 820 lines parse; the timestamps
259  contain one discontinuity). Only peaks and ranges are taken from it. The clean runs are
260  `data-131072/telemetry-checks.jsonl` and `data-65536/telemetry-speed.jsonl`.
261
262## Files
263
264| File | What it is |
265| --- | --- |
266| `benchmark.py`, `monitor.py`, `summarize-telemetry.py`, `image-check.py`, `probe-request.py` | the scripts, runnable as documented above |
267| `data-131072/`, `data-65536/` | `results.json` (per-run engine timings, draft statistics, output text, request hashes) and `summary.json`, the telemetry and its memory summary, `needles.json`, the image check, and the engine's status at startup |
268| `config-131072.json`, `config-65536.json`, `engine-131072.log`, `engine-65536.log` | the recorded configuration and the unabridged engine log of each session |
269| `environment.txt`, `python-packages.txt`, `wslconfig.txt` | host and container environment |
270| `model-provenance.json`, `sha256.txt`, `mtp-manifest.json`, `mtp-inventory.md` | what was downloaded and its hashes |
271| `BUILD.json` | the engine the image compiled |