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
2 folders20 files

files

data-131072/
data-65536/
BUILD.json220 B
README.md16.9 KiB
TRIMMED.md433 B
benchmark.py7.3 KiB
config-131072.json1.1 KiB
config-65536.json1.1 KiB
engine-131072.log8.0 KiB
engine-65536.log14.7 KiB
environment.txt3.6 KiB
image-check.py2.6 KiB
model-provenance.json3.0 KiB
monitor.py2.3 KiB
mtp-inventory.md2.4 KiB
mtp-manifest.json11.4 KiB
mtp-q2_0.gguf.report.json3.5 KiB
probe-request.py918 B
python-packages.txt233 B
sha256.txt364 B
summarize-telemetry.py2.3 KiB
wslconfig.txt260 B

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

Model and configuration

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

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

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