Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.
C++
bench: community results, RTX 2080 Ti 11 GB + Threadripper 3960X, IQ3_S at 262K with KV streaming (#469)
homeofe707fd49eb4ee
diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/BUILD.json b/bench/results/2026-10-02-community-rtx2080ti-11gb/BUILD.jsonnew file mode 100644index 000000000..e67d8b4e9--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/BUILD.json@@ -0,0 +1,14 @@+{+ "source": "local",+ "version": "0.1.33",+ "archs": [+ 75+ ],+ "vision": "gpu",+ "cuda_dirs": [+ "/usr/bin",+ "/usr/lib64"+ ],+ "src": "bd5219cbd261b225",+ "vision_src": "4d89409b228a1daa"+}\ No newline at end of filediff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/README.md b/bench/results/2026-10-02-community-rtx2080ti-11gb/README.mdnew file mode 100644index 000000000..e02a8eeca--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/README.md@@ -0,0 +1,326 @@+# Community benchmark on RTX 2080 Ti 11 GB++Measured on 2026-10-02 by [homeofe](https://github.com/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](BUILD.json)).+ - The server runs `main` at `aeb35be` (tag `v0.1.33` plus 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 by `setup.sh` on 2026-10-01. Setup pins revision+ `ed59f92082b1e93c0e96d60a8b11aab089b52f09`; 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_s` prepared by setup (`tools/iq_pack.py`); MTP draft layer+ `mtp/rt` from setup; the bundled `data/expert-profile.bin`. No calibration, no+ custom profile, no control vectors.+- **Vision:** `strata-vision` on 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 `auto` chose 3,072-token prompt chunks; the prompt path borrows 1,361+ cache slots (2.61 GiB).+ - VRAM reserve 700 MiB. Low-RAM mode off.+- **Decoding:** MTP `--spec 4 --spec-min-p 0.5` (plus the built-in suffix drafts).+ Requests used `reasoning_effort: "none"` and `temperature: 0`. Experimental speed+ projection off (`projection: null` in every request record).+- The server unloads the model after 1,800 s idle (`idle_unload_s`). It stayed+ loaded throughout; every run checked `/health` `loaded: true` first.++Configuration with the API key removed and the install path replaced by `<workspace>`:+[strata-iq3_s.json](strata-iq3_s.json). The launch, from the systemd user unit+(`LimitMEMLOCK=16867729408`), was:++```text+.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](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:++```text+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](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/docs` was not present in the+ checkout used, which was at `aeb35be`). 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 with `stream_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`+- [run_needles.py](run_needles.py): runs the unchanged `tools/needle_bench.py` with+ `--lengths 32k,128k --depths 10,50,90` and keeps the engine log lines.+- [image_check.py](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;+ squares` exactly.+- [monitor.py](monitor.py): once per second, nvidia-smi memory/utilization/power,+ `/proc/meminfo` and the RSS of `strata` and `strata-vision`, written to+ [data/telemetry.jsonl](data/telemetry.jsonl). It ran through all measurements.+- [summarize.py](summarize.py): builds [runs.csv](runs.csv) and+ [summary.json](summary.json), including per-run memory peaks.++**Foreign-traffic check:**+- Before every request, the scripts wait until `GET /status` reports `busy: false,+ queued: 0` for 3 s.+- After it, the run is discarded and repeated if `GET /metrics` counted more than+ one finished request or the engine log gained more than one `strata serve:+ prompt` line.+- 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.used` for the whole card.+- Host RAM is `MemTotal - MemAvailable` for the whole system, including other+ services. It is not process RSS.++Per-run JSON in [data/](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:++```text+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](runs.csv); aggregates: [summary.json](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.+- `strata` RSS: 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-vision` RSS: 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/](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](data/needles.json); engine lines in+[data/needles-run.json](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](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 `main` plus 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.diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/TRIMMED.md b/bench/results/2026-10-02-community-rtx2080ti-11gb/TRIMMED.mdnew file mode 100644index 000000000..c00cddf3f--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/TRIMMED.md@@ -0,0 +1,13 @@+# Trimmed files++Ported from PR #469 for 0.1.40.2. Raw dumps, logs and binaries were left out to keep the repository small;+the README, summaries, configs and per-run results are unchanged. The files below were in the original PR.++4 files, 0.8 MB:++| file | bytes | why |+|---|---:|---|+| `data/image-run1.png` | 7,707 | binary |+| `data/image-run2.png` | 8,141 | binary |+| `data/image-run3.png` | 6,413 | binary |+| `data/telemetry.jsonl` | 781,536 | log/raw dump |diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/bench_server.py b/bench/results/2026-10-02-community-rtx2080ti-11gb/bench_server.pynew file mode 100644index 000000000..bf7abb3ef--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/bench_server.py@@ -0,0 +1,207 @@+#!/usr/bin/env python3+"""Fresh-prompt read + decode speed, and follow-up turns on a long conversation, through a running Strata server.++Every measured prompt starts with its own nonce, so no earlier prompt's prefix can be reused: each fresh run reads its+whole prompt (the engine log's "N reused" confirms it). The prompt text is the repository's own files (the haystack+of tools/needle_bench.py: docs, sources), cut to an exact token count with the pack's tokenizer and the chat+template, followed by a request for ~600 words of plain prose; the output cap is 400 tokens, greedy, reasoning+off (reasoning_effort "none"). Prompts of 100K tokens or more carry a code word at 40 % depth; with --followup, the+last run of such a size is followed by a second user turn on the same conversation (the long prefix reused) that+asks for the code word and ~400 more words.++Before every request the script waits until GET /status says busy=false, queued=0 for 3 s. After it, the run is+discarded and repeated if GET /metrics counted more than one finished request or the engine log shows more than one+prompt line (someone else's request overlapped). Run with the install's Python (it needs `regex` for the tokenizer):++ STRATA_API_KEY=... python bench_server.py --targets 4096,32768,128000 --runs 3 --followup+ python bench_server.py --key-config <server config.json> --targets 250000 --runs 1 --followup+"""+from __future__ import annotations++import argparse+import hashlib+import json+import random+import sys+import time+import urllib.request+from pathlib import Path++from common import LogTail, Server, api_key, parse_engine, scrub_lines++HERE = Path(__file__).resolve().parent+ROOT = HERE.parents[2]+sys.path[:0] = [str(ROOT), str(ROOT / "tools")]++from strata_tokenizer import Tokenizer # noqa: E402+from serve.frontend import ChatTemplate, openai_to_messages # noqa: E402+from needle_bench import haystack # noqa: E402++ENDING = ("\n\nWrite a plain-prose overview of the material above in about 600 words, as continuous paragraphs "+ "without lists, headings or code.")+FOLLOWUP = ("What is the secret code word mentioned in the text above? Write the code word first, on its own line. "+ "Then, in about 400 words of plain prose, explain how the server described in these files handles a "+ "long prompt.")+WORDS = ["amber", "falcon", "quartz", "willow", "copper", "harbor", "saffron", "glacier", "orchid", "lantern"]+++def load_tokenizer(directory: Path):+ vocab = json.loads((directory / "vocab.json").read_text())+ tokens = [None] * len(vocab)+ for token, number in vocab.items():+ tokens[number] = token+ tok = Tokenizer(tokens, (directory / "merges.txt").read_text().splitlines(),+ json.loads((directory / "token_type.json").read_text()))+ return tok, ChatTemplate(directory / "chat_template.jinja")+++def body(messages, max_tokens):+ return {"model": "strata", "messages": messages, "temperature": 0, "reasoning_effort": "none",+ "max_tokens": max_tokens, "stream": True, "stream_options": {"include_usage": True}}+++def stream(server: Server, req: dict, timeout: float = 3600) -> dict:+ data = json.dumps(req).encode()+ first = finish = usage = timings = None+ texts, keepalives = [], 0+ t0 = time.perf_counter()+ wire = urllib.request.Request(server.url + "/v1/chat/completions", data=data, headers=server.headers())+ with urllib.request.urlopen(wire, timeout=timeout) as resp:+ for raw in resp:+ line = raw.decode("utf-8", errors="replace").strip()+ if line.startswith(":"):+ keepalives += 1+ continue+ if not line.startswith("data: "):+ continue+ payload = line[6:]+ if payload == "[DONE]":+ break+ chunk = json.loads(payload)+ usage = chunk.get("usage") or usage+ timings = chunk.get("timings") or timings+ for choice in chunk.get("choices", []):+ delta = choice.get("delta") or {}+ text = (delta.get("content") or "") + (delta.get("reasoning_content") or "")+ if text:+ if first is None:+ first = time.perf_counter() - t0+ texts.append(text)+ finish = choice.get("finish_reason") or finish+ return {"request_sha256": hashlib.sha256(data).hexdigest(), "client_ttft_s": first,+ "client_total_s": time.perf_counter() - t0, "finish_reason": finish, "usage": usage, "timings": timings,+ "keepalives": keepalives, "text": "".join(texts)}+++def main():+ ap = argparse.ArgumentParser(description=__doc__.split("\n\n")[0])+ ap.add_argument("--url", default="http://127.0.0.1:8080")+ ap.add_argument("--key-config", help="server config JSON to read api_key from (else STRATA_API_KEY)")+ ap.add_argument("--tokenizer", required=True, help="the pack's tokenizer directory")+ ap.add_argument("--engine-log", required=True)+ ap.add_argument("--server-log", required=True)+ ap.add_argument("--out", type=Path, default=HERE / "data")+ ap.add_argument("--targets", default="4096,32768,128000")+ ap.add_argument("--runs", type=int, default=3)+ ap.add_argument("--max-tokens", type=int, default=400)+ ap.add_argument("--followup", action="store_true", help="a follow-up turn after the last run of sizes >= 100K")+ ap.add_argument("--warmup", action="store_true", help="one short unmeasured request first")+ ap.add_argument("--seed", type=int, default=2026)+ a = ap.parse_args()+ a.out.mkdir(parents=True, exist_ok=True)+ server = Server(a.url, api_key(a.key_config))+ tok, tpl = load_tokenizer(Path(a.tokenizer))+ elog, slog = LogTail(a.engine_log), LogTail(a.server_log)+ rnd = random.Random(a.seed)+ hay = haystack(1_100_000)++ def count(messages):+ m, tools, kw = openai_to_messages(body(messages, 1))+ return len(tok.encode(tpl.render(m, tools, **kw), parse_special=True))++ def measured(label, messages, meta):+ for attempt in range(1, 4):+ status = server.wait_idle()+ if not server.loaded():+ print(" the model is unloaded: this request would include loading; aborting", flush=True)+ raise SystemExit(2)+ before = server.totals()+ elog.mark(), slog.mark()+ t_start = time.time()+ print(f"start {label} (attempt {attempt}) {meta.get('expected_prompt_tokens')} tokens", flush=True)+ res = stream(server, body(messages, a.max_tokens))+ t_end = time.time()+ time.sleep(1.5) # the engine prints its timing lines after DONE+ after = server.totals()+ elines, slines = elog.since(), slog.since()+ parsed = parse_engine(elines)+ metrics = server.get("/metrics")["requests"][0]+ foreign = (after - before != 1) or len(parsed) != 1+ row = {"label": label, "attempt": attempt, "epoch_start": t_start, "epoch_end": t_end, **meta, **res,+ "status_before": status, "totals_before": before, "totals_after": after, "foreign_overlap": foreign,+ "engine": parsed[0] if parsed else None, "metrics_record": metrics,+ "engine_log": scrub_lines(elines), "server_log": scrub_lines(slines)}+ name = f"{label}" + ("" if not foreign else f"-discarded-{attempt}")+ (a.out / f"{name}.json").write_text(json.dumps(row, indent=1, ensure_ascii=False) + "\n")+ e = parsed[0] if parsed else {}+ print(f"done {label}: {e.get('line', '(no engine line)')} ttft {res['client_ttft_s']:.2f} s "+ f"total {res['client_total_s']:.1f} s foreign={foreign}", flush=True)+ if not foreign:+ return row+ print(" foreign traffic overlapped this run: discarded, repeating", flush=True)+ raise SystemExit(f"{label}: three attempts overlapped with other requests")++ if a.warmup:+ server.wait_idle()+ r = stream(server, body([{"role": "user", "content": "Reply with exactly the word READY."}], 8))+ print("warm-up:", r["text"].strip(), flush=True)++ for target in map(int, a.targets.split(",")):+ for run in range(1, a.runs + 1):+ label = f"fresh-{target}-run{run}"+ nonce = f"Benchmark nonce {label}-{rnd.getrandbits(48):012x}.\n"+ head = nonce + "The text below is a collection of files from a software repository.\n"+ word = None+ if target >= 100_000:+ word = f"{rnd.choice(WORDS)}-{rnd.choice(WORDS)}-{rnd.randint(100, 999)}"++ def build(n):+ text = hay[:n]+ if word:+ cut = text.rfind("\n", 0, int(n * 0.40)) + 1+ text = text[:cut] + f"\nThe secret code word for this text is: {word}. Remember it.\n" + text[cut:]+ return [{"role": "user", "content": head + text + ENDING}]++ guess = int(target * 3.3)+ lo, hi = max(0, int(guess * 0.8)), min(len(hay), int(guess * 1.25))+ if count(build(lo)) > target:+ lo = 0+ if count(build(hi)) <= target:+ raise SystemExit(f"the haystack is too short for {target} tokens")+ while lo < hi: # largest cut whose prompt fits in `target` tokens+ mid = (lo + hi + 1) // 2+ if count(build(mid)) <= target:+ lo = mid+ else:+ hi = mid - 1+ messages = build(lo)+ n = count(messages)+ meta = {"kind": "fresh", "target": target, "run": run, "expected_prompt_tokens": n, "needle": word,+ "needle_depth_pct": 40 if word else None, "max_tokens": a.max_tokens}+ row = measured(label, messages, meta)+ if word:+ row["needle_found_in_first_answer"] = word in row["text"]+ if a.followup and word and run == a.runs:+ follow = messages + [{"role": "assistant", "content": row["text"]},+ {"role": "user", "content": FOLLOWUP}]+ fmeta = {"kind": "followup", "target": target, "run": 1, "expected_prompt_tokens": count(follow),+ "needle": word, "needle_depth_pct": 40, "max_tokens": a.max_tokens,+ "follows": label}+ frow = measured(f"followup-{target}", follow, fmeta)+ frow["needle_found"] = word in frow["text"][:200]+ (a.out / f"followup-{target}.json").write_text(json.dumps(frow, indent=1, ensure_ascii=False) + "\n")+ print(f" code word {word}: {'FOUND' if frow['needle_found'] else 'missed'}", flush=True)+++if __name__ == "__main__":+ main()diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/common.py b/bench/results/2026-10-02-community-rtx2080ti-11gb/common.pynew file mode 100644index 000000000..f24462b1c--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/common.py@@ -0,0 +1,139 @@+"""Shared helpers for the scripts in this folder: talk to a running Strata server, wait until it is idle,+follow its logs, parse the engine's per-request timing lines and strip private details from what is saved.++The API key is read at run time from the STRATA_API_KEY environment variable or from the server's config+file (--key-config, its "api_key"); it is never written to any output."""+from __future__ import annotations++import json+import os+import re+import socket+import time+import urllib.request+from pathlib import Path++PROMPT_RE = re.compile(r"strata serve: prompt (\d+) tokens = (\d+) reused \+ (\d+) read in (\d+) ms \(([\d.]+) tok/s\), "+ r"(\d+) generated in (\d+) ms \(([\d.]+) tok/s\), drafts accepted (\d+) of (\d+), (\d+) checkpoints")+HIT_RE = re.compile(r"decode expert cache hit rate: ([\d.]+)% \((\d+) hits / (\d+) lookups\)")+KV_RE = re.compile(r"KV streaming: ([\d.]+)% of (\d+) block reads hit VRAM, ([\d.]+) MiB read from RAM")+SUFFIX_RE = re.compile(r"suffix drafts: (\d+) windows, (\d+) of (\d+) drafts accepted")+++def api_key(key_config: str | None) -> str:+ key = os.environ.get("STRATA_API_KEY", "")+ if not key and key_config:+ key = json.loads(Path(key_config).read_text()).get("api_key") or ""+ return key+++class Server:+ def __init__(self, url: str, key: str):+ self.url = url.rstrip("/")+ self.key = key++ def headers(self) -> dict:+ h = {"Content-Type": "application/json"}+ if self.key:+ h["Authorization"] = "Bearer " + self.key+ return h++ def get(self, path: str, timeout: float = 30) -> dict:+ req = urllib.request.Request(self.url + path, headers=self.headers())+ with urllib.request.urlopen(req, timeout=timeout) as r:+ return json.loads(r.read())++ def totals(self) -> int:+ """Requests finished since the server started (GET /metrics): a jump of more than one around a measured+ request means someone else's request ran in between."""+ return int(self.get("/metrics")["totals"]["requests"])++ def wait_idle(self, settle_s: float = 3.0, poll_s: float = 1.0) -> dict:+ """Block until GET /status reports busy=false and queued=0 for `settle_s` seconds in a row."""+ quiet_since = None+ while True:+ s = self.get("/status")+ if not s.get("busy") and not s.get("queued"):+ quiet_since = quiet_since or time.time()+ if time.time() - quiet_since >= settle_s:+ return s+ else:+ if quiet_since is not None:+ print(" server busy (foreign request?), waiting ...", flush=True)+ quiet_since = None+ time.sleep(poll_s)++ def loaded(self) -> bool:+ return bool(self.get("/health").get("loaded"))+++class LogTail:+ """Byte offset into a log file; `since()` returns the lines appended after `mark()`."""++ def __init__(self, path: str):+ self.path = Path(path)+ self.offset = 0++ def mark(self):+ self.offset = self.path.stat().st_size++ def since(self) -> list[str]:+ with self.path.open("rb") as f:+ f.seek(self.offset)+ data = f.read()+ return data.decode("utf-8", errors="replace").splitlines()+++def parse_engine(lines: list[str]) -> list[dict]:+ """One dict per 'strata serve: prompt ...' line, with the hit-rate / KV-streaming / suffix lines after it."""+ out = []+ for line in lines:+ m = PROMPT_RE.search(line)+ if m:+ g = m.groups()+ out.append({"prompt_tokens": int(g[0]), "reused": int(g[1]), "read": int(g[2]), "prompt_ms_log": int(g[3]),+ "prompt_tok_s_log": float(g[4]), "generated": int(g[5]), "decode_ms_log": int(g[6]),+ "decode_tok_s_log": float(g[7]), "drafts_accepted": int(g[8]), "drafts_proposed": int(g[9]),+ "checkpoints": int(g[10]), "cancelled": "(cancelled)" in line, "line": line.strip()})+ continue+ if not out:+ continue+ for key, rx in (("hit", HIT_RE), ("kv", KV_RE), ("suffix", SUFFIX_RE)):+ m = rx.search(line)+ if m:+ if key == "hit":+ out[-1].update(hit_rate_pct=float(m[1]), hit_line=line.strip())+ elif key == "kv":+ out[-1].update(kv_vram_pct=float(m[1]), kv_block_reads=int(m[2]), kv_ram_mib=float(m[3]),+ kv_line=line.strip())+ else:+ out[-1].update(suffix_windows=int(m[1]), suffix_accepted=int(m[2]), suffix_proposed=int(m[3]))+ return out+++_HOST = socket.gethostname()+_HOME = str(Path.home())+++def scrub(text: str) -> str:+ """Remove the install directory (STRATA_SCRUB_PREFIX, shown as <workspace>), the home directory, user name,+ a host name and LAN addresses from a log excerpt."""+ prefix = os.environ.get("STRATA_SCRUB_PREFIX") # the directory that holds Strata and Strata-data+ if prefix:+ text = text.replace(prefix.rstrip("/") + "/", "<workspace>/")+ text = text.replace(_HOME, "<home>")+ text = text.replace(os.environ.get("USER", "\0"), "<user>")+ if _HOST and len(_HOST) > 8: # a short host name can be an ordinary word in the log+ text = text.replace(_HOST, "<host>")+ text = re.sub(r"\b(?:192\.168|10\.\d+|172\.(?:1[6-9]|2\d|3[01]))\.\d+\.\d+\b", "<lan-ip>", text)+ return text+++def scrub_lines(lines: list[str]) -> list[str]:+ return [scrub(l) for l in lines if "from other devices" not in l]+++def sse_lines(resp):+ """Yield (t_seconds, raw_line) for each SSE line of an HTTP response."""+ for raw in resp:+ yield time.perf_counter(), raw.decode("utf-8", errors="replace").rstrip("\r\n")diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/data/followup-128000.json b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/followup-128000.jsonnew file mode 100644index 000000000..a4ee6c199--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/followup-128000.json@@ -0,0 +1,115 @@+{+ "label": "followup-128000",+ "attempt": 1,+ "epoch_start": 1790924028.836615,+ "epoch_end": 1790924042.0841727,+ "kind": "followup",+ "target": 128000,+ "run": 1,+ "expected_prompt_tokens": 128463,+ "needle": "lantern-falcon-213",+ "needle_depth_pct": 40,+ "max_tokens": 400,+ "follows": "fresh-128000-run3",+ "request_sha256": "70f0d5bc74fb35148c37f5e2c1ee79b0183ce1c15cd453fa2f6b69a1a9939e4e",+ "client_ttft_s": 1.8549455599859357,+ "client_total_s": 13.24583949195221,+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 128463,+ "completion_tokens": 400,+ "total_tokens": 128863,+ "prompt_tokens_details": {+ "cached_tokens": 128400+ }+ },+ "timings": {+ "cache_n": 128400,+ "prompt_n": 63,+ "prompt_ms": 1281.5,+ "prompt_per_token_ms": 20.341,+ "prompt_per_second": 49.2,+ "predicted_n": 400,+ "predicted_ms": 11428.4,+ "predicted_per_token_ms": 28.571,+ "predicted_per_second": 35.0,+ "draft_n": 351,+ "draft_n_accepted": 209+ },+ "keepalives": 2,+ "text": "lantern-falcon-213\n\nThe server described in these files handles long prompts through a sophisticated, chunked processing pipeline designed to manage memory constraints and maximize throughput by overlapping computation with data movement. When a request arrives, the engine does not attempt to process the entire prompt in a single pass, which would require prohibitive amounts of VRAM for intermediate activations and KV cache storage. Instead, it breaks the prompt into manageable chunks, typically up to 8,192 tokens in size, though this can be adjusted via configuration flags like `--prefill`. This chunking strategy allows the engine to reuse buffers and keep the working set within the available GPU memory.\n\nFor each chunk, the engine processes the model layers sequentially. A critical aspect of this process is the management of the Mixture-of-Experts (MoE) weights. Since the full set of expert weights often exceeds VRAM capacity, the engine employs a tiered memory system. The most frequently used experts are cached in VRAM, while others reside in system RAM or on SSD. During prompt processing, the engine streams the necessary expert weights from RAM or SSD into VRAM as they are needed for the current layer. This streaming is optimized using pinned host memory and asynchronous copy operations to overlap data transfer with GPU computation. The documentation highlights that for native packs without a dedicated `experts.bin` file, the engine reads expert data directly from the GGUF shards, using multi-threaded prefetching to keep the SSD queue full and minimize latency.\n\nThe attention mechanism, specifically the QSA (Query-Sparse Attention) or similar variants, is handled with specific kernels that can utilize tensor cores on NVIDIA GPUs or matrix cores on newer AMD RDNA4 architectures. For very long contexts, the KV cache itself may be streamed from RAM to VRAM, with only a resident window kept on the GPU. This is controlled by flags like `--kv-resident`. The engine also supports speculative decoding during the prompt phase in",+ "status_before": {+ "busy": false,+ "queued": 0,+ "phase": "answering",+ "prompt_tokens": 128000,+ "generated": 400,+ "max_tokens": 400+ },+ "totals_before": 12,+ "totals_after": 13,+ "foreign_overlap": false,+ "engine": {+ "prompt_tokens": 128463,+ "reused": 128400,+ "read": 63,+ "prompt_ms_log": 1281,+ "prompt_tok_s_log": 49.2,+ "generated": 400,+ "decode_ms_log": 11428,+ "decode_tok_s_log": 35.0,+ "drafts_accepted": 209,+ "drafts_proposed": 351,+ "checkpoints": 6,+ "cancelled": false,+ "line": "strata serve: prompt 128463 tokens = 128400 reused + 63 read in 1281 ms (49.2 tok/s), 400 generated in 11428 ms (35.0 tok/s), drafts accepted 209 of 351, 6 checkpoints",+ "hit_rate_pct": 54.2,+ "hit_line": "strata serve: decode expert cache hit rate: 54.2% (126441 hits / 233439 lookups)",+ "kv_vram_pct": 95.86,+ "kv_block_reads": 7049460,+ "kv_ram_mib": 1176.7,+ "kv_line": "strata serve: KV streaming: 95.86% of 7049460 block reads hit VRAM, 1176.7 MiB read from RAM",+ "suffix_windows": 6,+ "suffix_accepted": 6,+ "suffix_proposed": 12+ },+ "metrics_record": {+ "projection": null,+ "time": 1790924029.3282752,+ "duration_s": 12.8,+ "finish": "length",+ "prompt_tokens": 128463,+ "reused": 128400,+ "output_tokens": 400,+ "engine_generated": 400,+ "prompt_ms": 1281.5,+ "decode_ms": 11428.4,+ "decode_tok_s": 35.0,+ "hit_rate": 0.542,+ "ram_blobs": 0,+ "file_blobs": 0,+ "file_mb": 0.0+ },+ "engine_log": [+ "strata serve: prompt 128463 tokens = 128400 reused + 63 read in 1281 ms (49.2 tok/s), 400 generated in 11428 ms (35.0 tok/s), drafts accepted 209 of 351, 6 checkpoints",+ "strata serve: decode expert cache hit rate: 54.2% (126441 hits / 233439 lookups)",+ "strata serve: KV streaming: 95.86% of 7049460 block reads hit VRAM, 1176.7 MiB read from RAM",+ "strata serve: suffix drafts: 6 windows, 6 of 12 drafts accepted"+ ],+ "server_log": [+ "[strata] reading the prompt: 128,456 of 128,463 tokens, 1 s so far",+ "[strata] answering: 24 of max 400 tokens, 30.4 tok/s, 2 s",+ "[strata] answering: 62 of max 400 tokens, 33.2 tok/s, 3 s",+ "[strata] answering: 97 of max 400 tokens, 33.7 tok/s, 4 s",+ "[strata] answering: 135 of max 400 tokens, 34.6 tok/s, 5 s",+ "[strata] answering: 175 of max 400 tokens, 35.6 tok/s, 6 s",+ "[strata] answering: 217 of max 400 tokens, 36.4 tok/s, 7 s",+ "[strata] answering: 252 of max 400 tokens, 36.2 tok/s, 8 s",+ "[strata] answering: 281 of max 400 tokens, 35.2 tok/s, 9 s",+ "[strata] answering: 320 of max 400 tokens, 35.3 tok/s, 10 s",+ "[strata] answering: 358 of max 400 tokens, 35.5 tok/s, 11 s",+ "[strata] answering: 390 of max 400 tokens, 34.9 tok/s, 13 s",+ "[strata] done: 400 tokens in 13 s (35.1 tok/s) (length, cancel=False), expert cache 54.2% hit"+ ],+ "needle_found": true+}diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/data/followup-250000.json b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/followup-250000.jsonnew file mode 100644index 000000000..f4047e5fd--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/followup-250000.json@@ -0,0 +1,115 @@+{+ "label": "followup-250000",+ "attempt": 1,+ "epoch_start": 1790925083.7678778,+ "epoch_end": 1790925099.8523955,+ "kind": "followup",+ "target": 250000,+ "run": 1,+ "expected_prompt_tokens": 250463,+ "needle": "glacier-falcon-113",+ "needle_depth_pct": 40,+ "max_tokens": 400,+ "follows": "fresh-250000-run1",+ "request_sha256": "cf2d9a518ea9dc2f4b809419ba7f0e9e78da4ea1cb0db6e6413420c6287931ec",+ "client_ttft_s": 4.551283943001181,+ "client_total_s": 16.08047249726951,+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 250463,+ "completion_tokens": 400,+ "total_tokens": 250863,+ "prompt_tokens_details": {+ "cached_tokens": 249993+ }+ },+ "timings": {+ "cache_n": 249993,+ "prompt_n": 470,+ "prompt_ms": 3556.5,+ "prompt_per_token_ms": 7.567,+ "prompt_per_second": 132.2,+ "predicted_n": 400,+ "predicted_ms": 11567.7,+ "predicted_per_token_ms": 28.919,+ "predicted_per_second": 34.6,+ "draft_n": 361,+ "draft_n_accepted": 214+ },+ "keepalives": 2,+ "text": "glacier-falcon-113\n\nThe server handles long prompts by breaking them into manageable chunks, typically up to 8,192 tokens at a time, rather than processing the entire sequence in a single pass. This chunking strategy is essential because the model’s architecture, which relies on a Mixture of Experts (MoE) design, requires significant memory bandwidth to access the vast number of expert weights. By processing in chunks, the engine can efficiently stream the necessary expert data from system RAM or SSD into GPU VRAM while simultaneously performing computations on the current chunk. This overlap between data transfer and computation is a key performance optimization, allowing the system to hide latency and maintain high throughput even when the model’s total weight size exceeds the available VRAM.\n\nFor each chunk, the engine first processes the input through the dense layers, such as attention and gated residual connections, which are primarily handled by the GPU. The critical step involves the MoE layers, where the router selects a subset of experts for each token. The engine then determines which of these selected experts are already resident in the GPU’s expert cache. If an expert is present, the GPU computes its output directly. If not, the system employs a hybrid approach: the CPU computes the missing experts using optimized vector instructions (AVX-512 or AVX2) while the GPU continues processing other parts of the layer or the next chunk. This parallel execution ensures that neither the CPU nor the GPU sits idle waiting for the other.\n\nThe engine also utilizes a sophisticated conversation cache to optimize repeated or incremental prompts. If a new request shares a prefix with a previously processed conversation, the server can reuse the Key-Value (KV) cache from the shared prefix, only processing the new tokens. This is managed through checkpoints that store the state of the model at various points in the conversation. For very long contexts, the KV cache itself may be streamed from RAM to VRAM, with only the most recently accessed portions",+ "status_before": {+ "busy": false,+ "queued": 0,+ "phase": "answering",+ "prompt_tokens": 250000,+ "generated": 400,+ "max_tokens": 400+ },+ "totals_before": 14,+ "totals_after": 15,+ "foreign_overlap": false,+ "engine": {+ "prompt_tokens": 250463,+ "reused": 249993,+ "read": 470,+ "prompt_ms_log": 3556,+ "prompt_tok_s_log": 132.2,+ "generated": 400,+ "decode_ms_log": 11568,+ "decode_tok_s_log": 34.6,+ "drafts_accepted": 214,+ "drafts_proposed": 361,+ "checkpoints": 6,+ "cancelled": false,+ "line": "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",+ "hit_rate_pct": 57.2,+ "hit_line": "strata serve: decode expert cache hit rate: 57.2% (135904 hits / 237410 lookups)",+ "kv_vram_pct": 94.66,+ "kv_block_reads": 6969288,+ "kv_ram_mib": 1498.3,+ "kv_line": "strata serve: KV streaming: 94.66% of 6969288 block reads hit VRAM, 1498.3 MiB read from RAM",+ "suffix_windows": 7,+ "suffix_accepted": 10,+ "suffix_proposed": 14+ },+ "metrics_record": {+ "projection": null,+ "time": 1790925084.6542559,+ "duration_s": 15.2,+ "finish": "length",+ "prompt_tokens": 250463,+ "reused": 249993,+ "output_tokens": 400,+ "engine_generated": 400,+ "prompt_ms": 3556.5,+ "decode_ms": 11567.7,+ "decode_tok_s": 34.6,+ "hit_rate": 0.572,+ "ram_blobs": 0,+ "file_blobs": 0,+ "file_mb": 0.0+ },+ "engine_log": [+ "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",+ "strata serve: decode expert cache hit rate: 57.2% (135904 hits / 237410 lookups)",+ "strata serve: KV streaming: 94.66% of 6969288 block reads hit VRAM, 1498.3 MiB read from RAM",+ "strata serve: suffix drafts: 7 windows, 10 of 14 drafts accepted"+ ],+ "server_log": [+ "[strata] reading the prompt: 250,456 of 250,463 tokens, 3 s so far",+ "[strata] answering: 22 of max 400 tokens, 30.3 tok/s, 4 s",+ "[strata] answering: 60 of max 400 tokens, 34.6 tok/s, 5 s",+ "[strata] answering: 97 of max 400 tokens, 35.2 tok/s, 6 s",+ "[strata] answering: 130 of max 400 tokens, 34.5 tok/s, 7 s",+ "[strata] answering: 166 of max 400 tokens, 34.8 tok/s, 8 s",+ "[strata] answering: 201 of max 400 tokens, 34.5 tok/s, 9 s",+ "[strata] answering: 242 of max 400 tokens, 35.1 tok/s, 11 s",+ "[strata] answering: 277 of max 400 tokens, 34.9 tok/s, 12 s",+ "[strata] answering: 312 of max 400 tokens, 34.8 tok/s, 13 s",+ "[strata] answering: 341 of max 400 tokens, 34.2 tok/s, 14 s",+ "[strata] answering: 380 of max 400 tokens, 34.5 tok/s, 15 s",+ "[strata] done: 400 tokens in 15 s (34.7 tok/s) (length, cancel=False), expert cache 57.2% hit"+ ],+ "needle_found": true+}diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-128000-run1.json b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-128000-run1.jsonnew file mode 100644index 000000000..d27225e90--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-128000-run1.json@@ -0,0 +1,154 @@+{+ "label": "fresh-128000-run1",+ "attempt": 1,+ "epoch_start": 1790923282.970276,+ "epoch_end": 1790923521.0064394,+ "kind": "fresh",+ "target": 128000,+ "run": 1,+ "expected_prompt_tokens": 128000,+ "needle": "orchid-saffron-902",+ "needle_depth_pct": 40,+ "max_tokens": 400,+ "request_sha256": "45ca1455d3583464c899284d4f84361bc3540d162a3ca29d208a6ca9b4c1e5d8",+ "client_ttft_s": 226.34345818776637,+ "client_total_s": 238.03423524601385,+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 128000,+ "completion_tokens": 400,+ "total_tokens": 128400,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "timings": {+ "cache_n": 0,+ "prompt_n": 128000,+ "prompt_ms": 225806.3,+ "prompt_per_token_ms": 1.764,+ "prompt_per_second": 566.9,+ "predicted_n": 400,+ "predicted_ms": 11727.2,+ "predicted_per_token_ms": 29.318,+ "predicted_per_second": 34.1,+ "draft_n": 350,+ "draft_n_accepted": 195+ },+ "keepalives": 43,+ "text": "The provided documentation details the architecture, configuration, and performance characteristics of Strata, a specialized inference engine designed to run large Mixture-of-Experts models, specifically the Qwen3.8-Flash-Next family, on consumer-grade hardware. The system’s core innovation lies in its sophisticated memory hierarchy, which balances GPU VRAM, system RAM, and SSD storage to accommodate models that far exceed the capacity of a single graphics card. By keeping the most frequently accessed expert weights in VRAM and streaming less active ones from RAM or disk, Strata enables high-throughput inference on machines with as little as 12 GB of VRAM, provided sufficient system RAM and fast storage are available. The engine supports multiple backends, with NVIDIA CUDA serving as the default and an experimental AMD HIP backend available for Linux users with RDNA2, RDNA3, and RDNA4 architectures.\n\nThe AMD HIP backend is a significant addition, offering support for cards such as the RX 7900 XT, RX 9070 series, and Radeon AI PRO R9700. This backend maps CUDA-shaped runtime calls to HIP and hipBLAS, utilizing specific hardware instructions like signed integer dot products for quantized kernels. While the NVIDIA path remains the primary focus, the AMD implementation has been validated on specific hardware configurations, demonstrating coherent output and competitive performance metrics. The documentation notes that while bit-identical results across backends are not guaranteed, the AMD path supports features like multi-GPU layer splitting and optional hipBLASLt tuning tables to accelerate dense projections. However, certain features like image processing and calibration are currently limited or unavailable on the AMD path, and the backend requires specific ROCm versions and driver configurations to function correctly.\n\nStrata’s operational model relies heavily on its expert cache and routing mechanisms. The engine uses a fixed expert profile to rank experts by usage frequency, ensuring that the most critical weights are resident in VRAM. For models that do not fit",+ "status_before": {+ "busy": false,+ "queued": 0,+ "phase": "answering",+ "prompt_tokens": 32768,+ "generated": 400,+ "max_tokens": 400+ },+ "totals_before": 9,+ "totals_after": 10,+ "foreign_overlap": false,+ "engine": {+ "prompt_tokens": 128000,+ "reused": 0,+ "read": 128000,+ "prompt_ms_log": 225806,+ "prompt_tok_s_log": 566.9,+ "generated": 400,+ "decode_ms_log": 11727,+ "decode_tok_s_log": 34.1,+ "drafts_accepted": 195,+ "drafts_proposed": 350,+ "checkpoints": 6,+ "cancelled": false,+ "line": "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",+ "hit_rate_pct": 54.9,+ "hit_line": "strata serve: decode expert cache hit rate: 54.9% (131806 hits / 240106 lookups)",+ "kv_vram_pct": 95.73,+ "kv_block_reads": 3463104,+ "kv_ram_mib": 596.0,+ "kv_line": "strata serve: KV streaming: 95.73% of 3463104 block reads hit VRAM, 596.0 MiB read from RAM",+ "suffix_windows": 12,+ "suffix_accepted": 14,+ "suffix_proposed": 22+ },+ "metrics_record": {+ "projection": null,+ "time": 1790923283.4307969,+ "duration_s": 237.6,+ "finish": "length",+ "prompt_tokens": 128000,+ "reused": 0,+ "output_tokens": 400,+ "engine_generated": 400,+ "prompt_ms": 225806.3,+ "decode_ms": 11727.2,+ "decode_tok_s": 34.1,+ "hit_rate": 0.549,+ "ram_blobs": 0,+ "file_blobs": 0,+ "file_mb": 0.0+ },+ "engine_log": [+ "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: decode expert cache hit rate: 54.9% (131806 hits / 240106 lookups)",+ "strata serve: KV streaming: 95.73% of 3463104 block reads hit VRAM, 596.0 MiB read from RAM",+ "strata serve: suffix drafts: 12 windows, 14 of 22 drafts accepted"+ ],+ "server_log": [+ "[strata] reading the prompt: 3,072 of 128,000 tokens, 4 s so far",+ "[strata] reading the prompt: 6,144 of 128,000 tokens, 8 s so far",+ "[strata] reading the prompt: 9,216 of 128,000 tokens, 13 s so far",+ "[strata] reading the prompt: 12,288 of 128,000 tokens, 17 s so far",+ "[strata] reading the prompt: 15,360 of 128,000 tokens, 22 s so far",+ "[strata] reading the prompt: 18,432 of 128,000 tokens, 26 s so far",+ "[strata] reading the prompt: 21,504 of 128,000 tokens, 31 s so far",+ "[strata] reading the prompt: 24,576 of 128,000 tokens, 36 s so far",+ "[strata] reading the prompt: 27,648 of 128,000 tokens, 40 s so far",+ "[strata] reading the prompt: 30,720 of 128,000 tokens, 45 s so far",+ "[strata] reading the prompt: 33,792 of 128,000 tokens, 50 s so far",+ "[strata] reading the prompt: 36,864 of 128,000 tokens, 55 s so far",+ "[strata] reading the prompt: 39,936 of 128,000 tokens, 59 s so far",+ "[strata] reading the prompt: 43,008 of 128,000 tokens, 64 s so far",+ "[strata] reading the prompt: 46,080 of 128,000 tokens, 69 s so far",+ "[strata] reading the prompt: 49,152 of 128,000 tokens, 74 s so far",+ "[strata] reading the prompt: 52,224 of 128,000 tokens, 79 s so far",+ "[strata] reading the prompt: 55,296 of 128,000 tokens, 85 s so far",+ "[strata] reading the prompt: 58,368 of 128,000 tokens, 90 s so far",+ "[strata] reading the prompt: 61,440 of 128,000 tokens, 95 s so far",+ "[strata] reading the prompt: 64,512 of 128,000 tokens, 100 s so far",+ "[strata] reading the prompt: 67,584 of 128,000 tokens, 106 s so far",+ "[strata] reading the prompt: 70,656 of 128,000 tokens, 111 s so far",+ "[strata] reading the prompt: 73,728 of 128,000 tokens, 117 s so far",+ "[strata] reading the prompt: 76,800 of 128,000 tokens, 122 s so far",+ "[strata] reading the prompt: 79,872 of 128,000 tokens, 128 s so far",+ "[strata] reading the prompt: 82,944 of 128,000 tokens, 133 s so far",+ "[strata] reading the prompt: 86,016 of 128,000 tokens, 139 s so far",+ "[strata] reading the prompt: 89,088 of 128,000 tokens, 145 s so far",+ "[strata] reading the prompt: 92,160 of 128,000 tokens, 151 s so far",+ "[strata] reading the prompt: 95,232 of 128,000 tokens, 157 s so far",+ "[strata] reading the prompt: 98,304 of 128,000 tokens, 163 s so far",+ "[strata] reading the prompt: 101,376 of 128,000 tokens, 169 s so far",+ "[strata] reading the prompt: 104,448 of 128,000 tokens, 175 s so far",+ "[strata] reading the prompt: 107,520 of 128,000 tokens, 182 s so far",+ "[strata] reading the prompt: 110,592 of 128,000 tokens, 188 s so far",+ "[strata] reading the prompt: 113,664 of 128,000 tokens, 194 s so far",+ "[strata] reading the prompt: 116,736 of 128,000 tokens, 201 s so far",+ "[strata] reading the prompt: 119,808 of 128,000 tokens, 207 s so far",+ "[strata] reading the prompt: 122,880 of 128,000 tokens, 213 s so far",+ "[strata] reading the prompt: 125,952 of 128,000 tokens, 220 s so far",+ "[strata] reading the prompt: 127,993 of 128,000 tokens, 225 s so far",+ "[strata] answering: 20 of max 400 tokens, 33.1 tok/s, 226 s",+ "[strata] answering: 54 of max 400 tokens, 33.2 tok/s, 228 s",+ "[strata] answering: 90 of max 400 tokens, 34.2 tok/s, 229 s",+ "[strata] answering: 121 of max 400 tokens, 33.3 tok/s, 230 s",+ "[strata] answering: 156 of max 400 tokens, 33.5 tok/s, 231 s",+ "[strata] answering: 191 of max 400 tokens, 33.7 tok/s, 232 s",+ "[strata] answering: 222 of max 400 tokens, 33.3 tok/s, 233 s",+ "[strata] answering: 261 of max 400 tokens, 33.9 tok/s, 234 s",+ "[strata] answering: 294 of max 400 tokens, 33.6 tok/s, 235 s",+ "[strata] answering: 334 of max 400 tokens, 34.0 tok/s, 236 s",+ "[strata] answering: 368 of max 400 tokens, 33.9 tok/s, 237 s",+ "[strata] done: 400 tokens in 238 s (34.2 tok/s) (length, cancel=False), expert cache 54.9% hit"+ ]+}diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-128000-run2.json b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-128000-run2.jsonnew file mode 100644index 000000000..2c87b6b1f--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-128000-run2.json@@ -0,0 +1,154 @@+{+ "label": "fresh-128000-run2",+ "attempt": 1,+ "epoch_start": 1790923534.0664766,+ "epoch_end": 1790923772.4877021,+ "kind": "fresh",+ "target": 128000,+ "run": 2,+ "expected_prompt_tokens": 128000,+ "needle": "glacier-lantern-551",+ "needle_depth_pct": 40,+ "max_tokens": 400,+ "request_sha256": "07f8ae57df75eb17dc068fc384bf229eb03b30f06b9f7a8fe5c7d530293d14ae",+ "client_ttft_s": 226.5888807689771,+ "client_total_s": 238.42010595137253,+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 128000,+ "completion_tokens": 400,+ "total_tokens": 128400,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "timings": {+ "cache_n": 0,+ "prompt_n": 128000,+ "prompt_ms": 226050.0,+ "prompt_per_token_ms": 1.766,+ "prompt_per_second": 566.2,+ "predicted_n": 400,+ "predicted_ms": 11865.9,+ "predicted_per_token_ms": 29.665,+ "predicted_per_second": 33.7,+ "draft_n": 348,+ "draft_n_accepted": 189+ },+ "keepalives": 43,+ "text": "The provided documentation details the architecture, configuration, and performance characteristics of Strata, a specialized inference engine designed to run large Mixture-of-Experts models, specifically the Qwen3.8-Flash-Next family, on consumer-grade hardware. The system relies on a sophisticated multi-tier memory hierarchy to manage the massive weight matrices that exceed the capacity of standard GPU VRAM. The core strategy involves keeping the most frequently accessed experts in GPU memory, less frequent experts in system RAM, and the remainder on high-speed SSD storage. This tiered approach allows the engine to maintain high throughput by overlapping CPU computation for RAM-resident experts with GPU computation for VRAM-resident experts, while streaming data from disk as needed. The engine supports various quantization formats, including IQ3_XXS, IQ2_XS, and Q2_0, with specific optimizations for native expert packing and compatibility with different model variants like the Coder and Swift fine-tunes.\n\nA significant portion of the documentation focuses on experimental support for AMD GPUs via the HIP backend. This backend targets RDNA2, RDNA3, and RDNA4 architectures, mapping CUDA-shaped runtime calls to HIP and hipBLAS. It utilizes specific hardware instructions, such as signed integer dot products and wave32 shuffle operations, to accelerate quantized kernels. The installation process for AMD cards is streamlined through a setup script that detects the GPU architecture and compiles the engine accordingly, often installing a specific version of ROCm if a system-wide installation is not present. Performance benchmarks for AMD cards, such as the RX 7900 XTX and RX 9070 XT, demonstrate competitive prompt processing and decode speeds, though certain features like vision encoding and hipBLASLt tuning tables may have limited support or require manual calibration. The documentation emphasizes that while the backend is functional, it is opt-in and does not claim bit-identical results across different backends, acknowledging minor numerical differences due to floating-point rounding and",+ "status_before": {+ "busy": false,+ "queued": 0,+ "phase": "answering",+ "prompt_tokens": 128000,+ "generated": 400,+ "max_tokens": 400+ },+ "totals_before": 10,+ "totals_after": 11,+ "foreign_overlap": false,+ "engine": {+ "prompt_tokens": 128000,+ "reused": 0,+ "read": 128000,+ "prompt_ms_log": 226050,+ "prompt_tok_s_log": 566.2,+ "generated": 400,+ "decode_ms_log": 11866,+ "decode_tok_s_log": 33.7,+ "drafts_accepted": 189,+ "drafts_proposed": 348,+ "checkpoints": 6,+ "cancelled": false,+ "line": "strata serve: prompt 128000 tokens = 0 reused + 128000 read in 226050 ms (566.2 tok/s), 400 generated in 11866 ms (33.7 tok/s), drafts accepted 189 of 348, 6 checkpoints",+ "hit_rate_pct": 55.6,+ "hit_line": "strata serve: decode expert cache hit rate: 55.6% (134719 hits / 242108 lookups)",+ "kv_vram_pct": 95.62,+ "kv_block_reads": 3487704,+ "kv_ram_mib": 616.0,+ "kv_line": "strata serve: KV streaming: 95.62% of 3487704 block reads hit VRAM, 616.0 MiB read from RAM",+ "suffix_windows": 9,+ "suffix_accepted": 11,+ "suffix_proposed": 17+ },+ "metrics_record": {+ "projection": null,+ "time": 1790923534.5321145,+ "duration_s": 238.0,+ "finish": "length",+ "prompt_tokens": 128000,+ "reused": 0,+ "output_tokens": 400,+ "engine_generated": 400,+ "prompt_ms": 226050.0,+ "decode_ms": 11865.9,+ "decode_tok_s": 33.7,+ "hit_rate": 0.556,+ "ram_blobs": 0,+ "file_blobs": 0,+ "file_mb": 0.0+ },+ "engine_log": [+ "strata serve: prompt 128000 tokens = 0 reused + 128000 read in 226050 ms (566.2 tok/s), 400 generated in 11866 ms (33.7 tok/s), drafts accepted 189 of 348, 6 checkpoints",+ "strata serve: decode expert cache hit rate: 55.6% (134719 hits / 242108 lookups)",+ "strata serve: KV streaming: 95.62% of 3487704 block reads hit VRAM, 616.0 MiB read from RAM",+ "strata serve: suffix drafts: 9 windows, 11 of 17 drafts accepted"+ ],+ "server_log": [+ "[strata] reading the prompt: 3,072 of 128,000 tokens, 4 s so far",+ "[strata] reading the prompt: 6,144 of 128,000 tokens, 9 s so far",+ "[strata] reading the prompt: 9,216 of 128,000 tokens, 13 s so far",+ "[strata] reading the prompt: 12,288 of 128,000 tokens, 17 s so far",+ "[strata] reading the prompt: 15,360 of 128,000 tokens, 22 s so far",+ "[strata] reading the prompt: 18,432 of 128,000 tokens, 27 s so far",+ "[strata] reading the prompt: 21,504 of 128,000 tokens, 31 s so far",+ "[strata] reading the prompt: 24,576 of 128,000 tokens, 36 s so far",+ "[strata] reading the prompt: 27,648 of 128,000 tokens, 40 s so far",+ "[strata] reading the prompt: 30,720 of 128,000 tokens, 45 s so far",+ "[strata] reading the prompt: 33,792 of 128,000 tokens, 50 s so far",+ "[strata] reading the prompt: 36,864 of 128,000 tokens, 55 s so far",+ "[strata] reading the prompt: 39,936 of 128,000 tokens, 60 s so far",+ "[strata] reading the prompt: 43,008 of 128,000 tokens, 65 s so far",+ "[strata] reading the prompt: 46,080 of 128,000 tokens, 69 s so far",+ "[strata] reading the prompt: 49,152 of 128,000 tokens, 74 s so far",+ "[strata] reading the prompt: 52,224 of 128,000 tokens, 80 s so far",+ "[strata] reading the prompt: 55,296 of 128,000 tokens, 85 s so far",+ "[strata] reading the prompt: 58,368 of 128,000 tokens, 90 s so far",+ "[strata] reading the prompt: 61,440 of 128,000 tokens, 95 s so far",+ "[strata] reading the prompt: 64,512 of 128,000 tokens, 101 s so far",+ "[strata] reading the prompt: 67,584 of 128,000 tokens, 106 s so far",+ "[strata] reading the prompt: 70,656 of 128,000 tokens, 111 s so far",+ "[strata] reading the prompt: 73,728 of 128,000 tokens, 117 s so far",+ "[strata] reading the prompt: 76,800 of 128,000 tokens, 122 s so far",+ "[strata] reading the prompt: 79,872 of 128,000 tokens, 128 s so far",+ "[strata] reading the prompt: 82,944 of 128,000 tokens, 134 s so far",+ "[strata] reading the prompt: 86,016 of 128,000 tokens, 139 s so far",+ "[strata] reading the prompt: 89,088 of 128,000 tokens, 145 s so far",+ "[strata] reading the prompt: 92,160 of 128,000 tokens, 151 s so far",+ "[strata] reading the prompt: 95,232 of 128,000 tokens, 157 s so far",+ "[strata] reading the prompt: 98,304 of 128,000 tokens, 163 s so far",+ "[strata] reading the prompt: 101,376 of 128,000 tokens, 169 s so far",+ "[strata] reading the prompt: 104,448 of 128,000 tokens, 176 s so far",+ "[strata] reading the prompt: 107,520 of 128,000 tokens, 182 s so far",+ "[strata] reading the prompt: 110,592 of 128,000 tokens, 188 s so far",+ "[strata] reading the prompt: 113,664 of 128,000 tokens, 194 s so far",+ "[strata] reading the prompt: 116,736 of 128,000 tokens, 201 s so far",+ "[strata] reading the prompt: 119,808 of 128,000 tokens, 207 s so far",+ "[strata] reading the prompt: 122,880 of 128,000 tokens, 214 s so far",+ "[strata] reading the prompt: 125,952 of 128,000 tokens, 220 s so far",+ "[strata] reading the prompt: 127,993 of 128,000 tokens, 226 s so far",+ "[strata] answering: 19 of max 400 tokens, 33.6 tok/s, 227 s",+ "[strata] answering: 53 of max 400 tokens, 32.5 tok/s, 228 s",+ "[strata] answering: 88 of max 400 tokens, 32.6 tok/s, 229 s",+ "[strata] answering: 122 of max 400 tokens, 32.7 tok/s, 230 s",+ "[strata] answering: 156 of max 400 tokens, 32.8 tok/s, 231 s",+ "[strata] answering: 188 of max 400 tokens, 32.6 tok/s, 232 s",+ "[strata] answering: 231 of max 400 tokens, 34.1 tok/s, 233 s",+ "[strata] answering: 270 of max 400 tokens, 34.7 tok/s, 234 s",+ "[strata] answering: 300 of max 400 tokens, 34.1 tok/s, 235 s",+ "[strata] answering: 332 of max 400 tokens, 33.7 tok/s, 236 s",+ "[strata] answering: 361 of max 400 tokens, 33.1 tok/s, 237 s",+ "[strata] done: 400 tokens in 238 s (33.8 tok/s) (length, cancel=False), expert cache 55.6% hit"+ ]+}diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-128000-run3.json b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-128000-run3.jsonnew file mode 100644index 000000000..5eeece70e--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-128000-run3.json@@ -0,0 +1,154 @@+{+ "label": "fresh-128000-run3",+ "attempt": 1,+ "epoch_start": 1790923785.5560114,+ "epoch_end": 1790924023.8725483,+ "kind": "fresh",+ "target": 128000,+ "run": 3,+ "expected_prompt_tokens": 128000,+ "needle": "lantern-falcon-213",+ "needle_depth_pct": 40,+ "max_tokens": 400,+ "request_sha256": "84bbbf5a56b3964eedf09e358e52a4b3afa09a7f111ad56d0fd1d03a47a93b98",+ "client_ttft_s": 226.6725760512054,+ "client_total_s": 238.31539464183152,+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 128000,+ "completion_tokens": 400,+ "total_tokens": 128400,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "timings": {+ "cache_n": 0,+ "prompt_n": 128000,+ "prompt_ms": 226136.6,+ "prompt_per_token_ms": 1.767,+ "prompt_per_second": 566.0,+ "predicted_n": 400,+ "predicted_ms": 11678.6,+ "predicted_per_token_ms": 29.197,+ "predicted_per_second": 34.3,+ "draft_n": 320,+ "draft_n_accepted": 187+ },+ "keepalives": 43,+ "text": "The provided documentation details the architecture, configuration, and performance characteristics of Strata, a specialized inference engine designed to run large Mixture-of-Experts models, specifically the Qwen3.8-Flash-Next family, on consumer-grade hardware. The system relies on a sophisticated multi-tier memory hierarchy to manage the massive weight matrices that exceed the capacity of standard GPU VRAM. The core strategy involves keeping the most frequently accessed experts in GPU memory, less frequent experts in system RAM, and the remainder on high-speed SSD storage. This tiered approach allows the engine to maintain high throughput by overlapping CPU computation for RAM-resident experts with GPU computation for VRAM-resident experts, while streaming data from disk as needed. The engine supports various quantization formats, including Q2_0, IQ2_XS, and IQ3_XXS, with specific optimizations for native expert packing and compatibility modes for third-party quantizations like Unsloth’s UD-Q4_K_XL and OrcaRouter’s uncensored variants.\n\nA significant portion of the documentation focuses on experimental support for AMD GPUs via the HIP backend, targeting RDNA2, RDNA3, and RDNA4 architectures. This backend maps CUDA-shaped runtime calls to HIP and hipBLAS, utilizing specific hardware instructions like signed integer dot products for quantized kernels. While the NVIDIA CUDA backend remains the default and most validated path, the AMD implementation has been tested on cards such as the RX 7900 XT, RX 9070 XT, and Radeon AI PRO R9700. The documentation notes that while basic functionality and speed are comparable to NVIDIA counterparts on similar hardware, certain features like vision encoding and specific tuning tables are not yet fully supported or validated for AMD. The setup process for AMD cards involves automatic detection of the GPU architecture and compilation of the engine for the specific graphics card, with optional tuning tables for hipBLASLt to accelerate dense matrix products.\n\nThe engine also supports multi-GPU configurations",+ "status_before": {+ "busy": false,+ "queued": 0,+ "phase": "answering",+ "prompt_tokens": 128000,+ "generated": 400,+ "max_tokens": 400+ },+ "totals_before": 11,+ "totals_after": 12,+ "foreign_overlap": false,+ "engine": {+ "prompt_tokens": 128000,+ "reused": 0,+ "read": 128000,+ "prompt_ms_log": 226137,+ "prompt_tok_s_log": 566.0,+ "generated": 400,+ "decode_ms_log": 11679,+ "decode_tok_s_log": 34.3,+ "drafts_accepted": 187,+ "drafts_proposed": 320,+ "checkpoints": 6,+ "cancelled": false,+ "line": "strata serve: prompt 128000 tokens = 0 reused + 128000 read in 226137 ms (566.0 tok/s), 400 generated in 11679 ms (34.3 tok/s), drafts accepted 187 of 320, 6 checkpoints",+ "hit_rate_pct": 55.2,+ "hit_line": "strata serve: decode expert cache hit rate: 55.2% (127211 hits / 230598 lookups)",+ "kv_vram_pct": 95.54,+ "kv_block_reads": 3327588,+ "kv_ram_mib": 598.4,+ "kv_line": "strata serve: KV streaming: 95.54% of 3327588 block reads hit VRAM, 598.4 MiB read from RAM",+ "suffix_windows": 12,+ "suffix_accepted": 16,+ "suffix_proposed": 19+ },+ "metrics_record": {+ "projection": null,+ "time": 1790923786.0184796,+ "duration_s": 237.9,+ "finish": "length",+ "prompt_tokens": 128000,+ "reused": 0,+ "output_tokens": 400,+ "engine_generated": 400,+ "prompt_ms": 226136.6,+ "decode_ms": 11678.6,+ "decode_tok_s": 34.3,+ "hit_rate": 0.552,+ "ram_blobs": 0,+ "file_blobs": 0,+ "file_mb": 0.0+ },+ "engine_log": [+ "strata serve: prompt 128000 tokens = 0 reused + 128000 read in 226137 ms (566.0 tok/s), 400 generated in 11679 ms (34.3 tok/s), drafts accepted 187 of 320, 6 checkpoints",+ "strata serve: decode expert cache hit rate: 55.2% (127211 hits / 230598 lookups)",+ "strata serve: KV streaming: 95.54% of 3327588 block reads hit VRAM, 598.4 MiB read from RAM",+ "strata serve: suffix drafts: 12 windows, 16 of 19 drafts accepted"+ ],+ "server_log": [+ "[strata] reading the prompt: 3,072 of 128,000 tokens, 4 s so far",+ "[strata] reading the prompt: 6,144 of 128,000 tokens, 9 s so far",+ "[strata] reading the prompt: 9,216 of 128,000 tokens, 13 s so far",+ "[strata] reading the prompt: 12,288 of 128,000 tokens, 17 s so far",+ "[strata] reading the prompt: 15,360 of 128,000 tokens, 22 s so far",+ "[strata] reading the prompt: 18,432 of 128,000 tokens, 27 s so far",+ "[strata] reading the prompt: 21,504 of 128,000 tokens, 31 s so far",+ "[strata] reading the prompt: 24,576 of 128,000 tokens, 36 s so far",+ "[strata] reading the prompt: 27,648 of 128,000 tokens, 40 s so far",+ "[strata] reading the prompt: 30,720 of 128,000 tokens, 45 s so far",+ "[strata] reading the prompt: 33,792 of 128,000 tokens, 50 s so far",+ "[strata] reading the prompt: 36,864 of 128,000 tokens, 55 s so far",+ "[strata] reading the prompt: 39,936 of 128,000 tokens, 60 s so far",+ "[strata] reading the prompt: 43,008 of 128,000 tokens, 65 s so far",+ "[strata] reading the prompt: 46,080 of 128,000 tokens, 70 s so far",+ "[strata] reading the prompt: 49,152 of 128,000 tokens, 75 s so far",+ "[strata] reading the prompt: 52,224 of 128,000 tokens, 80 s so far",+ "[strata] reading the prompt: 55,296 of 128,000 tokens, 85 s so far",+ "[strata] reading the prompt: 58,368 of 128,000 tokens, 90 s so far",+ "[strata] reading the prompt: 61,440 of 128,000 tokens, 95 s so far",+ "[strata] reading the prompt: 64,512 of 128,000 tokens, 101 s so far",+ "[strata] reading the prompt: 67,584 of 128,000 tokens, 106 s so far",+ "[strata] reading the prompt: 70,656 of 128,000 tokens, 111 s so far",+ "[strata] reading the prompt: 73,728 of 128,000 tokens, 117 s so far",+ "[strata] reading the prompt: 76,800 of 128,000 tokens, 122 s so far",+ "[strata] reading the prompt: 79,872 of 128,000 tokens, 128 s so far",+ "[strata] reading the prompt: 82,944 of 128,000 tokens, 134 s so far",+ "[strata] reading the prompt: 86,016 of 128,000 tokens, 139 s so far",+ "[strata] reading the prompt: 89,088 of 128,000 tokens, 145 s so far",+ "[strata] reading the prompt: 92,160 of 128,000 tokens, 151 s so far",+ "[strata] reading the prompt: 95,232 of 128,000 tokens, 157 s so far",+ "[strata] reading the prompt: 98,304 of 128,000 tokens, 163 s so far",+ "[strata] reading the prompt: 101,376 of 128,000 tokens, 169 s so far",+ "[strata] reading the prompt: 104,448 of 128,000 tokens, 176 s so far",+ "[strata] reading the prompt: 107,520 of 128,000 tokens, 182 s so far",+ "[strata] reading the prompt: 110,592 of 128,000 tokens, 188 s so far",+ "[strata] reading the prompt: 113,664 of 128,000 tokens, 195 s so far",+ "[strata] reading the prompt: 116,736 of 128,000 tokens, 201 s so far",+ "[strata] reading the prompt: 119,808 of 128,000 tokens, 207 s so far",+ "[strata] reading the prompt: 122,880 of 128,000 tokens, 214 s so far",+ "[strata] reading the prompt: 125,952 of 128,000 tokens, 220 s so far",+ "[strata] reading the prompt: 127,993 of 128,000 tokens, 226 s so far",+ "[strata] answering: 19 of max 400 tokens, 33.2 tok/s, 227 s",+ "[strata] answering: 52 of max 400 tokens, 32.5 tok/s, 228 s",+ "[strata] answering: 86 of max 400 tokens, 33.0 tok/s, 229 s",+ "[strata] answering: 119 of max 400 tokens, 32.9 tok/s, 230 s",+ "[strata] answering: 152 of max 400 tokens, 32.7 tok/s, 231 s",+ "[strata] answering: 188 of max 400 tokens, 33.0 tok/s, 232 s",+ "[strata] answering: 227 of max 400 tokens, 33.6 tok/s, 233 s",+ "[strata] answering: 268 of max 400 tokens, 34.4 tok/s, 234 s",+ "[strata] answering: 301 of max 400 tokens, 34.3 tok/s, 235 s",+ "[strata] answering: 331 of max 400 tokens, 33.8 tok/s, 236 s",+ "[strata] answering: 367 of max 400 tokens, 34.0 tok/s, 237 s",+ "[strata] done: 400 tokens in 238 s (34.4 tok/s) (length, cancel=False), expert cache 55.2% hit"+ ]+}diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-250000-run1.json b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-250000-run1.jsonnew file mode 100644index 000000000..929d09679--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-250000-run1.json@@ -0,0 +1,195 @@+{+ "label": "fresh-250000-run1",+ "attempt": 1,+ "epoch_start": 1790924529.1005576,+ "epoch_end": 1790925078.435074,+ "kind": "fresh",+ "target": 250000,+ "run": 1,+ "expected_prompt_tokens": 250000,+ "needle": "glacier-falcon-113",+ "needle_depth_pct": 40,+ "max_tokens": 400,+ "request_sha256": "1c66d8a127630c46a0ecdd924df9e7fde9b783a9d631c90daaacf580986589b6",+ "client_ttft_s": 536.7999174026772,+ "client_total_s": 549.3324515507556,+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 250000,+ "completion_tokens": 400,+ "total_tokens": 250400,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "timings": {+ "cache_n": 0,+ "prompt_n": 250000,+ "prompt_ms": 535797.7,+ "prompt_per_token_ms": 2.143,+ "prompt_per_second": 466.6,+ "predicted_n": 400,+ "predicted_ms": 12571.4,+ "predicted_per_token_ms": 31.428,+ "predicted_per_second": 31.8,+ "draft_n": 365,+ "draft_n_accepted": 195+ },+ "keepalives": 83,+ "text": "The provided repository material outlines the technical architecture, performance benchmarks, and operational guidelines for Strata, a high-performance inference engine designed to run large language models, specifically the Qwen3.8-Flash-Next family, on consumer-grade hardware. The system employs a sophisticated hybrid memory strategy that balances GPU VRAM, system RAM, and SSD storage to accommodate models with massive expert counts that exceed the capacity of standard graphics cards. By leveraging a Mixture of Experts architecture, Strata dynamically manages which experts reside in VRAM, which are computed by the CPU using optimized AVX-512 or AVX2 kernels, and which are streamed from disk, allowing models with tens of gigabytes of weights to run efficiently on machines with as little as 12 GB of VRAM and 32 to 64 GB of RAM.\n\nThe engine supports multiple backend architectures, with a primary focus on NVIDIA CUDA and an experimental AMD HIP backend. The AMD support is detailed in specific documentation, highlighting compatibility with RDNA2, RDNA3, and RDNA4 architectures, including cards like the RX 7900 XT and RX 9070 series. This backend utilizes wave32 execution and specific integer dot instructions to accelerate quantized kernels, though it notes that certain features like vision encoding and calibration are currently limited or unavailable compared to the NVIDIA path. The codebase includes extensive validation tests for these backends, ensuring that numerical parity is maintained across different hardware platforms, although bit-identical results are not guaranteed due to differences in floating-point handling and kernel implementations.\n\nA central component of the engine’s performance is its handling of the \"expert cache\" and memory hierarchy. The system uses a pinned host memory arena to store the full set of expert weights, allowing the CPU to compute missing experts in parallel with GPU operations. This overlap is critical for throughput, as demonstrated by benchmarks showing significant speedups when the CPU and GPU paths operate concurrently rather than serially.",+ "status_before": {+ "busy": false,+ "queued": 0,+ "phase": "answering",+ "prompt_tokens": 128463,+ "generated": 400,+ "max_tokens": 400+ },+ "totals_before": 13,+ "totals_after": 14,+ "foreign_overlap": false,+ "engine": {+ "prompt_tokens": 250000,+ "reused": 0,+ "read": 250000,+ "prompt_ms_log": 535798,+ "prompt_tok_s_log": 466.6,+ "generated": 400,+ "decode_ms_log": 12571,+ "decode_tok_s_log": 31.8,+ "drafts_accepted": 195,+ "drafts_proposed": 365,+ "checkpoints": 6,+ "cancelled": false,+ "line": "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",+ "hit_rate_pct": 54.9,+ "hit_line": "strata serve: decode expert cache hit rate: 54.9% (135616 hits / 247239 lookups)",+ "kv_vram_pct": 94.25,+ "kv_block_reads": 3561648,+ "kv_ram_mib": 824.9,+ "kv_line": "strata serve: KV streaming: 94.25% of 3561648 block reads hit VRAM, 824.9 MiB read from RAM",+ "suffix_windows": 5,+ "suffix_accepted": 6,+ "suffix_proposed": 8+ },+ "metrics_record": {+ "projection": null,+ "time": 1790924529.9883664,+ "duration_s": 548.4,+ "finish": "length",+ "prompt_tokens": 250000,+ "reused": 0,+ "output_tokens": 400,+ "engine_generated": 400,+ "prompt_ms": 535797.7,+ "decode_ms": 12571.4,+ "decode_tok_s": 31.8,+ "hit_rate": 0.549,+ "ram_blobs": 0,+ "file_blobs": 0,+ "file_mb": 0.0+ },+ "engine_log": [+ "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: suffix drafts: 5 windows, 6 of 8 drafts accepted"+ ],+ "server_log": [+ "[strata] reading the prompt: 3,072 of 250,000 tokens, 4 s so far",+ "[strata] reading the prompt: 6,144 of 250,000 tokens, 9 s so far",+ "[strata] reading the prompt: 9,216 of 250,000 tokens, 13 s so far",+ "[strata] reading the prompt: 12,288 of 250,000 tokens, 18 s so far",+ "[strata] reading the prompt: 15,360 of 250,000 tokens, 22 s so far",+ "[strata] reading the prompt: 18,432 of 250,000 tokens, 27 s so far",+ "[strata] reading the prompt: 21,504 of 250,000 tokens, 31 s so far",+ "[strata] reading the prompt: 24,576 of 250,000 tokens, 36 s so far",+ "[strata] reading the prompt: 27,648 of 250,000 tokens, 41 s so far",+ "[strata] reading the prompt: 30,720 of 250,000 tokens, 45 s so far",+ "[strata] reading the prompt: 33,792 of 250,000 tokens, 50 s so far",+ "[strata] reading the prompt: 36,864 of 250,000 tokens, 55 s so far",+ "[strata] reading the prompt: 39,936 of 250,000 tokens, 60 s so far",+ "[strata] reading the prompt: 43,008 of 250,000 tokens, 65 s so far",+ "[strata] reading the prompt: 46,080 of 250,000 tokens, 70 s so far",+ "[strata] reading the prompt: 49,152 of 250,000 tokens, 75 s so far",+ "[strata] reading the prompt: 52,224 of 250,000 tokens, 80 s so far",+ "[strata] reading the prompt: 55,296 of 250,000 tokens, 85 s so far",+ "[strata] reading the prompt: 58,368 of 250,000 tokens, 90 s so far",+ "[strata] reading the prompt: 61,440 of 250,000 tokens, 95 s so far",+ "[strata] reading the prompt: 64,512 of 250,000 tokens, 101 s so far",+ "[strata] reading the prompt: 67,584 of 250,000 tokens, 106 s so far",+ "[strata] reading the prompt: 70,656 of 250,000 tokens, 111 s so far",+ "[strata] reading the prompt: 73,728 of 250,000 tokens, 117 s so far",+ "[strata] reading the prompt: 76,800 of 250,000 tokens, 122 s so far",+ "[strata] reading the prompt: 79,872 of 250,000 tokens, 128 s so far",+ "[strata] reading the prompt: 82,944 of 250,000 tokens, 134 s so far",+ "[strata] reading the prompt: 86,016 of 250,000 tokens, 139 s so far",+ "[strata] reading the prompt: 89,088 of 250,000 tokens, 145 s so far",+ "[strata] reading the prompt: 92,160 of 250,000 tokens, 151 s so far",+ "[strata] reading the prompt: 95,232 of 250,000 tokens, 157 s so far",+ "[strata] reading the prompt: 98,304 of 250,000 tokens, 163 s so far",+ "[strata] reading the prompt: 101,376 of 250,000 tokens, 169 s so far",+ "[strata] reading the prompt: 104,448 of 250,000 tokens, 175 s so far",+ "[strata] reading the prompt: 107,520 of 250,000 tokens, 181 s so far",+ "[strata] reading the prompt: 110,592 of 250,000 tokens, 187 s so far",+ "[strata] reading the prompt: 113,664 of 250,000 tokens, 194 s so far",+ "[strata] reading the prompt: 116,736 of 250,000 tokens, 200 s so far",+ "[strata] reading the prompt: 119,808 of 250,000 tokens, 206 s so far",+ "[strata] reading the prompt: 122,880 of 250,000 tokens, 212 s so far",+ "[strata] reading the prompt: 125,952 of 250,000 tokens, 219 s so far",+ "[strata] reading the prompt: 129,024 of 250,000 tokens, 225 s so far",+ "[strata] reading the prompt: 132,096 of 250,000 tokens, 231 s so far",+ "[strata] reading the prompt: 135,168 of 250,000 tokens, 238 s so far",+ "[strata] reading the prompt: 138,240 of 250,000 tokens, 244 s so far",+ "[strata] reading the prompt: 141,312 of 250,000 tokens, 251 s so far",+ "[strata] reading the prompt: 144,384 of 250,000 tokens, 257 s so far",+ "[strata] reading the prompt: 147,456 of 250,000 tokens, 264 s so far",+ "[strata] reading the prompt: 150,528 of 250,000 tokens, 271 s so far",+ "[strata] reading the prompt: 153,600 of 250,000 tokens, 278 s so far",+ "[strata] reading the prompt: 156,672 of 250,000 tokens, 285 s so far",+ "[strata] reading the prompt: 159,744 of 250,000 tokens, 292 s so far",+ "[strata] reading the prompt: 162,816 of 250,000 tokens, 299 s so far",+ "[strata] reading the prompt: 165,888 of 250,000 tokens, 306 s so far",+ "[strata] reading the prompt: 168,960 of 250,000 tokens, 313 s so far",+ "[strata] reading the prompt: 172,032 of 250,000 tokens, 320 s so far",+ "[strata] reading the prompt: 175,104 of 250,000 tokens, 328 s so far",+ "[strata] reading the prompt: 178,176 of 250,000 tokens, 335 s so far",+ "[strata] reading the prompt: 181,248 of 250,000 tokens, 343 s so far",+ "[strata] reading the prompt: 184,320 of 250,000 tokens, 351 s so far",+ "[strata] reading the prompt: 187,392 of 250,000 tokens, 359 s so far",+ "[strata] reading the prompt: 190,464 of 250,000 tokens, 366 s so far",+ "[strata] reading the prompt: 193,536 of 250,000 tokens, 374 s so far",+ "[strata] reading the prompt: 196,608 of 250,000 tokens, 382 s so far",+ "[strata] reading the prompt: 199,680 of 250,000 tokens, 390 s so far",+ "[strata] reading the prompt: 202,752 of 250,000 tokens, 399 s so far",+ "[strata] reading the prompt: 205,824 of 250,000 tokens, 407 s so far",+ "[strata] reading the prompt: 208,896 of 250,000 tokens, 415 s so far",+ "[strata] reading the prompt: 211,968 of 250,000 tokens, 424 s so far",+ "[strata] reading the prompt: 215,040 of 250,000 tokens, 432 s so far",+ "[strata] reading the prompt: 218,112 of 250,000 tokens, 441 s so far",+ "[strata] reading the prompt: 221,184 of 250,000 tokens, 449 s so far",+ "[strata] reading the prompt: 224,256 of 250,000 tokens, 458 s so far",+ "[strata] reading the prompt: 227,328 of 250,000 tokens, 467 s so far",+ "[strata] reading the prompt: 230,400 of 250,000 tokens, 476 s so far",+ "[strata] reading the prompt: 233,472 of 250,000 tokens, 484 s so far",+ "[strata] reading the prompt: 236,544 of 250,000 tokens, 493 s so far",+ "[strata] reading the prompt: 239,616 of 250,000 tokens, 502 s so far",+ "[strata] reading the prompt: 242,688 of 250,000 tokens, 511 s so far",+ "[strata] reading the prompt: 245,760 of 250,000 tokens, 520 s so far",+ "[strata] reading the prompt: 248,832 of 250,000 tokens, 530 s so far",+ "[strata] reading the prompt: 249,993 of 250,000 tokens, 535 s so far",+ "[strata] answering: 16 of max 400 tokens, 28.1 tok/s, 536 s",+ "[strata] answering: 48 of max 400 tokens, 29.4 tok/s, 538 s",+ "[strata] answering: 81 of max 400 tokens, 30.5 tok/s, 539 s",+ "[strata] answering: 114 of max 400 tokens, 30.8 tok/s, 540 s",+ "[strata] answering: 150 of max 400 tokens, 31.5 tok/s, 541 s",+ "[strata] answering: 186 of max 400 tokens, 32.2 tok/s, 542 s",+ "[strata] answering: 220 of max 400 tokens, 32.3 tok/s, 543 s",+ "[strata] answering: 249 of max 400 tokens, 31.7 tok/s, 544 s",+ "[strata] answering: 280 of max 400 tokens, 31.6 tok/s, 545 s",+ "[strata] answering: 317 of max 400 tokens, 32.0 tok/s, 546 s",+ "[strata] answering: 350 of max 400 tokens, 32.0 tok/s, 547 s",+ "[strata] answering: 381 of max 400 tokens, 31.8 tok/s, 548 s",+ "[strata] done: 400 tokens in 548 s (31.9 tok/s) (length, cancel=False), expert cache 54.9% hit"+ ]+}diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-32768-run1.json b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-32768-run1.jsonnew file mode 100644index 000000000..b4b32fe9e--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-32768-run1.json@@ -0,0 +1,122 @@+{+ "label": "fresh-32768-run1",+ "attempt": 1,+ "epoch_start": 1790923070.7254138,+ "epoch_end": 1790923132.177872,+ "kind": "fresh",+ "target": 32768,+ "run": 1,+ "expected_prompt_tokens": 32768,+ "needle": null,+ "needle_depth_pct": null,+ "max_tokens": 400,+ "request_sha256": "5afddb8eef6c57907b90619b8352fff7271c425b484fc7c50074c9ab00163fe9",+ "client_ttft_s": 51.47900504991412,+ "client_total_s": 61.45193401211873,+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 32768,+ "completion_tokens": 400,+ "total_tokens": 33168,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "timings": {+ "cache_n": 0,+ "prompt_n": 32768,+ "prompt_ms": 51317.4,+ "prompt_per_token_ms": 1.566,+ "prompt_per_second": 638.5,+ "predicted_n": 400,+ "predicted_ms": 10006.9,+ "predicted_per_token_ms": 25.017,+ "predicted_per_second": 40.0,+ "draft_n": 354,+ "draft_n_accepted": 238+ },+ "keepalives": 12,+ "text": "The provided documentation details the experimental AMD HIP backend for the Strata software, which enables high-performance inference on specific AMD Radeon graphics cards on Linux. This backend is opt-in and primarily targets RDNA3 and RDNA4 architectures, including the RX 7900 XT, RX 9070 series, and the Radeon AI PRO R9700, while also supporting RDNA2 cards like the RX 6800 and 6900 series through community validation. The implementation maps CUDA-shaped runtime and BLAS calls to HIP and hipBLAS, utilizing RDNA-specific signed integer dot instructions for quantized kernels and wave32 shuffle operations. It supports both dequantization with hipBLAS GEMM and an optional HIP ggml MMQ path for prefill operations, with an optional calibrated hipBLASLt path to accelerate dense projections. The documentation explicitly notes that this backend does not claim bit-identical model answers across different backends, acknowledging minor numerical differences.\n\nInstallation is streamlined through a setup script that detects the GPU via kernel topology and automatically selects the HIP backend if no NVIDIA card is present. The system can utilize an existing system ROCm installation or install a pinned version of ROCm from AMD’s TheRock wheels into a local virtual environment, avoiding the need for sudo privileges. The engine is compiled locally for the specific GPU architecture, a process that takes ten to twenty minutes. For optimal performance, the setup can apply a hipBLASLt tuning table, but only if the installed library version and GPU architecture match the table’s specifications exactly; otherwise, it falls back to plain hipBLAS. Multi-GPU configurations are supported by splitting model layers across cards, though this is generally only beneficial when a single card cannot hold the model’s expert weights in VRAM.\n\nPerformance evidence for the RX 7900 XTX demonstrates significant improvements over previous AMD runtimes, with fresh prompt processing speeds reaching nearly 900",+ "status_before": {+ "busy": false,+ "queued": 0,+ "phase": "answering",+ "prompt_tokens": 4096,+ "generated": 400,+ "max_tokens": 400+ },+ "totals_before": 6,+ "totals_after": 7,+ "foreign_overlap": false,+ "engine": {+ "prompt_tokens": 32768,+ "reused": 0,+ "read": 32768,+ "prompt_ms_log": 51317,+ "prompt_tok_s_log": 638.5,+ "generated": 400,+ "decode_ms_log": 10007,+ "decode_tok_s_log": 40.0,+ "drafts_accepted": 238,+ "drafts_proposed": 354,+ "checkpoints": 2,+ "cancelled": false,+ "line": "strata serve: prompt 32768 tokens = 0 reused + 32768 read in 51317 ms (638.5 tok/s), 400 generated in 10007 ms (40.0 tok/s), drafts accepted 238 of 354, 2 checkpoints",+ "hit_rate_pct": 54.6,+ "hit_line": "strata serve: decode expert cache hit rate: 54.6% (121778 hits / 223114 lookups)",+ "kv_vram_pct": 97.71,+ "kv_block_reads": 3228924,+ "kv_ram_mib": 298.3,+ "kv_line": "strata serve: KV streaming: 97.71% of 3228924 block reads hit VRAM, 298.3 MiB read from RAM",+ "suffix_windows": 6,+ "suffix_accepted": 9,+ "suffix_proposed": 13+ },+ "metrics_record": {+ "projection": null,+ "time": 1790923070.840125,+ "duration_s": 61.3,+ "finish": "length",+ "prompt_tokens": 32768,+ "reused": 0,+ "output_tokens": 400,+ "engine_generated": 400,+ "prompt_ms": 51317.4,+ "decode_ms": 10006.9,+ "decode_tok_s": 40.0,+ "hit_rate": 0.546,+ "ram_blobs": 0,+ "file_blobs": 0,+ "file_mb": 0.0+ },+ "engine_log": [+ "strata serve: prompt 32768 tokens = 0 reused + 32768 read in 51317 ms (638.5 tok/s), 400 generated in 10007 ms (40.0 tok/s), drafts accepted 238 of 354, 2 checkpoints",+ "strata serve: decode expert cache hit rate: 54.6% (121778 hits / 223114 lookups)",+ "strata serve: KV streaming: 97.71% of 3228924 block reads hit VRAM, 298.3 MiB read from RAM",+ "strata serve: suffix drafts: 6 windows, 9 of 13 drafts accepted"+ ],+ "server_log": [+ "[strata] reading the prompt: 3,072 of 32,768 tokens, 4 s so far",+ "[strata] reading the prompt: 6,144 of 32,768 tokens, 9 s so far",+ "[strata] reading the prompt: 9,216 of 32,768 tokens, 13 s so far",+ "[strata] reading the prompt: 12,288 of 32,768 tokens, 18 s so far",+ "[strata] reading the prompt: 15,360 of 32,768 tokens, 23 s so far",+ "[strata] reading the prompt: 18,432 of 32,768 tokens, 27 s so far",+ "[strata] reading the prompt: 21,504 of 32,768 tokens, 32 s so far",+ "[strata] reading the prompt: 24,576 of 32,768 tokens, 37 s so far",+ "[strata] reading the prompt: 27,648 of 32,768 tokens, 42 s so far",+ "[strata] reading the prompt: 30,720 of 32,768 tokens, 46 s so far",+ "[strata] reading the prompt: 32,761 of 32,768 tokens, 51 s so far",+ "[strata] answering: 21 of max 400 tokens, 34.1 tok/s, 52 s",+ "[strata] answering: 58 of max 400 tokens, 35.9 tok/s, 53 s",+ "[strata] answering: 104 of max 400 tokens, 39.4 tok/s, 54 s",+ "[strata] answering: 152 of max 400 tokens, 41.2 tok/s, 55 s",+ "[strata] answering: 194 of max 400 tokens, 40.7 tok/s, 56 s",+ "[strata] answering: 234 of max 400 tokens, 40.3 tok/s, 57 s",+ "[strata] answering: 275 of max 400 tokens, 40.3 tok/s, 58 s",+ "[strata] answering: 318 of max 400 tokens, 40.6 tok/s, 59 s",+ "[strata] answering: 359 of max 400 tokens, 40.4 tok/s, 60 s",+ "[strata] answering: 397 of max 400 tokens, 40.1 tok/s, 61 s",+ "[strata] done: 400 tokens in 61 s (40.1 tok/s) (length, cancel=False), expert cache 54.6% hit"+ ]+}diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-32768-run2.json b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-32768-run2.jsonnew file mode 100644index 000000000..4a571fa44--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-32768-run2.json@@ -0,0 +1,122 @@+{+ "label": "fresh-32768-run2",+ "attempt": 1,+ "epoch_start": 1790923138.6319818,+ "epoch_end": 1790923200.8234434,+ "kind": "fresh",+ "target": 32768,+ "run": 2,+ "expected_prompt_tokens": 32768,+ "needle": null,+ "needle_depth_pct": null,+ "max_tokens": 400,+ "request_sha256": "867e48864958a5f1645889131a257b36b47fbf928dee5d97799f52fde3c08d35",+ "client_ttft_s": 51.69961504312232,+ "client_total_s": 62.19105800334364,+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 32768,+ "completion_tokens": 400,+ "total_tokens": 33168,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "timings": {+ "cache_n": 0,+ "prompt_n": 32768,+ "prompt_ms": 51540.4,+ "prompt_per_token_ms": 1.573,+ "prompt_per_second": 635.8,+ "predicted_n": 400,+ "predicted_ms": 10524.5,+ "predicted_per_token_ms": 26.311,+ "predicted_per_second": 38.0,+ "draft_n": 364,+ "draft_n_accepted": 228+ },+ "keepalives": 12,+ "text": "The provided documentation details the experimental AMD HIP backend for the Strata software, which enables high-performance inference on specific AMD Radeon graphics cards on Linux. This backend is opt-in and primarily targets RDNA3 and RDNA4 architectures, including the RX 7900 XT, RX 7800 XT, RX 9060 XT, RX 9070 series, and the Radeon AI PRO R9700. While the NVIDIA CUDA backend remains the default, the HIP implementation maps CUDA-shaped runtime and BLAS calls to HIP and hipBLAS, utilizing RDNA-specific signed integer dot instructions for quantized kernels. It supports wave32 shuffle operations and provides an ordered FP32 fallback for CUDA-only matrix instructions. The system is designed to be installed via a setup script that detects the GPU through the kernel’s KFD topology and automatically installs the necessary ROCm components if a compatible system installation is not found. The engine is compiled locally for the specific GPU architecture, ensuring compatibility and performance, though it requires a C++ compiler and git for the build process.\n\nPerformance validation has been conducted on various hardware configurations, with detailed benchmarks provided for the RX 9070 XT and Radeon AI PRO R9700. These tests demonstrate coherent and consistent model answers across different cards, with throughput measurements recorded for both prompt processing and token generation. For instance, the Radeon AI PRO R9700 achieves significantly higher token generation speeds compared to the RX 9070 XT, particularly in longer context scenarios. The documentation also highlights the potential for multi-GPU execution, where layers of the model are split across multiple cards. However, this split is only beneficial when a single card cannot hold the model’s expert weights in VRAM. In cases where one card can accommodate the entire expert set, using a single card is more efficient than splitting the workload, as the overhead of inter-GPU communication outweighs the benefits of distributed memory.\n\n",+ "status_before": {+ "busy": false,+ "queued": 0,+ "phase": "answering",+ "prompt_tokens": 32768,+ "generated": 400,+ "max_tokens": 400+ },+ "totals_before": 7,+ "totals_after": 8,+ "foreign_overlap": false,+ "engine": {+ "prompt_tokens": 32768,+ "reused": 0,+ "read": 32768,+ "prompt_ms_log": 51540,+ "prompt_tok_s_log": 635.8,+ "generated": 400,+ "decode_ms_log": 10525,+ "decode_tok_s_log": 38.0,+ "drafts_accepted": 228,+ "drafts_proposed": 364,+ "checkpoints": 2,+ "cancelled": false,+ "line": "strata serve: prompt 32768 tokens = 0 reused + 32768 read in 51540 ms (635.8 tok/s), 400 generated in 10525 ms (38.0 tok/s), drafts accepted 228 of 364, 2 checkpoints",+ "hit_rate_pct": 54.0,+ "hit_line": "strata serve: decode expert cache hit rate: 54.0% (124239 hits / 230199 lookups)",+ "kv_vram_pct": 97.81,+ "kv_block_reads": 3339828,+ "kv_ram_mib": 294.9,+ "kv_line": "strata serve: KV streaming: 97.81% of 3339828 block reads hit VRAM, 294.9 MiB read from RAM",+ "suffix_windows": 10,+ "suffix_accepted": 18,+ "suffix_proposed": 23+ },+ "metrics_record": {+ "projection": null,+ "time": 1790923138.7457862,+ "duration_s": 62.1,+ "finish": "length",+ "prompt_tokens": 32768,+ "reused": 0,+ "output_tokens": 400,+ "engine_generated": 400,+ "prompt_ms": 51540.4,+ "decode_ms": 10524.5,+ "decode_tok_s": 38.0,+ "hit_rate": 0.54,+ "ram_blobs": 0,+ "file_blobs": 0,+ "file_mb": 0.0+ },+ "engine_log": [+ "strata serve: prompt 32768 tokens = 0 reused + 32768 read in 51540 ms (635.8 tok/s), 400 generated in 10525 ms (38.0 tok/s), drafts accepted 228 of 364, 2 checkpoints",+ "strata serve: decode expert cache hit rate: 54.0% (124239 hits / 230199 lookups)",+ "strata serve: KV streaming: 97.81% of 3339828 block reads hit VRAM, 294.9 MiB read from RAM",+ "strata serve: suffix drafts: 10 windows, 18 of 23 drafts accepted"+ ],+ "server_log": [+ "[strata] reading the prompt: 3,072 of 32,768 tokens, 4 s so far",+ "[strata] reading the prompt: 6,144 of 32,768 tokens, 9 s so far",+ "[strata] reading the prompt: 9,216 of 32,768 tokens, 13 s so far",+ "[strata] reading the prompt: 12,288 of 32,768 tokens, 18 s so far",+ "[strata] reading the prompt: 15,360 of 32,768 tokens, 23 s so far",+ "[strata] reading the prompt: 18,432 of 32,768 tokens, 27 s so far",+ "[strata] reading the prompt: 21,504 of 32,768 tokens, 32 s so far",+ "[strata] reading the prompt: 24,576 of 32,768 tokens, 37 s so far",+ "[strata] reading the prompt: 27,648 of 32,768 tokens, 42 s so far",+ "[strata] reading the prompt: 30,720 of 32,768 tokens, 47 s so far",+ "[strata] reading the prompt: 32,761 of 32,768 tokens, 51 s so far",+ "[strata] answering: 21 of max 400 tokens, 33.8 tok/s, 52 s",+ "[strata] answering: 58 of max 400 tokens, 35.7 tok/s, 53 s",+ "[strata] answering: 103 of max 400 tokens, 38.8 tok/s, 54 s",+ "[strata] answering: 145 of max 400 tokens, 39.5 tok/s, 55 s",+ "[strata] answering: 188 of max 400 tokens, 40.1 tok/s, 56 s",+ "[strata] answering: 226 of max 400 tokens, 39.5 tok/s, 57 s",+ "[strata] answering: 259 of max 400 tokens, 38.5 tok/s, 58 s",+ "[strata] answering: 296 of max 400 tokens, 38.0 tok/s, 59 s",+ "[strata] answering: 330 of max 400 tokens, 37.5 tok/s, 60 s",+ "[strata] answering: 370 of max 400 tokens, 37.6 tok/s, 61 s",+ "[strata] done: 400 tokens in 62 s (38.1 tok/s) (length, cancel=False), expert cache 54.0% hit"+ ]+}diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-32768-run3.json b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-32768-run3.jsonnew file mode 100644index 000000000..a91607003--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-32768-run3.json@@ -0,0 +1,122 @@+{+ "label": "fresh-32768-run3",+ "attempt": 1,+ "epoch_start": 1790923207.3132477,+ "epoch_end": 1790923269.4979405,+ "kind": "fresh",+ "target": 32768,+ "run": 3,+ "expected_prompt_tokens": 32768,+ "needle": null,+ "needle_depth_pct": null,+ "max_tokens": 400,+ "request_sha256": "11f1aae5ef0ddff8c8d8263b83e6c63ac8d9f94948c4bb75fe1169d6ac44ab22",+ "client_ttft_s": 51.61191347008571,+ "client_total_s": 62.18413063092157,+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 32768,+ "completion_tokens": 400,+ "total_tokens": 33168,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "timings": {+ "cache_n": 0,+ "prompt_n": 32768,+ "prompt_ms": 51452.3,+ "prompt_per_token_ms": 1.57,+ "prompt_per_second": 636.9,+ "predicted_n": 400,+ "predicted_ms": 10605.7,+ "predicted_per_token_ms": 26.514,+ "predicted_per_second": 37.7,+ "draft_n": 355,+ "draft_n_accepted": 226+ },+ "keepalives": 12,+ "text": "The provided documentation details the experimental AMD HIP backend for the Strata software, which enables high-performance inference on specific AMD Radeon graphics cards on Linux. This backend is opt-in and primarily targets RDNA3 and RDNA4 architectures, including the RX 7900 XT, RX 9070 series, and the Radeon AI PRO R9700, while also supporting RDNA2 cards like the RX 6800 and 6900 series through community validation. The implementation maps CUDA-shaped runtime and BLAS calls to HIP and hipBLAS, utilizing RDNA-specific signed integer dot instructions for quantized kernels and wave32 shuffle operations. While it offers an ordered FP32 fallback for CUDA-only matrix instructions, it does not claim bit-identical results across different backends. Installation is streamlined via a setup script that detects the GPU through kernel topology and manages ROCm dependencies, either using a system installation or installing pinned TheRock wheels into a virtual environment. The engine is compiled locally for the specific GPU architecture, requiring a C++ compiler and Git, and supports multi-GPU configurations by splitting model layers across cards, though this is only beneficial when a single card cannot hold the model’s expert weights.\n\nPerformance evidence for the RX 7900 XTX demonstrates significant improvements in prompt processing speed, with fresh prompts achieving nearly double the throughput of previous AMD runtimes and reduced wall time for requests. These measurements were conducted on a dedicated idle server with specific tuning tables for hipBLASLt, which accelerates dense projections. However, the documentation emphasizes that these are throughput measurements rather than quality benchmarks, and end-to-end coding quality or long-context behavior beyond 16K tokens remains unvalidated for some configurations. For RDNA4 cards, such as the RX 9070 XT and R9700, validation includes successful end-to-end runs with coherent answers and passing server smoke tests. Speed switches like the fast Mo",+ "status_before": {+ "busy": false,+ "queued": 0,+ "phase": "answering",+ "prompt_tokens": 32768,+ "generated": 400,+ "max_tokens": 400+ },+ "totals_before": 8,+ "totals_after": 9,+ "foreign_overlap": false,+ "engine": {+ "prompt_tokens": 32768,+ "reused": 0,+ "read": 32768,+ "prompt_ms_log": 51452,+ "prompt_tok_s_log": 636.9,+ "generated": 400,+ "decode_ms_log": 10606,+ "decode_tok_s_log": 37.7,+ "drafts_accepted": 226,+ "drafts_proposed": 355,+ "checkpoints": 2,+ "cancelled": false,+ "line": "strata serve: prompt 32768 tokens = 0 reused + 32768 read in 51452 ms (636.9 tok/s), 400 generated in 10606 ms (37.7 tok/s), drafts accepted 226 of 355, 2 checkpoints",+ "hit_rate_pct": 52.9,+ "hit_line": "strata serve: decode expert cache hit rate: 52.9% (120559 hits / 228070 lookups)",+ "kv_vram_pct": 97.69,+ "kv_block_reads": 3315072,+ "kv_ram_mib": 308.3,+ "kv_line": "strata serve: KV streaming: 97.69% of 3315072 block reads hit VRAM, 308.3 MiB read from RAM",+ "suffix_windows": 8,+ "suffix_accepted": 11,+ "suffix_proposed": 18+ },+ "metrics_record": {+ "projection": null,+ "time": 1790923207.4277713,+ "duration_s": 62.1,+ "finish": "length",+ "prompt_tokens": 32768,+ "reused": 0,+ "output_tokens": 400,+ "engine_generated": 400,+ "prompt_ms": 51452.3,+ "decode_ms": 10605.7,+ "decode_tok_s": 37.7,+ "hit_rate": 0.529,+ "ram_blobs": 0,+ "file_blobs": 0,+ "file_mb": 0.0+ },+ "engine_log": [+ "strata serve: prompt 32768 tokens = 0 reused + 32768 read in 51452 ms (636.9 tok/s), 400 generated in 10606 ms (37.7 tok/s), drafts accepted 226 of 355, 2 checkpoints",+ "strata serve: decode expert cache hit rate: 52.9% (120559 hits / 228070 lookups)",+ "strata serve: KV streaming: 97.69% of 3315072 block reads hit VRAM, 308.3 MiB read from RAM",+ "strata serve: suffix drafts: 8 windows, 11 of 18 drafts accepted"+ ],+ "server_log": [+ "[strata] reading the prompt: 3,072 of 32,768 tokens, 4 s so far",+ "[strata] reading the prompt: 6,144 of 32,768 tokens, 9 s so far",+ "[strata] reading the prompt: 9,216 of 32,768 tokens, 13 s so far",+ "[strata] reading the prompt: 12,288 of 32,768 tokens, 18 s so far",+ "[strata] reading the prompt: 15,360 of 32,768 tokens, 23 s so far",+ "[strata] reading the prompt: 18,432 of 32,768 tokens, 27 s so far",+ "[strata] reading the prompt: 21,504 of 32,768 tokens, 32 s so far",+ "[strata] reading the prompt: 24,576 of 32,768 tokens, 37 s so far",+ "[strata] reading the prompt: 27,648 of 32,768 tokens, 42 s so far",+ "[strata] reading the prompt: 30,720 of 32,768 tokens, 47 s so far",+ "[strata] reading the prompt: 32,761 of 32,768 tokens, 51 s so far",+ "[strata] answering: 19 of max 400 tokens, 30.5 tok/s, 52 s",+ "[strata] answering: 57 of max 400 tokens, 34.5 tok/s, 53 s",+ "[strata] answering: 99 of max 400 tokens, 37.1 tok/s, 54 s",+ "[strata] answering: 142 of max 400 tokens, 38.2 tok/s, 55 s",+ "[strata] answering: 183 of max 400 tokens, 38.4 tok/s, 56 s",+ "[strata] answering: 229 of max 400 tokens, 39.4 tok/s, 57 s",+ "[strata] answering: 270 of max 400 tokens, 39.4 tok/s, 58 s",+ "[strata] answering: 307 of max 400 tokens, 38.7 tok/s, 59 s",+ "[strata] answering: 343 of max 400 tokens, 38.2 tok/s, 60 s",+ "[strata] answering: 381 of max 400 tokens, 38.2 tok/s, 61 s",+ "[strata] done: 400 tokens in 62 s (37.8 tok/s) (length, cancel=False), expert cache 52.9% hit"+ ]+}diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-4096-run1.json b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-4096-run1.jsonnew file mode 100644index 000000000..b71f05e30--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-4096-run1.json@@ -0,0 +1,114 @@+{+ "label": "fresh-4096-run1",+ "attempt": 1,+ "epoch_start": 1790922999.8899884,+ "epoch_end": 1790923018.5607207,+ "kind": "fresh",+ "target": 4096,+ "run": 1,+ "expected_prompt_tokens": 4096,+ "needle": null,+ "needle_depth_pct": null,+ "max_tokens": 400,+ "request_sha256": "9197391c910b38220fa1288b4a86c944668a41a4bae90e0c8d23d30f46b32775",+ "client_ttft_s": 8.521665247157216,+ "client_total_s": 18.670595599338412,+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 4096,+ "completion_tokens": 400,+ "total_tokens": 4496,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "timings": {+ "cache_n": 0,+ "prompt_n": 4096,+ "prompt_ms": 8468.8,+ "prompt_per_token_ms": 2.068,+ "prompt_per_second": 483.7,+ "predicted_n": 400,+ "predicted_ms": 10181.7,+ "predicted_per_token_ms": 25.454,+ "predicted_per_second": 39.3,+ "draft_n": 366,+ "draft_n_accepted": 240+ },+ "keepalives": 3,+ "text": "The provided documentation details an experimental AMD HIP backend designed for Linux environments, specifically targeting RDNA3 and RDNA4 graphics architectures such as the RX 7900 series and the newer RX 9070 and Radeon AI PRO R9700 cards. This backend serves as an opt-in alternative to the default NVIDIA CUDA implementation, mapping CUDA-shaped runtime and BLAS calls to HIP and hipBLAS. It leverages specific hardware features like signed integer dot instructions for quantized kernels and wave32 shuffle operations, while providing ordered FP32 fallbacks for CUDA-only matrix instructions. The system supports both dequantization with hipBLAS GEMM and an optional HIP ggml MMQ path for prefill operations, with an additional calibrated hipBLASLt path available to accelerate dense projections. It is important to note that this implementation does not guarantee bit-identical model answers across different backends, and it currently excludes support for wave64 architectures, Windows HIP, and mixed AMD/NVIDIA execution environments.\n\nInstallation is primarily recommended through a setup script that automatically detects the GPU via the kernel’s KFD topology, excluding integrated Radeon GPUs from support. If a system ROCm 7 installation is not present or is outdated, the setup process installs ROCm into a local virtual environment using AMD’s TheRock wheels, which requires approximately ten gigabytes of storage and does not need sudo privileges. The engine is compiled locally for the specific card architecture, a process that takes ten to twenty minutes and requires a C++ compiler and Git. The setup also manages hipBLASLt tuning tables, using them only if the architecture and library version match exactly; otherwise, it falls back to plain hipBLAS, which results in slower prompt processing but identical answers. For systems with multiple supported cards, the setup can split model layers across them, though this requires a system ROCm 7 installation if the cards belong to different architecture families. Current limitations include CPU-only image encoding and",+ "status_before": {+ "busy": false,+ "queued": 0,+ "phase": "answering",+ "prompt_tokens": 19,+ "generated": 1,+ "max_tokens": 8+ },+ "totals_before": 3,+ "totals_after": 4,+ "foreign_overlap": false,+ "engine": {+ "prompt_tokens": 4096,+ "reused": 0,+ "read": 4096,+ "prompt_ms_log": 8469,+ "prompt_tok_s_log": 483.7,+ "generated": 400,+ "decode_ms_log": 10182,+ "decode_tok_s_log": 39.3,+ "drafts_accepted": 240,+ "drafts_proposed": 366,+ "checkpoints": 1,+ "cancelled": false,+ "line": "strata serve: prompt 4096 tokens = 0 reused + 4096 read in 8469 ms (483.7 tok/s), 400 generated in 10182 ms (39.3 tok/s), drafts accepted 240 of 366, 1 checkpoints",+ "hit_rate_pct": 50.2,+ "hit_line": "strata serve: decode expert cache hit rate: 50.2% (112493 hits / 224302 lookups)",+ "kv_vram_pct": 99.59,+ "kv_block_reads": 3284400,+ "kv_ram_mib": 54.3,+ "kv_line": "strata serve: KV streaming: 99.59% of 3284400 block reads hit VRAM, 54.3 MiB read from RAM",+ "suffix_windows": 7,+ "suffix_accepted": 14,+ "suffix_proposed": 21+ },+ "metrics_record": {+ "projection": null,+ "time": 1790922999.9056451,+ "duration_s": 18.7,+ "finish": "length",+ "prompt_tokens": 4096,+ "reused": 0,+ "output_tokens": 400,+ "engine_generated": 400,+ "prompt_ms": 8468.8,+ "decode_ms": 10181.7,+ "decode_tok_s": 39.3,+ "hit_rate": 0.502,+ "ram_blobs": 0,+ "file_blobs": 0,+ "file_mb": 0.0+ },+ "engine_log": [+ "strata verify: captured the 5-token window (upload no error, sync no error)",+ "strata serve: prompt 4096 tokens = 0 reused + 4096 read in 8469 ms (483.7 tok/s), 400 generated in 10182 ms (39.3 tok/s), drafts accepted 240 of 366, 1 checkpoints",+ "strata serve: decode expert cache hit rate: 50.2% (112493 hits / 224302 lookups)",+ "strata serve: KV streaming: 99.59% of 3284400 block reads hit VRAM, 54.3 MiB read from RAM",+ "strata serve: suffix drafts: 7 windows, 14 of 21 drafts accepted"+ ],+ "server_log": [+ "[strata] reading the prompt: 3,072 of 4,096 tokens, 4 s so far",+ "[strata] reading the prompt: 4,089 of 4,096 tokens, 8 s so far",+ "[strata] answering: 14 of max 400 tokens, 21.7 tok/s, 9 s",+ "[strata] answering: 50 of max 400 tokens, 30.2 tok/s, 10 s",+ "[strata] answering: 86 of max 400 tokens, 31.6 tok/s, 11 s",+ "[strata] answering: 127 of max 400 tokens, 33.7 tok/s, 12 s",+ "[strata] answering: 174 of max 400 tokens, 36.2 tok/s, 13 s",+ "[strata] answering: 216 of max 400 tokens, 36.9 tok/s, 14 s",+ "[strata] answering: 261 of max 400 tokens, 37.8 tok/s, 15 s",+ "[strata] answering: 301 of max 400 tokens, 38.0 tok/s, 16 s",+ "[strata] answering: 348 of max 400 tokens, 38.9 tok/s, 17 s",+ "[strata] answering: 394 of max 400 tokens, 39.4 tok/s, 19 s",+ "[strata] done: 400 tokens in 19 s (39.4 tok/s) (length, cancel=False), expert cache 50.2% hit"+ ]+}diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-4096-run2.json b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-4096-run2.jsonnew file mode 100644index 000000000..68d7f8daa--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-4096-run2.json@@ -0,0 +1,112 @@+{+ "label": "fresh-4096-run2",+ "attempt": 1,+ "epoch_start": 1790923023.2805336,+ "epoch_end": 1790923041.2528577,+ "kind": "fresh",+ "target": 4096,+ "run": 2,+ "expected_prompt_tokens": 4096,+ "needle": null,+ "needle_depth_pct": null,+ "max_tokens": 400,+ "request_sha256": "4110520fc2dae2307b538938f5a000854995aa083b202896a9b491b368b08a01",+ "client_ttft_s": 8.295667034108192,+ "client_total_s": 17.97218555212021,+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 4096,+ "completion_tokens": 400,+ "total_tokens": 4496,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "timings": {+ "cache_n": 0,+ "prompt_n": 4096,+ "prompt_ms": 8242.4,+ "prompt_per_token_ms": 2.012,+ "prompt_per_second": 496.9,+ "predicted_n": 400,+ "predicted_ms": 9710.5,+ "predicted_per_token_ms": 24.276,+ "predicted_per_second": 41.2,+ "draft_n": 349,+ "draft_n_accepted": 234+ },+ "keepalives": 3,+ "text": "The provided documentation details an experimental AMD HIP backend for the Strata software, designed to enable high-performance inference on specific AMD Radeon graphics cards under Linux. This contribution is currently opt-in, meaning the NVIDIA installer and CUDA build remain the default options for users. The backend specifically targets RDNA3 and RDNA4 architectures, including the RX 7900 XT and XTX, as well as the newer RX 9070 series and Radeon AI PRO R9700. While the RX 7800 XT and RX 9060 XT have been validated by community owners, support for the older RDNA2 series, such as the RX 6800 and 6900, is reported as functional but not yet officially validated by the maintainers. The implementation maps CUDA-shaped runtime and BLAS calls to HIP and hipBLAS, utilizing specific hardware instructions like signed integer dot operations for quantized kernels and wave32 shuffle operations. It is important to note that this backend does not guarantee bit-identical model answers across different hardware backends, and certain features like image processing via GPU encoders are currently limited to CPU execution.\n\nInstallation is recommended through a setup script that automatically detects the graphics card using the kernel’s KFD topology. If a system ROCm installation is not present or is outdated, the setup process can install a pinned version of ROCm from AMD’s TheRock wheels directly into a local virtual environment, avoiding the need for sudo privileges. The engine is compiled locally for the specific architecture of the user’s card, a process that takes ten to twenty minutes and requires a C++ compiler and Git. For users with multiple supported AMD cards, the setup allows for splitting model layers across devices, although this configuration is only beneficial when a single card cannot hold the model’s experts. The documentation emphasizes that integrated Radeon GPUs are not supported, and mixed AMD and NVIDIA execution is outside the scope of this contribution.\n\nFor those",+ "status_before": {+ "busy": false,+ "queued": 0,+ "phase": "answering",+ "prompt_tokens": 4096,+ "generated": 400,+ "max_tokens": 400+ },+ "totals_before": 4,+ "totals_after": 5,+ "foreign_overlap": false,+ "engine": {+ "prompt_tokens": 4096,+ "reused": 0,+ "read": 4096,+ "prompt_ms_log": 8242,+ "prompt_tok_s_log": 496.9,+ "generated": 400,+ "decode_ms_log": 9711,+ "decode_tok_s_log": 41.2,+ "drafts_accepted": 234,+ "drafts_proposed": 349,+ "checkpoints": 1,+ "cancelled": false,+ "line": "strata serve: prompt 4096 tokens = 0 reused + 4096 read in 8242 ms (496.9 tok/s), 400 generated in 9711 ms (41.2 tok/s), drafts accepted 234 of 349, 1 checkpoints",+ "hit_rate_pct": 55.0,+ "hit_line": "strata serve: decode expert cache hit rate: 55.0% (122110 hits / 221821 lookups)",+ "kv_vram_pct": 99.58,+ "kv_block_reads": 3210432,+ "kv_ram_mib": 54.1,+ "kv_line": "strata serve: KV streaming: 99.58% of 3210432 block reads hit VRAM, 54.1 MiB read from RAM",+ "suffix_windows": 10,+ "suffix_accepted": 17,+ "suffix_proposed": 21+ },+ "metrics_record": {+ "projection": null,+ "time": 1790923023.2958589,+ "duration_s": 18.0,+ "finish": "length",+ "prompt_tokens": 4096,+ "reused": 0,+ "output_tokens": 400,+ "engine_generated": 400,+ "prompt_ms": 8242.4,+ "decode_ms": 9710.5,+ "decode_tok_s": 41.2,+ "hit_rate": 0.55,+ "ram_blobs": 0,+ "file_blobs": 0,+ "file_mb": 0.0+ },+ "engine_log": [+ "strata serve: prompt 4096 tokens = 0 reused + 4096 read in 8242 ms (496.9 tok/s), 400 generated in 9711 ms (41.2 tok/s), drafts accepted 234 of 349, 1 checkpoints",+ "strata serve: decode expert cache hit rate: 55.0% (122110 hits / 221821 lookups)",+ "strata serve: KV streaming: 99.58% of 3210432 block reads hit VRAM, 54.1 MiB read from RAM",+ "strata serve: suffix drafts: 10 windows, 17 of 21 drafts accepted"+ ],+ "server_log": [+ "[strata] reading the prompt: 3,072 of 4,096 tokens, 4 s so far",+ "[strata] reading the prompt: 4,089 of 4,096 tokens, 8 s so far",+ "[strata] answering: 19 of max 400 tokens, 32.4 tok/s, 9 s",+ "[strata] answering: 65 of max 400 tokens, 39.6 tok/s, 10 s",+ "[strata] answering: 111 of max 400 tokens, 41.5 tok/s, 11 s",+ "[strata] answering: 157 of max 400 tokens, 42.1 tok/s, 12 s",+ "[strata] answering: 199 of max 400 tokens, 41.6 tok/s, 13 s",+ "[strata] answering: 239 of max 400 tokens, 41.0 tok/s, 14 s",+ "[strata] answering: 287 of max 400 tokens, 41.8 tok/s, 15 s",+ "[strata] answering: 326 of max 400 tokens, 41.2 tok/s, 16 s",+ "[strata] answering: 368 of max 400 tokens, 41.2 tok/s, 17 s",+ "[strata] done: 400 tokens in 18 s (41.3 tok/s) (length, cancel=False), expert cache 55.0% hit"+ ]+}diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-4096-run3.json b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-4096-run3.jsonnew file mode 100644index 000000000..f9c6512a7--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/fresh-4096-run3.json@@ -0,0 +1,113 @@+{+ "label": "fresh-4096-run3",+ "attempt": 1,+ "epoch_start": 1790923045.9745162,+ "epoch_end": 1790923064.3137882,+ "kind": "fresh",+ "target": 4096,+ "run": 3,+ "expected_prompt_tokens": 4096,+ "needle": null,+ "needle_depth_pct": null,+ "max_tokens": 400,+ "request_sha256": "6ca43eb99066bd23d6b542bc9d55d2e5233adb1a3bbe545455dfb0e7f139465d",+ "client_ttft_s": 8.268220596946776,+ "client_total_s": 18.339178572874516,+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 4096,+ "completion_tokens": 400,+ "total_tokens": 4496,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "timings": {+ "cache_n": 0,+ "prompt_n": 4096,+ "prompt_ms": 8215.5,+ "prompt_per_token_ms": 2.006,+ "prompt_per_second": 498.6,+ "predicted_n": 400,+ "predicted_ms": 10103.9,+ "predicted_per_token_ms": 25.26,+ "predicted_per_second": 39.6,+ "draft_n": 365,+ "draft_n_accepted": 227+ },+ "keepalives": 3,+ "text": "The provided documentation details an experimental AMD HIP backend for the Strata software, designed to enable high-performance inference on specific AMD Radeon graphics cards under Linux. This contribution is currently opt-in, meaning the default installation and build processes still prioritize NVIDIA CUDA, but users with supported AMD hardware can explicitly select the HIP backend. The supported architectures include RDNA3 cards such as the RX 7900 XT and XTX, as well as the newer RDNA4 cards like the RX 9070 series and the Radeon AI PRO R9700. Additionally, the RX 7800 XT and RX 9060 XT have been validated by community members, while RDNA2 cards like the RX 6800 and 6900 series are reported to work but remain unvalidated by the core maintainers. The backend functions by mapping CUDA-shaped runtime and BLAS calls to their HIP and hipBLAS equivalents, leveraging specific hardware instructions like signed integer dot products for quantized kernels and wave32 shuffle operations. It is important to note that this implementation does not guarantee bit-identical results across different backends, and certain features such as Windows support, mixed AMD/NVIDIA execution, and wave64 architectures are currently outside the scope of this contribution.\n\nFor users seeking the easiest path to installation, the documentation recommends using the setup script with the HIP backend flag. This process automatically detects the GPU via the kernel’s KFD topology and handles the necessary dependencies. If a compatible system ROCm installation is not found, the setup script installs a pinned version of ROCm into a local virtual environment using AMD’s TheRock wheels, avoiding the need for sudo privileges. The engine is then compiled locally for the specific architecture of the user’s card, a process that takes ten to twenty minutes. The setup also manages hipBLASLt tuning tables, which accelerate dense projections, but only if the installed hipBLASLt version matches the architecture-specific table",+ "status_before": {+ "busy": false,+ "queued": 0,+ "phase": "answering",+ "prompt_tokens": 4096,+ "generated": 400,+ "max_tokens": 400+ },+ "totals_before": 5,+ "totals_after": 6,+ "foreign_overlap": false,+ "engine": {+ "prompt_tokens": 4096,+ "reused": 0,+ "read": 4096,+ "prompt_ms_log": 8215,+ "prompt_tok_s_log": 498.6,+ "generated": 400,+ "decode_ms_log": 10104,+ "decode_tok_s_log": 39.6,+ "drafts_accepted": 227,+ "drafts_proposed": 365,+ "checkpoints": 1,+ "cancelled": false,+ "line": "strata serve: prompt 4096 tokens = 0 reused + 4096 read in 8215 ms (498.6 tok/s), 400 generated in 10104 ms (39.6 tok/s), drafts accepted 227 of 365, 1 checkpoints",+ "hit_rate_pct": 55.1,+ "hit_line": "strata serve: decode expert cache hit rate: 55.1% (127845 hits / 232219 lookups)",+ "kv_vram_pct": 99.6,+ "kv_block_reads": 3358284,+ "kv_ram_mib": 54.2,+ "kv_line": "strata serve: KV streaming: 99.60% of 3358284 block reads hit VRAM, 54.2 MiB read from RAM",+ "suffix_windows": 10,+ "suffix_accepted": 17,+ "suffix_proposed": 20+ },+ "metrics_record": {+ "projection": null,+ "time": 1790923045.989571,+ "duration_s": 18.3,+ "finish": "length",+ "prompt_tokens": 4096,+ "reused": 0,+ "output_tokens": 400,+ "engine_generated": 400,+ "prompt_ms": 8215.5,+ "decode_ms": 10103.9,+ "decode_tok_s": 39.6,+ "hit_rate": 0.551,+ "ram_blobs": 0,+ "file_blobs": 0,+ "file_mb": 0.0+ },+ "engine_log": [+ "strata serve: prompt 4096 tokens = 0 reused + 4096 read in 8215 ms (498.6 tok/s), 400 generated in 10104 ms (39.6 tok/s), drafts accepted 227 of 365, 1 checkpoints",+ "strata serve: decode expert cache hit rate: 55.1% (127845 hits / 232219 lookups)",+ "strata serve: KV streaming: 99.60% of 3358284 block reads hit VRAM, 54.2 MiB read from RAM",+ "strata serve: suffix drafts: 10 windows, 17 of 20 drafts accepted"+ ],+ "server_log": [+ "[strata] reading the prompt: 3,072 of 4,096 tokens, 4 s so far",+ "[strata] reading the prompt: 4,089 of 4,096 tokens, 8 s so far",+ "[strata] answering: 22 of max 400 tokens, 35.6 tok/s, 9 s",+ "[strata] answering: 58 of max 400 tokens, 34.9 tok/s, 10 s",+ "[strata] answering: 101 of max 400 tokens, 37.2 tok/s, 11 s",+ "[strata] answering: 145 of max 400 tokens, 38.9 tok/s, 12 s",+ "[strata] answering: 190 of max 400 tokens, 39.8 tok/s, 13 s",+ "[strata] answering: 236 of max 400 tokens, 40.5 tok/s, 14 s",+ "[strata] answering: 271 of max 400 tokens, 39.5 tok/s, 15 s",+ "[strata] answering: 309 of max 400 tokens, 39.2 tok/s, 16 s",+ "[strata] answering: 347 of max 400 tokens, 39.0 tok/s, 17 s",+ "[strata] answering: 392 of max 400 tokens, 39.4 tok/s, 18 s",+ "[strata] done: 400 tokens in 18 s (39.7 tok/s) (length, cancel=False), expert cache 55.1% hit"+ ]+}diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/data/image-run1.json b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/image-run1.jsonnew file mode 100644index 000000000..e2f6d77cf--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/image-run1.json@@ -0,0 +1,99 @@+{+ "label": "image-run1",+ "attempt": 1,+ "epoch_start": 1790925863.251174,+ "image": "image-run1.png",+ "image_px": [+ 768,+ 512+ ],+ "expected": "KAZ-14; 2; 4",+ "answer": "KAZ-14; 2; 4",+ "correct": true,+ "request_sha256": "40d2c0e48875d8832fcbfd1166bfa2c49a97790344b08d7d8ef1a700a0db68f1",+ "client_ttft_s": 5.020737817045301,+ "client_total_s": 5.280843218788505,+ "finish_reason": "stop",+ "usage": {+ "prompt_tokens": 441,+ "completion_tokens": 12,+ "total_tokens": 453,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "timings": {+ "cache_n": 0,+ "prompt_n": 441,+ "prompt_ms": 3438.8,+ "prompt_per_token_ms": 7.798,+ "prompt_per_second": 128.2,+ "predicted_n": 12,+ "predicted_ms": 284.7,+ "predicted_per_token_ms": 23.725,+ "predicted_per_second": 42.1,+ "draft_n": 9,+ "draft_n_accepted": 9+ },+ "keepalives": 2,+ "text": "KAZ-14; 2; 4",+ "engine": {+ "prompt_tokens": 441,+ "reused": 0,+ "read": 441,+ "prompt_ms_log": 3439,+ "prompt_tok_s_log": 128.2,+ "generated": 12,+ "decode_ms_log": 285,+ "decode_tok_s_log": 42.2,+ "drafts_accepted": 9,+ "drafts_proposed": 9,+ "checkpoints": 1,+ "cancelled": false,+ "line": "strata serve: prompt 441 tokens = 0 reused + 441 read in 3439 ms (128.2 tok/s), 12 generated in 285 ms (42.2 tok/s), drafts accepted 9 of 9, 1 checkpoints",+ "hit_rate_pct": 27.6,+ "hit_line": "strata serve: decode expert cache hit rate: 27.6% (1462 hits / 5302 lookups)",+ "kv_vram_pct": 94.61,+ "kv_block_reads": 25392,+ "kv_ram_mib": 5.5,+ "kv_line": "strata serve: KV streaming: 94.61% of 25392 block reads hit VRAM, 5.5 MiB read from RAM"+ },+ "metrics_record": {+ "projection": null,+ "time": 1790925864.7982528,+ "duration_s": 3.7,+ "finish": "stop",+ "prompt_tokens": 441,+ "reused": 0,+ "output_tokens": 12,+ "engine_generated": 12,+ "prompt_ms": 3438.8,+ "decode_ms": 284.7,+ "decode_tok_s": 42.1,+ "hit_rate": 0.276,+ "ram_blobs": 0,+ "file_blobs": 0,+ "file_mb": 0.0+ },+ "approx_encode_s": 1.5817378170453011,+ "status_before": {+ "busy": false,+ "queued": 0,+ "phase": "answering",+ "prompt_tokens": 122149,+ "generated": 8,+ "max_tokens": 40+ },+ "totals_before": 21,+ "totals_after": 22,+ "foreign_overlap": false,+ "engine_log": [+ "strata serve: prompt 441 tokens = 0 reused + 441 read in 3439 ms (128.2 tok/s), 12 generated in 285 ms (42.2 tok/s), drafts accepted 9 of 9, 1 checkpoints",+ "strata serve: decode expert cache hit rate: 27.6% (1462 hits / 5302 lookups)",+ "strata serve: KV streaming: 94.61% of 25392 block reads hit VRAM, 5.5 MiB read from RAM"+ ],+ "server_log": [+ "[strata] reading the prompt: 434 of 441 tokens, 3 s so far",+ "[strata] done: 12 tokens in 4 s (46.3 tok/s) (stop, cancel=False), expert cache 27.6% hit"+ ]+}diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/data/image-run2.json b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/image-run2.jsonnew file mode 100644index 000000000..9ba3ca3e2--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/image-run2.json@@ -0,0 +1,99 @@+{+ "label": "image-run2",+ "attempt": 1,+ "epoch_start": 1790925873.051257,+ "image": "image-run2.png",+ "image_px": [+ 768,+ 512+ ],+ "expected": "NCC-91; 3; 4",+ "answer": "NCC-91; 3; 4",+ "correct": true,+ "request_sha256": "f75cb6377ff5fc13c1b8e71a43a8794eff7c561360c8a5ce43305b5728ef2cbe",+ "client_ttft_s": 5.084174378309399,+ "client_total_s": 5.416392573155463,+ "finish_reason": "stop",+ "usage": {+ "prompt_tokens": 441,+ "completion_tokens": 12,+ "total_tokens": 453,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "timings": {+ "cache_n": 0,+ "prompt_n": 441,+ "prompt_ms": 3430.9,+ "prompt_per_token_ms": 7.78,+ "prompt_per_second": 128.5,+ "predicted_n": 12,+ "predicted_ms": 353.9,+ "predicted_per_token_ms": 29.492,+ "predicted_per_second": 33.9,+ "draft_n": 12,+ "draft_n_accepted": 10+ },+ "keepalives": 2,+ "text": "NCC-91; 3; 4",+ "engine": {+ "prompt_tokens": 441,+ "reused": 0,+ "read": 441,+ "prompt_ms_log": 3431,+ "prompt_tok_s_log": 128.5,+ "generated": 12,+ "decode_ms_log": 354,+ "decode_tok_s_log": 33.9,+ "drafts_accepted": 10,+ "drafts_proposed": 12,+ "checkpoints": 1,+ "cancelled": false,+ "line": "strata serve: prompt 441 tokens = 0 reused + 441 read in 3431 ms (128.5 tok/s), 12 generated in 354 ms (33.9 tok/s), drafts accepted 10 of 12, 1 checkpoints",+ "hit_rate_pct": 28.8,+ "hit_line": "strata serve: decode expert cache hit rate: 28.8% (2012 hits / 6995 lookups)",+ "kv_vram_pct": 95.56,+ "kv_block_reads": 30828,+ "kv_ram_mib": 5.5,+ "kv_line": "strata serve: KV streaming: 95.56% of 30828 block reads hit VRAM, 5.5 MiB read from RAM"+ },+ "metrics_record": {+ "projection": null,+ "time": 1790925874.6724734,+ "duration_s": 3.8,+ "finish": "stop",+ "prompt_tokens": 441,+ "reused": 0,+ "output_tokens": 12,+ "engine_generated": 12,+ "prompt_ms": 3430.9,+ "decode_ms": 353.9,+ "decode_tok_s": 33.9,+ "hit_rate": 0.288,+ "ram_blobs": 0,+ "file_blobs": 0,+ "file_mb": 0.0+ },+ "approx_encode_s": 1.6531743783093988,+ "status_before": {+ "busy": false,+ "queued": 0,+ "phase": "answering",+ "prompt_tokens": 441,+ "generated": 11,+ "max_tokens": 40+ },+ "totals_before": 22,+ "totals_after": 23,+ "foreign_overlap": false,+ "engine_log": [+ "strata serve: prompt 441 tokens = 0 reused + 441 read in 3431 ms (128.5 tok/s), 12 generated in 354 ms (33.9 tok/s), drafts accepted 10 of 12, 1 checkpoints",+ "strata serve: decode expert cache hit rate: 28.8% (2012 hits / 6995 lookups)",+ "strata serve: KV streaming: 95.56% of 30828 block reads hit VRAM, 5.5 MiB read from RAM"+ ],+ "server_log": [+ "[strata] reading the prompt: 434 of 441 tokens, 3 s so far",+ "[strata] done: 12 tokens in 4 s (36.3 tok/s) (stop, cancel=False), expert cache 28.8% hit"+ ]+}diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/data/image-run3.json b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/image-run3.jsonnew file mode 100644index 000000000..d84b1ad20--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/image-run3.json@@ -0,0 +1,99 @@+{+ "label": "image-run3",+ "attempt": 1,+ "epoch_start": 1790925882.995576,+ "image": "image-run3.png",+ "image_px": [+ 768,+ 512+ ],+ "expected": "JTT-57; 4; 3",+ "answer": "JTT-57; 4; 3",+ "correct": true,+ "request_sha256": "cc27a0ea60a6c327eccc12717316e4c53edeb5392e85066a512d9a478aca2c23",+ "client_ttft_s": 4.950295756570995,+ "client_total_s": 5.196665147785097,+ "finish_reason": "stop",+ "usage": {+ "prompt_tokens": 441,+ "completion_tokens": 12,+ "total_tokens": 453,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "timings": {+ "cache_n": 0,+ "prompt_n": 441,+ "prompt_ms": 3393.9,+ "prompt_per_token_ms": 7.696,+ "prompt_per_second": 129.9,+ "predicted_n": 12,+ "predicted_ms": 267.8,+ "predicted_per_token_ms": 22.317,+ "predicted_per_second": 44.8,+ "draft_n": 9,+ "draft_n_accepted": 9+ },+ "keepalives": 2,+ "text": "JTT-57; 4; 3",+ "engine": {+ "prompt_tokens": 441,+ "reused": 0,+ "read": 441,+ "prompt_ms_log": 3394,+ "prompt_tok_s_log": 129.9,+ "generated": 12,+ "decode_ms_log": 268,+ "decode_tok_s_log": 44.8,+ "drafts_accepted": 9,+ "drafts_proposed": 9,+ "checkpoints": 1,+ "cancelled": false,+ "line": "strata serve: prompt 441 tokens = 0 reused + 441 read in 3394 ms (129.9 tok/s), 12 generated in 268 ms (44.8 tok/s), drafts accepted 9 of 9, 1 checkpoints",+ "hit_rate_pct": 40.1,+ "hit_line": "strata serve: decode expert cache hit rate: 40.1% (2176 hits / 5426 lookups)",+ "kv_vram_pct": 94.61,+ "kv_block_reads": 25392,+ "kv_ram_mib": 5.5,+ "kv_line": "strata serve: KV streaming: 94.61% of 25392 block reads hit VRAM, 5.5 MiB read from RAM"+ },+ "metrics_record": {+ "projection": null,+ "time": 1790925884.5199769,+ "duration_s": 3.7,+ "finish": "stop",+ "prompt_tokens": 441,+ "reused": 0,+ "output_tokens": 12,+ "engine_generated": 12,+ "prompt_ms": 3393.9,+ "decode_ms": 267.8,+ "decode_tok_s": 44.8,+ "hit_rate": 0.401,+ "ram_blobs": 0,+ "file_blobs": 0,+ "file_mb": 0.0+ },+ "approx_encode_s": 1.5562957565709947,+ "status_before": {+ "busy": false,+ "queued": 0,+ "phase": "answering",+ "prompt_tokens": 441,+ "generated": 11,+ "max_tokens": 40+ },+ "totals_before": 23,+ "totals_after": 24,+ "foreign_overlap": false,+ "engine_log": [+ "strata serve: prompt 441 tokens = 0 reused + 441 read in 3394 ms (129.9 tok/s), 12 generated in 268 ms (44.8 tok/s), drafts accepted 9 of 9, 1 checkpoints",+ "strata serve: decode expert cache hit rate: 40.1% (2176 hits / 5426 lookups)",+ "strata serve: KV streaming: 94.61% of 25392 block reads hit VRAM, 5.5 MiB read from RAM"+ ],+ "server_log": [+ "[strata] reading the prompt: 434 of 441 tokens, 3 s so far",+ "[strata] done: 12 tokens in 4 s (49.0 tok/s) (stop, cancel=False), expert cache 40.1% hit"+ ]+}diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/data/needles-run.json b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/needles-run.jsonnew file mode 100644index 000000000..3264b903c--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/needles-run.json@@ -0,0 +1,318 @@+{+ "command": "python tools/needle_bench.py --url http://127.0.0.1:8080 --api-key <redacted> --lengths 32k,128k --depths 10,50,90 --out needles.json",+ "epoch_start": 1790925141.1994243,+ "epoch_end": 1790925853.3008726,+ "exit_code": 0,+ "stdout": " 32k depth 10%: FOUND (31,075 prompt tokens, 50 s)\n 32k depth 50%: FOUND (31,075 prompt tokens, 50 s)\n 32k depth 90%: FOUND (31,076 prompt tokens, 50 s)\n 128k depth 10%: FOUND (122,151 prompt tokens, 215 s)\n 128k depth 50%: FOUND (122,149 prompt tokens, 215 s)\n 128k depth 90%: FOUND (122,149 prompt tokens, 130 s)\n6 of 6 found\n",+ "stderr": "",+ "totals_before": 15,+ "totals_after": 21,+ "foreign_overlap": false,+ "engine": [+ {+ "prompt_tokens": 31075,+ "reused": 0,+ "read": 31075,+ "prompt_ms_log": 50051,+ "prompt_tok_s_log": 620.9,+ "generated": 9,+ "decode_ms_log": 287,+ "decode_tok_s_log": 31.3,+ "drafts_accepted": 7,+ "drafts_proposed": 7,+ "checkpoints": 2,+ "cancelled": false,+ "line": "strata serve: prompt 31075 tokens = 0 reused + 31075 read in 50051 ms (620.9 tok/s), 9 generated in 287 ms (31.3 tok/s), drafts accepted 7 of 7, 2 checkpoints",+ "hit_rate_pct": 6.8,+ "hit_line": "strata serve: decode expert cache hit rate: 6.8% (292 hits / 4292 lookups)",+ "kv_vram_pct": 79.55,+ "kv_block_reads": 104760,+ "kv_ram_mib": 86.3,+ "kv_line": "strata serve: KV streaming: 79.55% of 104760 block reads hit VRAM, 86.3 MiB read from RAM",+ "suffix_windows": 1,+ "suffix_accepted": 1,+ "suffix_proposed": 1+ },+ {+ "prompt_tokens": 31075,+ "reused": 0,+ "read": 31075,+ "prompt_ms_log": 49821,+ "prompt_tok_s_log": 623.7,+ "generated": 9,+ "decode_ms_log": 296,+ "decode_tok_s_log": 30.4,+ "drafts_accepted": 8,+ "drafts_proposed": 8,+ "checkpoints": 2,+ "cancelled": false,+ "line": "strata serve: prompt 31075 tokens = 0 reused + 31075 read in 49821 ms (623.7 tok/s), 9 generated in 296 ms (30.4 tok/s), drafts accepted 8 of 8, 2 checkpoints",+ "hit_rate_pct": 17.0,+ "hit_line": "strata serve: decode expert cache hit rate: 17.0% (812 hits / 4777 lookups)",+ "kv_vram_pct": 79.36,+ "kv_block_reads": 110928,+ "kv_ram_mib": 92.2,+ "kv_line": "strata serve: KV streaming: 79.36% of 110928 block reads hit VRAM, 92.2 MiB read from RAM",+ "suffix_windows": 1,+ "suffix_accepted": 2,+ "suffix_proposed": 2+ },+ {+ "prompt_tokens": 31076,+ "reused": 0,+ "read": 31076,+ "prompt_ms_log": 49856,+ "prompt_tok_s_log": 623.3,+ "generated": 10,+ "decode_ms_log": 303,+ "decode_tok_s_log": 33.0,+ "drafts_accepted": 6,+ "drafts_proposed": 9,+ "checkpoints": 2,+ "cancelled": false,+ "line": "strata serve: prompt 31076 tokens = 0 reused + 31076 read in 49856 ms (623.3 tok/s), 10 generated in 303 ms (33.0 tok/s), drafts accepted 6 of 9, 2 checkpoints",+ "hit_rate_pct": 20.5,+ "hit_line": "strata serve: decode expert cache hit rate: 20.5% (1055 hits / 5140 lookups)",+ "kv_vram_pct": 80.01,+ "kv_block_reads": 117072,+ "kv_ram_mib": 94.3,+ "kv_line": "strata serve: KV streaming: 80.01% of 117072 block reads hit VRAM, 94.3 MiB read from RAM",+ "suffix_windows": 2,+ "suffix_accepted": 3,+ "suffix_proposed": 6+ },+ {+ "prompt_tokens": 122151,+ "reused": 0,+ "read": 122151,+ "prompt_ms_log": 213916,+ "prompt_tok_s_log": 571.0,+ "generated": 10,+ "decode_ms_log": 289,+ "decode_tok_s_log": 34.6,+ "drafts_accepted": 7,+ "drafts_proposed": 8,+ "checkpoints": 6,+ "cancelled": false,+ "line": "strata serve: prompt 122151 tokens = 0 reused + 122151 read in 213916 ms (571.0 tok/s), 10 generated in 289 ms (34.6 tok/s), drafts accepted 7 of 8, 6 checkpoints",+ "hit_rate_pct": 30.1,+ "hit_line": "strata serve: decode expert cache hit rate: 30.1% (1490 hits / 4944 lookups)",+ "kv_vram_pct": 76.53,+ "kv_block_reads": 110928,+ "kv_ram_mib": 104.9,+ "kv_line": "strata serve: KV streaming: 76.53% of 110928 block reads hit VRAM, 104.9 MiB read from RAM"+ },+ {+ "prompt_tokens": 122149,+ "reused": 0,+ "read": 122149,+ "prompt_ms_log": 214070,+ "prompt_tok_s_log": 570.6,+ "generated": 9,+ "decode_ms_log": 361,+ "decode_tok_s_log": 24.9,+ "drafts_accepted": 4,+ "drafts_proposed": 10,+ "checkpoints": 6,+ "cancelled": false,+ "line": "strata serve: prompt 122149 tokens = 0 reused + 122149 read in 214070 ms (570.6 tok/s), 9 generated in 361 ms (24.9 tok/s), drafts accepted 4 of 10, 6 checkpoints",+ "hit_rate_pct": 34.2,+ "hit_line": "strata serve: decode expert cache hit rate: 34.2% (2091 hits / 6116 lookups)",+ "kv_vram_pct": 79.35,+ "kv_block_reads": 129396,+ "kv_ram_mib": 107.7,+ "kv_line": "strata serve: KV streaming: 79.35% of 129396 block reads hit VRAM, 107.7 MiB read from RAM",+ "suffix_windows": 1,+ "suffix_accepted": 1,+ "suffix_proposed": 1+ },+ {+ "prompt_tokens": 122149,+ "reused": 55296,+ "read": 66853,+ "prompt_ms_log": 129119,+ "prompt_tok_s_log": 517.8,+ "generated": 9,+ "decode_ms_log": 294,+ "decode_tok_s_log": 30.6,+ "drafts_accepted": 7,+ "drafts_proposed": 8,+ "checkpoints": 6,+ "cancelled": false,+ "line": "strata serve: prompt 122149 tokens = 55296 reused + 66853 read in 129119 ms (517.8 tok/s), 9 generated in 294 ms (30.6 tok/s), drafts accepted 7 of 8, 6 checkpoints",+ "hit_rate_pct": 46.6,+ "hit_line": "strata serve: decode expert cache hit rate: 46.6% (2560 hits / 5490 lookups)",+ "kv_vram_pct": 86.0,+ "kv_block_reads": 246456,+ "kv_ram_mib": 139.0,+ "kv_line": "strata serve: KV streaming: 86.00% of 246456 block reads hit VRAM, 139.0 MiB read from RAM"+ }+ ],+ "engine_log": [+ "strata serve: prompt 31075 tokens = 0 reused + 31075 read in 50051 ms (620.9 tok/s), 9 generated in 287 ms (31.3 tok/s), drafts accepted 7 of 7, 2 checkpoints",+ "strata serve: decode expert cache hit rate: 6.8% (292 hits / 4292 lookups)",+ "strata serve: KV streaming: 79.55% of 104760 block reads hit VRAM, 86.3 MiB read from RAM",+ "strata serve: suffix drafts: 1 windows, 1 of 1 drafts accepted",+ "strata serve: prompt 31075 tokens = 0 reused + 31075 read in 49821 ms (623.7 tok/s), 9 generated in 296 ms (30.4 tok/s), drafts accepted 8 of 8, 2 checkpoints",+ "strata serve: decode expert cache hit rate: 17.0% (812 hits / 4777 lookups)",+ "strata serve: KV streaming: 79.36% of 110928 block reads hit VRAM, 92.2 MiB read from RAM",+ "strata serve: suffix drafts: 1 windows, 2 of 2 drafts accepted",+ "strata serve: prompt 31076 tokens = 0 reused + 31076 read in 49856 ms (623.3 tok/s), 10 generated in 303 ms (33.0 tok/s), drafts accepted 6 of 9, 2 checkpoints",+ "strata serve: decode expert cache hit rate: 20.5% (1055 hits / 5140 lookups)",+ "strata serve: KV streaming: 80.01% of 117072 block reads hit VRAM, 94.3 MiB read from RAM",+ "strata serve: suffix drafts: 2 windows, 3 of 6 drafts accepted",+ "strata serve: prompt 122151 tokens = 0 reused + 122151 read in 213916 ms (571.0 tok/s), 10 generated in 289 ms (34.6 tok/s), drafts accepted 7 of 8, 6 checkpoints",+ "strata serve: decode expert cache hit rate: 30.1% (1490 hits / 4944 lookups)",+ "strata serve: KV streaming: 76.53% of 110928 block reads hit VRAM, 104.9 MiB read from RAM",+ "strata serve: prompt 122149 tokens = 0 reused + 122149 read in 214070 ms (570.6 tok/s), 9 generated in 361 ms (24.9 tok/s), drafts accepted 4 of 10, 6 checkpoints",+ "strata serve: decode expert cache hit rate: 34.2% (2091 hits / 6116 lookups)",+ "strata serve: KV streaming: 79.35% of 129396 block reads hit VRAM, 107.7 MiB read from RAM",+ "strata serve: suffix drafts: 1 windows, 1 of 1 drafts accepted",+ "strata serve: prompt 122149 tokens = 55296 reused + 66853 read in 129119 ms (517.8 tok/s), 9 generated in 294 ms (30.6 tok/s), drafts accepted 7 of 8, 6 checkpoints",+ "strata serve: decode expert cache hit rate: 46.6% (2560 hits / 5490 lookups)",+ "strata serve: KV streaming: 86.00% of 246456 block reads hit VRAM, 139.0 MiB read from RAM"+ ],+ "server_log": [+ "[strata] reading the prompt: 3,072 of 31,075 tokens, 4 s so far",+ "[strata] reading the prompt: 6,144 of 31,075 tokens, 9 s so far",+ "[strata] reading the prompt: 9,216 of 31,075 tokens, 14 s so far",+ "[strata] reading the prompt: 12,288 of 31,075 tokens, 18 s so far",+ "[strata] reading the prompt: 15,360 of 31,075 tokens, 23 s so far",+ "[strata] reading the prompt: 18,432 of 31,075 tokens, 28 s so far",+ "[strata] reading the prompt: 21,504 of 31,075 tokens, 32 s so far",+ "[strata] reading the prompt: 24,576 of 31,075 tokens, 37 s so far",+ "[strata] reading the prompt: 27,648 of 31,075 tokens, 42 s so far",+ "[strata] reading the prompt: 30,720 of 31,075 tokens, 47 s so far",+ "[strata] reading the prompt: 31,068 of 31,075 tokens, 50 s so far",+ "[strata] done: 9 tokens in 50 s (35.6 tok/s) (stop, cancel=False), expert cache 6.8% hit",+ "[strata] reading the prompt: 3,072 of 31,075 tokens, 4 s so far",+ "[strata] reading the prompt: 6,144 of 31,075 tokens, 9 s so far",+ "[strata] reading the prompt: 9,216 of 31,075 tokens, 13 s so far",+ "[strata] reading the prompt: 12,288 of 31,075 tokens, 18 s so far",+ "[strata] reading the prompt: 15,360 of 31,075 tokens, 23 s so far",+ "[strata] reading the prompt: 18,432 of 31,075 tokens, 27 s so far",+ "[strata] reading the prompt: 21,504 of 31,075 tokens, 32 s so far",+ "[strata] reading the prompt: 24,576 of 31,075 tokens, 37 s so far",+ "[strata] reading the prompt: 27,648 of 31,075 tokens, 42 s so far",+ "[strata] reading the prompt: 30,720 of 31,075 tokens, 47 s so far",+ "[strata] reading the prompt: 31,068 of 31,075 tokens, 49 s so far",+ "[strata] done: 9 tokens in 50 s (34.2 tok/s) (stop, cancel=False), expert cache 17.0% hit",+ "[strata] reading the prompt: 3,072 of 31,076 tokens, 4 s so far",+ "[strata] reading the prompt: 6,144 of 31,076 tokens, 9 s so far",+ "[strata] reading the prompt: 9,216 of 31,076 tokens, 13 s so far",+ "[strata] reading the prompt: 12,288 of 31,076 tokens, 18 s so far",+ "[strata] reading the prompt: 15,360 of 31,076 tokens, 23 s so far",+ "[strata] reading the prompt: 18,432 of 31,076 tokens, 27 s so far",+ "[strata] reading the prompt: 21,504 of 31,076 tokens, 32 s so far",+ "[strata] reading the prompt: 24,576 of 31,076 tokens, 37 s so far",+ "[strata] reading the prompt: 27,648 of 31,076 tokens, 42 s so far",+ "[strata] reading the prompt: 30,720 of 31,076 tokens, 47 s so far",+ "[strata] reading the prompt: 31,069 of 31,076 tokens, 49 s so far",+ "[strata] done: 10 tokens in 50 s (36.7 tok/s) (stop, cancel=False), expert cache 20.5% hit",+ "[strata] reading the prompt: 3,072 of 122,151 tokens, 4 s so far",+ "[strata] reading the prompt: 6,144 of 122,151 tokens, 8 s so far",+ "[strata] reading the prompt: 9,216 of 122,151 tokens, 13 s so far",+ "[strata] reading the prompt: 12,288 of 122,151 tokens, 17 s so far",+ "[strata] reading the prompt: 15,360 of 122,151 tokens, 22 s so far",+ "[strata] reading the prompt: 18,432 of 122,151 tokens, 26 s so far",+ "[strata] reading the prompt: 21,504 of 122,151 tokens, 31 s so far",+ "[strata] reading the prompt: 24,576 of 122,151 tokens, 36 s so far",+ "[strata] reading the prompt: 27,648 of 122,151 tokens, 40 s so far",+ "[strata] reading the prompt: 30,720 of 122,151 tokens, 45 s so far",+ "[strata] reading the prompt: 33,792 of 122,151 tokens, 50 s so far",+ "[strata] reading the prompt: 36,864 of 122,151 tokens, 55 s so far",+ "[strata] reading the prompt: 39,936 of 122,151 tokens, 60 s so far",+ "[strata] reading the prompt: 43,008 of 122,151 tokens, 65 s so far",+ "[strata] reading the prompt: 46,080 of 122,151 tokens, 70 s so far",+ "[strata] reading the prompt: 49,152 of 122,151 tokens, 75 s so far",+ "[strata] reading the prompt: 52,224 of 122,151 tokens, 80 s so far",+ "[strata] reading the prompt: 55,296 of 122,151 tokens, 85 s so far",+ "[strata] reading the prompt: 58,368 of 122,151 tokens, 90 s so far",+ "[strata] reading the prompt: 61,440 of 122,151 tokens, 95 s so far",+ "[strata] reading the prompt: 64,512 of 122,151 tokens, 101 s so far",+ "[strata] reading the prompt: 67,584 of 122,151 tokens, 106 s so far",+ "[strata] reading the prompt: 70,656 of 122,151 tokens, 111 s so far",+ "[strata] reading the prompt: 73,728 of 122,151 tokens, 117 s so far",+ "[strata] reading the prompt: 76,800 of 122,151 tokens, 123 s so far",+ "[strata] reading the prompt: 79,872 of 122,151 tokens, 128 s so far",+ "[strata] reading the prompt: 82,944 of 122,151 tokens, 134 s so far",+ "[strata] reading the prompt: 86,016 of 122,151 tokens, 140 s so far",+ "[strata] reading the prompt: 89,088 of 122,151 tokens, 145 s so far",+ "[strata] reading the prompt: 92,160 of 122,151 tokens, 151 s so far",+ "[strata] reading the prompt: 95,232 of 122,151 tokens, 158 s so far",+ "[strata] reading the prompt: 98,304 of 122,151 tokens, 164 s so far",+ "[strata] reading the prompt: 101,376 of 122,151 tokens, 170 s so far",+ "[strata] reading the prompt: 104,448 of 122,151 tokens, 176 s so far",+ "[strata] reading the prompt: 107,520 of 122,151 tokens, 182 s so far",+ "[strata] reading the prompt: 110,592 of 122,151 tokens, 189 s so far",+ "[strata] reading the prompt: 113,664 of 122,151 tokens, 195 s so far",+ "[strata] reading the prompt: 116,736 of 122,151 tokens, 201 s so far",+ "[strata] reading the prompt: 119,808 of 122,151 tokens, 208 s so far",+ "[strata] reading the prompt: 122,144 of 122,151 tokens, 214 s so far",+ "[strata] done: 10 tokens in 214 s (38.9 tok/s) (stop, cancel=False), expert cache 30.1% hit",+ "[strata] reading the prompt: 3,072 of 122,149 tokens, 4 s so far",+ "[strata] reading the prompt: 6,144 of 122,149 tokens, 9 s so far",+ "[strata] reading the prompt: 9,216 of 122,149 tokens, 13 s so far",+ "[strata] reading the prompt: 12,288 of 122,149 tokens, 18 s so far",+ "[strata] reading the prompt: 15,360 of 122,149 tokens, 22 s so far",+ "[strata] reading the prompt: 18,432 of 122,149 tokens, 27 s so far",+ "[strata] reading the prompt: 21,504 of 122,149 tokens, 31 s so far",+ "[strata] reading the prompt: 24,576 of 122,149 tokens, 36 s so far",+ "[strata] reading the prompt: 27,648 of 122,149 tokens, 41 s so far",+ "[strata] reading the prompt: 30,720 of 122,149 tokens, 45 s so far",+ "[strata] reading the prompt: 33,792 of 122,149 tokens, 50 s so far",+ "[strata] reading the prompt: 36,864 of 122,149 tokens, 55 s so far",+ "[strata] reading the prompt: 39,936 of 122,149 tokens, 60 s so far",+ "[strata] reading the prompt: 43,008 of 122,149 tokens, 65 s so far",+ "[strata] reading the prompt: 46,080 of 122,149 tokens, 70 s so far",+ "[strata] reading the prompt: 49,152 of 122,149 tokens, 75 s so far",+ "[strata] reading the prompt: 52,224 of 122,149 tokens, 80 s so far",+ "[strata] reading the prompt: 55,296 of 122,149 tokens, 85 s so far",+ "[strata] reading the prompt: 58,368 of 122,149 tokens, 90 s so far",+ "[strata] reading the prompt: 61,440 of 122,149 tokens, 95 s so far",+ "[strata] reading the prompt: 64,512 of 122,149 tokens, 101 s so far",+ "[strata] reading the prompt: 67,584 of 122,149 tokens, 106 s so far",+ "[strata] reading the prompt: 70,656 of 122,149 tokens, 112 s so far",+ "[strata] reading the prompt: 73,728 of 122,149 tokens, 117 s so far",+ "[strata] reading the prompt: 76,800 of 122,149 tokens, 123 s so far",+ "[strata] reading the prompt: 79,872 of 122,149 tokens, 128 s so far",+ "[strata] reading the prompt: 82,944 of 122,149 tokens, 134 s so far",+ "[strata] reading the prompt: 86,016 of 122,149 tokens, 140 s so far",+ "[strata] reading the prompt: 89,088 of 122,149 tokens, 146 s so far",+ "[strata] reading the prompt: 92,160 of 122,149 tokens, 152 s so far",+ "[strata] reading the prompt: 95,232 of 122,149 tokens, 158 s so far",+ "[strata] reading the prompt: 98,304 of 122,149 tokens, 164 s so far",+ "[strata] reading the prompt: 101,376 of 122,149 tokens, 170 s so far",+ "[strata] reading the prompt: 104,448 of 122,149 tokens, 176 s so far",+ "[strata] reading the prompt: 107,520 of 122,149 tokens, 182 s so far",+ "[strata] reading the prompt: 110,592 of 122,149 tokens, 189 s so far",+ "[strata] reading the prompt: 113,664 of 122,149 tokens, 195 s so far",+ "[strata] reading the prompt: 116,736 of 122,149 tokens, 201 s so far",+ "[strata] reading the prompt: 119,808 of 122,149 tokens, 208 s so far",+ "[strata] reading the prompt: 122,142 of 122,149 tokens, 214 s so far",+ "[strata] done: 9 tokens in 214 s (27.2 tok/s) (stop, cancel=False), expert cache 34.2% hit",+ "[strata] reading the prompt: 58,368 of 122,149 tokens, 5 s so far",+ "[strata] reading the prompt: 61,440 of 122,149 tokens, 11 s so far",+ "[strata] reading the prompt: 64,512 of 122,149 tokens, 16 s so far",+ "[strata] reading the prompt: 67,584 of 122,149 tokens, 21 s so far",+ "[strata] reading the prompt: 70,656 of 122,149 tokens, 27 s so far",+ "[strata] reading the prompt: 73,728 of 122,149 tokens, 32 s so far",+ "[strata] reading the prompt: 76,800 of 122,149 tokens, 38 s so far",+ "[strata] reading the prompt: 79,872 of 122,149 tokens, 43 s so far",+ "[strata] reading the prompt: 82,944 of 122,149 tokens, 49 s so far",+ "[strata] reading the prompt: 86,016 of 122,149 tokens, 55 s so far",+ "[strata] reading the prompt: 89,088 of 122,149 tokens, 61 s so far",+ "[strata] reading the prompt: 92,160 of 122,149 tokens, 67 s so far",+ "[strata] reading the prompt: 95,232 of 122,149 tokens, 73 s so far",+ "[strata] reading the prompt: 98,304 of 122,149 tokens, 79 s so far",+ "[strata] reading the prompt: 101,376 of 122,149 tokens, 85 s so far",+ "[strata] reading the prompt: 104,448 of 122,149 tokens, 91 s so far",+ "[strata] reading the prompt: 107,520 of 122,149 tokens, 97 s so far",+ "[strata] reading the prompt: 110,592 of 122,149 tokens, 104 s so far",+ "[strata] reading the prompt: 113,664 of 122,149 tokens, 110 s so far",+ "[strata] reading the prompt: 116,736 of 122,149 tokens, 117 s so far",+ "[strata] reading the prompt: 119,808 of 122,149 tokens, 123 s so far",+ "[strata] reading the prompt: 122,142 of 122,149 tokens, 129 s so far",+ "[strata] done: 9 tokens in 129 s (33.8 tok/s) (stop, cancel=False), expert cache 46.6% hit"+ ]+}diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/data/needles.json b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/needles.jsonnew file mode 100644index 000000000..8c7d1eeda--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/data/needles.json@@ -0,0 +1,56 @@+[+ {+ "length": "32k",+ "depth": 10,+ "prompt_tokens": 31075,+ "seconds": 50.5,+ "found": true,+ "word": "meadow-copper-504",+ "answer": "meadow-copper-504"+ },+ {+ "length": "32k",+ "depth": 50,+ "prompt_tokens": 31075,+ "seconds": 50.2,+ "found": true,+ "word": "falcon-quartz-940",+ "answer": "falcon-quartz-940"+ },+ {+ "length": "32k",+ "depth": 90,+ "prompt_tokens": 31076,+ "seconds": 50.3,+ "found": true,+ "word": "willow-cobalt-696",+ "answer": "willow-cobalt-696"+ },+ {+ "length": "128k",+ "depth": 10,+ "prompt_tokens": 122151,+ "seconds": 214.7,+ "found": true,+ "word": "falcon-saffron-138",+ "answer": "falcon-saffron-138"+ },+ {+ "length": "128k",+ "depth": 50,+ "prompt_tokens": 122149,+ "seconds": 214.9,+ "found": true,+ "word": "quartz-tundra-528",+ "answer": "quartz-tundra-528"+ },+ {+ "length": "128k",+ "depth": 90,+ "prompt_tokens": 122149,+ "seconds": 129.9,+ "found": true,+ "word": "quartz-glacier-192",+ "answer": "quartz-glacier-192"+ }+]\ No newline at end of filediff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/image_check.py b/bench/results/2026-10-02-community-rtx2080ti-11gb/image_check.pynew file mode 100644index 000000000..8cbb88a37--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/image_check.py@@ -0,0 +1,116 @@+#!/usr/bin/env python3+"""Image question with an exact expected answer, through a running Strata server with the vision encoder.++Each run draws a new PNG (so the server's cache of encoded images cannot serve it): a code made of letters and digits+in large type, a number of red circles and a number of blue squares, chosen per run. The model is asked for all+three in a fixed format; the answer counts as correct only if all three match exactly. Streaming, greedy, reasoning+off. Client time to the first token includes the image encode (strata-vision, which runs on the CPU in this+configuration and takes its turn in the server's request FIFO) and the prompt read; the engine's prompt_ms covers+only the read of the prompt with the image embeddings, so client TTFT minus prompt_ms approximates the encode time.++ python image_check.py --key-config <server config.json> --runs 3 --engine-log ... --server-log ...+"""+from __future__ import annotations++import argparse+import base64+import io+import json+import random+import time+from pathlib import Path++from PIL import Image, ImageDraw, ImageFont++from bench_server import stream+from common import LogTail, Server, api_key, parse_engine, scrub_lines++HERE = Path(__file__).resolve().parent+QUESTION = ("Look at the image. What is the code written in black letters, how many red circles are there, and how "+ "many blue squares are there? Answer in exactly this format and nothing else: CODE; circles; squares")+++def font(size):+ for f in ("/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf",+ "/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf"):+ try:+ return ImageFont.truetype(f, size)+ except OSError:+ pass+ return ImageFont.load_default(size)+++def draw(rnd: random.Random):+ code = "".join(rnd.choice("ABCDEFGHJKLMNPRSTUVWXYZ") for _ in range(3)) + "-" + str(rnd.randint(10, 99))+ circles, squares = rnd.randint(2, 5), rnd.randint(1, 4)+ w, h = 768, 512+ img = Image.new("RGB", (w, h), "white")+ d = ImageDraw.Draw(img)+ d.text((40, 30), code, fill="black", font=font(72))+ boxes = [] # non-overlapping cells in the lower part+ cells = [(x, y) for x in range(40, w - 100, 120) for y in (190, 330)]+ rnd.shuffle(cells)+ for i, (x, y) in enumerate(cells[:circles + squares]):+ if i < circles:+ d.ellipse((x, y, x + 90, y + 90), fill=(220, 30, 30), outline="black", width=2)+ else:+ d.rectangle((x, y, x + 90, y + 90), fill=(30, 60, 220), outline="black", width=2)+ boxes.append((x, y))+ buf = io.BytesIO()+ img.save(buf, "PNG")+ return buf.getvalue(), code, circles, squares+++def main():+ ap = argparse.ArgumentParser(description=__doc__.split("\n\n")[0])+ ap.add_argument("--url", default="http://127.0.0.1:8080")+ ap.add_argument("--key-config")+ ap.add_argument("--engine-log", required=True)+ ap.add_argument("--server-log", required=True)+ ap.add_argument("--out", type=Path, default=HERE / "data")+ ap.add_argument("--runs", type=int, default=3)+ ap.add_argument("--seed", type=int, default=431)+ a = ap.parse_args()+ server = Server(a.url, api_key(a.key_config))+ elog, slog = LogTail(a.engine_log), LogTail(a.server_log)+ rnd = random.Random(a.seed)+ for run in range(1, a.runs + 1):+ png, code, circles, squares = draw(rnd)+ (a.out / f"image-run{run}.png").write_bytes(png)+ url = "data:image/png;base64," + base64.b64encode(png).decode()+ req = {"model": "strata", "temperature": 0, "reasoning_effort": "none", "max_tokens": 40, "stream": True,+ "stream_options": {"include_usage": True},+ "messages": [{"role": "user", "content": [{"type": "image_url", "image_url": {"url": url}},+ {"type": "text", "text": QUESTION}]}]}+ for attempt in range(1, 4):+ status = server.wait_idle()+ before = server.totals()+ elog.mark(), slog.mark()+ t0 = time.time()+ res = stream(server, req, timeout=900)+ time.sleep(1.5)+ after = server.totals()+ elines, slines = elog.since(), slog.since()+ parsed = parse_engine(elines)+ foreign = (after - before != 1) or len(parsed) != 1+ expected = f"{code}; {circles}; {squares}"+ got = res["text"].strip()+ parts = [p.strip() for p in got.split(";")]+ ok = parts == [code, str(circles), str(squares)]+ eng = parsed[0] if parsed else {}+ row = {"label": f"image-run{run}", "attempt": attempt, "epoch_start": t0, "image": f"image-run{run}.png",+ "image_px": [768, 512], "expected": expected, "answer": got, "correct": ok, **res,+ "engine": eng or None, "metrics_record": server.get("/metrics")["requests"][0],+ "approx_encode_s": (res["client_ttft_s"] - eng["prompt_ms_log"] / 1000) if eng and res["client_ttft_s"] else None,+ "status_before": status, "totals_before": before, "totals_after": after, "foreign_overlap": foreign,+ "engine_log": scrub_lines(elines), "server_log": scrub_lines(slines)}+ name = f"image-run{run}" + (f"-discarded-{attempt}" if foreign else "")+ (a.out / f"{name}.json").write_text(json.dumps(row, indent=1, ensure_ascii=False) + "\n")+ print(f"image run {run}: expected {expected!r} got {got!r} -> {'OK' if ok else 'WRONG'}; "+ f"ttft {res['client_ttft_s']:.2f} s, {eng.get('line', '')}", flush=True)+ if not foreign:+ break+++if __name__ == "__main__":+ main()diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/monitor.py b/bench/results/2026-10-02-community-rtx2080ti-11gb/monitor.pynew file mode 100644index 000000000..b1c81d287--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/monitor.py@@ -0,0 +1,28 @@+#!/usr/bin/env python3+"""Sample host RAM/swap and GPU memory once per second while the measurements run (one JSON line per sample).++ python monitor.py telemetry.jsonl & # stop it with kill when done+"""+import json+import subprocess+import sys+import time+from pathlib import Path++FIELDS = "memory.used,memory.total,utilization.gpu,power.draw,temperature.gpu,pcie.link.gen.current"+with Path(sys.argv[1] if len(sys.argv) > 1 else "telemetry.jsonl").open("a") as output:+ while True:+ memory = {}+ for line in Path("/proc/meminfo").read_text().splitlines():+ key, value = line.split(":", 1)+ if key in ("MemTotal", "MemAvailable", "Cached", "SwapTotal", "SwapFree"):+ memory[key + "_KiB"] = int(value.strip().split()[0])+ gpu = subprocess.check_output(["nvidia-smi", "--query-gpu=" + FIELDS, "--format=csv,noheader,nounits"],+ text=True).strip()+ ps = subprocess.run(["ps", "-C", "strata,strata-vision", "-o", "comm=,rss="], text=True,+ capture_output=True).stdout.split("\n")+ rss = {f[0]: int(f[1]) for f in (l.split() for l in ps) if len(f) == 2} # KiB, resident set+ output.write(json.dumps({"epoch_s": round(time.time(), 2), "memory": memory, "gpu": gpu,+ "rss_KiB": rss}) + "\n")+ output.flush()+ time.sleep(1)diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/run_needles.py b/bench/results/2026-10-02-community-rtx2080ti-11gb/run_needles.pynew file mode 100644index 000000000..d1a894264--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/run_needles.py@@ -0,0 +1,62 @@+#!/usr/bin/env python3+"""Run the repository's unchanged tools/needle_bench.py against the live server and keep the engine's log lines.++The key is read at run time (STRATA_API_KEY or --key-config) and handed to needle_bench.py on its command line+(local process only, never saved). Waits for an idle server first; afterwards GET /metrics must have counted exactly+one finished request per needle case, or someone else's request ran in between and the output says so.++ python run_needles.py --key-config <server config.json> --lengths 32k,128k --depths 10,50,90 ...+"""+from __future__ import annotations++import argparse+import json+import subprocess+import sys+import time+from pathlib import Path++from common import LogTail, Server, api_key, parse_engine, scrub_lines++HERE = Path(__file__).resolve().parent+ROOT = HERE.parents[2]+++def main():+ ap = argparse.ArgumentParser(description=__doc__.split("\n\n")[0])+ ap.add_argument("--url", default="http://127.0.0.1:8080")+ ap.add_argument("--key-config")+ ap.add_argument("--engine-log", required=True)+ ap.add_argument("--server-log", required=True)+ ap.add_argument("--lengths", default="32k,128k")+ ap.add_argument("--depths", default="10,50,90")+ ap.add_argument("--out", type=Path, default=HERE / "data")+ a = ap.parse_args()+ key = api_key(a.key_config)+ server = Server(a.url, key)+ elog, slog = LogTail(a.engine_log), LogTail(a.server_log)+ server.wait_idle()+ before = server.totals()+ elog.mark(), slog.mark()+ t0 = time.time()+ out = a.out / "needles.json"+ cmd = [sys.executable, str(ROOT / "tools" / "needle_bench.py"), "--url", a.url, "--api-key", key,+ "--lengths", a.lengths, "--depths", a.depths, "--out", str(out)]+ proc = subprocess.run(cmd, cwd=ROOT, text=True, capture_output=True)+ time.sleep(1.5)+ after = server.totals()+ elines, slines = elog.since(), slog.since()+ parsed = parse_engine(elines)+ cases = len(a.lengths.split(",")) * len(a.depths.split(","))+ meta = {"command": "python tools/needle_bench.py --url http://127.0.0.1:8080 --api-key <redacted> "+ f"--lengths {a.lengths} --depths {a.depths} --out needles.json",+ "epoch_start": t0, "epoch_end": time.time(), "exit_code": proc.returncode, "stdout": proc.stdout,+ "stderr": proc.stderr[-2000:], "totals_before": before, "totals_after": after,+ "foreign_overlap": after - before != cases or len(parsed) != cases,+ "engine": parsed, "engine_log": scrub_lines(elines), "server_log": scrub_lines(slines)}+ (a.out / "needles-run.json").write_text(json.dumps(meta, indent=1, ensure_ascii=False) + "\n")+ print(proc.stdout, proc.stderr[-2000:], "foreign_overlap:", meta["foreign_overlap"], flush=True)+++if __name__ == "__main__":+ main()diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/runs.csv b/bench/results/2026-10-02-community-rtx2080ti-11gb/runs.csvnew file mode 100644index 000000000..547fe359f--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/runs.csv@@ -0,0 +1,16 @@+label,kind,target,prompt_tokens,reused,read,prompt_ms,prompt_tok_s,generated,decode_ms,decode_tok_s,drafts,draft_accept_pct,decode_hit_pct,kv_vram_pct,kv_ram_mib,ttft_s,total_s,finish,needle,needle_found,correct,foreign_overlap,attempt,samples,gpu_mem_used_mib_max,host_used_gib_max,swap_used_gib_max,engine_rss_gib_max+followup-128000,followup,128000,128463,128400,63,1281.5,49.2,400,11428.4,35.0,209/351,59.5,54.2,95.86,1176.7,1.85,13.25,length,lantern-falcon-213,True,,False,1,14,10525,64.81,7.98,52.87+followup-250000,followup,250000,250463,249993,470,3556.5,132.2,400,11567.7,34.6,214/361,59.3,57.2,94.66,1498.3,4.55,16.08,length,glacier-falcon-113,True,,False,1,16,10525,64.01,7.96,52.88+fresh-128000-run1,fresh,128000,128000,0,128000,225806.3,566.9,400,11727.2,34.1,195/350,55.7,54.9,95.73,596.0,226.34,238.03,length,orchid-saffron-902,,,False,1,225,10525,63.42,8.0,52.87+fresh-128000-run2,fresh,128000,128000,0,128000,226050.0,566.2,400,11865.9,33.7,189/348,54.3,55.6,95.62,616.0,226.59,238.42,length,glacier-lantern-551,,,False,1,224,10525,63.82,8.0,52.87+fresh-128000-run3,fresh,128000,128000,0,128000,226136.6,566.0,400,11678.6,34.3,187/320,58.4,55.2,95.54,598.4,226.67,238.32,length,lantern-falcon-213,,,False,1,224,10525,65.6,7.99,52.87+fresh-250000-run1,fresh,250000,250000,0,250000,535797.7,466.6,400,12571.4,31.8,195/365,53.4,54.9,94.25,824.9,536.8,549.33,length,glacier-falcon-113,,,False,1,515,10525,65.04,7.97,52.88+fresh-32768-run1,fresh,32768,32768,0,32768,51317.4,638.5,400,10006.9,40.0,238/354,67.2,54.6,97.71,298.3,51.48,61.45,length,,,,False,1,59,10525,62.91,8.0,52.43+fresh-32768-run2,fresh,32768,32768,0,32768,51540.4,635.8,400,10524.5,38.0,228/364,62.6,54.0,97.81,294.9,51.7,62.19,length,,,,False,1,59,10525,62.91,8.0,52.43+fresh-32768-run3,fresh,32768,32768,0,32768,51452.3,636.9,400,10605.7,37.7,226/355,63.7,52.9,97.69,308.3,51.61,62.18,length,,,,False,1,60,10525,62.9,8.0,52.43+fresh-4096-run1,fresh,4096,4096,0,4096,8468.8,483.7,400,10181.7,39.3,240/366,65.6,50.2,99.59,54.3,8.52,18.67,length,,,,False,1,20,10525,62.78,8.0,52.29+fresh-4096-run2,fresh,4096,4096,0,4096,8242.4,496.9,400,9710.5,41.2,234/349,67.0,55.0,99.58,54.1,8.3,17.97,length,,,,False,1,19,10525,62.77,8.0,52.3+fresh-4096-run3,fresh,4096,4096,0,4096,8215.5,498.6,400,10103.9,39.6,227/365,62.2,55.1,99.6,54.2,8.27,18.34,length,,,,False,1,19,10525,62.74,8.0,52.3+image-run1,image,,441,0,441,3438.8,128.2,12,284.7,42.1,9/9,100.0,27.6,94.61,5.5,5.02,5.28,stop,,,True,False,1,7,10525,63.3,7.94,52.88+image-run2,image,,441,0,441,3430.9,128.5,12,353.9,33.9,10/12,83.3,28.8,95.56,5.5,5.08,5.42,stop,,,True,False,1,6,10525,63.12,7.94,52.33+image-run3,image,,441,0,441,3393.9,129.9,12,267.8,44.8,9/9,100.0,40.1,94.61,5.5,4.95,5.2,stop,,,True,False,1,6,10525,62.9,7.94,52.33diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/strata-iq3_s.json b/bench/results/2026-10-02-community-rtx2080ti-11gb/strata-iq3_s.jsonnew file mode 100644index 000000000..8be73d058--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/strata-iq3_s.json@@ -0,0 +1,54 @@+{+ "exe": "<workspace>/Strata/engine/strata",+ "args": [+ "--pack",+ "<workspace>/Strata-data/packs/iq3_s",+ "--native",+ "<workspace>/Strata-data/models/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf",+ "--ple-gguf",+ "<workspace>/Strata-data/models/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf",+ "--expert-profile",+ "<workspace>/Strata/data/expert-profile.bin",+ "--expert-cache",+ "auto",+ "--prefill",+ "auto",+ "--spec",+ "4",+ "--spec-min-p",+ "0.5",+ "--mtp",+ "<workspace>/Strata-data/mtp/rt",+ "--max-context",+ "262144",+ "--kv",+ "int8",+ "--kv-resident",+ "32768",+ "--vision",+ "--vram-reserve-mib",+ "700"+ ],+ "cwd": "<workspace>/Strata",+ "tokenizer": "<workspace>/Strata-data/packs/iq3_s/tokenizer",+ "model_name": "qwen3.8-flash-next-iq3_s",+ "log": "<workspace>/Strata/strata-iq3_s.log",+ "lib_dirs": [+ "/usr/bin",+ "/usr/lib64"+ ],+ "port": 8080,+ "gpu": 0,+ "gpus_asked": true,+ "host": "0.0.0.0",+ "api_key": "<removed>",+ "idle_unload_s": 1800,+ "vision": {+ "exe": "<workspace>/Strata/engine/strata-vision",+ "mmproj": "<workspace>/Strata-data/models/mmproj-Qwen3.8-Flash-Next-BF16.gguf",+ "model": "<workspace>/Strata-data/models/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf",+ "gpu": false,+ "max_tokens": 1024,+ "threads": 24+ }+}diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/summarize.py b/bench/results/2026-10-02-community-rtx2080ti-11gb/summarize.pynew file mode 100644index 000000000..3211f7429--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/summarize.py@@ -0,0 +1,97 @@+#!/usr/bin/env python3+"""Collect data/*.json (the measured runs; files named *-discarded-* are left out) into runs.csv and summary.json,+with per-run memory peaks from data/telemetry.jsonl.++Units: prompt tok/s = freshly read prompt tokens / engine prompt_ms; decode tok/s = engine-generated tokens /+engine decode_ms (GET /metrics, 0.1 ms resolution); TTFT and total = client wall time, seconds, from just before the+HTTP request to the first non-empty text delta / the end of the stream (loopback, includes the server's tokenizing).+GPU memory = nvidia-smi memory.used (MiB, whole card); host RAM used = MemTotal - MemAvailable (GiB, whole system).+"""+import csv+import json+import statistics+from pathlib import Path++HERE = Path(__file__).resolve().parent+DATA = HERE / "data"+++def telemetry():+ rows = []+ path = DATA / "telemetry.jsonl"+ if path.exists():+ for line in path.read_text().splitlines():+ try:+ rows.append(json.loads(line))+ except ValueError:+ pass+ return rows+++def peaks(tel, t0, t1):+ sel = [r for r in tel if t0 - 1 <= r["epoch_s"] <= t1 + 1]+ if not sel:+ return {}+ gpu = [int(r["gpu"].split(",")[0]) for r in sel]+ host = [(r["memory"]["MemTotal_KiB"] - r["memory"]["MemAvailable_KiB"]) / 2**20 for r in sel]+ swap = [(r["memory"]["SwapTotal_KiB"] - r["memory"]["SwapFree_KiB"]) / 2**20 for r in sel]+ rss = [r.get("rss_KiB", {}).get("strata", 0) / 2**20 for r in sel]+ return {"samples": len(sel), "gpu_mem_used_mib_max": max(gpu), "host_used_gib_max": round(max(host), 2),+ "swap_used_gib_max": round(max(swap), 2), "engine_rss_gib_max": round(max(rss), 2)}+++def stats(values):+ values = [v for v in values if v is not None]+ if not values:+ return None+ return {"median": round(statistics.median(values), 2), "min": round(min(values), 2), "max": round(max(values), 2),+ "n": len(values)}+++def main():+ tel = telemetry()+ rows = []+ for f in sorted(DATA.glob("*.json")):+ if "discarded" in f.name or not f.name.startswith(("fresh-", "followup-", "image-")):+ continue+ r = json.loads(f.read_text())+ e, m = r.get("engine") or {}, r.get("metrics_record") or {}+ read = e.get("read")+ prompt_ms = m.get("prompt_ms") if m.get("prompt_tokens") == e.get("prompt_tokens") else e.get("prompt_ms_log")+ decode_ms = m.get("decode_ms") if m.get("prompt_tokens") == e.get("prompt_tokens") else e.get("decode_ms_log")+ gen = m.get("engine_generated", e.get("generated"))+ row = {"label": r["label"], "kind": r.get("kind", "image"), "target": r.get("target"),+ "prompt_tokens": e.get("prompt_tokens"), "reused": e.get("reused"), "read": read,+ "prompt_ms": prompt_ms, "prompt_tok_s": round(read / (prompt_ms / 1000), 1) if read and prompt_ms else None,+ "generated": gen, "decode_ms": decode_ms,+ "decode_tok_s": round(gen / (decode_ms / 1000), 1) if gen and decode_ms else None,+ "drafts": f"{e.get('drafts_accepted')}/{e.get('drafts_proposed')}",+ "draft_accept_pct": round(100 * e["drafts_accepted"] / e["drafts_proposed"], 1) if e.get("drafts_proposed") else None,+ "decode_hit_pct": e.get("hit_rate_pct"), "kv_vram_pct": e.get("kv_vram_pct"),+ "kv_ram_mib": e.get("kv_ram_mib"), "ttft_s": round(r["client_ttft_s"], 2) if r.get("client_ttft_s") else None,+ "total_s": round(r["client_total_s"], 2), "finish": r.get("finish_reason"),+ "needle": r.get("needle"), "needle_found": r.get("needle_found"), "correct": r.get("correct"),+ "foreign_overlap": r.get("foreign_overlap"), "attempt": r.get("attempt")}+ row.update(peaks(tel, r["epoch_start"], r.get("epoch_end", r["epoch_start"] + r["client_total_s"])))+ rows.append(row)+ with (HERE / "runs.csv").open("w", newline="") as f:+ w = csv.DictWriter(f, fieldnames=list(dict.fromkeys(k for r in rows for k in r)))+ w.writeheader()+ w.writerows(rows)+ groups = {}+ for r in rows:+ key = f"{r['kind']}-{r['target']}" if r["kind"] != "image" else "image"+ groups.setdefault(key, []).append(r)+ summary = {k: {f: stats([r.get(f) for r in g]) for f in+ ("prompt_tokens", "reused", "read", "prompt_tok_s", "generated", "decode_tok_s", "draft_accept_pct",+ "decode_hit_pct", "kv_vram_pct", "ttft_s", "total_s", "gpu_mem_used_mib_max", "host_used_gib_max",+ "swap_used_gib_max", "engine_rss_gib_max")} for k, g in groups.items()}+ if tel:+ summary["telemetry_whole_session"] = peaks(tel, tel[0]["epoch_s"], tel[-1]["epoch_s"])+ (HERE / "summary.json").write_text(json.dumps(summary, indent=1) + "\n")+ for k, v in summary.items():+ print(k, json.dumps(v))+++if __name__ == "__main__":+ main()diff --git a/bench/results/2026-10-02-community-rtx2080ti-11gb/summary.json b/bench/results/2026-10-02-community-rtx2080ti-11gb/summary.jsonnew file mode 100644index 000000000..6f47c99ac--- /dev/null+++ b/bench/results/2026-10-02-community-rtx2080ti-11gb/summary.json@@ -0,0 +1,653 @@+{+ "followup-128000": {+ "prompt_tokens": {+ "median": 128463,+ "min": 128463,+ "max": 128463,+ "n": 1+ },+ "reused": {+ "median": 128400,+ "min": 128400,+ "max": 128400,+ "n": 1+ },+ "read": {+ "median": 63,+ "min": 63,+ "max": 63,+ "n": 1+ },+ "prompt_tok_s": {+ "median": 49.2,+ "min": 49.2,+ "max": 49.2,+ "n": 1+ },+ "generated": {+ "median": 400,+ "min": 400,+ "max": 400,+ "n": 1+ },+ "decode_tok_s": {+ "median": 35.0,+ "min": 35.0,+ "max": 35.0,+ "n": 1+ },+ "draft_accept_pct": {+ "median": 59.5,+ "min": 59.5,+ "max": 59.5,+ "n": 1+ },+ "decode_hit_pct": {+ "median": 54.2,+ "min": 54.2,+ "max": 54.2,+ "n": 1+ },+ "kv_vram_pct": {+ "median": 95.86,+ "min": 95.86,+ "max": 95.86,+ "n": 1+ },+ "ttft_s": {+ "median": 1.85,+ "min": 1.85,+ "max": 1.85,+ "n": 1+ },+ "total_s": {+ "median": 13.25,+ "min": 13.25,+ "max": 13.25,+ "n": 1+ },+ "gpu_mem_used_mib_max": {+ "median": 10525,+ "min": 10525,+ "max": 10525,+ "n": 1+ },+ "host_used_gib_max": {+ "median": 64.81,+ "min": 64.81,+ "max": 64.81,+ "n": 1+ },+ "swap_used_gib_max": {+ "median": 7.98,+ "min": 7.98,+ "max": 7.98,+ "n": 1+ },+ "engine_rss_gib_max": {+ "median": 52.87,+ "min": 52.87,+ "max": 52.87,+ "n": 1+ }+ },+ "followup-250000": {+ "prompt_tokens": {+ "median": 250463,+ "min": 250463,+ "max": 250463,+ "n": 1+ },+ "reused": {+ "median": 249993,+ "min": 249993,+ "max": 249993,+ "n": 1+ },+ "read": {+ "median": 470,+ "min": 470,+ "max": 470,+ "n": 1+ },+ "prompt_tok_s": {+ "median": 132.2,+ "min": 132.2,+ "max": 132.2,+ "n": 1+ },+ "generated": {+ "median": 400,+ "min": 400,+ "max": 400,+ "n": 1+ },+ "decode_tok_s": {+ "median": 34.6,+ "min": 34.6,+ "max": 34.6,+ "n": 1+ },+ "draft_accept_pct": {+ "median": 59.3,+ "min": 59.3,+ "max": 59.3,+ "n": 1+ },+ "decode_hit_pct": {+ "median": 57.2,+ "min": 57.2,+ "max": 57.2,+ "n": 1+ },+ "kv_vram_pct": {+ "median": 94.66,+ "min": 94.66,+ "max": 94.66,+ "n": 1+ },+ "ttft_s": {+ "median": 4.55,+ "min": 4.55,+ "max": 4.55,+ "n": 1+ },+ "total_s": {+ "median": 16.08,+ "min": 16.08,+ "max": 16.08,+ "n": 1+ },+ "gpu_mem_used_mib_max": {+ "median": 10525,+ "min": 10525,+ "max": 10525,+ "n": 1+ },+ "host_used_gib_max": {+ "median": 64.01,+ "min": 64.01,+ "max": 64.01,+ "n": 1+ },+ "swap_used_gib_max": {+ "median": 7.96,+ "min": 7.96,+ "max": 7.96,+ "n": 1+ },+ "engine_rss_gib_max": {+ "median": 52.88,+ "min": 52.88,+ "max": 52.88,+ "n": 1+ }+ },+ "fresh-128000": {+ "prompt_tokens": {+ "median": 128000,+ "min": 128000,+ "max": 128000,+ "n": 3+ },+ "reused": {+ "median": 0,+ "min": 0,+ "max": 0,+ "n": 3+ },+ "read": {+ "median": 128000,+ "min": 128000,+ "max": 128000,+ "n": 3+ },+ "prompt_tok_s": {+ "median": 566.2,+ "min": 566.0,+ "max": 566.9,+ "n": 3+ },+ "generated": {+ "median": 400,+ "min": 400,+ "max": 400,+ "n": 3+ },+ "decode_tok_s": {+ "median": 34.1,+ "min": 33.7,+ "max": 34.3,+ "n": 3+ },+ "draft_accept_pct": {+ "median": 55.7,+ "min": 54.3,+ "max": 58.4,+ "n": 3+ },+ "decode_hit_pct": {+ "median": 55.2,+ "min": 54.9,+ "max": 55.6,+ "n": 3+ },+ "kv_vram_pct": {+ "median": 95.62,+ "min": 95.54,+ "max": 95.73,+ "n": 3+ },+ "ttft_s": {+ "median": 226.59,+ "min": 226.34,+ "max": 226.67,+ "n": 3+ },+ "total_s": {+ "median": 238.32,+ "min": 238.03,+ "max": 238.42,+ "n": 3+ },+ "gpu_mem_used_mib_max": {+ "median": 10525,+ "min": 10525,+ "max": 10525,+ "n": 3+ },+ "host_used_gib_max": {+ "median": 63.82,+ "min": 63.42,+ "max": 65.6,+ "n": 3+ },+ "swap_used_gib_max": {+ "median": 8.0,+ "min": 7.99,+ "max": 8.0,+ "n": 3+ },+ "engine_rss_gib_max": {+ "median": 52.87,+ "min": 52.87,+ "max": 52.87,+ "n": 3+ }+ },+ "fresh-250000": {+ "prompt_tokens": {+ "median": 250000,+ "min": 250000,+ "max": 250000,+ "n": 1+ },+ "reused": {+ "median": 0,+ "min": 0,+ "max": 0,+ "n": 1+ },+ "read": {+ "median": 250000,+ "min": 250000,+ "max": 250000,+ "n": 1+ },+ "prompt_tok_s": {+ "median": 466.6,+ "min": 466.6,+ "max": 466.6,+ "n": 1+ },+ "generated": {+ "median": 400,+ "min": 400,+ "max": 400,+ "n": 1+ },+ "decode_tok_s": {+ "median": 31.8,+ "min": 31.8,+ "max": 31.8,+ "n": 1+ },+ "draft_accept_pct": {+ "median": 53.4,+ "min": 53.4,+ "max": 53.4,+ "n": 1+ },+ "decode_hit_pct": {+ "median": 54.9,+ "min": 54.9,+ "max": 54.9,+ "n": 1+ },+ "kv_vram_pct": {+ "median": 94.25,+ "min": 94.25,+ "max": 94.25,+ "n": 1+ },+ "ttft_s": {+ "median": 536.8,+ "min": 536.8,+ "max": 536.8,+ "n": 1+ },+ "total_s": {+ "median": 549.33,+ "min": 549.33,+ "max": 549.33,+ "n": 1+ },+ "gpu_mem_used_mib_max": {+ "median": 10525,+ "min": 10525,+ "max": 10525,+ "n": 1+ },+ "host_used_gib_max": {+ "median": 65.04,+ "min": 65.04,+ "max": 65.04,+ "n": 1+ },+ "swap_used_gib_max": {+ "median": 7.97,+ "min": 7.97,+ "max": 7.97,+ "n": 1+ },+ "engine_rss_gib_max": {+ "median": 52.88,+ "min": 52.88,+ "max": 52.88,+ "n": 1+ }+ },+ "fresh-32768": {+ "prompt_tokens": {+ "median": 32768,+ "min": 32768,+ "max": 32768,+ "n": 3+ },+ "reused": {+ "median": 0,+ "min": 0,+ "max": 0,+ "n": 3+ },+ "read": {+ "median": 32768,+ "min": 32768,+ "max": 32768,+ "n": 3+ },+ "prompt_tok_s": {+ "median": 636.9,+ "min": 635.8,+ "max": 638.5,+ "n": 3+ },+ "generated": {+ "median": 400,+ "min": 400,+ "max": 400,+ "n": 3+ },+ "decode_tok_s": {+ "median": 38.0,+ "min": 37.7,+ "max": 40.0,+ "n": 3+ },+ "draft_accept_pct": {+ "median": 63.7,+ "min": 62.6,+ "max": 67.2,+ "n": 3+ },+ "decode_hit_pct": {+ "median": 54.0,+ "min": 52.9,+ "max": 54.6,+ "n": 3+ },+ "kv_vram_pct": {+ "median": 97.71,+ "min": 97.69,+ "max": 97.81,+ "n": 3+ },+ "ttft_s": {+ "median": 51.61,+ "min": 51.48,+ "max": 51.7,+ "n": 3+ },+ "total_s": {+ "median": 62.18,+ "min": 61.45,+ "max": 62.19,+ "n": 3+ },+ "gpu_mem_used_mib_max": {+ "median": 10525,+ "min": 10525,+ "max": 10525,+ "n": 3+ },+ "host_used_gib_max": {+ "median": 62.91,+ "min": 62.9,+ "max": 62.91,+ "n": 3+ },+ "swap_used_gib_max": {+ "median": 8.0,+ "min": 8.0,+ "max": 8.0,+ "n": 3+ },+ "engine_rss_gib_max": {+ "median": 52.43,+ "min": 52.43,+ "max": 52.43,+ "n": 3+ }+ },+ "fresh-4096": {+ "prompt_tokens": {+ "median": 4096,+ "min": 4096,+ "max": 4096,+ "n": 3+ },+ "reused": {+ "median": 0,+ "min": 0,+ "max": 0,+ "n": 3+ },+ "read": {+ "median": 4096,+ "min": 4096,+ "max": 4096,+ "n": 3+ },+ "prompt_tok_s": {+ "median": 496.9,+ "min": 483.7,+ "max": 498.6,+ "n": 3+ },+ "generated": {+ "median": 400,+ "min": 400,+ "max": 400,+ "n": 3+ },+ "decode_tok_s": {+ "median": 39.6,+ "min": 39.3,+ "max": 41.2,+ "n": 3+ },+ "draft_accept_pct": {+ "median": 65.6,+ "min": 62.2,+ "max": 67.0,+ "n": 3+ },+ "decode_hit_pct": {+ "median": 55.0,+ "min": 50.2,+ "max": 55.1,+ "n": 3+ },+ "kv_vram_pct": {+ "median": 99.59,+ "min": 99.58,+ "max": 99.6,+ "n": 3+ },+ "ttft_s": {+ "median": 8.3,+ "min": 8.27,+ "max": 8.52,+ "n": 3+ },+ "total_s": {+ "median": 18.34,+ "min": 17.97,+ "max": 18.67,+ "n": 3+ },+ "gpu_mem_used_mib_max": {+ "median": 10525,+ "min": 10525,+ "max": 10525,+ "n": 3+ },+ "host_used_gib_max": {+ "median": 62.77,+ "min": 62.74,+ "max": 62.78,+ "n": 3+ },+ "swap_used_gib_max": {+ "median": 8.0,+ "min": 8.0,+ "max": 8.0,+ "n": 3+ },+ "engine_rss_gib_max": {+ "median": 52.3,+ "min": 52.29,+ "max": 52.3,+ "n": 3+ }+ },+ "image": {+ "prompt_tokens": {+ "median": 441,+ "min": 441,+ "max": 441,+ "n": 3+ },+ "reused": {+ "median": 0,+ "min": 0,+ "max": 0,+ "n": 3+ },+ "read": {+ "median": 441,+ "min": 441,+ "max": 441,+ "n": 3+ },+ "prompt_tok_s": {+ "median": 128.5,+ "min": 128.2,+ "max": 129.9,+ "n": 3+ },+ "generated": {+ "median": 12,+ "min": 12,+ "max": 12,+ "n": 3+ },+ "decode_tok_s": {+ "median": 42.1,+ "min": 33.9,+ "max": 44.8,+ "n": 3+ },+ "draft_accept_pct": {+ "median": 100.0,+ "min": 83.3,+ "max": 100.0,+ "n": 3+ },+ "decode_hit_pct": {+ "median": 28.8,+ "min": 27.6,+ "max": 40.1,+ "n": 3+ },+ "kv_vram_pct": {+ "median": 94.61,+ "min": 94.61,+ "max": 95.56,+ "n": 3+ },+ "ttft_s": {+ "median": 5.02,+ "min": 4.95,+ "max": 5.08,+ "n": 3+ },+ "total_s": {+ "median": 5.28,+ "min": 5.2,+ "max": 5.42,+ "n": 3+ },+ "gpu_mem_used_mib_max": {+ "median": 10525,+ "min": 10525,+ "max": 10525,+ "n": 3+ },+ "host_used_gib_max": {+ "median": 63.12,+ "min": 62.9,+ "max": 63.3,+ "n": 3+ },+ "swap_used_gib_max": {+ "median": 7.94,+ "min": 7.94,+ "max": 7.94,+ "n": 3+ },+ "engine_rss_gib_max": {+ "median": 52.33,+ "min": 52.33,+ "max": 52.88,+ "n": 3+ }+ },+ "telemetry_whole_session": {+ "samples": 2899,+ "gpu_mem_used_mib_max": 10525,+ "host_used_gib_max": 65.6,+ "swap_used_gib_max": 8.0,+ "engine_rss_gib_max": 52.93+ }+}