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: Windows 11 + Radeon AI PRO R9700 (gfx1201), IQ2_XS, 4K to 248K prompt tokens (#618)
HarukiOtaku34ee6877441a
diff --git a/bench/results/2026-10-03-community-r9700-windows/METHOD-AND-DISCLOSURES.md b/bench/results/2026-10-03-community-r9700-windows/METHOD-AND-DISCLOSURES.mdnew file mode 100644index 000000000..e3c099c0e--- /dev/null+++ b/bench/results/2026-10-03-community-r9700-windows/METHOD-AND-DISCLOSURES.md@@ -0,0 +1,280 @@+# Method detail and disclosures — R9700 / Windows / Strata 0.1.38 benchmark++This file carries the full method detail, the complete disclosure list and every known+anomaly of the packet `bench/results/2026-10-03-community-r9700-windows/`. The report itself+(`README.md`) states the results and their limits in brief and points here.++Everything below is derived from the attached files (`benchmark.py`, the nine+`bench-output*.json`, `engine-0.1.38.log`, `strata-iq2_xs.json`, the three launchers, the+`pilot-0.1.36-*` files) or from the upstream repository.++## 1. What the harness does, exactly++1. **Sizing is in characters, twice removed from tokens.** `build_prompt` computes+ `filler_chars = max(2000, target_tokens * chars_per_token)`, generates deterministic+ Python-like text, and wraps it in a fixed instruction block plus an answer tail. The+ wrapper is extra text not counted in the target. The real prompt size is whatever the+ tokenizer produced, which is why rows are reported against `engine_prompt_tokens`.+2. **`chars_per_token` comes from one 8,000-character request** (output cap 64): the harness+ computes `(engine_prompt_tokens - 40) / 8000`, clamps it to `[0.15, 1.5]`, and inverts it.+ It measured **2.5189 = 1000/397** for the reported runs and **2.4876 = 1000/402** in the+ void attempt (whose calibration/warm-up prompts were 3,256/2,098 tokens rather than+ 3,216/2,082) — i.e. the void attempt came from an earlier harness revision.+3. **The JSON key `calibration` is that sizing request's row**, not the ratio; the ratio is+ the sibling key `chars_per_token`. A reader looking for "calibration" will find a request+ log. (The config enables no engine calibration and no experimental speed projection.)+4. **Cached-prefix reuse is deliberately defeated.** Every prompt embeds a fresh+ time-based nonce near its start, so the engine cannot match a cached prefix and+ `reused_tokens` is 0 for every reported run. That the engine can cache is visible in the+ same log: line 1 is a non-harness request with `175050 reused + 71650 read`.+ `new_prompt_tokens` and `read_tok_s` are the **fresh** tokens and their rate; here they+ coincide with the totals, elsewhere they would not.+5. **Payload and sampling.** One `user` message, `temperature: 0`, `max_tokens` 256 for the+ speed and needle runs; no system message, no seed, no top-p/top-k/penalty. Reasoning is+ disabled with `reasoning_effort: "none"`. Five payload variants exist (stream/non-stream ×+ thinking off/on); the files record `payload_variant: 0` everywhere, i.e. only the+ streaming, reasoning-off, usage-included variant produced the reported data. Because no+ seed is sent and speculative decoding plus GPU expert-cache rounding apply, repeats are+ **not** bit-reproducible; per-run answer text was dropped, so this cannot be checked here.+6. **Readiness wait off.** `--wait-ready` exists but its default is 0, so no readiness poll+ ran in these runs; the harness started issuing requests as soon as the script ran.+7. **Model detection can fall back.** `detect_model` reads `/v1/models` and falls back to the+ literal string `strata`; the standard/240K/void files carry+ `qwen3.8-flash-next-iq2_xs`, the six A/B files carry `strata`, i.e. the endpoint did not+ answer `/v1/models` in those six runs. `strata` is not a model id.+8. **An HTTP-200 with empty content counts as success.** A variant is retried only on+ 400/404/415/422; `ok: true` therefore does **not** imply an answer was produced. In the+ void attempt 13 of the 15 rows are empty (`answer_len: 0`, `ttft_s: null` on the 7 empty+ speed rows) because the output went to `reasoning_content` (reasoning was still on) — the+ other two rows returned 37 and 426 characters. `ttft_s` is set only when the+ first **content** delta arrives. `finish_reason: "length"` means the output hit+ `max_tokens`; `"stop"` means a natural end.+9. **Engine-reported vs measured.** From the engine log line+ `prompt N tokens = R reused + M read in T ms (X tok/s), G generated in D ms (Y tok/s)`:+ `engine_prompt_tokens`, `reused_tokens`, `new_prompt_tokens`, `read_ms`, `read_tok_s`,+ `generated_tokens`, `gen_ms`, `decode_tok_s` — all engine-side. Client-side: `ttft_s`+ (request start → first content delta) and `total_s` (whole HTTP call). The engine's+ `read_ms` excludes HTTP, templating and queueing, so `ttft_s` > `read_ms` by 32–414 ms+ here. No "generated tokens ÷ total request time" figure is used anywhere in the report.+10. **Log-line attribution is by construction probabilistic.** The harness records the file+ offset when it starts, reads only appended lines, and takes the **last** matching line as+ the current request's, consuming lines as it reads. It can mis-attribute (a stray line+ from another request, or a line written after the response, which is then lost). The+ shipped script adds a `pairing_ok`/`pairing_note` cross-check against+ `usage.prompt_tokens`; **no row in any of the nine files carries it**, because the check+ was added after the runs. It was re-run by hand over the files: all 69 rows that carry a+ `usage` block (36 measured, 15 void, 18 calibration/warm-up) match the engine's token+ count within ±1, and no `read_ms` value repeats, so no line was consumed twice.+11. **Failure/retry path is unexercised.** No row in the nine files has `ok: false` or an+ `error` field, so every reported number is a first-try (variant 0) success.+12. **Fields dropped or capped before writing.** `text` is dropped for calibration, warm-up+ and every speed row (`row.pop("text")`) but kept for needles; `reasoning_text` is+ truncated to 2,000 characters; `usage` is stored only if the server returned it; engine+ fields only if a log line was matched. The harness never parses the IO/tier counters —+ every SSD figure in the report comes from the log, not from the harness.+13. **Run configuration not stored.** `--lengths`, `--needle-lengths`, `--needle-depths`,+ `--skip-needles` and `--wait-ready` are not recorded in the JSON; they are only inferable+ from the rows that exist.+14. **The top-level `cap_tokens: 256` is the speed/needle cap only.** The calibration rows+ generated 64 tokens and the warm-up rows 32, and those caps are recorded nowhere, so+ `finish_reason: "length"` sits below the only stated cap on those 18 rows.+15. **Medians are per metric.** `read_tok_s` and `decode_tok_s` are summarised separately, so+ a row can contribute to one group and not the other; any ratio computed from two medians+ (e.g. the curve fit in the report, or a prefill:decode ratio) is an approximation, not a+ median of per-run ratios.+16. **The engine-start read is not a request's read.** The log's cumulative counter+ (`expert tiers: ... files N blobs X MB read`) includes ≈26.7 GB of start-up reads folded+ into whichever request runs first. Derived two independent ways: a first 3,216-token+ calibration reads 31,214.5 MB against 4,473 MB for the same prompt mid-session+ (26,741 MB), and 175,996.2 − 149,217.3 MB = 26,779 MB in the other session. Every+ per-request figure in the report is a **within-session delta**, never a raw first line.+ Implied sustained read rates from those deltas: ≈1.07–1.13 GB/s at 4K, ≈0.94 at 32K,+ ≈0.77 at 128K, ≈0.68 at 248K (MB/s medians 1,120 / 940 / 771 / 680).+17. **Draft acceptance** is the log's `drafts accepted A of D` on each request: 62.1–83.8 % on+ the twelve headline runs, 57–100 % across all 36 measured rows (the low end is a 13-token+ needle generation, 8 of 14). The JSONs do not carry it.+18. **Units.** Capacities are GiB (Windows' "GB" values converted; the engine prints MiB and+ GiB). Read volumes are MB and read rates GB/s exactly as the engine's counter prints them.+ Token counts are integers as logged.+19. **A ~1-in-10 start differs.** `docs/AMD_HIP_PERFORMANCE.md` records that individual+ observations "do not establish confidence intervals or a general rate at every context+ length", and the engine's own cache banner notes the GPU rounds differently from the CPU.+ Repeats here are not bit-reproducible: no seed is sent, and speculative decoding plus+ expert-cache rounding apply.++## 2. Files, sessions and labels++- **Nine result files, seven engine sessions.** `bench-output-standard`, the void attempt and+ `bench-output-240k` all sit between log lines 55 and 270 — one engine session (started at+ line 31, next `session is up` at line 299); each A/B leg is its own session (lines 299,+ 375, 451, 528, 605, 681). File boundaries are therefore not session boundaries, and the+ three files' `started` timestamps do not imply engine restarts.+- **No session id anywhere**, and the same prompt size recurs inside a session (33,462–33,467+ four times; 4,195–4,199 three times; 3,216/2,082 in all seven sessions), so a row cannot be+ bound to an engine session by token count alone.+- **The log has no timestamps**; the JSON `started`/`finished` are local-time strings with no+ timezone, so log lines cannot be aligned with them in wall-clock terms.+- **Two log requests are in no result file**: line 1, `246700 tokens = 175050 reused + 71650`+ (this is the last row of the 0.1.36 pilot table; it is before the first 0.1.38 session and+ is the only line in the file with reuse), and line 55, `246933 tokens = 0 reused + 246933`+ (a 0.1.38 request the harness did not produce). 71 log requests = 69 recorded + these 2.+- **A/B legs and their launchers.** Only three launchers were saved:+ `run-iq2_xs-default.bat` (no env var), `run-iq2_xs-fused.bat` (`STRATA_PF_FUSED=1`) and+ `run-iq2_xs-plebatch0.bat` (`STRATA_PLE_BATCH=0`). The other three legs+ (`default2`, `default4k`, `fused4k`) have no launcher, and no JSON records the environment+ of any leg — the `tag` string does not name a variable, and the engine log never echoes+ either variable. `default` and `default2` are two sessions of the *same* configuration and+ differ by >10 %; `default4k`/`fused4k` ran only the 4K target, and there is no plebatch0-4K+ leg.+- **The shipped log is named `engine-0.1.38.log`, but every JSON's `engine_log` field points+ at `strata-iq2_xs.log`** (the engine's own rolling log name, also in `strata-iq2_xs.json`).+ The file here is a copy of that log.+- **Two data anomalies, both disclosed rather than hidden:** in the void file the run at+ 128K rep1/rep2 has `total_s` smaller than `ttft_s + gen_ms` (107.769 vs 111.002, and+ 107.347 vs 109.302) — the void file came from an earlier harness revision — and in the+ 248K series rep2 reports `finish_reason: "stop"` while generating exactly 256 tokens, the+ cap (rep1 reports `"length"` at 256 and rep3 `"stop"` at 250). Neither affects a headline+ median.+- **`chars` in a row is the prompt's character count**, not an answer length+ (`answer_len` is that).++## 3. Upstream-compliance gaps (what this packet does not capture)++`docs/COMMUNITY_BENCHMARKS.md` asks for fields this run cannot supply from the artefacts.+They are stated as missing in the report rather than guessed:++- **Windows-AMD bundle:** the `strata-device --list-devices` / `--selftest` output and the+ tail of the engine log that the Windows-AMD reporting note asks for.+- **hipBLASLt discipline:** the tuning table and version are recorded+ (`32 rows, gfx1201, version 100500`) but the table was not verified with+ `STRATA_HIPBLASLT_VERBOSE=1` / `fallbacks=0`, and no untuned control was run, so its effect+ here is not isolable (`docs/AMD_HIP.md` measured +3.9 % on 4,210-token prompts).+- **Identity hashes:** both GGUF shards and `data/expert-profile.bin` now have SHA-256 in+ `PROVENANCE.txt`; the IQ2_XS expert pack, the MTP draft tensors and the engine binary have+ none (they were produced by the setup on this machine and are not attached).+- **Engine identity:** engine 0.1.38 is confirmed by the log, and the `engine/BUILD.json` that+ names ROCm/hipBLASLt and the arch list is quoted verbatim in `PROVENANCE.txt`; no build hash+ exists, and the A/B legs cannot be tied to an engine commit.+- **Environment:** Windows 11 Pro **10.0.26300** and AMD driver 32.0.31036.15 are captured in+ `PROVENANCE.txt`; the CPU is captured there too, while total physical memory is the Windows+ figure (61.5 GiB) and the DIMM kit was not recorded. The storage device model and the PCIe+ link width/generation were not measured (only the engine's 54.7 GB/s probe).+- **Power/thermal/telemetry:** no GPU clocks, power limit, temperature, fan, host-RAM peak,+ paging or OOM counters. Memory figures in the report are **startup snapshots** from the+ engine log (24.95 GiB expert cache, 3.09 GiB KV pinned, 402 MiB VRAM free with everything+ loaded), not peaks; the log records no OOM, which is not proof there was none.+- **Per-run output text is not retained** (dropped by the harness), so the upstream note that+ output text and draft acceptance can change speed, and the ~1-in-10 greedy-start+ variability `docs/AMD_HIP.md` mentions, cannot be checked from this packet; draft+ acceptance counts live only in the log.+- **Not measured at all:** vision (off; unavailable on Windows AMD), `--low-ram` (not set),+ 384K/512K contexts, concurrency, multi-hour stability, sampled decoding or thinking modes,+ output-quality baselines, and the opt-in RDNA4 matrix-core paths (`STRATA_HIP_WMMA=1`,+ `STRATA_SELECT_WMMA=1`) that `docs/AMD_HIP.md` records as taking R9700 4K prompts from+ 1,784 to 2,427 tok/s.+- **Answer quality, outside this packet:** in the same work session on the *previous* engine+ (0.1.36), and outside this harness, the model produced accurate Traditional-Chinese summaries+ of long inputs (Alice in Wonderland at 53K, The Great Gatsby at 125K including its closing+ lines, Frankenstein at 229K). No transcript, prompt or log for those runs is in the packet, so+ they are background context only and **not** evidence about the 0.1.38 measurements above.++## 4. The failure in this packet++`bench-output-standard-first-attempt-void.json` (13:21–13:35) is the first attempt at the+4K/32K/128K series, made before the harness sent `reasoning_effort: "none"`: 13 of its 15+rows returned no answer text (0 characters with 256 generated tokens), all six of its needle+rows missed with empty answers (each generated exactly the 32-token cap), `ttft_s` is null on+7 of its 9 speed rows, and it produced a different `chars_per_token` and different+calibration/warm-up sizes (see §1.2). It is kept in the packet as a **failure**, is excluded+from every table and median, and its 0/6 needle result must not be read as a recall+measurement.++## 5. Request counts in the log++71 request lines = 36 rows in a measured series (18 in the two headline files + 18 in the six+A/B legs) + 15 rows of the void attempt + 18 calibration/warm-up requests + 1 request the+harness did not produce (246,933 tokens) + 1 pilot-session line (246,700 tokens, 0.1.36).+Of these, 56 are non-void requests.++## 6. Upstream states this packet relies on (checked 2026-10-03)++- **Windows AMD:** `docs/AMD_HIP.md` records one validated Windows AMD case — "#325's author+ ran the engine of this port on an RX 9070 XT (Windows 11, ROCm 10.2.0a20260930 in `.venv`,+ compiled on the PC): Coder IQ1_M at 32K, 29.2 tok/s decode, ~181 tok/s prefill, correct+ answers" — and then: "The maintainers have no Windows AMD card … The ready-made zip itself+ has not run a model on a discrete card yet - please report." This packet is that report,+ on a different card (R9700/gfx1201) and through the ready-made zip.+- **Not validated:** `docs/AMD_HIP.md` "**Not validated:** images, long contexts beyond 16K,+ answer-quality benchmarks." and "Do not assume a configured context length proves+ successful full-window inference."; `docs/AMD_HIP_PERFORMANCE.md` "The changes do not claim+ better model reasoning, verified full-context behavior, end-to-end vision validation,+ Windows HIP, other AMD architectures, or mixed AMD/NVIDIA execution."+- **Known variability:** `docs/AMD_HIP.md` "**Known:** rarely (about 1 start in 10) a HIP+ run's greedy output differs from another start's at some token … not yet explained."+- **hipBLASLt table:** upstream's `tools/hip/gfx1201-hipblaslt-100500.txt` is "calibrated+ with ROCm 10.2.0a20260914 … hipBLASLt 1.5.0, library build `d3164197`. 16 dense GEMM+ geometries at T=4096 and T=8192, 32 rows", measured "+3.9% prompt speed on 4,210-token+ prompts (1,590 vs 1,531 tok/s), a modest gain", and "Run it with+ `STRATA_HIPBLASLT_VERBOSE=1` and look for `fallbacks=0`" — that verification is **not** in+ this packet.+- **0.1.38 notes:** Windows short-on-RAM change "#357 #362 … the experts are read past the+ file cache when it cannot keep them anyway, at start and in the RAM-budget tier"; HIP+ change "the draft layer's prompt pass runs per group on HIP, which fixes a prompt hang on+ gfx1201 (#382)"; AMD caveat "the HIP zip builds; the AMD changes are untested on an AMD+ card here (we have none)".+- **#382's state:** GitHub API `pulls/382` returns `state: closed, merged: false,+ merged_at: null` (closed 2026-10-03T01:18:10Z), but the maintainer's own comment on it+ (Niko1221, 2026-10-03T01:18:09Z) says: "Released in 0.1.38: HIP builds run the drafter's+ prompt pass per group. With #453 in the same release the batched path also covers the ring+ now, so this fallback is reached less often. Merged under your name (GitHub doesn't show it+ as merged because it went in by hand)." #579 reports a gfx1201 stall still present on 0.1.38+ (commit 99f3dbd), so no upstream source states the stall family is resolved.+- **R9700 figures upstream records** (`docs/AMD_HIP.md`, Coder IQ1_M, Ubuntu 24.04 in a+ KVM/VFIO guest, engine 0.1.x, 12,288 slots / 23.4 GiB): 4K prompt **982 tok/s**, 4K decode+ **45.5**, 16K prompt 1,402, 16K decode 48.3; a warm layer-split row records 1,794 / 1,804+ prompt and 51–52 decode. `docs/DETAILS.md` records no R9700 throughput at all. So the 4K+ prompt figure here (855.8) is *below* upstream's documented R9700 4K prompt, while decode is+ about twice it — neither direction is a controlled comparison.+- **Reps are different prompts:** each rep increments the filler seed, so the three runs at a+ length are three distinct prompts of the same nominal size; the median/range mixes+ prompt-to-prompt variation with run-to-run noise.+- **Clean-A/B switches not used:** `docs/DETAILS.md` says that for byte-identical repeats one+ adds `--prompt-cache 0 --adapt-swaps 0 --pcie-frac 0` (and `STRATA_IQ_MT_MIN=1` for+ reproducible greedy output), noting that "without `--pcie-frac 0` 2 of 4" repeats differed+ and that `--pcie-frac 0` should be kept "for A/B runs". None of those switches was set here,+ so cache adaptation and PCIe-fraction rounding can move results between requests and arms.+- **Config provenance:** `strata-iq2_xs.json` is a **hand-tuned local config**, not a+ setup-generated profile — `--resident-budget-gib 16`, `--mmap-experts`, `--kv int8`,+ `--kv-resident 32768`, `--spec 4`, `--expert-profile`, the MTP runtime and the hipBLASLt+ env var are all explicit choices, so call it "measured configuration", not "the default+ setup".+- **Overlap with #499:** that Windows-AMD report (RX 9070 XT, IQ3_S, 0.1.35) is an **open,+ unmerged PR** whose numbers are not yet in `docs/AMD_HIP.md` or the guide's community list;+ it is complementary (different card, quant and engine), not superseded.+- **Provenance note:** `SHA256SUMS.txt` covers the packet's own files only — not the engine+ binary, the model shards, or the machine. There is no engine build hash (row 4 of §3).++## 7. What is engine self-report only, and what cross-checks exist++Every throughput figure rests on the engine's own log line. What the packet can and cannot+check, measured over the raw files:++| Quantity | Class | Cross-check inside the packet |+|---|---|---|+| `read_ms`, `gen_ms` | engine timing | Client timers bracket them and are never faster: TTFT − `read_ms` = +32…+414 ms; total − (`read_ms`+`gen_ms`) = +17…+395 ms (36 tabled rows) |+| `read_tok_s`, `decode_tok_s` | engine-derived | Recompute exactly from tokens/ms (0 mismatches / 52 non-void rows); substituting client timers shifts prefill ≤0.91 % and long-generation decode ≤0.69 % |+| prompt / generated / reused tokens | engine state | Log line and API `usage` agree 52/52 — two engine routes, not an independent one; **no external tokenizer exists in the packet** |+| `reused_tokens = 0` | engine state | No client-visible cache state; the per-request nonce is design intent, not proof |+| `finish_reason` | engine response | Self-consistency only (`length` ↔ generated == cap) |+| cache/KV/PCIe/blob counters | engine state | **None** — used only to narrate the SSD-bound explanation |+| `ttft_s`, `total_s`, `answer_len` | client | Internally consistent; `answer_len`/`generated_tokens` = 1.4–5.4 chars/token is an order-of-magnitude check only |+| `needle_found` | client | Fully re-runnable (needle rows keep their text) |+| GPU model, engine version, config | assertion | Log and config agree; no device inventory, no binary hash, no captured command line |++Consequences stated in the report: the engine's clocks are corroborated as **lower bounds**,+its token counts are not independently checkable, the A/B leg identity rests on the `.bat`+filenames alone, the recall check keeps its text and can be re-scored by anyone, and the+speed rows contain no answer text, so the completions cannot be re-tokenised after the fact.+Independent falsification would need a second measurement route (server-side timestamps, a+second client, or I/O and GPU instrumentation) or an external tokenizer — none of which is in+this packet.diff --git a/bench/results/2026-10-03-community-r9700-windows/PROVENANCE.txt b/bench/results/2026-10-03-community-r9700-windows/PROVENANCE.txtnew file mode 100644index 000000000..394020cae--- /dev/null+++ b/bench/results/2026-10-03-community-r9700-windows/PROVENANCE.txt@@ -0,0 +1,74 @@+# Provenance — R9700 / Windows / Strata 0.1.38 benchmark packet++Every value in this file was produced on the measurement machine on 2026-10-03 and is quoted+verbatim (PowerShell output). It supplies the identity fields the report marks as `not recorded`+where the machine could still produce them.++## Engine build — `engine/BUILD.json` (verbatim)++```json+{+ "source": "prebuilt",+ "backend": "hip",+ "platform": "windows-x64",+ "version": "0.1.38",+ "archs": [+ "gfx1100",+ "gfx1101",+ "gfx1102",+ "gfx1200",+ "gfx1201",+ "gfx1030"+ ],+ "rocm": "10.2.0a20260930",+ "hipblaslt_version": 100500,+ "vision": "none",+ "lib_dirs": [+ "rocm/bin"+ ]+}+```++`engine/strata.exe`: 65,104,896 bytes, 2026-10-03 13:08 (**size and timestamp only; no binary+hash was taken**). The engine was the ready-made `strata-windows-x64-hip.zip` from the v0.1.38+release, not a source build.++## Model artefacts — SHA-256 (PowerShell `Get-FileHash`, verbatim)++```text+Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf+ 92CEE27AE5BBADCD732416A0F7A7F0ACC092399DBBE8F5A5EFA707C2EC0A49D7+Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf+ 316B46F3A2DBD68C900F43136AB9449F9DCC3725DFD8C794847C204BC161E113+data/expert-profile.bin+ 8F59B4AA8873209DFF11C11E37BCDA9529A1335B724A1AFEEA37BF6388975BAF+```++These are the files as downloaded by the setup on 2026-10-02 and as used by every run in this+packet (the log pins the shards by path and the PLE table by shard 2). Hashes are the machine's+output; nobody here has an independent copy to compare them against.++## Environment (verbatim)++```text+(Get-CimInstance Win32_OperatingSystem).Caption -> Microsoft Windows 11 Pro+(Get-CimInstance Win32_OperatingSystem).Version -> 10.0.26300+(Get-CimInstance Win32_Processor).Name -> AMD Ryzen 9 9950X 16-Core Processor+TotalPhysicalMemory / 1GB -> 61.5+win32_VideoController:+ AMD Radeon AI PRO R9700 32.0.31036.15+ AMD Radeon(TM) Graphics 32.0.11024.2+```++Note on RAM: Windows reports **61.5 GiB of total physical memory**. The DIMM kit itself was not+recorded, so the report states the Windows figure and does not claim a kit size.++## Still not supplied by the machine++- SHA-256 of the IQ2_XS expert pack (`packs/iq2_xs`) and of the MTP draft tensors (`mtp/rt`)+- Engine binary hash; engine commit (only the v0.1.38 release and `engine/BUILD.json` above)+- GPU power limit, clocks, thermals; PCIe link width/generation; storage device model+- `strata-device --list-devices` / `--selftest` output (the Windows-AMD bundle+ `docs/AMD_HIP.md` asks for)+- the hipBLASLt `STRATA_HIPBLASLT_VERBOSE=1` / `fallbacks=0` check+- peak RAM/VRAM during inference; paging/OOM countersdiff --git a/bench/results/2026-10-03-community-r9700-windows/README.md b/bench/results/2026-10-03-community-r9700-windows/README.mdnew file mode 100644index 000000000..9c08b2f33--- /dev/null+++ b/bench/results/2026-10-03-community-r9700-windows/README.md@@ -0,0 +1,306 @@+# Community benchmark: Radeon AI PRO R9700 (gfx1201), Windows 11, Ryzen 9 9950X++Measured on 2026-10-03 by [HarukiOtaku](https://github.com/HarukiOtaku). Strata **0.1.38**+(prebuilt Windows HIP engine), original Flash-Next **IQ2_XS**, one GPU, context limit+262,144 tokens. Greedy, 256-token cap, reasoning off, three runs per length; prompt and+decode figures are the engine's own log values.++| Prompt tokens | Reused | Generated | Runs | Prompt tok/s (median, range) | Decode tok/s (median, range) | TTFT s (median, range) | Total s |+| ---: | ---: | --- | ---: | --- | --- | --- | ---: |+| 4,198 (4,195–4,199) | 0 | 256 (236–256) | 3 | **855.8** (820.7 – 863.5) | **99.8** (95.3 – 101.3) | 4.95 (4.89 – 5.16) | 7.4 |+| 33,467 | 0 | 256 | 3 | **1,182.1** (1,181.1 – 1,191.2) | **97.8** (95.3 – 101.2) | 28.39 (28.18 – 28.43) | 30.9 |+| 131,388 | 0 | 256 (249–256) | 3 | **1,231.7** (1,225.0 – 1,233.3) | **89.9** (86.2 – 91.0) | 106.90 (106.77 – 107.49) | 109.7 |+| 247,990 | 0 | 256 (250–256) | 3 | **1,130.1** (1,127.2 – 1,132.0) | **87.5** (75.1 – 87.5) | 219.84 (219.49 – 220.42) | 222.7 |++**Read the medians with a band.** The three reps inside one engine session agree to <1 % at+32K/128K/248K and ~5 % at 4K, but the same configuration measured again in a fresh session+moved by up to **11.5 % at 32K** (medians 1,182.1 vs 1,060.6) and **14.2 % at 4K** (855.8 vs+749.3) — 13.4 % and 18.4 % if individual reps are compared — so treat a median as ±10–15 %,+not a fixed figure. Only 4K and 32K have replicate sessions: **131,388 and 247,990 each ran in+one session** (the only other 128K requests are in the excluded void attempt).++Every run in the tables read its whole prompt (`reused = 0`) and no stall line appears in the+log. Six needle checks were found (**6/6**) at ~33.5K and ~131.4K prompt tokens, depths+10/50/90 % — one run each, so an outcome rather than a success rate. One earlier attempt+produced almost no usable answers (13 of its 15 rows empty) and is reported below as a+failure, not as data.++`docs/AMD_HIP.md` marks long contexts beyond 16K as **not validated** on RDNA4 and the+maintainer's R9700 validation is Linux at 4K/16K; the Windows AMD report I could find+([#499](https://github.com/Niko1221/Strata/issues/499), RX 9070 XT — still an **open,+unmerged** PR) measures prompts to 31,059 tokens. The novelty here is **Windows + gfx1201 out+to 248K**, not the hardware.++Worth stating plainly what upstream does and does not claim. `docs/AMD_HIP.md` documents one+validated Windows AMD case — an RX 9070 XT on Windows 11 with an engine **compiled on that+PC**, 32K, 29.2 tok/s decode / ~181 tok/s prefill (0.1.34) — and then says: "The ready-made+zip itself has not run a model on a discrete card yet - please report." This run is that+report, on a different card (R9700, gfx1201) and through the ready-made zip. It is **not**+project-validated support: `docs/AMD_HIP_PERFORMANCE.md` excludes "Windows HIP, other AMD+architectures" from its claims, and `docs/AMD_HIP.md` says its RDNA4 table "must not be read+as a benchmark of every subsequent rebase" and that "long-context stress, broad answer-quality+equivalence, other AMD cards, and mixed-vendor inference are not validated here".++**Not a controlled study:** one OS session, one machine, one quant; prompts are synthetic+code; GPU clocks and power limit are not recorded; the desktop was not isolated.++## Hardware and software++- **GPU:** Radeon AI PRO R9700 32 GiB (gfx1201; Windows reports 32 GB, engine sees 31.9 GiB),+ stock clocks, **power limit not recorded**. The display runs on the integrated GPU, so the+ card is compute-only.+- **PCIe:** engine probe `54.7 GB/s host->device (best of 45.5 54.4 54.7 54.6)`;+ **width/generation not measured**.+- **CPU / RAM / storage:** Ryzen 9 9950X 16-Core (AVX-512; the engine ran its default 15+ expert-pool workers + host thread); Windows reports **61.5 GiB total physical memory**+ (the DIMM kit was not recorded, so no kit size is claimed); 2 TB-class NVMe on `D:`+ (**device model not recorded**).+- **OS / driver:** Windows 11 Pro, version **10.0.26300**, AMD driver **32.0.31036.15**+ (iGPU 32.0.11024.2) — quoted from the machine in [PROVENANCE.txt](PROVENANCE.txt).+- **Engine:** repo `main` `99f3dbd0b21d1401b3769e0c0d963913607f380b`; prebuilt Windows HIP+ engine **0.1.38** (each session logs `session is up (engine 0.1.38)`; its `engine/BUILD.json`+ reads prebuilt, hip, 0.1.38, ROCm 10.2.0a20260930, hipBLASLt 100500, gfx1201 — **quoted+ verbatim in [PROVENANCE.txt](PROVENANCE.txt)**, no build hash). Ready-made+ `strata-windows-x64-hip.zip`; HIP runtime `engine/amdhip64_7.dll`.+- **Not captured:** the Windows-AMD bundle `docs/AMD_HIP.md` asks for+ (`strata-device --list-devices`, `--selftest`, engine-log tail), the hipBLASLt+ `STRATA_HIPBLASLT_VERBOSE=1`/`fallbacks=0` check, clocks/power/thermals, per-run peak+ memory, paging/OOM counters, the per-run answer text, and hashes for the IQ2_XS pack and the+ MTP tensors. The tuning table in use is+ upstream's own `tools/hip/gfx1201-hipblaslt-100500.txt` (32 rows, hipBLASLt 1.5.0 /+ ROCm 10.2.0a generation — the table is calibrated on a 2026-09-14 nightly while the engine+ reports a 2026-09-30 one, and upstream warns that a different 1.5.0 build may number its+ solutions differently) and the log shows it enabled, but it was+ not verified with `STRATA_HIPBLASLT_VERBOSE=1`/`fallbacks=0`, and upstream's measured gain+ for it is +3.9 % on 4,210-token prompts.++Engine state of the measured sessions, condensed from `engine-0.1.38.log` (verbatim+excerpts):++```text+expert cache auto: 25.78 GiB free, 700 MiB reserved (+143 MiB for the draft head) -> 17739 slots+expert cache 18575 slots, 24.95 GiB of VRAM+pre-filled 18575 of 18575 slots from the profile; slot 0 verified+FileExpertSource: RAM budget 16.00 GiB: 6001 of the 8.07 GiB of experts the GPU cache does not hold+the file tier reads unbuffered (5 of 16 probe reads from the file cache; 46.0 GiB available, 36.5 GiB of files)+Windows budgets 31704 of this card's 32624 MiB for this process; free VRAM is counted within that+KV streaming: 32768 of 262144 cells per QSA layer in VRAM, the K/V in 3.09 GiB of pinned RAM+the prompt path borrows 3203 CUDA0 cache slots (4.34 GiB)+PLE on, table 320001536 rows+15 expert-pool workers + the host thread+```++The previous engine (pilot, 131,072 context) logged `large pages refused for 35456548864 B+(GetLargePageMinimum=2097152, VirtualAlloc error 1314); using 4 KB pages`, kept in+[pilot-0.1.36-engine-startup.log](pilot-0.1.36-engine-startup.log); "Lock pages in memory" is+not enabled, which #42 documents as the expected desktop outcome for error 1314.++## Model and configuration++- `ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF` @+ `ed59f92082b1e93c0e96d60a8b11aab089b52f09` (unchanged since 2026-09-29, before this+ machine's 2026-10-02 download). Shards+ `IQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf` and `...-00002-of-00002.gguf`.+ **SHA-256 for both shards and for `data/expert-profile.bin` is in+ [PROVENANCE.txt](PROVENANCE.txt)** (the pack and the MTP draft tensors have no hash).+- MTP draft head from `Qwen/Qwen3.8-Flash-Next` (revision not recorded); the log calls it an+ `experimental native Q5_K head, 337715200 bytes` and loads `835 MiB` of draft layer.+ Speculative decoding is on (`--spec 4`, `--spec-min-p 0.5`); draft acceptance was+ 62.1–83.8 % on the twelve headline runs, and 57–100 % across all 36 measured rows (the low+ end is a 13-token needle generation) — counts live in the log only.+- Vision off (no `--vision`, no mmproj; Windows AMD has no images), no `--low-ram`, no engine+ calibration, no custom control vectors, no API key. `--kv int8` and greedy 256-token+ sampling come from the launch configuration; the log shows the KV cell count but not the+ dtype.++Engine arguments as written in `strata-iq2_xs.json` (the launchers start `serve/server.py`,+which spawns the engine with these):++```text+--pack D:\AI\Strata\Strata-main\Strata-data\packs\iq2_xs+--native D:\AI\Strata\Strata-main\Strata-data\models\IQ2_XS\Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf+--ple-gguf D:\AI\Strata\Strata-main\Strata-data\models\IQ2_XS\Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf+--expert-profile D:\AI\Strata\Strata-main\Strata-main\data\expert-profile.bin+--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5+--mtp D:\AI\Strata\Strata-main\Strata-data\mtp\rt+--max-context 262144 --kv int8 --kv-resident 32768 --mmap-experts --resident-budget-gib 16+env STRATA_HIPBLASLT_TUNING=...\tools\hip\gfx1201-hipblaslt-100500.txt+```++## Method++- [benchmark.py](benchmark.py) (standard library only) builds each request from synthetic+ Python-like filler, sizes it in **characters** (calibration measured 2.52 chars/token, so+ targets overshoot 2–3.5 %), and puts a **fresh nonce in every prompt** so no run can reuse a+ cached prefix — hence `reused = 0` by construction, not because caching is absent.+- Each series runs a calibration and a 2,082-token warm-up first; both are excluded from the+ tables, as is engine loading. Reasoning is off, so the first token is answer text.+- **Prompt/decode tok/s, token counts and cache states are the engine's log values; TTFT and+ total latency are client-measured** (HTTP + tokenisation + frontend included). No+ "generated tokens ÷ total time" figure is used. As a cross-check, the client timers bracket+ the engine's own clocks and **never come out faster**: TTFT ≥ `read_ms` by 32–414 ms and+ total ≥ `read_ms + gen_ms` by 17–395 ms on every tabled row, so the engine's timings are+ corroborated as lower bounds rather than independently verified (its token counts have no+ external check at all).+- The exact prompts cannot be reconstructed from this packet: the filler is deterministic but+ the per-request seed and nonce are not saved (only `chars` is), and the speed rows keep no+ answer text. [benchmark.py](benchmark.py) is the reproducible instruction the guide asks for.+- The three reps at a length are three **different** prompts of the same nominal size (the+ filler seed increments per rep), so each median mixes prompt-to-prompt variation with+ run-to-run noise. The headline runs also use the **default prompt-kernel path** — the fused+ kernel is only in the A/B leg.+- The switches `docs/DETAILS.md` recommends for byte-identical repeats and clean A/B arms+ (`--prompt-cache 0 --adapt-swaps 0 --pcie-frac 0`, plus `STRATA_IQ_MT_MIN=1`) were **not**+ used, so cache adaptation and PCIe-fraction rounding can move results between requests and+ between arms — one plausible contributor to the 10.8 % default-vs-default spread.+- The log carries **no timestamps or request ids**, so a row is bound to a log line by token+ count; the harness's `pairing_ok` check was added after these runs and is absent from the+ files. Re-run by hand: all 69 rows with a `usage` block (36 measured, 15 void, 18+ calibration/warm-up) match within ±1 and no `read_ms` repeats.+- The `model` string is `qwen3.8-flash-next-iq2_xs` in the standard/240K/void files and+ `strata` (the harness's fallback alias) in the six A/B files.+- Prompt targets are labels, not sizes; the measured `engine_prompt_tokens` are reported+ per row. The needle is placed at 10/50/90 % of the **character** position and the repo's+ `tools/needle_bench.py` was **not** used, so the recall check is this harness's own.++Full method detail, the label/session caveats and every disclosure: see+[METHOD-AND-DISCLOSURES.md](METHOD-AND-DISCLOSURES.md).++## Results++Per-run JSON: [bench-output-standard.json](bench-output-standard.json) (4K/32K/128K ++needles), [bench-output-240k.json](bench-output-240k.json) (248K). "Tabled" = the 36 rows in+a measured series across the nine JSON files (18 in the two headline files, 18 in the six A/B+legs); the tables use the first 18. The log+([engine-0.1.38.log](engine-0.1.38.log)) holds 71 request lines: 36 tabled, 15 rows of the+failed attempt below, 18 calibration/warm-up, and 2 others (a 246,933-token request the+harness did not produce, and a leftover 0.1.36 pilot line).++**The failure:** [bench-output-standard-first-attempt-void.json](bench-output-standard-first-attempt-void.json)+was made before the harness disabled reasoning — 13 of its 15 rows returned no answer text+(7 speed rows at 256 generated tokens and 6 needle rows at the 32-token cap), all six needles+missed, `ttft_s` is null on 7 of 9 speed rows. It is a failure outside the summary, not a+recall or throughput result.++Needle recall:++| Prompt tokens | Depth | Result | Prompt tok/s | Decode tok/s |+| ---: | ---: | --- | ---: | ---: |+| 33,512 | 10 / 50 / 90 % | **FOUND / FOUND / FOUND** | 1,178.6 / 1,193.8 / 1,186.8 | 118.1 / 86.1 / 118.9 |+| 131,433 | 10 / 50 / 90 % | **FOUND / FOUND / FOUND** | 1,230.7 / 1,233.8 / 1,229.7 | 73.7 / 83.5 / 106.2 |++- **Curve shape (one session).** All four lengths ran inside a single engine session; the+ 4K→32K and 32K→128K segments each imply ≈1.5 s per-request overhead with ≈1,250 tok/s+ marginal, and 128K→248K is flatter (≈1,030 tok/s). The 32K→128K step is only +4.2 %,+ *smaller* than the 11.5 % session-to-session band, and 248K has no replicate session — so+ this is one session's shape, and a smooth quadratic fits the four medians about as well.+ The ≈1.5 s figure does not describe the calibration requests: the 346.4 tok/s calibration+ follows a 129,816-token needle request in the same session (the one following the+ 246,933-token request ran at 308.7 tok/s), while the same prompt as a fresh session's first+ request takes 5.36 s; see [#519](https://github.com/Niko1221/Strata/issues/519).+- **Every engine start performs a ≈26.7 GB one-off read** (26,741 MB and 26,779 MB by the two+ derivations below), which the log's cumulative counter folds into whichever request runs+ first: 31,214.5 MB on a 3,216-token calibration against 4,473 MB for the same prompt+ mid-session, and independently 175,996.2 − 149,217.3 MB in the other session. The 0.1.36+ pilot's note that this was "NOT a one-time cost per engine start" describes that older build;+ on 0.1.38 the excess reproduces in all six later starts. A session's first request line+ therefore overstates that request's own reads, and short-prompt figures from a first request+ are not comparable with warm ones.+- **SSD read volume** (delta of the log's cumulative counter, near-identical across+ same-length runs — within ±0.1 % at 32K and 128K): 1.31 MB per prompt token at 4K, 0.80 at+ 32K, 0.63 at 128K, 0.60 at 248K (131,388 → 82,225 MB; 247,990 → 149,217 MB), i.e.+ ≈1.07–1.13 GB/s sustained at 4K falling to ≈0.68 GB/s at 248K, with a ≈3 GB+ per-request component that even the warm-up pays.+- **Definitions follow the guide** (prefill = freshly read tokens ÷ engine read time; decode =+ generated ÷ engine gen time; TTFT = client wall clock, first token is answer text). Two+ defensible alternatives would move the medians slightly: prefill taken from the client's+ TTFT instead of the engine's read time gives ≈1,179 tok/s at 32K (published range+ 1,181.1–1,191.2), and decode over the client window (`total − TTFT`) gives ≈88.0 tok/s at+ 248K (published max 87.5). Quoting the round target label instead of the measured prompt+ would understate occupancy by 2.1–3.3 %.+- **KV streaming** hit VRAM for 94.3–99.4 % of block reads (4K 99.3, 32K 96.9–97.1, 128K+ 95.0–95.1, 248K 94.3–95.0), 0.05–0.42 GiB from RAM per run; the needle prompts saw+ 80.4–84.6 %. Decode expert-cache hit 99.4–99.9 % — the VRAM-resident share only;+ `--pcie-frac` experts are in neither counter ([#588](https://github.com/Niko1221/Strata/issues/588)).+- **Decode** is 99.8 / 97.8 / 89.9 / 87.5 tok/s; only the 32K→128K step (−8 %) is separable+ from noise (the 4K and 32K ranges both contain 95.3). TTFT is the engine's read time plus+ 32–414 ms of client/frontend overhead (22 ms on the tiny calibration/warm-up rows). The 248K run at 75.1 tok/s lowers the+ mean (83.4) but not the median (87.5). Three of these twelve runs stopped below the cap+ (236 / 249 / 250 tokens; eight of the 30 tabled speed rows did); removing them from their+ own three-run groups moves decode by **−6.2 tok/s at 248K**, −1.5 at 4K and +0.6 at 128K+ (32K unchanged), so the truncated runs do matter below the median.+- **Against upstream's own R9700 row** (`docs/AMD_HIP.md`: Coder IQ1_M, Ubuntu 24.04 in a+ KVM/VFIO guest, engine 0.1.x, 12,288 slots): 4K prompt **982 tok/s**, 4K decode **45.5**,+ 16K prompt 1,402, 16K decode 48.3. Decode here is about twice that while **4K prompt is+ lower (855.8 vs 982)** — different model, RAM, OS and engine, so neither direction is a+ controlled comparison; the opt-in matrix-core path (`STRATA_HIP_WMMA=1`) is documented to+ take the R9700's 4K prompt from 1,784 to 2,427 tok/s, so 855.8 is **not** a ceiling.+- **Environment flags.** `STRATA_PF_FUSED=1`: +0.8 % at 4K and +4.9 % at 32K against the+ slower of the two `default` sessions (against `ab-default2`, 1,175.4 tok/s, it is −5.3 %),+ so both deltas sit inside the 11.5 % control band and neither is attributable to the flag.+ The string "fused" does not occur anywhere in the 732-line log, but nothing in this packet+ or upstream documents a banner the flag would print on HIP, so the only defensible statement+ is **no observable effect in one session per length**. `STRATA_PLE_BATCH=0` — the per-token+ PLE block [#541](https://github.com/Niko1221/Strata/issues/541) names as the stall+ workaround, not a speed option — measured −12.8 % against `ab-default` / −21.3 % against+ `ab-default2` at 32K, in one session with no replicate. Raw legs:+ [default](bench-output-ab-default.json), [default2](bench-output-ab-default2.json),+ [fused](bench-output-ab-fused.json), [plebatch0](bench-output-ab-plebatch0.json),+ [default4k](bench-output-ab-default4k.json), [fused4k](bench-output-ab-fused4k.json); only+ three launchers were saved, so **the environment each leg ran with is not recorded per+ leg**.++## Correctness and limitations++- **Recall:** 6/6 exact-string needles in one run; the failed attempt scored 0/6, so this is+ an outcome, not a rate.+- **Answer quality:** not established here — this packet ran no quality, coding or tool-use+ check (an earlier out-of-harness look at long-context summaries exists but is **not+ reproducible from these files**; see METHOD-AND-DISCLOSURES.md §3).+- **Stability:** no stall line and every tabled request completed, but that is 30 requests on+ one machine — it is not evidence the card is stall-free, and **this packet contains no stall+ at all** (the earlier stall was observed outside it, and its dump is not attached). A stall+ family is reported on this card by other users:+ [#541](https://github.com/Niko1221/Strata/issues/541) (open; a different machine —+ CachyOS/ROCm 7.2.4, R9700) and [#579](https://github.com/Niko1221/Strata/issues/579)+ (gfx1201 RX 9070 XT, Ubuntu/ROCm 10, still on 0.1.38). The v0.1.38 notes credit+ [#382](https://github.com/Niko1221/Strata/issues/382) — the draft layer's prompt pass per+ group on HIP — as the fix for a gfx1201 prompt hang; that PR is closed without a GitHub merge+ (the maintainer's comment says it "went in by hand"), so no upstream source states the family+ is fully resolved.+- **Engine version matters:** 0.1.38 reads the file tier unbuffered and+ [#577](https://github.com/Niko1221/Strata/issues/577) measures prompts 15–40 % slower in+ that regime (`STRATA_UNBUFFERED_LOAD=0` restores), so these prefill figures may *understate*+ a buffered configuration; no such leg was run.+- **No recall check at 248K:** the 240K series ran no needles, so recall is evidenced only at+ 33,512 and 131,433 tokens.+- **A/B caveat:** each leg is one engine start at one length (4K or 32K only — none at+ 128K/248K), the legs ran sequentially rather than interleaved, so time, thermals and+ page-cache state are confounded with the flag; and no leg records its environment variable+ anywhere except the `.bat` filename and the JSON `tag`.+- **Memory is a startup snapshot, not a peak**; no paging/OOM counter was collected.+- **247,990 < 262,144:** the longest prompt does not fill every token of the configured+ context window (94.6 % occupancy), and recall was checked only to 131,433 tokens — this is+ not a full-window or full-context-quality test.+- **Not measured:** clocks/thermals, power limit, PCIe width, the `strata-device` bundle,+ images, 384K/512K contexts, concurrency, sampled/thinking modes, quality baselines, and the+ opt-in `STRATA_HIP_WMMA`/`STRATA_SELECT_WMMA` matrix-core paths.+- **Session replication:** 4K ran in 3 engine sessions and 32K in 5; **128K and 248K each ran+ in one** (the only other 128K requests are the excluded void attempt).+- **Variance:** within a session <1 % at 32K/128K/248K and ~5 % at 4K; between sessions of the+ *same* configuration, up to 11.5 % at 32K (1,182.1 vs 1,060.6) and 14.2 % at 4K (855.8 vs+ 749.3) — 13.4 % and 18.4 % if individual reps are compared (the `fused4k` leg is a flag arm,+ not a baseline replicate, and is excluded from these bands).+- **Packaging:** the folder mixes two engine generations (0.1.38 measurements plus 0.1.36+ pilot files), and the log's first line is a leftover 246,700-token pilot request, not a+ startup banner. The pilot tables are single requests on a different build with heavy prompt+ reuse and are **not** verifiable from this packet. The pilot startup log's own PCIe probe+ reads 8794.0 GB/s, which is not physically plausible; the 54.7 GB/s figure used above is the+ host-clocked probe recorded in `engine-0.1.38.log` line 7 (probe type introduced in 0.1.37,+ #377/#380).+- **Units:** capacities in GiB (Windows' "GB" values converted; the engine prints MiB/GiB),+ read volumes in MB and rates in GB/s exactly as the engine's counter prints them, tokens as+ logged.+- **Comparison caveat:** synthetic prompts and reasoning off, and both the sizing and the+ recall check are this harness's own, so the numbers are not directly comparable with+ `bench/results/2026-09-30-community-rtx-5090/`.diff --git a/bench/results/2026-10-03-community-r9700-windows/SHA256SUMS.txt b/bench/results/2026-10-03-community-r9700-windows/SHA256SUMS.txtnew file mode 100644index 000000000..b8153b9cc--- /dev/null+++ b/bench/results/2026-10-03-community-r9700-windows/SHA256SUMS.txt@@ -0,0 +1,22 @@+fbbd5571006ec4791cf3bf22d715b7f6841473b1389a43cf25df5a079bac4b0b METHOD-AND-DISCLOSURES.md+2ae7f77866dc87cb0fed60fcff9926e2a0416322ecedad92e8f79868810dd43c PR-DESCRIPTION.md+fbc4f2480edefa6893099845bab5fdcd39dbeae866d9861ef797a7dde1fc7b1e PROVENANCE.txt+a59d58b0d54c12c2715091afdb3a6f504d35139d22a102e59a49f81be4aea225 README.md+2ca751454d67ca98f496b309af78f20c89f792dd95a4a386cbe149bee1d65df8 bench-output-240k.json+73fa49e7e59d54fc17bad3654dbe196ae148a777fb13d3a0061875da88a1c367 bench-output-ab-default.json+6b1287c4f69df9d0b80c0d9cf704a575a449e13984413d8f640df963c485d045 bench-output-ab-default2.json+4e1d5c70e2f2f3e34919a38c17fdbbb06192b339f5d7b750d8c9f49d8668ae9b bench-output-ab-default4k.json+a8e5e98cece9bf4f09d9c767e4cd1e9a8c3f0ae1a53ed7aeede19f6206551161 bench-output-ab-fused.json+b464fefa45f312a484418d7a5288f440a9be5bc6630abfcaf8cbd3653d927cbf bench-output-ab-fused4k.json+1db046ad51341ee81775afec0f25544b15b997e2304821411394db20200f9c14 bench-output-ab-plebatch0.json+4cd35223cb61ef1bc2422b827115274dbb812c316f069eb5fbb94ad92aff3035 bench-output-standard-first-attempt-void.json+4e2354f74af83b356c78305561b2d0225391ba19864aa7b83823baf80d77e0d1 bench-output-standard.json+e907190da427226bbc016b669590d476304d14026c2efc9d8cbac9a7991214b4 benchmark.py+f0c42675dd66341e1f3c3ef8f698ff4117bc4ce89cca4067d08918dedda3aaf2 engine-0.1.38.log+18ef83dae3185be680a9637b0d2fcb890e6b606776cbe9d406bb7f678abab2de pilot-0.1.36-engine-startup.log+26ee2303c0502d459d6071422803438225892676b89db9156abd43754c3ff861 pilot-0.1.36-measured-runs.md+1d46d4046c842c0dd1b9a4623f266da6189ff3d21829d056e98b7ebfa3f36acc pilot-0.1.36-reading-scaling.md+e7162d007a35fa4ea98a2e3fe0de312c9825bfb6d77f6efdd54d8c8c803f0de3 run-iq2_xs-default.bat+04ada625f1437901279b005ad7bdade032b921b21c9a672862955014555b7b02 run-iq2_xs-fused.bat+d22cdcded25b71a56977dafc2c4cadcd7bb19dafefdd58284869d5135aae26ea run-iq2_xs-plebatch0.bat+69330f82ba03742689e075545ffa0bafc233aceab1a30b130ca9573c7ba00939 strata-iq2_xs.jsondiff --git a/bench/results/2026-10-03-community-r9700-windows/TRIMMED.md b/bench/results/2026-10-03-community-r9700-windows/TRIMMED.mdnew file mode 100644index 000000000..22742bb67--- /dev/null+++ b/bench/results/2026-10-03-community-r9700-windows/TRIMMED.md@@ -0,0 +1,11 @@+# Trimmed files++Ported from PR #618 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.++2 files, 0.1 MB:++| file | bytes | why |+|---|---:|---|+| `engine-0.1.38.log` | 77,494 | log/raw dump |+| `pilot-0.1.36-engine-startup.log` | 1,327 | log/raw dump |diff --git a/bench/results/2026-10-03-community-r9700-windows/bench-output-240k.json b/bench/results/2026-10-03-community-r9700-windows/bench-output-240k.jsonnew file mode 100644index 000000000..0349f4ba8--- /dev/null+++ b/bench/results/2026-10-03-community-r9700-windows/bench-output-240k.json@@ -0,0 +1,158 @@+{+ "started": "2026-10-03 14:21:24",+ "url": "http://127.0.0.1:8080/v1/chat/completions",+ "model": "qwen3.8-flash-next-iq2_xs",+ "engine_log": "D:\\AI\\Strata\\Strata-main\\Strata-main\\strata-iq2_xs.log",+ "cap_tokens": 256,+ "reps": 3,+ "speed": [+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 219.486,+ "total_s": 222.392,+ "answer_len": 1270,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 247990,+ "completion_tokens": 256,+ "total_tokens": 248246,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 247990,+ "reused_tokens": 0,+ "new_prompt_tokens": 247990,+ "read_ms": 219076,+ "read_tok_s": 1132.0,+ "generated_tokens": 256,+ "gen_ms": 2925,+ "decode_tok_s": 87.5,+ "target": 240000,+ "rep": 1,+ "chars": 604752+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 220.422,+ "total_s": 223.814,+ "answer_len": 1309,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "stop",+ "usage": {+ "prompt_tokens": 247990,+ "completion_tokens": 256,+ "total_tokens": 248246,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 247990,+ "reused_tokens": 0,+ "new_prompt_tokens": 247990,+ "read_ms": 220008,+ "read_tok_s": 1127.2,+ "generated_tokens": 256,+ "gen_ms": 3411,+ "decode_tok_s": 75.1,+ "target": 240000,+ "rep": 2,+ "chars": 604752+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 219.842,+ "total_s": 222.682,+ "answer_len": 1277,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "stop",+ "usage": {+ "prompt_tokens": 247990,+ "completion_tokens": 250,+ "total_tokens": 248240,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 247990,+ "reused_tokens": 0,+ "new_prompt_tokens": 247990,+ "read_ms": 219440,+ "read_tok_s": 1130.1,+ "generated_tokens": 250,+ "gen_ms": 2858,+ "decode_tok_s": 87.5,+ "target": 240000,+ "rep": 3,+ "chars": 604752+ }+ ],+ "needles": [],+ "notes": [],+ "calibration": {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 10.108,+ "total_s": 10.851,+ "answer_len": 335,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 3216,+ "completion_tokens": 64,+ "total_tokens": 3280,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 3216,+ "reused_tokens": 0,+ "new_prompt_tokens": 3216,+ "read_ms": 10069,+ "read_tok_s": 319.4,+ "generated_tokens": 64,+ "gen_ms": 757,+ "decode_tok_s": 84.5+ },+ "chars_per_token": 2.5188916876574305,+ "warmup": {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 3.221,+ "total_s": 3.505,+ "answer_len": 166,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 2082,+ "completion_tokens": 32,+ "total_tokens": 2114,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 2082,+ "reused_tokens": 0,+ "new_prompt_tokens": 2082,+ "read_ms": 3188,+ "read_tok_s": 653.0,+ "generated_tokens": 32,+ "gen_ms": 299,+ "decode_tok_s": 106.9+ },+ "finished": "2026-10-03 14:32:47"+}\ No newline at end of filediff --git a/bench/results/2026-10-03-community-r9700-windows/bench-output-ab-default.json b/bench/results/2026-10-03-community-r9700-windows/bench-output-ab-default.jsonnew file mode 100644index 000000000..55a6df039--- /dev/null+++ b/bench/results/2026-10-03-community-r9700-windows/bench-output-ab-default.json@@ -0,0 +1,159 @@+{+ "started": "2026-10-03 15:19:02",+ "url": "http://127.0.0.1:8080/v1/chat/completions",+ "model": "strata",+ "engine_log": "D:\\AI\\Strata\\Strata-main\\Strata-main\\strata-iq2_xs.log",+ "cap_tokens": 256,+ "reps": 3,+ "speed": [+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 31.311,+ "total_s": 34.162,+ "answer_len": 1376,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 33462,+ "completion_tokens": 256,+ "total_tokens": 33718,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 33462,+ "reused_tokens": 0,+ "new_prompt_tokens": 33462,+ "read_ms": 31239,+ "read_tok_s": 1071.2,+ "generated_tokens": 256,+ "gen_ms": 2866,+ "decode_tok_s": 89.3,+ "target": 32768,+ "rep": 1,+ "chars": 82757+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 31.953,+ "total_s": 34.662,+ "answer_len": 1328,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 33465,+ "completion_tokens": 256,+ "total_tokens": 33721,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 33465,+ "reused_tokens": 0,+ "new_prompt_tokens": 33465,+ "read_ms": 31872,+ "read_tok_s": 1050.0,+ "generated_tokens": 256,+ "gen_ms": 2725,+ "decode_tok_s": 93.9,+ "target": 32768,+ "rep": 2,+ "chars": 82757+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 31.637,+ "total_s": 34.232,+ "answer_len": 1303,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 33467,+ "completion_tokens": 256,+ "total_tokens": 33723,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 33467,+ "reused_tokens": 0,+ "new_prompt_tokens": 33467,+ "read_ms": 31555,+ "read_tok_s": 1060.6,+ "generated_tokens": 256,+ "gen_ms": 2610,+ "decode_tok_s": 98.1,+ "target": 32768,+ "rep": 3,+ "chars": 82757+ }+ ],+ "needles": [],+ "notes": [],+ "calibration": {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 5.395,+ "total_s": 6.125,+ "answer_len": 372,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 3216,+ "completion_tokens": 64,+ "total_tokens": 3280,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 3216,+ "reused_tokens": 0,+ "new_prompt_tokens": 3216,+ "read_ms": 5355,+ "read_tok_s": 600.5,+ "generated_tokens": 64,+ "gen_ms": 748,+ "decode_tok_s": 85.6+ },+ "chars_per_token": 2.5188916876574305,+ "warmup": {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 3.079,+ "total_s": 3.363,+ "answer_len": 94,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 2082,+ "completion_tokens": 32,+ "total_tokens": 2114,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 2082,+ "reused_tokens": 0,+ "new_prompt_tokens": 2082,+ "read_ms": 3057,+ "read_tok_s": 681.2,+ "generated_tokens": 32,+ "gen_ms": 298,+ "decode_tok_s": 107.3+ },+ "finished": "2026-10-03 15:20:54",+ "tag": "default"+}\ No newline at end of filediff --git a/bench/results/2026-10-03-community-r9700-windows/bench-output-ab-default2.json b/bench/results/2026-10-03-community-r9700-windows/bench-output-ab-default2.jsonnew file mode 100644index 000000000..1805552a4--- /dev/null+++ b/bench/results/2026-10-03-community-r9700-windows/bench-output-ab-default2.json@@ -0,0 +1,159 @@+{+ "started": "2026-10-03 15:31:59",+ "url": "http://127.0.0.1:8080/v1/chat/completions",+ "model": "strata",+ "engine_log": "D:\\AI\\Strata\\Strata-main\\Strata-main\\strata-iq2_xs.log",+ "cap_tokens": 256,+ "reps": 3,+ "speed": [+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 28.365,+ "total_s": 31.181,+ "answer_len": 1356,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 33462,+ "completion_tokens": 256,+ "total_tokens": 33718,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 33462,+ "reused_tokens": 0,+ "new_prompt_tokens": 33462,+ "read_ms": 28293,+ "read_tok_s": 1182.7,+ "generated_tokens": 256,+ "gen_ms": 2831,+ "decode_tok_s": 90.4,+ "target": 32768,+ "rep": 1,+ "chars": 82757+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 28.573,+ "total_s": 31.093,+ "answer_len": 1313,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "stop",+ "usage": {+ "prompt_tokens": 33465,+ "completion_tokens": 251,+ "total_tokens": 33716,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 33465,+ "reused_tokens": 0,+ "new_prompt_tokens": 33465,+ "read_ms": 28471,+ "read_tok_s": 1175.4,+ "generated_tokens": 251,+ "gen_ms": 2535,+ "decode_tok_s": 99.0,+ "target": 32768,+ "rep": 2,+ "chars": 82757+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 28.837,+ "total_s": 31.458,+ "answer_len": 1265,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "stop",+ "usage": {+ "prompt_tokens": 33467,+ "completion_tokens": 234,+ "total_tokens": 33701,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 33467,+ "reused_tokens": 0,+ "new_prompt_tokens": 33467,+ "read_ms": 28754,+ "read_tok_s": 1163.9,+ "generated_tokens": 234,+ "gen_ms": 2638,+ "decode_tok_s": 88.7,+ "target": 32768,+ "rep": 3,+ "chars": 82757+ }+ ],+ "needles": [],+ "notes": [],+ "calibration": {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 5.202,+ "total_s": 5.933,+ "answer_len": 372,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 3216,+ "completion_tokens": 64,+ "total_tokens": 3280,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 3216,+ "reused_tokens": 0,+ "new_prompt_tokens": 3216,+ "read_ms": 5160,+ "read_tok_s": 623.2,+ "generated_tokens": 64,+ "gen_ms": 750,+ "decode_tok_s": 85.4+ },+ "chars_per_token": 2.5188916876574305,+ "warmup": {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 3.286,+ "total_s": 3.545,+ "answer_len": 94,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 2082,+ "completion_tokens": 32,+ "total_tokens": 2114,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 2082,+ "reused_tokens": 0,+ "new_prompt_tokens": 2082,+ "read_ms": 3245,+ "read_tok_s": 641.6,+ "generated_tokens": 32,+ "gen_ms": 274,+ "decode_tok_s": 116.7+ },+ "finished": "2026-10-03 15:33:42",+ "tag": "default2"+}\ No newline at end of filediff --git a/bench/results/2026-10-03-community-r9700-windows/bench-output-ab-default4k.json b/bench/results/2026-10-03-community-r9700-windows/bench-output-ab-default4k.jsonnew file mode 100644index 000000000..df1cbb72a--- /dev/null+++ b/bench/results/2026-10-03-community-r9700-windows/bench-output-ab-default4k.json@@ -0,0 +1,159 @@+{+ "started": "2026-10-03 15:35:19",+ "url": "http://127.0.0.1:8080/v1/chat/completions",+ "model": "strata",+ "engine_log": "D:\\AI\\Strata\\Strata-main\\Strata-main\\strata-iq2_xs.log",+ "cap_tokens": 256,+ "reps": 3,+ "speed": [+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 5.791,+ "total_s": 8.23,+ "answer_len": 1118,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "stop",+ "usage": {+ "prompt_tokens": 4195,+ "completion_tokens": 236,+ "total_tokens": 4431,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 4195,+ "reused_tokens": 0,+ "new_prompt_tokens": 4195,+ "read_ms": 5751,+ "read_tok_s": 729.4,+ "generated_tokens": 236,+ "gen_ms": 2455,+ "decode_tok_s": 96.1,+ "target": 4096,+ "rep": 1,+ "chars": 10535+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 5.625,+ "total_s": 8.256,+ "answer_len": 1351,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 4198,+ "completion_tokens": 256,+ "total_tokens": 4454,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 4198,+ "reused_tokens": 0,+ "new_prompt_tokens": 4198,+ "read_ms": 5582,+ "read_tok_s": 752.1,+ "generated_tokens": 256,+ "gen_ms": 2645,+ "decode_tok_s": 96.8,+ "target": 4096,+ "rep": 2,+ "chars": 10535+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 5.643,+ "total_s": 8.286,+ "answer_len": 1344,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 4199,+ "completion_tokens": 256,+ "total_tokens": 4455,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 4199,+ "reused_tokens": 0,+ "new_prompt_tokens": 4199,+ "read_ms": 5604,+ "read_tok_s": 749.3,+ "generated_tokens": 256,+ "gen_ms": 2658,+ "decode_tok_s": 96.3,+ "target": 4096,+ "rep": 3,+ "chars": 10535+ }+ ],+ "needles": [],+ "notes": [],+ "calibration": {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 5.569,+ "total_s": 6.305,+ "answer_len": 372,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 3216,+ "completion_tokens": 64,+ "total_tokens": 3280,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 3216,+ "reused_tokens": 0,+ "new_prompt_tokens": 3216,+ "read_ms": 5520,+ "read_tok_s": 582.6,+ "generated_tokens": 64,+ "gen_ms": 755,+ "decode_tok_s": 84.8+ },+ "chars_per_token": 2.5188916876574305,+ "warmup": {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 3.313,+ "total_s": 3.571,+ "answer_len": 94,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 2082,+ "completion_tokens": 32,+ "total_tokens": 2114,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 2082,+ "reused_tokens": 0,+ "new_prompt_tokens": 2082,+ "read_ms": 3272,+ "read_tok_s": 636.3,+ "generated_tokens": 32,+ "gen_ms": 273,+ "decode_tok_s": 117.0+ },+ "finished": "2026-10-03 15:35:54",+ "tag": "default4k"+}\ No newline at end of filediff --git a/bench/results/2026-10-03-community-r9700-windows/bench-output-ab-fused.json b/bench/results/2026-10-03-community-r9700-windows/bench-output-ab-fused.jsonnew file mode 100644index 000000000..9ed6e791a--- /dev/null+++ b/bench/results/2026-10-03-community-r9700-windows/bench-output-ab-fused.json@@ -0,0 +1,159 @@+{+ "started": "2026-10-03 15:21:54",+ "url": "http://127.0.0.1:8080/v1/chat/completions",+ "model": "strata",+ "engine_log": "D:\\AI\\Strata\\Strata-main\\Strata-main\\strata-iq2_xs.log",+ "cap_tokens": 256,+ "reps": 3,+ "speed": [+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 30.176,+ "total_s": 33.119,+ "answer_len": 1258,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 33462,+ "completion_tokens": 256,+ "total_tokens": 33718,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 33462,+ "reused_tokens": 0,+ "new_prompt_tokens": 33462,+ "read_ms": 30097,+ "read_tok_s": 1111.8,+ "generated_tokens": 256,+ "gen_ms": 2958,+ "decode_tok_s": 86.5,+ "target": 32768,+ "rep": 1,+ "chars": 82757+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 30.031,+ "total_s": 32.689,+ "answer_len": 1277,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 33465,+ "completion_tokens": 256,+ "total_tokens": 33721,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 33465,+ "reused_tokens": 0,+ "new_prompt_tokens": 33465,+ "read_ms": 29950,+ "read_tok_s": 1117.4,+ "generated_tokens": 256,+ "gen_ms": 2674,+ "decode_tok_s": 95.7,+ "target": 32768,+ "rep": 2,+ "chars": 82757+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 30.17,+ "total_s": 32.719,+ "answer_len": 1262,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "stop",+ "usage": {+ "prompt_tokens": 33467,+ "completion_tokens": 233,+ "total_tokens": 33700,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 33467,+ "reused_tokens": 0,+ "new_prompt_tokens": 33467,+ "read_ms": 30081,+ "read_tok_s": 1112.6,+ "generated_tokens": 233,+ "gen_ms": 2565,+ "decode_tok_s": 90.8,+ "target": 32768,+ "rep": 3,+ "chars": 82757+ }+ ],+ "needles": [],+ "notes": [],+ "calibration": {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 5.369,+ "total_s": 6.103,+ "answer_len": 372,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 3216,+ "completion_tokens": 64,+ "total_tokens": 3280,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 3216,+ "reused_tokens": 0,+ "new_prompt_tokens": 3216,+ "read_ms": 5324,+ "read_tok_s": 604.1,+ "generated_tokens": 64,+ "gen_ms": 754,+ "decode_tok_s": 84.9+ },+ "chars_per_token": 2.5188916876574305,+ "warmup": {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 3.26,+ "total_s": 3.518,+ "answer_len": 94,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 2082,+ "completion_tokens": 32,+ "total_tokens": 2114,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 2082,+ "reused_tokens": 0,+ "new_prompt_tokens": 2082,+ "read_ms": 3226,+ "read_tok_s": 645.5,+ "generated_tokens": 32,+ "gen_ms": 274,+ "decode_tok_s": 116.8+ },+ "finished": "2026-10-03 15:23:42",+ "tag": "fused"+}\ No newline at end of filediff --git a/bench/results/2026-10-03-community-r9700-windows/bench-output-ab-fused4k.json b/bench/results/2026-10-03-community-r9700-windows/bench-output-ab-fused4k.jsonnew file mode 100644index 000000000..e41ebc8ff--- /dev/null+++ b/bench/results/2026-10-03-community-r9700-windows/bench-output-ab-fused4k.json@@ -0,0 +1,159 @@+{+ "started": "2026-10-03 15:37:12",+ "url": "http://127.0.0.1:8080/v1/chat/completions",+ "model": "strata",+ "engine_log": "D:\\AI\\Strata\\Strata-main\\Strata-main\\strata-iq2_xs.log",+ "cap_tokens": 256,+ "reps": 3,+ "speed": [+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 5.339,+ "total_s": 8.077,+ "answer_len": 1382,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 4195,+ "completion_tokens": 256,+ "total_tokens": 4451,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 4195,+ "reused_tokens": 0,+ "new_prompt_tokens": 4195,+ "read_ms": 5294,+ "read_tok_s": 792.3,+ "generated_tokens": 256,+ "gen_ms": 2753,+ "decode_tok_s": 93.0,+ "target": 4096,+ "rep": 1,+ "chars": 10535+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 5.816,+ "total_s": 8.554,+ "answer_len": 1391,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 4198,+ "completion_tokens": 256,+ "total_tokens": 4454,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 4198,+ "reused_tokens": 0,+ "new_prompt_tokens": 4198,+ "read_ms": 5769,+ "read_tok_s": 727.6,+ "generated_tokens": 256,+ "gen_ms": 2752,+ "decode_tok_s": 93.0,+ "target": 4096,+ "rep": 2,+ "chars": 10535+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 5.593,+ "total_s": 8.174,+ "answer_len": 1351,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 4199,+ "completion_tokens": 256,+ "total_tokens": 4455,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 4199,+ "reused_tokens": 0,+ "new_prompt_tokens": 4199,+ "read_ms": 5557,+ "read_tok_s": 755.6,+ "generated_tokens": 256,+ "gen_ms": 2596,+ "decode_tok_s": 98.6,+ "target": 4096,+ "rep": 3,+ "chars": 10535+ }+ ],+ "needles": [],+ "notes": [],+ "calibration": {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 5.256,+ "total_s": 5.989,+ "answer_len": 372,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 3216,+ "completion_tokens": 64,+ "total_tokens": 3280,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 3216,+ "reused_tokens": 0,+ "new_prompt_tokens": 3216,+ "read_ms": 5213,+ "read_tok_s": 616.9,+ "generated_tokens": 64,+ "gen_ms": 752,+ "decode_tok_s": 85.1+ },+ "chars_per_token": 2.5188916876574305,+ "warmup": {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 3.19,+ "total_s": 3.436,+ "answer_len": 94,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 2082,+ "completion_tokens": 32,+ "total_tokens": 2114,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 2082,+ "reused_tokens": 0,+ "new_prompt_tokens": 2082,+ "read_ms": 3159,+ "read_tok_s": 659.1,+ "generated_tokens": 32,+ "gen_ms": 260,+ "decode_tok_s": 122.9+ },+ "finished": "2026-10-03 15:37:46",+ "tag": "fused4k"+}\ No newline at end of filediff --git a/bench/results/2026-10-03-community-r9700-windows/bench-output-ab-plebatch0.json b/bench/results/2026-10-03-community-r9700-windows/bench-output-ab-plebatch0.jsonnew file mode 100644index 000000000..4a4b17d5f--- /dev/null+++ b/bench/results/2026-10-03-community-r9700-windows/bench-output-ab-plebatch0.json@@ -0,0 +1,159 @@+{+ "started": "2026-10-03 15:24:46",+ "url": "http://127.0.0.1:8080/v1/chat/completions",+ "model": "strata",+ "engine_log": "D:\\AI\\Strata\\Strata-main\\Strata-main\\strata-iq2_xs.log",+ "cap_tokens": 256,+ "reps": 3,+ "speed": [+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 36.889,+ "total_s": 39.71,+ "answer_len": 1295,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 33462,+ "completion_tokens": 256,+ "total_tokens": 33718,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 33462,+ "reused_tokens": 0,+ "new_prompt_tokens": 33462,+ "read_ms": 36795,+ "read_tok_s": 909.4,+ "generated_tokens": 256,+ "gen_ms": 2836,+ "decode_tok_s": 90.3,+ "target": 32768,+ "rep": 1,+ "chars": 82757+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 36.273,+ "total_s": 38.887,+ "answer_len": 1313,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "stop",+ "usage": {+ "prompt_tokens": 33465,+ "completion_tokens": 244,+ "total_tokens": 33709,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 33465,+ "reused_tokens": 0,+ "new_prompt_tokens": 33465,+ "read_ms": 36184,+ "read_tok_s": 924.9,+ "generated_tokens": 244,+ "gen_ms": 2629,+ "decode_tok_s": 92.8,+ "target": 32768,+ "rep": 2,+ "chars": 82757+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 36.183,+ "total_s": 38.936,+ "answer_len": 1365,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 33467,+ "completion_tokens": 256,+ "total_tokens": 33723,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 33467,+ "reused_tokens": 0,+ "new_prompt_tokens": 33467,+ "read_ms": 36078,+ "read_tok_s": 927.6,+ "generated_tokens": 256,+ "gen_ms": 2767,+ "decode_tok_s": 92.5,+ "target": 32768,+ "rep": 3,+ "chars": 82757+ }+ ],+ "needles": [],+ "notes": [],+ "calibration": {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 5.957,+ "total_s": 6.773,+ "answer_len": 389,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 3216,+ "completion_tokens": 64,+ "total_tokens": 3280,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 3216,+ "reused_tokens": 0,+ "new_prompt_tokens": 3216,+ "read_ms": 5930,+ "read_tok_s": 542.3,+ "generated_tokens": 64,+ "gen_ms": 834,+ "decode_tok_s": 76.7+ },+ "chars_per_token": 2.5188916876574305,+ "warmup": {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 3.42,+ "total_s": 3.696,+ "answer_len": 94,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 2082,+ "completion_tokens": 32,+ "total_tokens": 2114,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 2082,+ "reused_tokens": 0,+ "new_prompt_tokens": 2082,+ "read_ms": 3381,+ "read_tok_s": 615.7,+ "generated_tokens": 32,+ "gen_ms": 291,+ "decode_tok_s": 110.1+ },+ "finished": "2026-10-03 15:26:54",+ "tag": "plebatch0"+}\ No newline at end of filediff --git a/bench/results/2026-10-03-community-r9700-windows/bench-output-standard-first-attempt-void.json b/bench/results/2026-10-03-community-r9700-windows/bench-output-standard-first-attempt-void.jsonnew file mode 100644index 000000000..c7aee02c3--- /dev/null+++ b/bench/results/2026-10-03-community-r9700-windows/bench-output-standard-first-attempt-void.json@@ -0,0 +1,463 @@+{+ "started": "2026-10-03 13:21:08",+ "url": "http://127.0.0.1:8080/v1/chat/completions",+ "model": "qwen3.8-flash-next-iq2_xs",+ "engine_log": "D:\\AI\\Strata\\Strata-main\\Strata-main\\strata-iq2_xs.log",+ "cap_tokens": 256,+ "reps": 3,+ "speed": [+ {+ "ok": true,+ "payload_variant": 0,+ "ttft_s": null,+ "total_s": 7.936,+ "answer_len": 0,+ "usage": {+ "prompt_tokens": 4184,+ "completion_tokens": 256,+ "total_tokens": 4440,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 4184,+ "reused_tokens": 0,+ "new_prompt_tokens": 4184,+ "read_ms": 4998,+ "read_tok_s": 837.2,+ "generated_tokens": 256,+ "gen_ms": 2915,+ "decode_tok_s": 87.8,+ "target": 4096,+ "rep": 1,+ "chars": 10407+ },+ {+ "ok": true,+ "payload_variant": 0,+ "ttft_s": null,+ "total_s": 7.722,+ "answer_len": 0,+ "usage": {+ "prompt_tokens": 4186,+ "completion_tokens": 256,+ "total_tokens": 4442,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 4186,+ "reused_tokens": 0,+ "new_prompt_tokens": 4186,+ "read_ms": 5080,+ "read_tok_s": 824.0,+ "generated_tokens": 256,+ "gen_ms": 2620,+ "decode_tok_s": 97.7,+ "target": 4096,+ "rep": 2,+ "chars": 10407+ },+ {+ "ok": true,+ "payload_variant": 0,+ "ttft_s": null,+ "total_s": 7.503,+ "answer_len": 0,+ "usage": {+ "prompt_tokens": 4190,+ "completion_tokens": 256,+ "total_tokens": 4446,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 4190,+ "reused_tokens": 0,+ "new_prompt_tokens": 4190,+ "read_ms": 5051,+ "read_tok_s": 829.5,+ "generated_tokens": 256,+ "gen_ms": 2418,+ "decode_tok_s": 105.9,+ "target": 4096,+ "rep": 3,+ "chars": 10407+ },+ {+ "ok": true,+ "payload_variant": 0,+ "ttft_s": null,+ "total_s": 30.262,+ "answer_len": 0,+ "usage": {+ "prompt_tokens": 33084,+ "completion_tokens": 256,+ "total_tokens": 33340,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 33084,+ "reused_tokens": 0,+ "new_prompt_tokens": 33084,+ "read_ms": 27524,+ "read_tok_s": 1202.0,+ "generated_tokens": 256,+ "gen_ms": 2679,+ "decode_tok_s": 95.6,+ "target": 32768,+ "rep": 1,+ "chars": 81730+ },+ {+ "ok": true,+ "payload_variant": 0,+ "ttft_s": null,+ "total_s": 30.656,+ "answer_len": 0,+ "usage": {+ "prompt_tokens": 33084,+ "completion_tokens": 256,+ "total_tokens": 33340,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 33084,+ "reused_tokens": 0,+ "new_prompt_tokens": 33084,+ "read_ms": 27903,+ "read_tok_s": 1185.7,+ "generated_tokens": 256,+ "gen_ms": 2687,+ "decode_tok_s": 95.3,+ "target": 32768,+ "rep": 2,+ "chars": 81730+ },+ {+ "ok": true,+ "payload_variant": 0,+ "ttft_s": null,+ "total_s": 30.475,+ "answer_len": 0,+ "usage": {+ "prompt_tokens": 33084,+ "completion_tokens": 256,+ "total_tokens": 33340,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 33084,+ "reused_tokens": 0,+ "new_prompt_tokens": 33084,+ "read_ms": 27722,+ "read_tok_s": 1193.4,+ "generated_tokens": 256,+ "gen_ms": 2679,+ "decode_tok_s": 95.5,+ "target": 32768,+ "rep": 3,+ "chars": 81730+ },+ {+ "ok": true,+ "payload_variant": 0,+ "ttft_s": 107.654,+ "total_s": 107.769,+ "answer_len": 37,+ "usage": {+ "prompt_tokens": 129771,+ "completion_tokens": 256,+ "total_tokens": 130027,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 129771,+ "reused_tokens": 0,+ "new_prompt_tokens": 129771,+ "read_ms": 104198,+ "read_tok_s": 1245.4,+ "generated_tokens": 256,+ "gen_ms": 3348,+ "decode_tok_s": 76.5,+ "target": 128000,+ "rep": 1,+ "chars": 318625+ },+ {+ "ok": true,+ "payload_variant": 0,+ "ttft_s": 106.226,+ "total_s": 107.347,+ "answer_len": 426,+ "usage": {+ "prompt_tokens": 129771,+ "completion_tokens": 256,+ "total_tokens": 130027,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 129771,+ "reused_tokens": 0,+ "new_prompt_tokens": 129771,+ "read_ms": 104058,+ "read_tok_s": 1247.1,+ "generated_tokens": 256,+ "gen_ms": 3076,+ "decode_tok_s": 83.2,+ "target": 128000,+ "rep": 2,+ "chars": 318625+ },+ {+ "ok": true,+ "payload_variant": 0,+ "ttft_s": null,+ "total_s": 107.384,+ "answer_len": 0,+ "usage": {+ "prompt_tokens": 129771,+ "completion_tokens": 256,+ "total_tokens": 130027,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 129771,+ "reused_tokens": 0,+ "new_prompt_tokens": 129771,+ "read_ms": 104149,+ "read_tok_s": 1246.0,+ "generated_tokens": 256,+ "gen_ms": 3025,+ "decode_tok_s": 84.6,+ "target": 128000,+ "rep": 3,+ "chars": 318625+ }+ ],+ "needles": [+ {+ "ok": true,+ "payload_variant": 0,+ "ttft_s": null,+ "total_s": 28.158,+ "text": "",+ "answer_len": 0,+ "usage": {+ "prompt_tokens": 33129,+ "completion_tokens": 32,+ "total_tokens": 33161,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 33129,+ "reused_tokens": 0,+ "new_prompt_tokens": 33129,+ "read_ms": 27759,+ "read_tok_s": 1193.5,+ "generated_tokens": 32,+ "gen_ms": 337,+ "decode_tok_s": 95.1,+ "target": 32768,+ "depth": 10,+ "needle_found": false,+ "chars": 81868+ },+ {+ "ok": true,+ "payload_variant": 0,+ "ttft_s": null,+ "total_s": 28.435,+ "text": "",+ "answer_len": 0,+ "usage": {+ "prompt_tokens": 33129,+ "completion_tokens": 32,+ "total_tokens": 33161,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 33129,+ "reused_tokens": 0,+ "new_prompt_tokens": 33129,+ "read_ms": 28017,+ "read_tok_s": 1182.5,+ "generated_tokens": 32,+ "gen_ms": 352,+ "decode_tok_s": 90.8,+ "target": 32768,+ "depth": 50,+ "needle_found": false,+ "chars": 81868+ },+ {+ "ok": true,+ "payload_variant": 0,+ "ttft_s": null,+ "total_s": 28.337,+ "text": "",+ "answer_len": 0,+ "usage": {+ "prompt_tokens": 33129,+ "completion_tokens": 32,+ "total_tokens": 33161,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 33129,+ "reused_tokens": 0,+ "new_prompt_tokens": 33129,+ "read_ms": 27926,+ "read_tok_s": 1186.3,+ "generated_tokens": 32,+ "gen_ms": 345,+ "decode_tok_s": 92.7,+ "target": 32768,+ "depth": 90,+ "needle_found": false,+ "chars": 81868+ },+ {+ "ok": true,+ "payload_variant": 0,+ "ttft_s": null,+ "total_s": 104.643,+ "text": "",+ "answer_len": 0,+ "usage": {+ "prompt_tokens": 129816,+ "completion_tokens": 32,+ "total_tokens": 129848,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 129816,+ "reused_tokens": 0,+ "new_prompt_tokens": 129816,+ "read_ms": 104030,+ "read_tok_s": 1247.9,+ "generated_tokens": 32,+ "gen_ms": 404,+ "decode_tok_s": 79.3,+ "target": 128000,+ "depth": 10,+ "needle_found": false,+ "chars": 318763+ },+ {+ "ok": true,+ "payload_variant": 0,+ "ttft_s": null,+ "total_s": 104.783,+ "text": "",+ "answer_len": 0,+ "usage": {+ "prompt_tokens": 129816,+ "completion_tokens": 32,+ "total_tokens": 129848,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 129816,+ "reused_tokens": 0,+ "new_prompt_tokens": 129816,+ "read_ms": 104167,+ "read_tok_s": 1246.2,+ "generated_tokens": 32,+ "gen_ms": 394,+ "decode_tok_s": 81.2,+ "target": 128000,+ "depth": 50,+ "needle_found": false,+ "chars": 318763+ },+ {+ "ok": true,+ "payload_variant": 0,+ "ttft_s": null,+ "total_s": 104.54,+ "text": "",+ "answer_len": 0,+ "usage": {+ "prompt_tokens": 129816,+ "completion_tokens": 32,+ "total_tokens": 129848,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 129816,+ "reused_tokens": 0,+ "new_prompt_tokens": 129816,+ "read_ms": 103968,+ "read_tok_s": 1248.6,+ "generated_tokens": 32,+ "gen_ms": 370,+ "decode_tok_s": 86.5,+ "target": 128000,+ "depth": 90,+ "needle_found": false,+ "chars": 318763+ }+ ],+ "notes": [],+ "calibration": {+ "ok": true,+ "payload_variant": 0,+ "ttft_s": null,+ "total_s": 11.234,+ "answer_len": 0,+ "usage": {+ "prompt_tokens": 3256,+ "completion_tokens": 64,+ "total_tokens": 3320,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 3256,+ "reused_tokens": 0,+ "new_prompt_tokens": 3256,+ "read_ms": 10548,+ "read_tok_s": 308.7,+ "generated_tokens": 64,+ "gen_ms": 661,+ "decode_tok_s": 96.8+ },+ "chars_per_token": 2.487562189054726,+ "warmup": {+ "ok": true,+ "payload_variant": 0,+ "ttft_s": null,+ "total_s": 3.527,+ "answer_len": 0,+ "usage": {+ "prompt_tokens": 2098,+ "completion_tokens": 32,+ "total_tokens": 2130,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 2098,+ "reused_tokens": 0,+ "new_prompt_tokens": 2098,+ "read_ms": 3080,+ "read_tok_s": 681.2,+ "generated_tokens": 32,+ "gen_ms": 418,+ "decode_tok_s": 76.5+ },+ "finished": "2026-10-03 13:35:19"+}\ No newline at end of filediff --git a/bench/results/2026-10-03-community-r9700-windows/bench-output-standard.json b/bench/results/2026-10-03-community-r9700-windows/bench-output-standard.jsonnew file mode 100644index 000000000..41ca3c701--- /dev/null+++ b/bench/results/2026-10-03-community-r9700-windows/bench-output-standard.json@@ -0,0 +1,531 @@+{+ "started": "2026-10-03 13:52:34",+ "url": "http://127.0.0.1:8080/v1/chat/completions",+ "model": "qwen3.8-flash-next-iq2_xs",+ "engine_log": "D:\\AI\\Strata\\Strata-main\\Strata-main\\strata-iq2_xs.log",+ "cap_tokens": 256,+ "reps": 3,+ "speed": [+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 4.947,+ "total_s": 7.299,+ "answer_len": 1117,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "stop",+ "usage": {+ "prompt_tokens": 4195,+ "completion_tokens": 236,+ "total_tokens": 4431,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 4195,+ "reused_tokens": 0,+ "new_prompt_tokens": 4195,+ "read_ms": 4902,+ "read_tok_s": 855.8,+ "generated_tokens": 236,+ "gen_ms": 2366,+ "decode_tok_s": 99.8,+ "target": 4096,+ "rep": 1,+ "chars": 10535+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 4.894,+ "total_s": 7.407,+ "answer_len": 1303,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 4198,+ "completion_tokens": 256,+ "total_tokens": 4454,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 4198,+ "reused_tokens": 0,+ "new_prompt_tokens": 4198,+ "read_ms": 4862,+ "read_tok_s": 863.5,+ "generated_tokens": 256,+ "gen_ms": 2528,+ "decode_tok_s": 101.3,+ "target": 4096,+ "rep": 2,+ "chars": 10535+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 5.158,+ "total_s": 7.828,+ "answer_len": 1344,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 4199,+ "completion_tokens": 256,+ "total_tokens": 4455,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 4199,+ "reused_tokens": 0,+ "new_prompt_tokens": 4199,+ "read_ms": 5116,+ "read_tok_s": 820.7,+ "generated_tokens": 256,+ "gen_ms": 2686,+ "decode_tok_s": 95.3,+ "target": 4096,+ "rep": 3,+ "chars": 10535+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 28.18,+ "total_s": 30.851,+ "answer_len": 1318,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 33467,+ "completion_tokens": 256,+ "total_tokens": 33723,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 33467,+ "reused_tokens": 0,+ "new_prompt_tokens": 33467,+ "read_ms": 28096,+ "read_tok_s": 1191.2,+ "generated_tokens": 256,+ "gen_ms": 2687,+ "decode_tok_s": 95.3,+ "target": 32768,+ "rep": 1,+ "chars": 82757+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 28.427,+ "total_s": 31.028,+ "answer_len": 1325,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 33467,+ "completion_tokens": 256,+ "total_tokens": 33723,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 33467,+ "reused_tokens": 0,+ "new_prompt_tokens": 33467,+ "read_ms": 28336,+ "read_tok_s": 1181.1,+ "generated_tokens": 256,+ "gen_ms": 2617,+ "decode_tok_s": 97.8,+ "target": 32768,+ "rep": 2,+ "chars": 82757+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 28.385,+ "total_s": 30.899,+ "answer_len": 1244,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 33467,+ "completion_tokens": 256,+ "total_tokens": 33723,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 33467,+ "reused_tokens": 0,+ "new_prompt_tokens": 33467,+ "read_ms": 28311,+ "read_tok_s": 1182.1,+ "generated_tokens": 256,+ "gen_ms": 2529,+ "decode_tok_s": 101.2,+ "target": 32768,+ "rep": 3,+ "chars": 82757+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 107.492,+ "total_s": 110.365,+ "answer_len": 1255,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "stop",+ "usage": {+ "prompt_tokens": 131388,+ "completion_tokens": 249,+ "total_tokens": 131637,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 131388,+ "reused_tokens": 0,+ "new_prompt_tokens": 131388,+ "read_ms": 107258,+ "read_tok_s": 1225.0,+ "generated_tokens": 249,+ "gen_ms": 2889,+ "decode_tok_s": 86.2,+ "target": 128000,+ "rep": 1,+ "chars": 322636+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 106.766,+ "total_s": 109.597,+ "answer_len": 1332,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 131388,+ "completion_tokens": 256,+ "total_tokens": 131644,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 131388,+ "reused_tokens": 0,+ "new_prompt_tokens": 131388,+ "read_ms": 106535,+ "read_tok_s": 1233.3,+ "generated_tokens": 256,+ "gen_ms": 2848,+ "decode_tok_s": 89.9,+ "target": 128000,+ "rep": 2,+ "chars": 322636+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 106.898,+ "total_s": 109.695,+ "answer_len": 1269,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 131388,+ "completion_tokens": 256,+ "total_tokens": 131644,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 131388,+ "reused_tokens": 0,+ "new_prompt_tokens": 131388,+ "read_ms": 106673,+ "read_tok_s": 1231.7,+ "generated_tokens": 256,+ "gen_ms": 2813,+ "decode_tok_s": 91.0,+ "target": 128000,+ "rep": 3,+ "chars": 322636+ }+ ],+ "needles": [+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 28.522,+ "total_s": 28.617,+ "text": "7-BLUE-MAGNET-4417",+ "answer_len": 18,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "stop",+ "usage": {+ "prompt_tokens": 33512,+ "completion_tokens": 13,+ "total_tokens": 33525,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 33512,+ "reused_tokens": 0,+ "new_prompt_tokens": 33512,+ "read_ms": 28435,+ "read_tok_s": 1178.6,+ "generated_tokens": 13,+ "gen_ms": 110,+ "decode_tok_s": 118.1,+ "target": 32768,+ "depth": 10,+ "needle_found": true,+ "chars": 82895+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 28.16,+ "total_s": 28.295,+ "text": "7-BLUE-MAGNET-4417",+ "answer_len": 18,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "stop",+ "usage": {+ "prompt_tokens": 33512,+ "completion_tokens": 13,+ "total_tokens": 33525,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 33512,+ "reused_tokens": 0,+ "new_prompt_tokens": 33512,+ "read_ms": 28072,+ "read_tok_s": 1193.8,+ "generated_tokens": 13,+ "gen_ms": 151,+ "decode_tok_s": 86.1,+ "target": 32768,+ "depth": 50,+ "needle_found": true,+ "chars": 82895+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 28.325,+ "total_s": 28.418,+ "text": "7-BLUE-MAGNET-4417",+ "answer_len": 18,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "stop",+ "usage": {+ "prompt_tokens": 33512,+ "completion_tokens": 13,+ "total_tokens": 33525,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 33512,+ "reused_tokens": 0,+ "new_prompt_tokens": 33512,+ "read_ms": 28237,+ "read_tok_s": 1186.8,+ "generated_tokens": 13,+ "gen_ms": 109,+ "decode_tok_s": 118.9,+ "target": 32768,+ "depth": 90,+ "needle_found": true,+ "chars": 82895+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 107.021,+ "total_s": 107.181,+ "text": "7-BLUE-MAGNET-4417",+ "answer_len": 18,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "stop",+ "usage": {+ "prompt_tokens": 131433,+ "completion_tokens": 13,+ "total_tokens": 131446,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 131433,+ "reused_tokens": 0,+ "new_prompt_tokens": 131433,+ "read_ms": 106793,+ "read_tok_s": 1230.7,+ "generated_tokens": 13,+ "gen_ms": 176,+ "decode_tok_s": 73.7,+ "target": 128000,+ "depth": 10,+ "needle_found": true,+ "chars": 322774+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 106.749,+ "total_s": 106.888,+ "text": "7-BLUE-MAGNET-4417",+ "answer_len": 18,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "stop",+ "usage": {+ "prompt_tokens": 131433,+ "completion_tokens": 13,+ "total_tokens": 131446,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 131433,+ "reused_tokens": 0,+ "new_prompt_tokens": 131433,+ "read_ms": 106526,+ "read_tok_s": 1233.8,+ "generated_tokens": 13,+ "gen_ms": 156,+ "decode_tok_s": 83.5,+ "target": 128000,+ "depth": 50,+ "needle_found": true,+ "chars": 322774+ },+ {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 107.118,+ "total_s": 107.224,+ "text": "7-BLUE-MAGNET-4417",+ "answer_len": 18,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "stop",+ "usage": {+ "prompt_tokens": 131433,+ "completion_tokens": 13,+ "total_tokens": 131446,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 131433,+ "reused_tokens": 0,+ "new_prompt_tokens": 131433,+ "read_ms": 106885,+ "read_tok_s": 1229.7,+ "generated_tokens": 13,+ "gen_ms": 122,+ "decode_tok_s": 106.2,+ "target": 128000,+ "depth": 90,+ "needle_found": true,+ "chars": 322774+ }+ ],+ "notes": [],+ "calibration": {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 9.323,+ "total_s": 10.08,+ "answer_len": 335,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 3216,+ "completion_tokens": 64,+ "total_tokens": 3280,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 3216,+ "reused_tokens": 0,+ "new_prompt_tokens": 3216,+ "read_ms": 9284,+ "read_tok_s": 346.4,+ "generated_tokens": 64,+ "gen_ms": 771,+ "decode_tok_s": 83.0+ },+ "chars_per_token": 2.5188916876574305,+ "warmup": {+ "ok": true,+ "payload_variant": 0,+ "thinking_off": true,+ "ttft_s": 3.16,+ "total_s": 3.411,+ "answer_len": 94,+ "reasoning_len": 0,+ "reasoning_text": "",+ "finish_reason": "length",+ "usage": {+ "prompt_tokens": 2082,+ "completion_tokens": 32,+ "total_tokens": 2114,+ "prompt_tokens_details": {+ "cached_tokens": 0+ }+ },+ "engine_prompt_tokens": 2082,+ "reused_tokens": 0,+ "new_prompt_tokens": 2082,+ "read_ms": 3128,+ "read_tok_s": 665.7,+ "generated_tokens": 32,+ "gen_ms": 265,+ "decode_tok_s": 120.7+ },+ "finished": "2026-10-03 14:06:59"+}\ No newline at end of filediff --git a/bench/results/2026-10-03-community-r9700-windows/benchmark.py b/bench/results/2026-10-03-community-r9700-windows/benchmark.pynew file mode 100644index 000000000..3e37786d5--- /dev/null+++ b/bench/results/2026-10-03-community-r9700-windows/benchmark.py@@ -0,0 +1,447 @@+#!/usr/bin/env python3+"""+Strata community benchmark harness — standard library only.++Measures prompt processing (prefill) and decode through the local Strata server,+mirroring the method used in bench/results/2026-09-30-community-rtx-5090:++ * synthetic Python-like filler of a requested size,+ * a unique nonce near the start of every request (defeats conversation-prefix+ reuse so every run processes its whole prompt),+ * greedy decoding, fixed output cap,+ * actual token counts taken from the engine's own log line,+ * client-side time-to-first-token and total latency,+ * optional needle-in-a-haystack recall checks.++Outputs bench-output.json, bench-output.md and bench-output.txt next to this file.++Usage (run from the folder that has this file):+ .venv\\Scripts\\python.exe benchmark.py --url http://127.0.0.1:8080/v1/chat/completions \+ --log D:\\AI\\Strata\\Strata-main\\Strata-main\\strata-iq2_xs.log \+ --lengths 4096,32768,128000 --reps 3 --needle-lengths 32768,128000 --needle-depths 10,50,90+"""++from __future__ import annotations++import argparse+import json+import os+import re+import statistics+import sys+import time+import urllib.error+import urllib.request+from pathlib import Path++HERE = Path(__file__).resolve().parent+NEEDLE = "7-BLUE-MAGNET-4417"+PROMPT_LINE = re.compile(+ r"prompt (\d+) tokens = (\d+) reused \+ (\d+) read in (\d+) ms \(([\d.]+) tok/s\), "+ r"(\d+) generated in (\d+) ms \(([\d.]+) tok/s\)"+)+++# ----------------------------------------------------------------------------- prompts+def code_filler(chars: int, seed: int) -> str:+ """Deterministic Python-like filler of roughly `chars` characters."""+ out = []+ n = 0+ size = 0+ while size < chars:+ n += 1+ k = (seed + n) % 97 + 3+ block = (+ f"def transform_{seed:04d}_{n:05d}(value: int, scale: int = {k}) -> int:\n"+ f' """Scale a value by {k} and fold it into the working range."""\n'+ f" folded = (value * scale + {n} * 17) % {1000003 + n}\n"+ f" if folded % {k} == 0:\n"+ f" return folded // {k} + {n}\n"+ f" return folded - {n} * scale\n"+ f"\n"+ )+ out.append(block)+ size += len(block)+ return "".join(out)[:chars]+++def build_prompt(target_tokens: int, seed: int, chars_per_token: float, needle_depth: int | None) -> str:+ """Assemble one benchmark request: instruction + nonce + filler (+ needle)."""+ filler_chars = max(2000, int(target_tokens * chars_per_token))+ body = code_filler(filler_chars, seed)+ nonce = f"{seed:04d}-{int(time.time() * 1000) % 100000:05d}"+ head = (+ f"You are reviewing a Python file. The file starts with the marker NONCE {nonce}.\n"+ f"Explain in three short paragraphs what the functions in this file do.\n\n"+ f"# NONCE {nonce}\n"+ )+ if needle_depth is not None:+ cut = int(len(body) * needle_depth / 100.0)+ # move the cut to the next newline so the file stays syntactically plausible+ cut = body.find("\n", cut)+ cut = len(body) if cut < 0 else cut+ body = body[:cut] + f'\nVAULT_CODE = "{NEEDLE}" # keep this exact value\n' + body[cut:]+ head = (+ f"You are reviewing a Python file. The file starts with the marker NONCE {nonce}.\n"+ f"Answer the question about the file at the end, using only what the file says.\n\n"+ f"# NONCE {nonce}\n"+ )+ tail = "\n\nQuestion: what is the exact value assigned to VAULT_CODE in this file? " \+ "Answer with the value only, nothing else.\n"+ else:+ tail = "\n\nAnswer in English, three short paragraphs.\n"+ return head + body + tail+++# ----------------------------------------------------------------------------- engine log+class EngineLog:+ def __init__(self, path: Path | None):+ self.path = path+ self.offset = 0+ if path and path.exists():+ self.offset = path.stat().st_size++ def new_lines(self) -> list[str]:+ if not self.path or not self.path.exists():+ return []+ try:+ with self.path.open("r", encoding="utf-8", errors="replace") as fh:+ fh.seek(self.offset)+ data = fh.read()+ self.offset = fh.tell()+ except OSError:+ return []+ return [ln.strip() for ln in data.replace("\r", "\n").split("\n") if ln.strip()]++ def last_request_stats(self) -> dict | None:+ for line in reversed(self.new_lines()):+ m = PROMPT_LINE.search(line)+ if m:+ return {+ "engine_prompt_tokens": int(m.group(1)),+ "reused_tokens": int(m.group(2)),+ "new_prompt_tokens": int(m.group(3)),+ "read_ms": int(m.group(4)),+ "read_tok_s": float(m.group(5)),+ "generated_tokens": int(m.group(6)),+ "gen_ms": int(m.group(7)),+ "decode_tok_s": float(m.group(8)),+ }+ return None+++# ----------------------------------------------------------------------------- HTTP+def post_chat(url: str, payload: dict, timeout: int):+ """POST /v1/chat/completions. Returns (ttft_s, total_s, text, reasoning, usage, finish_reason)."""+ body = json.dumps(payload).encode()+ req = urllib.request.Request(url, data=body, headers={"Content-Type": "application/json"})+ started = time.time()+ ttft = None+ text_parts: list[str] = []+ reasoning_parts: list[str] = []+ usage = None+ finish = None+ with urllib.request.urlopen(req, timeout=timeout) as resp:+ ctype = resp.headers.get("Content-Type", "")+ if "text/event-stream" in ctype:+ for raw in resp:+ line = raw.decode("utf-8", "replace").strip()+ if not line.startswith("data:"):+ continue+ chunk = line[5:].strip()+ if chunk in ("", "[DONE]"):+ continue+ try:+ obj = json.loads(chunk)+ except json.JSONDecodeError:+ continue+ if obj.get("usage"):+ usage = obj["usage"]+ for choice in obj.get("choices", []):+ if choice.get("finish_reason"):+ finish = choice["finish_reason"]+ delta = choice.get("delta") or {}+ piece = delta.get("content") or ""+ think = delta.get("reasoning_content") or delta.get("reasoning") or ""+ if think:+ reasoning_parts.append(think)+ if piece:+ if ttft is None:+ ttft = time.time() - started+ text_parts.append(piece)+ else:+ obj = json.loads(resp.read().decode("utf-8", "replace"))+ usage = obj.get("usage")+ for choice in obj.get("choices", []):+ finish = choice.get("finish_reason") or finish+ msg = choice.get("message") or {}+ content = msg.get("content") or ""+ if msg.get("reasoning_content"):+ reasoning_parts.append(msg["reasoning_content"])+ if content and ttft is None:+ ttft = time.time() - started+ text_parts.append(content)+ total = time.time() - started+ return ttft, total, "".join(text_parts), "".join(reasoning_parts), usage, finish+++def detect_model(url: str) -> str:+ base = url.split("/v1/")[0]+ try:+ with urllib.request.urlopen(base + "/v1/models", timeout=15) as resp:+ data = json.loads(resp.read().decode())+ items = data.get("data") or data.get("models") or []+ if items:+ return items[0].get("id") or items[0].get("name") or "strata"+ except Exception:+ pass+ return "strata"+++# ----------------------------------------------------------------------------- measurement+def one_request(url: str, model: str, prompt: str, cap: int, log: EngineLog, timeout: int) -> dict:+ base = {+ "model": model,+ "messages": [{"role": "user", "content": prompt}],+ "temperature": 0,+ "max_tokens": cap,+ }+ # "reasoning_effort": "none" -> the engine renders the prompt without thinking+ # (serve/frontend.py EFFORT map). Without it the model spends the whole output cap+ # on reasoning_content and message.content stays empty.+ no_think = dict(base, reasoning_effort="none")+ variants = [+ dict(no_think, stream=True, stream_options={"include_usage": True}),+ dict(no_think, stream=True),+ dict(no_think, stream=False),+ dict(base, stream=True, stream_options={"include_usage": True}),+ dict(base, stream=False),+ ]+ row: dict = {"ok": False}+ last_error = None+ for idx, payload in enumerate(variants):+ try:+ ttft, total, text, reasoning, usage, finish = post_chat(url, payload, timeout)+ row.update(+ ok=True,+ payload_variant=idx,+ thinking_off="reasoning_effort" in payload,+ ttft_s=round(ttft, 3) if ttft is not None else None,+ total_s=round(total, 3),+ text=text,+ answer_len=len(text),+ reasoning_len=len(reasoning),+ reasoning_text=reasoning[:2000],+ finish_reason=finish,+ )+ if usage:+ row["usage"] = usage+ last_error = None+ break+ except urllib.error.HTTPError as exc:+ body = exc.read()[:400].decode("utf-8", "replace")+ last_error = f"HTTP {exc.code}: {body}"+ if exc.code not in (400, 404, 415, 422):+ break+ except Exception as exc: # noqa: BLE001+ last_error = f"{type(exc).__name__}: {exc}"+ break+ if last_error:+ row["error"] = last_error+ stats = log.last_request_stats()+ if stats:+ row.update(stats)+ # Bind the log line to this request: the server reports the same prompt token+ # count in the response usage. A mismatch means the line belongs to another+ # request (or none) and the row must not be trusted.+ server_tokens = (row.get("usage") or {}).get("prompt_tokens")+ if server_tokens is None:+ row["pairing_ok"] = None+ else:+ row["pairing_ok"] = abs(int(server_tokens) - int(stats["engine_prompt_tokens"])) <= 1+ if not row["pairing_ok"]:+ row["pairing_note"] = (f"server reported {server_tokens} prompt tokens, the engine log line "+ f"has {stats['engine_prompt_tokens']} - the log line may belong to another request")+ return row+++def summarise(rows: list[dict]) -> str:+ cols = ["target", "actual prompt tok", "reused", "new read", "prefill tok/s", "read s",+ "gen tok", "decode tok/s", "thinking off", "answer len", "finish", "TTFT s", "total s"]+ lines = ["| " + " | ".join(cols) + " |", "|" + "---|" * len(cols)]+ for r in rows:+ if not r.get("ok"):+ lines.append("| " + " | ".join([str(r.get("target"))] ++ [f"FAILED: {str(r.get('error'))[:60]}"] ++ [""] * (len(cols) - 2)) + " |")+ continue+ vals = [+ r.get("target"), r.get("engine_prompt_tokens", "?"), r.get("reused_tokens", "?"),+ r.get("new_prompt_tokens", "?"), r.get("read_tok_s", "?"),+ f"{(r.get('read_ms') or 0) / 1000:.1f}",+ r.get("generated_tokens", "?"), r.get("decode_tok_s", "?"),+ r.get("thinking_off"), r.get("answer_len"), r.get("finish_reason"),+ r.get("ttft_s"), r.get("total_s"),+ ]+ lines.append("| " + " | ".join(str(v) for v in vals) + " |")+ groups: dict[int, list[float]] = {}+ for r in rows:+ if r.get("ok") and r.get("read_tok_s"):+ groups.setdefault(r.get("target"), []).append(r["read_tok_s"])+ lines.append("")+ for target, vals in sorted(groups.items()):+ dec = [r["decode_tok_s"] for r in rows if r.get("ok") and r.get("target") == target and r.get("decode_tok_s")]+ lines.append(+ f"* {target} prompt tokens: prefill median {statistics.median(vals):.1f} tok/s "+ f"(range {min(vals):.1f}-{max(vals):.1f}, n={len(vals)})"+ + (f"; decode median {statistics.median(dec):.1f} tok/s "+ f"(range {min(dec):.1f}-{max(dec):.1f})" if dec else "")+ )+ return "\n".join(lines)+++def main() -> int:+ ap = argparse.ArgumentParser()+ ap.add_argument("--url", default="http://127.0.0.1:8080/v1/chat/completions")+ ap.add_argument("--log", default=r"D:\AI\Strata\Strata-main\Strata-main\strata-iq2_xs.log")+ ap.add_argument("--lengths", default="4096,32768,128000")+ ap.add_argument("--reps", type=int, default=3)+ ap.add_argument("--needle-lengths", default="32768,128000")+ ap.add_argument("--needle-depths", default="10,50,90")+ ap.add_argument("--cap", type=int, default=256)+ ap.add_argument("--timeout", type=int, default=1800)+ ap.add_argument("--wait-ready", type=int, default=0,+ help="poll /v1/models until the engine answers, up to this many seconds")+ ap.add_argument("--tag", default="", help="suffix for the output files (bench-output-<tag>.json)")+ ap.add_argument("--skip-needles", action="store_true")+ ap.add_argument("--model", default=None)+ args = ap.parse_args()++ log = EngineLog(Path(args.log) if args.log else None)+ model = args.model or detect_model(args.url)+ print(f"server : {args.url}")+ print(f"model id : {model}")+ print(f"engine : {args.log}")+ if args.tag:+ print(f"tag : {args.tag}")++ if args.wait_ready:+ base = args.url.split("/v1/")[0]+ ready = False+ deadline = time.time() + args.wait_ready+ while time.time() < deadline:+ try:+ with urllib.request.urlopen(base + "/v1/models", timeout=10) as resp:+ if resp.status == 200:+ ready = True+ break+ except Exception:+ pass+ print(" waiting for the engine to come up ...", flush=True)+ time.sleep(5)+ if not ready:+ print(f"the engine did not answer within {args.wait_ready} s - stopping.")+ return 2+ print("engine is up\n", flush=True)++ results: dict = {+ "started": time.strftime("%Y-%m-%d %H:%M:%S"),+ "url": args.url,+ "model": model,+ "engine_log": args.log,+ "cap_tokens": args.cap,+ "reps": args.reps,+ "speed": [],+ "needles": [],+ "notes": [],+ }++ # --- calibration: one small request to learn characters-per-token -----------+ print("\n[calibration] 8,000-char request ...", flush=True)+ cal_prompt = ("You are reviewing a Python file.\n\n# NONCE 0001\n"+ + code_filler(8000, 1) + "\n\nAnswer in one short paragraph.\n")+ cal = one_request(args.url, model, cal_prompt, 64, log, args.timeout)+ chars = 8000+ if cal.get("ok") and cal.get("engine_prompt_tokens"):+ # prompt tokens includes the instruction wrapper (~40 tok)+ ratio = (cal["engine_prompt_tokens"] - 40) / chars # tokens per character+ ratio = min(1.5, max(0.15, ratio)) # sane bounds+ chars_per_token = 1.0 / ratio+ print(f"[calibration] {cal['engine_prompt_tokens']} prompt tokens for {chars} chars "+ f"-> {chars_per_token:.3f} chars/token", flush=True)+ else:+ chars_per_token = 4.0+ results["notes"].append("calibration failed; assumed 4.0 chars/token")+ print(f"[calibration] FAILED ({cal.get('error')}); assuming 4.0 chars/token", flush=True)+ results["calibration"] = {k: v for k, v in cal.items() if k != "text"}+ results["chars_per_token"] = chars_per_token+ print("warming up (one 2,000-token request) ...", flush=True)+ warm = one_request(args.url, model, build_prompt(2000, 7, chars_per_token, None), 32, log, args.timeout)+ results["warmup"] = {k: v for k, v in warm.items() if k != "text"}++ # --- speed runs ------------------------------------------------------------+ seed = 100+ for target in [int(x) for x in args.lengths.split(",") if x.strip()]:+ for rep in range(1, args.reps + 1):+ seed += 1+ prompt = build_prompt(target, seed, chars_per_token, None)+ print(f"[speed] target {target} rep {rep}/{args.reps} "+ f"({len(prompt):,} chars) ...", flush=True)+ row = one_request(args.url, model, prompt, args.cap, log, args.timeout)+ row.update(target=target, rep=rep, chars=len(prompt))+ row.pop("text", None)+ results["speed"].append(row)+ if row.get("ok"):+ print(f" -> prompt {row.get('engine_prompt_tokens')} tok, "+ f"reused {row.get('reused_tokens')}, prefill {row.get('read_tok_s')} tok/s, "+ f"decode {row.get('decode_tok_s')} tok/s, TTFT {row.get('ttft_s')} s", flush=True)+ else:+ print(f" -> FAILED: {row.get('error')}", flush=True)++ # --- needle checks ---------------------------------------------------------+ if not args.skip_needles:+ for target in [int(x) for x in args.needle_lengths.split(",") if x.strip()]:+ for depth in [int(x) for x in args.needle_depths.split(",") if x.strip()]:+ seed += 1+ prompt = build_prompt(target, seed, chars_per_token, depth)+ print(f"[needle] target {target} depth {depth}% ...", flush=True)+ row = one_request(args.url, model, prompt, 32, log, args.timeout)+ found = NEEDLE in ((row.get("text") or "") + (row.get("reasoning_text") or ""))+ row.update(target=target, depth=depth, needle_found=found, chars=len(prompt))+ results["needles"].append(row)+ print(f" -> needle {'FOUND' if found else 'MISSED'}; "+ f"prompt {row.get('engine_prompt_tokens')} tok, "+ f"prefill {row.get('read_tok_s')} tok/s", flush=True)++ results["finished"] = time.strftime("%Y-%m-%d %H:%M:%S")+ results["tag"] = args.tag+ suffix = f"-{args.tag}" if args.tag else ""+ out_json = HERE / f"bench-output{suffix}.json"+ out_json.write_text(json.dumps(results, indent=2), encoding="utf-8")++ table = summarise(results["speed"])+ needle_lines = ["", "Needle checks (exact string recall):"]+ for r in results["needles"]:+ needle_lines.append(+ f"* {r.get('target')} tokens, depth {r.get('depth')}%: "+ f"{'FOUND' if r.get('needle_found') else 'MISSED'} "+ f"(prompt {r.get('engine_prompt_tokens')} tok, prefill {r.get('read_tok_s')} tok/s)"+ )+ report = (+ f"# Strata benchmark output\n\n"+ f"started {results['started']}, finished {results['finished']}\n"+ f"server {args.url}, model id `{model}`, output cap {args.cap} tokens, "+ f"{args.reps} reps per length\n\n## Speed\n\n{table}\n"+ + ("\n".join(needle_lines) if results["needles"] else "") + "\n"+ )+ (HERE / f"bench-output{suffix}.md").write_text(report, encoding="utf-8")+ (HERE / f"bench-output{suffix}.txt").write_text(report, encoding="utf-8")+ print("\n" + report)+ print(f"saved: {out_json}")+ print(f"saved: {HERE / f'bench-output{suffix}.md'}")+ print("\nDONE - tell Hermes the run is finished.")+ return 0+++if __name__ == "__main__":+ sys.exit(main())diff --git a/bench/results/2026-10-03-community-r9700-windows/pilot-0.1.36-measured-runs.md b/bench/results/2026-10-03-community-r9700-windows/pilot-0.1.36-measured-runs.mdnew file mode 100644index 000000000..d9384d019--- /dev/null+++ b/bench/results/2026-10-03-community-r9700-windows/pilot-0.1.36-measured-runs.md@@ -0,0 +1,25 @@+# Strata R9700 / Windows 11 - all measured requests++| context | reused | new read | prefill tok/s | read time | generated | decode tok/s |+|---|---|---|---|---|---|---|+| 61 | 0 | 61 | **8.1** | 7.6 s | 228 | 94.4 |+| 93 | 0 | 93 | **2.4** | 39.0 s | 123 | 79.3 |+| 201 | 0 | 201 | **19.1** | 10.5 s | 240 | 65.6 |+| 309 | 0 | 309 | **17.4** | 17.7 s | 234 | 93.1 |+| 406 | 0 | 406 | **21.5** | 18.9 s | 124 | 95.6 |+| 492 | 401 | 91 | **19.5** | 4.7 s | 167 | 85.1 |+| 583 | 0 | 583 | **67.2** | 8.7 s | 135 | 93.4 |+| 669 | 578 | 91 | **13.2** | 6.9 s | 120 | 91.6 |+| 752 | 664 | 88 | **17.7** | 5.0 s | 264 | 84.2 |+| 1,043 | 747 | 296 | **33.1** | 8.9 s | 1,330 | 92.7 |+| 1,997 | 1,038 | 959 | **183.8** | 5.2 s | 2,083 | 102.6 |+| 11,042 | 1,992 | 9,050 | **417.4** | 21.7 s | 1,103 | 87.2 |+| 53,470 | 11,037 | 42,433 | **1,100.2** | 38.6 s | 526 | 74.9 |+| 103,442 | 56 | 103,386 | **1,203.5** | 85.9 s | 682 | 72.8 |+| 125,247 | 53,465 | 71,782 | **1,033.0** | 69.5 s | 753 | 83.6 |+| 125,472 | 0 | 125,472 | **1,275.1** | 98.4 s | 136 | 70.1 |+| 175,055 | 103,437 | 71,618 | **1,072.3** | 66.8 s | 485 | 68.6 |+| 228,869 | 125,467 | 103,402 | **977.6** | 105.8 s | 608 | 66.7 |+| 229,032 | 0 | 229,032 | **1,097.2** | 208.7 s | 125 | 70.2 |+| 229,106 | 229,027 | 79 | **14.9** | 5.3 s | 322 | 71.5 |+| 246,700 | 175,050 | 71,650 | **964.9** | 74.3 s | 437 | 72.9 |diff --git a/bench/results/2026-10-03-community-r9700-windows/pilot-0.1.36-reading-scaling.md b/bench/results/2026-10-03-community-r9700-windows/pilot-0.1.36-reading-scaling.mdnew file mode 100644index 000000000..39a6695df--- /dev/null+++ b/bench/results/2026-10-03-community-r9700-windows/pilot-0.1.36-reading-scaling.md@@ -0,0 +1,26 @@+# Strata R9700 / Windows 11 — file-read scaling (measured, from strata-iq2_xs.log deltas)++Counter: `strata serve: expert tiers: ... since the start RAM <n> blobs, files <n> blobs <MB> MB read (the GGUF in place)`+Deltas between consecutive requests inside the SAME engine session.++| prompt tokens | new tokens read | file MB read this request | MB per new token |+|---|---|---|---|+| 406 | 406 | +581 | 1.43 |+| 1,042 | 296 | +727 | 2.46 |+| 1,997 | 959 | +1,639 | 1.71 |+| 11,042 | 9,050 | +12,707 | 1.40 |+| 53,470 | 42,433 | +31,666 | 0.75 |+| 125,247 | 71,782 | +45,238 | 0.63 |+| 228,869 | 103,402 | +65,285 | 0.63 |++(earlier small requests: 406 tok → +581 MB, 492 tok/91 new → +581 MB)++## Findings+- File reads scale **with prompt length** (~0.6–1.4 MB per new token) → the PLE/expert data is streamed from the SSD per prompt token (matches docs: "a few rows per token through the OS cache"). This caps prefill at ~1,000–1,300 tok/s.+- NOT a one-time cost per engine start (earlier hypothesis — corrected).+- Genuine one-off: the FIRST request after each engine start (93 tok took 39.0 s vs an identical ~91-tok later request at 4.7 s).+- Per-request fixed overhead ≈ 4.4 s (linear fit a=4.4 s, marginal rate ≈ 1,300 tok/s; a naive fit including the cold-start outlier gives a=12.4 s).++## Cold-start evidence+`strata generate: resident RAM mode: 6.95 GiB of experts in RAM (page-locked), 19403 in the GPU cache`+`FileExpertSource: mapped pinned cache complement ready: resident 6.95 GiB, pinned 6.95 GiB` (identical with --resident-budget-gib 16 and 30)diff --git a/bench/results/2026-10-03-community-r9700-windows/run-iq2_xs-default.bat b/bench/results/2026-10-03-community-r9700-windows/run-iq2_xs-default.batnew file mode 100644index 000000000..e953bad15--- /dev/null+++ b/bench/results/2026-10-03-community-r9700-windows/run-iq2_xs-default.bat@@ -0,0 +1,5 @@+@echo off+title Strata IQ2_XS (default)+cd /d "D:\AI\Strata\Strata-main\Strata-main"+"D:\AI\Strata\Strata-main\Strata-main\.venv\Scripts\python.exe" "D:\AI\Strata\Strata-main\Strata-main\serve\server.py" "--engine" "strata" "--config" "D:\AI\Strata\Strata-main\Strata-main\strata-iq2_xs.json" "--port" "8080" "--open"+if errorlevel 1 pausediff --git a/bench/results/2026-10-03-community-r9700-windows/run-iq2_xs-fused.bat b/bench/results/2026-10-03-community-r9700-windows/run-iq2_xs-fused.batnew file mode 100644index 000000000..ad927e049--- /dev/null+++ b/bench/results/2026-10-03-community-r9700-windows/run-iq2_xs-fused.bat@@ -0,0 +1,7 @@+@echo off+title Strata IQ2_XS (STRATA_PF_FUSED=1)+cd /d "D:\AI\Strata\Strata-main\Strata-main"+set STRATA_PF_FUSED=1+echo Starting Strata with STRATA_PF_FUSED=1+"D:\AI\Strata\Strata-main\Strata-main\.venv\Scripts\python.exe" "D:\AI\Strata\Strata-main\Strata-main\serve\server.py" "--engine" "strata" "--config" "D:\AI\Strata\Strata-main\Strata-main\strata-iq2_xs.json" "--port" "8080" "--open"+if errorlevel 1 pausediff --git a/bench/results/2026-10-03-community-r9700-windows/run-iq2_xs-plebatch0.bat b/bench/results/2026-10-03-community-r9700-windows/run-iq2_xs-plebatch0.batnew file mode 100644index 000000000..62353cb7e--- /dev/null+++ b/bench/results/2026-10-03-community-r9700-windows/run-iq2_xs-plebatch0.bat@@ -0,0 +1,7 @@+@echo off+title Strata IQ2_XS (STRATA_PLE_BATCH=0)+cd /d "D:\AI\Strata\Strata-main\Strata-main"+set STRATA_PLE_BATCH=0+echo Starting Strata with STRATA_PLE_BATCH=0+"D:\AI\Strata\Strata-main\Strata-main\.venv\Scripts\python.exe" "D:\AI\Strata\Strata-main\Strata-main\serve\server.py" "--engine" "strata" "--config" "D:\AI\Strata\Strata-main\Strata-main\strata-iq2_xs.json" "--port" "8080" "--open"+if errorlevel 1 pausediff --git a/bench/results/2026-10-03-community-r9700-windows/strata-iq2_xs.json b/bench/results/2026-10-03-community-r9700-windows/strata-iq2_xs.jsonnew file mode 100644index 000000000..c7488be58--- /dev/null+++ b/bench/results/2026-10-03-community-r9700-windows/strata-iq2_xs.json@@ -0,0 +1,46 @@+{+ "exe": "D:\\AI\\Strata\\Strata-main\\Strata-main\\engine\\strata.exe",+ "args": [+ "--pack",+ "D:\\AI\\Strata\\Strata-main\\Strata-data\\packs\\iq2_xs",+ "--native",+ "D:\\AI\\Strata\\Strata-main\\Strata-data\\models\\IQ2_XS\\Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf",+ "--ple-gguf",+ "D:\\AI\\Strata\\Strata-main\\Strata-data\\models\\IQ2_XS\\Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf",+ "--expert-profile",+ "D:\\AI\\Strata\\Strata-main\\Strata-main\\data\\expert-profile.bin",+ "--expert-cache",+ "auto",+ "--prefill",+ "auto",+ "--spec",+ "4",+ "--spec-min-p",+ "0.5",+ "--mtp",+ "D:\\AI\\Strata\\Strata-main\\Strata-data\\mtp\\rt",+ "--max-context",+ "262144",+ "--kv",+ "int8",+ "--kv-resident",+ "32768",+ "--mmap-experts",+ "--resident-budget-gib",+ "16"+ ],+ "cwd": "D:\\AI\\Strata\\Strata-main\\Strata-main",+ "tokenizer": "D:\\AI\\Strata\\Strata-main\\Strata-data\\packs\\iq2_xs\\tokenizer",+ "model_name": "qwen3.8-flash-next-iq2_xs",+ "log": "D:\\AI\\Strata\\Strata-main\\Strata-main\\strata-iq2_xs.log",+ "lib_dirs": [+ "D:\\AI\\Strata\\Strata-main\\Strata-main\\engine\\rocm\\bin"+ ],+ "port": 8080,+ "backend": "hip",+ "env": {+ "STRATA_HIPBLASLT_TUNING": "D:\\AI\\Strata\\Strata-main\\Strata-main\\tools\\hip\\gfx1201-hipblaslt-100500.txt"+ },+ "gpu": 0,+ "gpus_asked": true+}\ No newline at end of file