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, 2x RTX 5060 Ti 16 GB (PCIe gen3), Strata 0.1.34 (#483)
Efs-O99b9311c1f6d
diff --git a/bench/results/2026-10-02-community-2x5060ti/README.md b/bench/results/2026-10-02-community-2x5060ti/README.mdnew file mode 100644index 000000000..13b849176--- /dev/null+++ b/bench/results/2026-10-02-community-2x5060ti/README.md@@ -0,0 +1,185 @@+# Community benchmark on 2× RTX 5060 Ti 16 GB (PCIe gen3)++Measured on 2026-10-02 (speed) and 2026-10-01 (agent task) by @Efs-O.+Strata 0.1.34 running Flash-Next IQ3_S across two RTX 5060 Ti 16 GB on an older+PCIe gen3 desktop. The report has three parts: a speed test that follows+`docs/COMMUNITY_BENCHMARKS.md`, one real agentic coding task with hidden tests,+and, for context, the same task run by a dense local model and by paid hosted+models. The main limitation: the agent task ran once per setup (n=1), on Strata+0.1.32 rather than 0.1.34.++## Hardware and software++- GPUs: 2× RTX 5060 Ti 16 GB (Strata uses these two only). A third card, an RTX 3060+ 12 GB, runs only the vision encoder (`cuda_device: 2`).+- PCIe: gen3, x8 / x8 for the two 5060 Tis (x4 for the 3060). nvidia-smi reports a+ lower generation at idle because of link power saving.+- Power limits: 180 W on each 5060 Ti (stock) and no overclock for the main results. A+ second set with a memory overclock is reported separately below.+- CPU: Intel i9-9900KF (8 cores / 16 threads, AVX2, no AVX-512). Strata started+ 7 expert-pool workers plus the host thread.+- RAM: 128 GB DDR4-3200.+- Storage: models and packs on NVMe (Samsung 9100 PRO).+- OS: Windows 10 Pro 22H2 (19045). Driver 616.56, CUDA 13.4 (runtime from the venv's `nvidia/cu13`).+- Strata: tag `v0.1.34` (`1678de3`), engine 0.1.34, release binaries set up with+ `guarded_setup.py --model IQ3_S --gpus 0,1`.+- Background load: an idle desktop and VS Code. No other GPU work during the runs.++## Model and configuration++- Model: `ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF`, IQ3_S+ (`Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-0000{1,2}-of-00002.gguf`). Pack built by setup.+ Uses the expert profile shipped in the repo (`data/expert-profile.bin`).+- Vision: `mmproj-Qwen3.8-Flash-Next-BF16.gguf` on the 3060. It was not used in any run below.+- Context 154,624, KV `int8`, KV resident 32,768. Expert cache `auto`, prefill `auto`, layer split `auto`.+- MTP drafts on (`--spec 4 --spec-min-p 0.5`). Reasoning: the server default+ (`xhigh`) for the speed test. Temperature 0.6. No calibration, no+ experimental speed projection, not in low-RAM mode.++```text+strata.exe --pack <data>/packs/iq3_s+ --native <models>/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf+ --ple-gguf <models>/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-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 154624 --kv int8 --kv-resident 32768 --vision+(run config: "gpu": [0, 1], "layer_split": "auto")+```++## Part 1: Speed (Strata 0.1.34)++### Method++The script is [`speed_bench.py`](speed_bench.py) (`python speed_bench.py <code folder> <strata log>`), using streaming `/v1/chat/completions` on the local server.++- Output capped at 256 tokens. Every run hit the cap.+- One unmeasured warm-up, then 3 measured runs per condition. The server had been+ running for several minutes, so model loading is not included. The expert cache+ was warm from earlier use.+- **short**: a 104-token coding request.+- **long-cold**: about 20.9K tokens of source code plus a question. Each run starts+ with a unique UUID line, so no prefix can be reused.+- **long-reuse**: the same 20.9K-token text sent again after its cold run, with only+ the last part changed. The engine reused 16,384 tokens and read about 4.5K fresh.+- Prompt and decode rates come from the engine's own `strata serve: prompt …` line.+ TTFT and total time are measured at the client and include HTTP. TTFT is the first+ non-empty delta, which is always reasoning text here. Keep-alive lines are ignored.+- VRAM is from `nvidia-smi` after each request: the whole card, desktop included.+- The prompt text was a private codebase, so it is not included. Any ~80K-character+ block of source code reproduces the long conditions.++### Results++| Configuration | Actual prompt tokens | Reused tokens | Generated tokens | Runs | Prompt tok/s median (range) | Decode tok/s median (range) | TTFT s median (range) | Total s median (range) |+| --- | ---: | ---: | ---: | ---: | --- | --- | --- | --- |+| short | 104 | 0 | 256 | 3 | 55.6 (53.0–56.3) | 62.9 (60.2–68.9) | 1.89 (1.87–1.99) | 5.94 (5.56–6.21) |+| long-cold | 20,905–20,913 | 0 | 256 | 3 | 1,108 (1,097–1,109) | 56.4 (56.0–58.1) | 19.10 (19.09–19.27) | 23.61 (23.49–23.82) |+| long-reuse | 20,891–20,899 | 16,384 | 256 | 3 | 574 (566–576) | 56.8 (52.0–59.8) | 8.05 (8.02–8.17) | 12.51 (12.31–13.07) |++- MTP drafts accepted: 61–79% per run.+- Decode expert-cache hit rate: 89–96%.+- KV reads served from VRAM: 97.3–99.6%.+- VRAM after each request: 14,949 MiB on GPU 0 and 15,077–15,079 MiB on GPU 1. No paging or out-of-memory errors.+- Per-run data, including the engine's timing lines: [`runs.json`](runs.json).++Short prompts read at about 55 tok/s, and a 104-token request takes about 1.9 s+before its first token. That is the fixed per-request cost discussed in #340, and+it is unchanged on 0.1.34. Setting `STRATA_SPLIT_OWN=1` did not reduce it, and it+doubled cold prefill time (details in #340).++### Failures++None in these 9 measured runs.++### With a memory overclock (+1500 MHz on both 5060 Ti)++The same script on the same server, run again after setting a +1500 MHz memory+offset in MSI Afterburner on both RTX 5060 Ti. Memory ran at 15,302 MHz, against+14,001 MHz stock. Power limit 90% (162 W), core clock and voltage unchanged. Same+method: 3 runs per condition after a warm-up, 256-token cap.++| Configuration | Prompt tok/s median (range) | Decode tok/s median (range) | TTFT s median (range) | Total s median (range) | Drafts accepted |+| --- | --- | --- | --- | --- | ---: |+| short | 55.0 (54.2–55.7) | 68.2 (65.7–68.2) | 1.94 (1.82–1.95) | 5.68 (5.67–5.70) | 71% (stock 66%) |+| long-cold | 1,125 (1,116–1,125) | 61.8 (59.5–62.1) | 18.76 (18.72–18.91) | 23.01 (22.84–23.04) | 74% (stock 70%) |+| long-reuse | 581 (578–582) | 61.1 (59.7–64.1) | 7.98 (7.95–7.99) | 12.16 (11.96–12.21) | 80% (stock 71%) |++- **Decode:** 8–10% faster than stock.+- **Prompt reading:** within about 2%, so not limited by VRAM speed.+- **Caveat on draft acceptance:** it was also higher in this set and raises decode+ speed on its own, so part of the gain may be run-to-run variation.+- **A cleaner check:** an intermediate run at +1000 MHz had the same 74%+ acceptance on long-cold as this one, and decoded at 57.0 tok/s against 61.8+ here, which points to a real memory effect.+- **Power:** each 5060 Ti stayed under 100 W.+- **Errors:** none.+- **Data:** [`runs-mem1500.json`](runs-mem1500.json).++## Part 2: One agentic coding task (n=1)++The task: implement a small semver library (`parse`, `compare`, `satisfies`) from a+32-line spec, inside an agent loop with file and shell tools. The agent sees 3+tests; 55 hidden tests score the result. Four rules are traps: the prerelease gate,+caret on `0.x`, comparators containing X, and partial hyphen bounds. A reference+implementation scores 54/55.++- The prompt was identical for every setup.+- "Time to done" runs from sending the prompt to the agent's final reply, model load included.+- These are **agent wall-clock numbers, not engine speed**. Every round re-sends the+ conversation, so prompt processing is inside the time.+- The rate is output tokens ÷ (response complete − request sent), averaged over+ each run's requests. It is end-to-end and lower than the decode speed in Part 1.++### Local models (same machine)++| Setup | Engine | Hidden tests | Time to done | Output tokens | End-to-end tok/s |+| --- | --- | ---: | ---: | ---: | ---: |+| Flash-Next IQ3_S, effort `medium` | Strata 0.1.32, 2× 5060 Ti | 55/55 | 797 s | 38.8K | 49 |+| Flash-Next IQ3_S, effort `xhigh` | Strata 0.1.32, 2× 5060 Ti | 55/55 | 872 s | 42.4K | 49 |+| Flash-Next IQ3_S, effort `low` | Strata 0.1.32, 2× 5060 Ti | 54/55, unfinished (see below) | ~1,770 s | 41.5K delivered | 52 |+| Qwen3.8-27B UD-Q6_K + MTP, effort `low` | llama.cpp, tensor split on 2× 5060 Ti | 55/55 | 1,785 s | 69.6K | 44 |+| Qwen3.8-27B UD-Q6_K + MTP, effort `xhigh` | llama.cpp, tensor split on 2× 5060 Ti | 55/55 | 1,824 s | 64.3K | 42 |++On this task, Flash-Next on Strata finished in about half the time of the dense 27B+at Q6, on about 40% fewer output tokens, with the same score. At `low`, Flash did not+think less than at `medium`; it produced the longest requests of any Flash run.++**The `low` run did not finish.** Twice, a long tool call (about 18K generated tokens)+ran for over two minutes with no visible output, because tool-call arguments arrive+at the end. The client's 120 s idle timeout then disconnected, and after that the+server stopped answering new requests although `/health` still returned OK. It needed+a restart. That was on 0.1.32. On 0.1.34 we tried to reproduce it: we cut the+connection during a long tool-call generation, and the next request was answered+within 0.5 s every time. So it appears fixed by the cancel-on-disconnect changes+(#430/#431), and we are not filing an issue.++### Paid hosted models on the same task, for reference only++These ran in different harnesses (each vendor's own CLI, or a hosted API), on+different hardware, with their own tool sets. They are here only so readers can+place the local results. They are not Strata measurements and not a fair speed+comparison.++| Model | Harness | Hidden tests | Time to done | Output tokens |+| --- | --- | ---: | ---: | ---: |+| gpt-6-luna, CLI default effort | GitHub Copilot CLI | 55/55 | 108 s | ~4.3K (visible only) |+| qwen-3.8-27b on Cerebras (paid tier) | same agent loop as the local runs | 55/55 | ~211 s (one manual resume after hitting the output cap) | 167K |+| gpt-6-luna, effort `xhigh` | Codex CLI | 53/55 | 447 s | 23.5K |+| claude-haiku-4-5 | Claude Code (headless) | 44/55 | 452 s | 44.7K |++The paid models finished about 2–7× sooner. The local setups matched or beat them on+the score: every finished local run scored 55/55.++## Correctness and limitations++- Speed: 3 runs per condition, one machine, one model and config. The expert cache+ was warm from earlier use.+- Agent task: **n=1 per setup**. Run-to-run variance on agent tasks is easily ±30% in time.+- The task is small and fully specified, and most setups hit the 55/55 ceiling. It+ shows time and token spend, not which model codes better on harder work.+- The agent-task Flash runs used Strata 0.1.32, not 0.1.34.+- The agent harness used for the local runs and Cerebras is a personal VS Code+ extension. Its tool schemas and prompts differ from the vendor CLIs.+- Not measured: needle recall, vision, a context longer than ~21K for speed, and+ power draw. A spot check showed ~145 W for all GPUs during decode and a 212 W peak+ during a cold 20K prefill.diff --git a/bench/results/2026-10-02-community-2x5060ti/runs-mem1500.json b/bench/results/2026-10-02-community-2x5060ti/runs-mem1500.jsonnew file mode 100644index 000000000..5b7e29997--- /dev/null+++ b/bench/results/2026-10-02-community-2x5060ti/runs-mem1500.json@@ -0,0 +1,267 @@+{+ "date": "2026-10-02 13:25",+ "max_tokens": 256,+ "temperature": 0.6,+ "runs": [+ {+ "label": "short-1",+ "prompt_tokens": 105,+ "reused_tokens": 0,+ "read_tokens": 105,+ "prompt_ms": 1908.9,+ "prompt_tok_s": 55.0,+ "generated_tokens": 256,+ "decode_ms": 3754.4,+ "decode_tok_s": 68.2,+ "draft_n": 201,+ "draft_accepted": 148,+ "ttft_s": 1.948,+ "first_token_kind": "reasoning",+ "total_latency_s": 5.685,+ "vram_after": {+ "gpu0_mib": 14949,+ "gpu1_mib": 15079,+ "gpu2_mib": 2408+ },+ "engine_log": [+ "strata serve: prompt 105 tokens = 0 reused + 105 read in 1909 ms (55.0 tok/s), 256 generated in 3754 ms (68.2 tok/s), drafts accepted 148 of 201, 1 checkpoints",+ "strata serve: decode expert cache hit rate: 93.9% (139175 hits / 148281 lookups)",+ "strata serve: KV streaming: 99.52% of 111672 block reads hit VRAM, 2.2 MiB read from RAM",+ "strata serve: suffix drafts: 7 windows, 21 of 21 drafts accepted"+ ],+ "reasoning_chars": 961,+ "answer": ""+ },+ {+ "label": "short-2",+ "prompt_tokens": 100,+ "reused_tokens": 0,+ "read_tokens": 100,+ "prompt_ms": 1796.2,+ "prompt_tok_s": 55.7,+ "generated_tokens": 256,+ "decode_ms": 3896.3,+ "decode_tok_s": 65.7,+ "draft_n": 193,+ "draft_accepted": 132,+ "ttft_s": 1.818,+ "first_token_kind": "reasoning",+ "total_latency_s": 5.696,+ "vram_after": {+ "gpu0_mib": 14949,+ "gpu1_mib": 15079,+ "gpu2_mib": 2526+ },+ "engine_log": [+ "strata serve: prompt 100 tokens = 0 reused + 100 read in 1796 ms (55.7 tok/s), 256 generated in 3896 ms (65.7 tok/s), drafts accepted 132 of 193, 1 checkpoints",+ "strata serve: decode expert cache hit rate: 95.5% (145727 hits / 152619 lookups)",+ "strata serve: KV streaming: 99.52% of 112014 block reads hit VRAM, 2.2 MiB read from RAM",+ "strata serve: suffix drafts: 6 windows, 17 of 18 drafts accepted"+ ],+ "reasoning_chars": 1035,+ "answer": ""+ },+ {+ "label": "short-3",+ "prompt_tokens": 104,+ "reused_tokens": 0,+ "read_tokens": 104,+ "prompt_ms": 1918.9,+ "prompt_tok_s": 54.2,+ "generated_tokens": 256,+ "decode_ms": 3751.4,+ "decode_tok_s": 68.2,+ "draft_n": 189,+ "draft_accepted": 135,+ "ttft_s": 1.942,+ "first_token_kind": "reasoning",+ "total_latency_s": 5.675,+ "vram_after": {+ "gpu0_mib": 14949,+ "gpu1_mib": 15079,+ "gpu2_mib": 2528+ },+ "engine_log": [+ "strata serve: prompt 104 tokens = 0 reused + 104 read in 1919 ms (54.2 tok/s), 256 generated in 3751 ms (68.2 tok/s), drafts accepted 135 of 189, 1 checkpoints",+ "strata serve: decode expert cache hit rate: 96.0% (144162 hits / 150230 lookups)",+ "strata serve: KV streaming: 99.52% of 112722 block reads hit VRAM, 2.2 MiB read from RAM",+ "strata serve: suffix drafts: 10 windows, 26 of 26 drafts accepted"+ ],+ "reasoning_chars": 1032,+ "answer": ""+ },+ {+ "label": "long-cold-1",+ "prompt_tokens": 20910,+ "reused_tokens": 0,+ "read_tokens": 20910,+ "prompt_ms": 18593.8,+ "prompt_tok_s": 1124.6,+ "generated_tokens": 256,+ "decode_ms": 4304.3,+ "decode_tok_s": 59.5,+ "draft_n": 200,+ "draft_accepted": 151,+ "ttft_s": 18.756,+ "first_token_kind": "reasoning",+ "total_latency_s": 23.041,+ "vram_after": {+ "gpu0_mib": 14949,+ "gpu1_mib": 15079,+ "gpu2_mib": 2480+ },+ "engine_log": [+ "strata serve: prompt 20910 tokens = 0 reused + 20910 read in 18594 ms (1124.6 tok/s), 256 generated in 4304 ms (59.5 tok/s), drafts accepted 151 of 200, 2 checkpoints",+ "strata serve: decode expert cache hit rate: 90.7% (132684 hits / 146329 lookups)",+ "strata serve: KV streaming: 97.39% of 952032 block reads hit VRAM, 100.2 MiB read from RAM",+ "strata serve: suffix drafts: 10 windows, 19 of 21 drafts accepted"+ ],+ "reasoning_chars": 1042,+ "answer": ""+ },+ {+ "label": "long-reuse-1",+ "prompt_tokens": 20896,+ "reused_tokens": 16384,+ "read_tokens": 4512,+ "prompt_ms": 7755.0,+ "prompt_tok_s": 581.8,+ "generated_tokens": 256,+ "decode_ms": 4285.7,+ "decode_tok_s": 59.7,+ "draft_n": 190,+ "draft_accepted": 149,+ "ttft_s": 7.95,+ "first_token_kind": "reasoning",+ "total_latency_s": 12.215,+ "vram_after": {+ "gpu0_mib": 14949,+ "gpu1_mib": 15079,+ "gpu2_mib": 2473+ },+ "engine_log": [+ "strata serve: prompt 20896 tokens = 16384 reused + 4512 read in 7755 ms (581.8 tok/s), 256 generated in 4286 ms (59.7 tok/s), drafts accepted 149 of 190, 2 checkpoints",+ "strata serve: decode expert cache hit rate: 91.1% (130698 hits / 143421 lookups)",+ "strata serve: KV streaming: 98.53% of 1885572 block reads hit VRAM, 111.4 MiB read from RAM"+ ],+ "reasoning_chars": 1029,+ "answer": ""+ },+ {+ "label": "long-cold-2",+ "prompt_tokens": 20911,+ "reused_tokens": 0,+ "read_tokens": 20911,+ "prompt_ms": 18594.6,+ "prompt_tok_s": 1124.6,+ "generated_tokens": 256,+ "decode_ms": 4145.5,+ "decode_tok_s": 61.8,+ "draft_n": 206,+ "draft_accepted": 146,+ "ttft_s": 18.719,+ "first_token_kind": "reasoning",+ "total_latency_s": 22.845,+ "vram_after": {+ "gpu0_mib": 14949,+ "gpu1_mib": 15079,+ "gpu2_mib": 2457+ },+ "engine_log": [+ "strata serve: prompt 20911 tokens = 0 reused + 20911 read in 18595 ms (1124.6 tok/s), 256 generated in 4145 ms (61.8 tok/s), drafts accepted 146 of 206, 2 checkpoints",+ "strata serve: decode expert cache hit rate: 94.0% (142579 hits / 151653 lookups)",+ "strata serve: KV streaming: 97.47% of 985938 block reads hit VRAM, 100.6 MiB read from RAM"+ ],+ "reasoning_chars": 812,+ "answer": "(omitted: summary of a private codebase)"+ },+ {+ "label": "long-reuse-2",+ "prompt_tokens": 20897,+ "reused_tokens": 16384,+ "read_tokens": 4513,+ "prompt_ms": 7801.7,+ "prompt_tok_s": 578.5,+ "generated_tokens": 256,+ "decode_ms": 4192.8,+ "decode_tok_s": 61.1,+ "draft_n": 185,+ "draft_accepted": 146,+ "ttft_s": 7.987,+ "first_token_kind": "reasoning",+ "total_latency_s": 12.161,+ "vram_after": {+ "gpu0_mib": 14949,+ "gpu1_mib": 15079,+ "gpu2_mib": 2522+ },+ "engine_log": [+ "strata serve: prompt 20897 tokens = 16384 reused + 4513 read in 7802 ms (578.5 tok/s), 256 generated in 4193 ms (61.1 tok/s), drafts accepted 146 of 185, 2 checkpoints",+ "strata serve: decode expert cache hit rate: 91.5% (129866 hits / 141970 lookups)",+ "strata serve: KV streaming: 98.56% of 1910262 block reads hit VRAM, 111.1 MiB read from RAM",+ "strata serve: suffix drafts: 8 windows, 18 of 20 drafts accepted"+ ],+ "reasoning_chars": 1017,+ "answer": ""+ },+ {+ "label": "long-cold-3",+ "prompt_tokens": 20911,+ "reused_tokens": 0,+ "read_tokens": 20911,+ "prompt_ms": 18735.6,+ "prompt_tok_s": 1116.1,+ "generated_tokens": 256,+ "decode_ms": 4119.4,+ "decode_tok_s": 62.1,+ "draft_n": 204,+ "draft_accepted": 153,+ "ttft_s": 18.914,+ "first_token_kind": "reasoning",+ "total_latency_s": 23.014,+ "vram_after": {+ "gpu0_mib": 14949,+ "gpu1_mib": 15079,+ "gpu2_mib": 2494+ },+ "engine_log": [+ "strata serve: prompt 20911 tokens = 0 reused + 20911 read in 18736 ms (1116.1 tok/s), 256 generated in 4119 ms (62.1 tok/s), drafts accepted 153 of 204, 2 checkpoints",+ "strata serve: decode expert cache hit rate: 92.5% (137181 hits / 148270 lookups)",+ "strata serve: KV streaming: 97.46% of 964332 block reads hit VRAM, 98.6 MiB read from RAM",+ "strata serve: suffix drafts: 7 windows, 13 of 16 drafts accepted"+ ],+ "reasoning_chars": 1007,+ "answer": ""+ },+ {+ "label": "long-reuse-3",+ "prompt_tokens": 20897,+ "reused_tokens": 16384,+ "read_tokens": 4513,+ "prompt_ms": 7770.7,+ "prompt_tok_s": 580.8,+ "generated_tokens": 256,+ "decode_ms": 3993.6,+ "decode_tok_s": 64.1,+ "draft_n": 178,+ "draft_accepted": 146,+ "ttft_s": 7.981,+ "first_token_kind": "reasoning",+ "total_latency_s": 11.955,+ "vram_after": {+ "gpu0_mib": 14949,+ "gpu1_mib": 15079,+ "gpu2_mib": 2501+ },+ "engine_log": [+ "strata serve: prompt 20897 tokens = 16384 reused + 4513 read in 7771 ms (580.8 tok/s), 256 generated in 3994 ms (64.1 tok/s), drafts accepted 146 of 178, 2 checkpoints",+ "strata serve: decode expert cache hit rate: 93.1% (128669 hits / 138204 lookups)",+ "strata serve: KV streaming: 98.56% of 1863990 block reads hit VRAM, 108.5 MiB read from RAM",+ "strata serve: suffix drafts: 8 windows, 21 of 21 drafts accepted"+ ],+ "reasoning_chars": 993,+ "answer": ""+ }+ ],+ "note": "Same as runs.json, with +1500 MHz memory offset on both RTX 5060 Ti (MSI Afterburner) and 90% power limit"+}\ No newline at end of filediff --git a/bench/results/2026-10-02-community-2x5060ti/runs.json b/bench/results/2026-10-02-community-2x5060ti/runs.jsonnew file mode 100644index 000000000..824561136--- /dev/null+++ b/bench/results/2026-10-02-community-2x5060ti/runs.json@@ -0,0 +1,268 @@+{+ "date": "2026-10-02 12:19",+ "max_tokens": 256,+ "temperature": 0.6,+ "runs": [+ {+ "label": "short-1",+ "prompt_tokens": 104,+ "reused_tokens": 0,+ "read_tokens": 104,+ "prompt_ms": 1961.2,+ "prompt_tok_s": 53.0,+ "generated_tokens": 256,+ "decode_ms": 4249.4,+ "decode_tok_s": 60.2,+ "draft_n": 211,+ "draft_accepted": 128,+ "ttft_s": 1.985,+ "first_token_kind": "reasoning",+ "total_latency_s": 6.214,+ "vram_after": {+ "gpu0_mib": 14949,+ "gpu1_mib": 15077,+ "gpu2_mib": 2501+ },+ "engine_log": [+ "strata serve: prompt 104 tokens = 0 reused + 104 read in 1961 ms (53.0 tok/s), 256 generated in 4249 ms (60.2 tok/s), drafts accepted 128 of 211, 1 checkpoints",+ "strata serve: decode expert cache hit rate: 95.3% (155489 hits / 163180 lookups)",+ "strata serve: KV streaming: 99.55% of 122442 block reads hit VRAM, 2.2 MiB read from RAM",+ "strata serve: suffix drafts: 6 windows, 17 of 18 drafts accepted"+ ],+ "reasoning_chars": 956,+ "answer": ""+ },+ {+ "label": "short-2",+ "prompt_tokens": 104,+ "reused_tokens": 0,+ "read_tokens": 104,+ "prompt_ms": 1870.3,+ "prompt_tok_s": 55.6,+ "generated_tokens": 256,+ "decode_ms": 4067.5,+ "decode_tok_s": 62.9,+ "draft_n": 212,+ "draft_accepted": 136,+ "ttft_s": 1.893,+ "first_token_kind": "reasoning",+ "total_latency_s": 5.941,+ "vram_after": {+ "gpu0_mib": 14949,+ "gpu1_mib": 15077,+ "gpu2_mib": 2491+ },+ "engine_log": [+ "strata serve: prompt 104 tokens = 0 reused + 104 read in 1870 ms (55.6 tok/s), 256 generated in 4068 ms (62.9 tok/s), drafts accepted 136 of 212, 1 checkpoints",+ "strata serve: decode expert cache hit rate: 95.3% (151895 hits / 159343 lookups)",+ "strata serve: KV streaming: 99.54% of 119634 block reads hit VRAM, 2.2 MiB read from RAM",+ "strata serve: suffix drafts: 13 windows, 30 of 34 drafts accepted"+ ],+ "reasoning_chars": 981,+ "answer": ""+ },+ {+ "label": "short-3",+ "prompt_tokens": 104,+ "reused_tokens": 0,+ "read_tokens": 104,+ "prompt_ms": 1845.7,+ "prompt_tok_s": 56.3,+ "generated_tokens": 256,+ "decode_ms": 3713.5,+ "decode_tok_s": 68.9,+ "draft_n": 196,+ "draft_accepted": 145,+ "ttft_s": 1.869,+ "first_token_kind": "reasoning",+ "total_latency_s": 5.563,+ "vram_after": {+ "gpu0_mib": 14949,+ "gpu1_mib": 15077,+ "gpu2_mib": 2470+ },+ "engine_log": [+ "strata serve: prompt 104 tokens = 0 reused + 104 read in 1846 ms (56.3 tok/s), 256 generated in 3714 ms (68.9 tok/s), drafts accepted 145 of 196, 1 checkpoints",+ "strata serve: decode expert cache hit rate: 95.6% (141795 hits / 148305 lookups)",+ "strata serve: KV streaming: 99.51% of 110538 block reads hit VRAM, 2.2 MiB read from RAM",+ "strata serve: suffix drafts: 14 windows, 31 of 34 drafts accepted"+ ],+ "reasoning_chars": 972,+ "answer": ""+ },+ {+ "label": "long-cold-1",+ "prompt_tokens": 20913,+ "reused_tokens": 0,+ "read_tokens": 20913,+ "prompt_ms": 18871.1,+ "prompt_tok_s": 1108.2,+ "generated_tokens": 256,+ "decode_ms": 4404.8,+ "decode_tok_s": 58.1,+ "draft_n": 201,+ "draft_accepted": 158,+ "ttft_s": 19.101,+ "first_token_kind": "reasoning",+ "total_latency_s": 23.485,+ "vram_after": {+ "gpu0_mib": 14949,+ "gpu1_mib": 15077,+ "gpu2_mib": 2485+ },+ "engine_log": [+ "strata serve: prompt 20913 tokens = 0 reused + 20913 read in 18871 ms (1108.2 tok/s), 256 generated in 4405 ms (58.1 tok/s), drafts accepted 158 of 201, 2 checkpoints",+ "strata serve: decode expert cache hit rate: 89.2% (127986 hits / 143405 lookups)",+ "strata serve: KV streaming: 97.31% of 933522 block reads hit VRAM, 101.2 MiB read from RAM",+ "strata serve: suffix drafts: 6 windows, 13 of 15 drafts accepted"+ ],+ "reasoning_chars": 1111,+ "answer": ""+ },+ {+ "label": "long-reuse-1",+ "prompt_tokens": 20899,+ "reused_tokens": 16384,+ "read_tokens": 4515,+ "prompt_ms": 7971.3,+ "prompt_tok_s": 566.4,+ "generated_tokens": 256,+ "decode_ms": 4918.8,+ "decode_tok_s": 52.0,+ "draft_n": 206,+ "draft_accepted": 140,+ "ttft_s": 8.17,+ "first_token_kind": "reasoning",+ "total_latency_s": 13.069,+ "vram_after": {+ "gpu0_mib": 14949,+ "gpu1_mib": 15077,+ "gpu2_mib": 2478+ },+ "engine_log": [+ "strata serve: prompt 20899 tokens = 16384 reused + 4515 read in 7971 ms (566.4 tok/s), 256 generated in 4919 ms (52.0 tok/s), drafts accepted 140 of 206, 2 checkpoints",+ "strata serve: decode expert cache hit rate: 89.2% (138139 hits / 154917 lookups)",+ "strata serve: KV streaming: 98.58% of 1941000 block reads hit VRAM, 111.0 MiB read from RAM",+ "strata serve: suffix drafts: 13 windows, 32 of 43 drafts accepted"+ ],+ "reasoning_chars": 866,+ "answer": ""+ },+ {+ "label": "long-cold-2",+ "prompt_tokens": 20905,+ "reused_tokens": 0,+ "read_tokens": 20905,+ "prompt_ms": 18857.6,+ "prompt_tok_s": 1108.6,+ "generated_tokens": 256,+ "decode_ms": 4536.3,+ "decode_tok_s": 56.4,+ "draft_n": 213,+ "draft_accepted": 146,+ "ttft_s": 19.091,+ "first_token_kind": "reasoning",+ "total_latency_s": 23.606,+ "vram_after": {+ "gpu0_mib": 14949,+ "gpu1_mib": 15077,+ "gpu2_mib": 2498+ },+ "engine_log": [+ "strata serve: prompt 20905 tokens = 0 reused + 20905 read in 18858 ms (1108.6 tok/s), 256 generated in 4536 ms (56.4 tok/s), drafts accepted 146 of 213, 2 checkpoints",+ "strata serve: decode expert cache hit rate: 92.0% (142517 hits / 154976 lookups)",+ "strata serve: KV streaming: 97.59% of 1007478 block reads hit VRAM, 97.9 MiB read from RAM",+ "strata serve: suffix drafts: 9 windows, 27 of 31 drafts accepted"+ ],+ "reasoning_chars": 922,+ "answer": "(omitted: summary of a private codebase)"+ },+ {+ "label": "long-reuse-2",+ "prompt_tokens": 20891,+ "reused_tokens": 16384,+ "read_tokens": 4507,+ "prompt_ms": 7853.1,+ "prompt_tok_s": 573.9,+ "generated_tokens": 256,+ "decode_ms": 4282.9,+ "decode_tok_s": 59.8,+ "draft_n": 182,+ "draft_accepted": 138,+ "ttft_s": 8.051,+ "first_token_kind": "reasoning",+ "total_latency_s": 12.314,+ "vram_after": {+ "gpu0_mib": 14949,+ "gpu1_mib": 15077,+ "gpu2_mib": 2474+ },+ "engine_log": [+ "strata serve: prompt 20891 tokens = 16384 reused + 4507 read in 7853 ms (573.9 tok/s), 256 generated in 4283 ms (59.8 tok/s), drafts accepted 138 of 182, 2 checkpoints",+ "strata serve: decode expert cache hit rate: 93.4% (134943 hits / 144443 lookups)",+ "strata serve: KV streaming: 98.61% of 1947168 block reads hit VRAM, 109.2 MiB read from RAM",+ "strata serve: suffix drafts: 2 windows, 4 of 4 drafts accepted"+ ],+ "reasoning_chars": 1071,+ "answer": ""+ },+ {+ "label": "long-cold-3",+ "prompt_tokens": 20912,+ "reused_tokens": 0,+ "read_tokens": 20912,+ "prompt_ms": 19067.1,+ "prompt_tok_s": 1096.8,+ "generated_tokens": 256,+ "decode_ms": 4567.9,+ "decode_tok_s": 56.0,+ "draft_n": 225,+ "draft_accepted": 144,+ "ttft_s": 19.272,+ "first_token_kind": "reasoning",+ "total_latency_s": 23.819,+ "vram_after": {+ "gpu0_mib": 14949,+ "gpu1_mib": 15079,+ "gpu2_mib": 2543+ },+ "engine_log": [+ "strata serve: prompt 20912 tokens = 0 reused + 20912 read in 19067 ms (1096.8 tok/s), 256 generated in 4568 ms (56.0 tok/s), drafts accepted 144 of 225, 2 checkpoints",+ "strata serve: decode expert cache hit rate: 93.7% (152029 hits / 162212 lookups)",+ "strata serve: KV streaming: 97.59% of 1053690 block reads hit VRAM, 102.4 MiB read from RAM",+ "strata serve: suffix drafts: 7 windows, 14 of 19 drafts accepted"+ ],+ "reasoning_chars": 1119,+ "answer": ""+ },+ {+ "label": "long-reuse-3",+ "prompt_tokens": 20898,+ "reused_tokens": 16384,+ "read_tokens": 4514,+ "prompt_ms": 7839.9,+ "prompt_tok_s": 575.8,+ "generated_tokens": 256,+ "decode_ms": 4510.2,+ "decode_tok_s": 56.8,+ "draft_n": 198,+ "draft_accepted": 140,+ "ttft_s": 8.022,+ "first_token_kind": "reasoning",+ "total_latency_s": 12.511,+ "vram_after": {+ "gpu0_mib": 14949,+ "gpu1_mib": 15079,+ "gpu2_mib": 2437+ },+ "engine_log": [+ "strata serve: prompt 20898 tokens = 16384 reused + 4514 read in 7840 ms (575.8 tok/s), 256 generated in 4510 ms (56.8 tok/s), drafts accepted 140 of 198, 2 checkpoints",+ "strata serve: decode expert cache hit rate: 90.8% (136732 hits / 150619 lookups)",+ "strata serve: KV streaming: 98.63% of 2033466 block reads hit VRAM, 112.0 MiB read from RAM",+ "strata serve: suffix drafts: 11 windows, 32 of 37 drafts accepted"+ ],+ "reasoning_chars": 984,+ "answer": ""+ }+ ]+}\ No newline at end of filediff --git a/bench/results/2026-10-02-community-2x5060ti/speed_bench.py b/bench/results/2026-10-02-community-2x5060ti/speed_bench.pynew file mode 100644index 000000000..c3c38d685--- /dev/null+++ b/bench/results/2026-10-02-community-2x5060ti/speed_bench.py@@ -0,0 +1,111 @@+"""Strata speed test following docs/COMMUNITY_BENCHMARKS.md.++Three conditions, 3 measured runs each after one unmeasured warm-up, output capped at 256 tokens:+ short 104-token prompt, fully processed (a unique first line defeats prefix reuse)+ long-cold ~21K-token prompt, fully processed (unique first line)+ long-reuse the same ~21K prefix as the previous request, new question at the end+Throughput comes from the engine's own timings (prompt_ms / predicted_ms); TTFT and total+latency are measured at the client. The engine's log lines for each request are kept.++Usage: python speed_bench.py <folder of .ts files used as filler text> <path to the strata serve log>+"""+import json, pathlib, subprocess, sys, time, urllib.request, uuid++URL = "http://127.0.0.1:8080/v1/chat/completions"+if len(sys.argv) != 3:+ sys.exit(__doc__)+SRC = pathlib.Path(sys.argv[1]) # a folder of .ts files, used as filler text+LOG = pathlib.Path(sys.argv[2]) # the log file named in the run configuration+OUT = pathlib.Path(__file__).with_name("runs.json")+MAX_TOKENS = 256+++def filler(chars):+ parts, n = [], 0+ for p in sorted(SRC.rglob("*.ts")):+ t = p.read_text(encoding="utf-8", errors="replace")+ parts.append(f"// ===== {p.name} =====\n{t}")+ n += len(t)+ if n > chars:+ break+ return "\n".join(parts)+++def vram():+ q = subprocess.run(["nvidia-smi", "--query-gpu=index,memory.used", "--format=csv,noheader,nounits"],+ capture_output=True, text=True).stdout.split("\n")+ return {f"gpu{l.split(',')[0].strip()}_mib": int(l.split(",")[1]) for l in q if l.strip()}+++def call(label, messages):+ log_pos = LOG.stat().st_size+ body = {"model": "x", "messages": messages, "max_tokens": MAX_TOKENS, "stream": True, "temperature": 0.6,+ "stream_options": {"include_usage": True}}+ req = urllib.request.Request(URL, json.dumps(body).encode(), {"Content-Type": "application/json"})+ t0 = time.perf_counter(); first = None; first_kind = None; text = []; reasoning = []; timings = usage = None+ with urllib.request.urlopen(req, timeout=1800) as r:+ for raw in r:+ line = raw.decode("utf-8", "replace").strip()+ if not line.startswith("data:") or line == "data: [DONE]":+ continue+ ev = json.loads(line[5:])+ timings = ev.get("timings") or timings+ usage = ev.get("usage") or usage+ for ch in ev.get("choices", []):+ d = ch.get("delta", {})+ rc = d.get("reasoning_content") or d.get("reasoning")+ if (d.get("content") or rc) and first is None:+ first, first_kind = time.perf_counter(), ("reasoning" if rc else "answer")+ if rc: reasoning.append(rc)+ if d.get("content"): text.append(d["content"])+ t1 = time.perf_counter()+ time.sleep(1.0)+ with LOG.open("rb") as f:+ f.seek(log_pos)+ log_lines = [l for l in f.read().decode("utf-8", "replace").splitlines() if l.startswith("strata serve:")]+ t = timings or {}+ row = {+ "label": label,+ "prompt_tokens": (usage or {}).get("prompt_tokens"),+ "reused_tokens": t.get("cache_n"), "read_tokens": t.get("prompt_n"), "prompt_ms": t.get("prompt_ms"),+ "prompt_tok_s": t.get("prompt_per_second"),+ "generated_tokens": t.get("predicted_n"), "decode_ms": t.get("predicted_ms"),+ "decode_tok_s": t.get("predicted_per_second"),+ "draft_n": t.get("draft_n"), "draft_accepted": t.get("draft_n_accepted"),+ "ttft_s": round((first or t1) - t0, 3), "first_token_kind": first_kind,+ "total_latency_s": round(t1 - t0, 3),+ "vram_after": vram(),+ "engine_log": log_lines,+ "reasoning_chars": len("".join(reasoning)), "answer": "".join(text),+ }+ print(f"{label:14s} read {row['read_tokens']:>6} reused {row['reused_tokens']:>6} | prompt {row['prompt_tok_s']:7.1f} t/s"+ f" | decode {row['generated_tokens']} tok {row['decode_tok_s']:5.1f} t/s | TTFT {row['ttft_s']:6.2f}s total {row['total_latency_s']:6.2f}s",+ flush=True)+ return row+++def main():+ ask = "Write a TypeScript function that parses a unified diff into hunks. Code only."+ big = filler(80_000)+ q = "Above is part of a codebase. In 5 bullet points, name the main modules and what each does."+ runs = []+ call("warm-up", [{"role": "user", "content": f"run {uuid.uuid4()}\n" + ask}])+ for i in range(3):+ runs.append(call(f"short-{i+1}", [{"role": "user", "content": f"run {uuid.uuid4()}\n" + ask}]))+ for i in range(3):+ prefix = f"run {uuid.uuid4()}\n" + big+ runs.append(call(f"long-cold-{i+1}", [{"role": "user", "content": prefix + "\n\n" + q}]))+ runs.append(call(f"long-reuse-{i+1}", [{"role": "user", "content": prefix + "\n\nList the 3 largest files you saw."}]))+ OUT.write_text(json.dumps({"date": time.strftime("%Y-%m-%d %H:%M"), "max_tokens": MAX_TOKENS,+ "temperature": 0.6, "runs": runs}, indent=1), encoding="utf-8")++ def summary(prefix, key):+ v = sorted(r[key] for r in runs if r["label"].startswith(prefix) and r[key] is not None)+ return f"median {v[len(v)//2]:.1f} (range {v[0]:.1f}-{v[-1]:.1f}, n={len(v)})" if v else "n/a"+ for c in ("short", "long-cold", "long-reuse"):+ print(f"\n{c}: prompt t/s {summary(c, 'prompt_tok_s')} | decode t/s {summary(c, 'decode_tok_s')}"+ f" | TTFT s {summary(c, 'ttft_s')} | total s {summary(c, 'total_latency_s')}")+++if __name__ == "__main__":+ main()