okami.mom/strata

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

HarukiOtakubench: Windows 11 + Radeon AI PRO R9700 (gfx1201), IQ2_XS, 4K to 248K prompt tokens (#618)34ee68774

main
21.4 KiB280 linesraw

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:

QuantityClassCross-check inside the packet
read_ms, gen_msengine timingClient 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_sengine-derivedRecompute 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 tokensengine stateLog line and API usage agree 52/52 — two engine routes, not an independent one; no external tokenizer exists in the packet
reused_tokens = 0engine stateNo client-visible cache state; the per-request nonce is design intent, not proof
finish_reasonengine responseSelf-consistency only (length ↔ generated == cap)
cache/KV/PCIe/blob countersengine stateNone — used only to narrate the SSD-bound explanation
ttft_s, total_s, answer_lenclientInternally consistent; answer_len/generated_tokens = 1.4–5.4 chars/token is an order-of-magnitude check only
needle_foundclientFully re-runnable (needle rows keep their text)
GPU model, engine version, configassertionLog 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.

1# Method detail and disclosures — R9700 / Windows / Strata 0.1.38 benchmark
2
3This file carries the full method detail, the complete disclosure list and every known
4anomaly of the packet `bench/results/2026-10-03-community-r9700-windows/`. The report itself
5(`README.md`) states the results and their limits in brief and points here.
6
7Everything below is derived from the attached files (`benchmark.py`, the nine
8`bench-output*.json`, `engine-0.1.38.log`, `strata-iq2_xs.json`, the three launchers, the
9`pilot-0.1.36-*` files) or from the upstream repository.
10
11## 1. What the harness does, exactly
12
131. **Sizing is in characters, twice removed from tokens.** `build_prompt` computes
14   `filler_chars = max(2000, target_tokens * chars_per_token)`, generates deterministic
15   Python-like text, and wraps it in a fixed instruction block plus an answer tail. The
16   wrapper is extra text not counted in the target. The real prompt size is whatever the
17   tokenizer produced, which is why rows are reported against `engine_prompt_tokens`.
182. **`chars_per_token` comes from one 8,000-character request** (output cap 64): the harness
19   computes `(engine_prompt_tokens - 40) / 8000`, clamps it to `[0.15, 1.5]`, and inverts it.
20   It measured **2.5189 = 1000/397** for the reported runs and **2.4876 = 1000/402** in the
21   void attempt (whose calibration/warm-up prompts were 3,256/2,098 tokens rather than
22   3,216/2,082) — i.e. the void attempt came from an earlier harness revision.
233. **The JSON key `calibration` is that sizing request's row**, not the ratio; the ratio is
24   the sibling key `chars_per_token`. A reader looking for "calibration" will find a request
25   log. (The config enables no engine calibration and no experimental speed projection.)
264. **Cached-prefix reuse is deliberately defeated.** Every prompt embeds a fresh
27   time-based nonce near its start, so the engine cannot match a cached prefix and
28   `reused_tokens` is 0 for every reported run. That the engine can cache is visible in the
29   same log: line 1 is a non-harness request with `175050 reused + 71650 read`.
30   `new_prompt_tokens` and `read_tok_s` are the **fresh** tokens and their rate; here they
31   coincide with the totals, elsewhere they would not.
325. **Payload and sampling.** One `user` message, `temperature: 0`, `max_tokens` 256 for the
33   speed and needle runs; no system message, no seed, no top-p/top-k/penalty. Reasoning is
34   disabled with `reasoning_effort: "none"`. Five payload variants exist (stream/non-stream ×
35   thinking off/on); the files record `payload_variant: 0` everywhere, i.e. only the
36   streaming, reasoning-off, usage-included variant produced the reported data. Because no
37   seed is sent and speculative decoding plus GPU expert-cache rounding apply, repeats are
38   **not** bit-reproducible; per-run answer text was dropped, so this cannot be checked here.
396. **Readiness wait off.** `--wait-ready` exists but its default is 0, so no readiness poll
40   ran in these runs; the harness started issuing requests as soon as the script ran.
417. **Model detection can fall back.** `detect_model` reads `/v1/models` and falls back to the
42   literal string `strata`; the standard/240K/void files carry
43   `qwen3.8-flash-next-iq2_xs`, the six A/B files carry `strata`, i.e. the endpoint did not
44   answer `/v1/models` in those six runs. `strata` is not a model id.
458. **An HTTP-200 with empty content counts as success.** A variant is retried only on
46   400/404/415/422; `ok: true` therefore does **not** imply an answer was produced. In the
47   void attempt 13 of the 15 rows are empty (`answer_len: 0`, `ttft_s: null` on the 7 empty
48   speed rows) because the output went to `reasoning_content` (reasoning was still on) — the
49   other two rows returned 37 and 426 characters. `ttft_s` is set only when the
50   first **content** delta arrives. `finish_reason: "length"` means the output hit
51   `max_tokens`; `"stop"` means a natural end.
529. **Engine-reported vs measured.** From the engine log line
53   `prompt N tokens = R reused + M read in T ms (X tok/s), G generated in D ms (Y tok/s)`:
54   `engine_prompt_tokens`, `reused_tokens`, `new_prompt_tokens`, `read_ms`, `read_tok_s`,
55   `generated_tokens`, `gen_ms`, `decode_tok_s` — all engine-side. Client-side: `ttft_s`
56   (request start → first content delta) and `total_s` (whole HTTP call). The engine's
57   `read_ms` excludes HTTP, templating and queueing, so `ttft_s` > `read_ms` by 32–414 ms
58   here. No "generated tokens ÷ total request time" figure is used anywhere in the report.
5910. **Log-line attribution is by construction probabilistic.** The harness records the file
60    offset when it starts, reads only appended lines, and takes the **last** matching line as
61    the current request's, consuming lines as it reads. It can mis-attribute (a stray line
62    from another request, or a line written after the response, which is then lost). The
63    shipped script adds a `pairing_ok`/`pairing_note` cross-check against
64    `usage.prompt_tokens`; **no row in any of the nine files carries it**, because the check
65    was added after the runs. It was re-run by hand over the files: all 69 rows that carry a
66    `usage` block (36 measured, 15 void, 18 calibration/warm-up) match the engine's token
67    count within ±1, and no `read_ms` value repeats, so no line was consumed twice.
6811. **Failure/retry path is unexercised.** No row in the nine files has `ok: false` or an
69    `error` field, so every reported number is a first-try (variant 0) success.
7012. **Fields dropped or capped before writing.** `text` is dropped for calibration, warm-up
71    and every speed row (`row.pop("text")`) but kept for needles; `reasoning_text` is
72    truncated to 2,000 characters; `usage` is stored only if the server returned it; engine
73    fields only if a log line was matched. The harness never parses the IO/tier counters —
74    every SSD figure in the report comes from the log, not from the harness.
7513. **Run configuration not stored.** `--lengths`, `--needle-lengths`, `--needle-depths`,
76    `--skip-needles` and `--wait-ready` are not recorded in the JSON; they are only inferable
77    from the rows that exist.
7814. **The top-level `cap_tokens: 256` is the speed/needle cap only.** The calibration rows
79    generated 64 tokens and the warm-up rows 32, and those caps are recorded nowhere, so
80    `finish_reason: "length"` sits below the only stated cap on those 18 rows.
8115. **Medians are per metric.** `read_tok_s` and `decode_tok_s` are summarised separately, so
82    a row can contribute to one group and not the other; any ratio computed from two medians
83    (e.g. the curve fit in the report, or a prefill:decode ratio) is an approximation, not a
84    median of per-run ratios.
8516. **The engine-start read is not a request's read.** The log's cumulative counter
86    (`expert tiers: ... files N blobs X MB read`) includes ≈26.7 GB of start-up reads folded
87    into whichever request runs first. Derived two independent ways: a first 3,216-token
88    calibration reads 31,214.5 MB against 4,473 MB for the same prompt mid-session
89    (26,741 MB), and 175,996.2 − 149,217.3 MB = 26,779 MB in the other session. Every
90    per-request figure in the report is a **within-session delta**, never a raw first line.
91    Implied sustained read rates from those deltas: ≈1.07–1.13 GB/s at 4K, ≈0.94 at 32K,
92    ≈0.77 at 128K, ≈0.68 at 248K (MB/s medians 1,120 / 940 / 771 / 680).
9317. **Draft acceptance** is the log's `drafts accepted A of D` on each request: 62.1–83.8 % on
94    the twelve headline runs, 57–100 % across all 36 measured rows (the low end is a 13-token
95    needle generation, 8 of 14). The JSONs do not carry it.
9618. **Units.** Capacities are GiB (Windows' "GB" values converted; the engine prints MiB and
97    GiB). Read volumes are MB and read rates GB/s exactly as the engine's counter prints them.
98    Token counts are integers as logged.
9919. **A ~1-in-10 start differs.** `docs/AMD_HIP_PERFORMANCE.md` records that individual
100    observations "do not establish confidence intervals or a general rate at every context
101    length", and the engine's own cache banner notes the GPU rounds differently from the CPU.
102    Repeats here are not bit-reproducible: no seed is sent, and speculative decoding plus
103    expert-cache rounding apply.
104
105## 2. Files, sessions and labels
106
107- **Nine result files, seven engine sessions.** `bench-output-standard`, the void attempt and
108  `bench-output-240k` all sit between log lines 55 and 270 — one engine session (started at
109  line 31, next `session is up` at line 299); each A/B leg is its own session (lines 299,
110  375, 451, 528, 605, 681). File boundaries are therefore not session boundaries, and the
111  three files' `started` timestamps do not imply engine restarts.
112- **No session id anywhere**, and the same prompt size recurs inside a session (33,462–33,467
113  four times; 4,195–4,199 three times; 3,216/2,082 in all seven sessions), so a row cannot be
114  bound to an engine session by token count alone.
115- **The log has no timestamps**; the JSON `started`/`finished` are local-time strings with no
116  timezone, so log lines cannot be aligned with them in wall-clock terms.
117- **Two log requests are in no result file**: line 1, `246700 tokens = 175050 reused + 71650`
118  (this is the last row of the 0.1.36 pilot table; it is before the first 0.1.38 session and
119  is the only line in the file with reuse), and line 55, `246933 tokens = 0 reused + 246933`
120  (a 0.1.38 request the harness did not produce). 71 log requests = 69 recorded + these 2.
121- **A/B legs and their launchers.** Only three launchers were saved:
122  `run-iq2_xs-default.bat` (no env var), `run-iq2_xs-fused.bat` (`STRATA_PF_FUSED=1`) and
123  `run-iq2_xs-plebatch0.bat` (`STRATA_PLE_BATCH=0`). The other three legs
124  (`default2`, `default4k`, `fused4k`) have no launcher, and no JSON records the environment
125  of any leg — the `tag` string does not name a variable, and the engine log never echoes
126  either variable. `default` and `default2` are two sessions of the *same* configuration and
127  differ by >10 %; `default4k`/`fused4k` ran only the 4K target, and there is no plebatch0-4K
128  leg.
129- **The shipped log is named `engine-0.1.38.log`, but every JSON's `engine_log` field points
130  at `strata-iq2_xs.log`** (the engine's own rolling log name, also in `strata-iq2_xs.json`).
131  The file here is a copy of that log.
132- **Two data anomalies, both disclosed rather than hidden:** in the void file the run at
133  128K rep1/rep2 has `total_s` smaller than `ttft_s + gen_ms` (107.769 vs 111.002, and
134  107.347 vs 109.302) — the void file came from an earlier harness revision — and in the
135  248K series rep2 reports `finish_reason: "stop"` while generating exactly 256 tokens, the
136  cap (rep1 reports `"length"` at 256 and rep3 `"stop"` at 250). Neither affects a headline
137  median.
138- **`chars` in a row is the prompt's character count**, not an answer length
139  (`answer_len` is that).
140
141## 3. Upstream-compliance gaps (what this packet does not capture)
142
143`docs/COMMUNITY_BENCHMARKS.md` asks for fields this run cannot supply from the artefacts.
144They are stated as missing in the report rather than guessed:
145
146- **Windows-AMD bundle:** the `strata-device --list-devices` / `--selftest` output and the
147  tail of the engine log that the Windows-AMD reporting note asks for.
148- **hipBLASLt discipline:** the tuning table and version are recorded
149  (`32 rows, gfx1201, version 100500`) but the table was not verified with
150  `STRATA_HIPBLASLT_VERBOSE=1` / `fallbacks=0`, and no untuned control was run, so its effect
151  here is not isolable (`docs/AMD_HIP.md` measured +3.9 % on 4,210-token prompts).
152- **Identity hashes:** both GGUF shards and `data/expert-profile.bin` now have SHA-256 in
153  `PROVENANCE.txt`; the IQ2_XS expert pack, the MTP draft tensors and the engine binary have
154  none (they were produced by the setup on this machine and are not attached).
155- **Engine identity:** engine 0.1.38 is confirmed by the log, and the `engine/BUILD.json` that
156  names ROCm/hipBLASLt and the arch list is quoted verbatim in `PROVENANCE.txt`; no build hash
157  exists, and the A/B legs cannot be tied to an engine commit.
158- **Environment:** Windows 11 Pro **10.0.26300** and AMD driver 32.0.31036.15 are captured in
159  `PROVENANCE.txt`; the CPU is captured there too, while total physical memory is the Windows
160  figure (61.5 GiB) and the DIMM kit was not recorded. The storage device model and the PCIe
161  link width/generation were not measured (only the engine's 54.7 GB/s probe).
162- **Power/thermal/telemetry:** no GPU clocks, power limit, temperature, fan, host-RAM peak,
163  paging or OOM counters. Memory figures in the report are **startup snapshots** from the
164  engine log (24.95 GiB expert cache, 3.09 GiB KV pinned, 402 MiB VRAM free with everything
165  loaded), not peaks; the log records no OOM, which is not proof there was none.
166- **Per-run output text is not retained** (dropped by the harness), so the upstream note that
167  output text and draft acceptance can change speed, and the ~1-in-10 greedy-start
168  variability `docs/AMD_HIP.md` mentions, cannot be checked from this packet; draft
169  acceptance counts live only in the log.
170- **Not measured at all:** vision (off; unavailable on Windows AMD), `--low-ram` (not set),
171  384K/512K contexts, concurrency, multi-hour stability, sampled decoding or thinking modes,
172  output-quality baselines, and the opt-in RDNA4 matrix-core paths (`STRATA_HIP_WMMA=1`,
173  `STRATA_SELECT_WMMA=1`) that `docs/AMD_HIP.md` records as taking R9700 4K prompts from
174  1,784 to 2,427 tok/s.
175- **Answer quality, outside this packet:** in the same work session on the *previous* engine
176  (0.1.36), and outside this harness, the model produced accurate Traditional-Chinese summaries
177  of long inputs (Alice in Wonderland at 53K, The Great Gatsby at 125K including its closing
178  lines, Frankenstein at 229K). No transcript, prompt or log for those runs is in the packet, so
179  they are background context only and **not** evidence about the 0.1.38 measurements above.
180
181## 4. The failure in this packet
182
183`bench-output-standard-first-attempt-void.json` (13:21–13:35) is the first attempt at the
1844K/32K/128K series, made before the harness sent `reasoning_effort: "none"`: 13 of its 15
185rows returned no answer text (0 characters with 256 generated tokens), all six of its needle
186rows missed with empty answers (each generated exactly the 32-token cap), `ttft_s` is null on
1877 of its 9 speed rows, and it produced a different `chars_per_token` and different
188calibration/warm-up sizes (see §1.2). It is kept in the packet as a **failure**, is excluded
189from every table and median, and its 0/6 needle result must not be read as a recall
190measurement.
191
192## 5. Request counts in the log
193
19471 request lines = 36 rows in a measured series (18 in the two headline files + 18 in the six
195A/B legs) + 15 rows of the void attempt + 18 calibration/warm-up requests + 1 request the
196harness did not produce (246,933 tokens) + 1 pilot-session line (246,700 tokens, 0.1.36).
197Of these, 56 are non-void requests.
198
199## 6. Upstream states this packet relies on (checked 2026-10-03)
200
201- **Windows AMD:** `docs/AMD_HIP.md` records one validated Windows AMD case — "#325's author
202  ran the engine of this port on an RX 9070 XT (Windows 11, ROCm 10.2.0a20260930 in `.venv`,
203  compiled on the PC): Coder IQ1_M at 32K, 29.2 tok/s decode, ~181 tok/s prefill, correct
204  answers" — and then: "The maintainers have no Windows AMD card … The ready-made zip itself
205  has not run a model on a discrete card yet - please report." This packet is that report,
206  on a different card (R9700/gfx1201) and through the ready-made zip.
207- **Not validated:** `docs/AMD_HIP.md` "**Not validated:** images, long contexts beyond 16K,
208  answer-quality benchmarks." and "Do not assume a configured context length proves
209  successful full-window inference."; `docs/AMD_HIP_PERFORMANCE.md` "The changes do not claim
210  better model reasoning, verified full-context behavior, end-to-end vision validation,
211  Windows HIP, other AMD architectures, or mixed AMD/NVIDIA execution."
212- **Known variability:** `docs/AMD_HIP.md` "**Known:** rarely (about 1 start in 10) a HIP
213  run's greedy output differs from another start's at some token … not yet explained."
214- **hipBLASLt table:** upstream's `tools/hip/gfx1201-hipblaslt-100500.txt` is "calibrated
215  with ROCm 10.2.0a20260914 … hipBLASLt 1.5.0, library build `d3164197`. 16 dense GEMM
216  geometries at T=4096 and T=8192, 32 rows", measured "+3.9% prompt speed on 4,210-token
217  prompts (1,590 vs 1,531 tok/s), a modest gain", and "Run it with
218  `STRATA_HIPBLASLT_VERBOSE=1` and look for `fallbacks=0`" — that verification is **not** in
219  this packet.
220- **0.1.38 notes:** Windows short-on-RAM change "#357 #362 … the experts are read past the
221  file cache when it cannot keep them anyway, at start and in the RAM-budget tier"; HIP
222  change "the draft layer's prompt pass runs per group on HIP, which fixes a prompt hang on
223  gfx1201 (#382)"; AMD caveat "the HIP zip builds; the AMD changes are untested on an AMD
224  card here (we have none)".
225- **#382's state:** GitHub API `pulls/382` returns `state: closed, merged: false,
226  merged_at: null` (closed 2026-10-03T01:18:10Z), but the maintainer's own comment on it
227  (Niko1221, 2026-10-03T01:18:09Z) says: "Released in 0.1.38: HIP builds run the drafter's
228  prompt pass per group. With #453 in the same release the batched path also covers the ring
229  now, so this fallback is reached less often. Merged under your name (GitHub doesn't show it
230  as merged because it went in by hand)." #579 reports a gfx1201 stall still present on 0.1.38
231  (commit 99f3dbd), so no upstream source states the stall family is resolved.
232- **R9700 figures upstream records** (`docs/AMD_HIP.md`, Coder IQ1_M, Ubuntu 24.04 in a
233  KVM/VFIO guest, engine 0.1.x, 12,288 slots / 23.4 GiB): 4K prompt **982 tok/s**, 4K decode
234  **45.5**, 16K prompt 1,402, 16K decode 48.3; a warm layer-split row records 1,794 / 1,804
235  prompt and 51–52 decode. `docs/DETAILS.md` records no R9700 throughput at all. So the 4K
236  prompt figure here (855.8) is *below* upstream's documented R9700 4K prompt, while decode is
237  about twice it — neither direction is a controlled comparison.
238- **Reps are different prompts:** each rep increments the filler seed, so the three runs at a
239  length are three distinct prompts of the same nominal size; the median/range mixes
240  prompt-to-prompt variation with run-to-run noise.
241- **Clean-A/B switches not used:** `docs/DETAILS.md` says that for byte-identical repeats one
242  adds `--prompt-cache 0 --adapt-swaps 0 --pcie-frac 0` (and `STRATA_IQ_MT_MIN=1` for
243  reproducible greedy output), noting that "without `--pcie-frac 0` 2 of 4" repeats differed
244  and that `--pcie-frac 0` should be kept "for A/B runs". None of those switches was set here,
245  so cache adaptation and PCIe-fraction rounding can move results between requests and arms.
246- **Config provenance:** `strata-iq2_xs.json` is a **hand-tuned local config**, not a
247  setup-generated profile — `--resident-budget-gib 16`, `--mmap-experts`, `--kv int8`,
248  `--kv-resident 32768`, `--spec 4`, `--expert-profile`, the MTP runtime and the hipBLASLt
249  env var are all explicit choices, so call it "measured configuration", not "the default
250  setup".
251- **Overlap with #499:** that Windows-AMD report (RX 9070 XT, IQ3_S, 0.1.35) is an **open,
252  unmerged PR** whose numbers are not yet in `docs/AMD_HIP.md` or the guide's community list;
253  it is complementary (different card, quant and engine), not superseded.
254- **Provenance note:** `SHA256SUMS.txt` covers the packet's own files only — not the engine
255  binary, the model shards, or the machine. There is no engine build hash (row 4 of §3).
256
257## 7. What is engine self-report only, and what cross-checks exist
258
259Every throughput figure rests on the engine's own log line. What the packet can and cannot
260check, measured over the raw files:
261
262| Quantity | Class | Cross-check inside the packet |
263|---|---|---|
264| `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) |
265| `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 % |
266| 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** |
267| `reused_tokens = 0` | engine state | No client-visible cache state; the per-request nonce is design intent, not proof |
268| `finish_reason` | engine response | Self-consistency only (`length` ↔ generated == cap) |
269| cache/KV/PCIe/blob counters | engine state | **None** — used only to narrate the SSD-bound explanation |
270| `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 |
271| `needle_found` | client | Fully re-runnable (needle rows keep their text) |
272| GPU model, engine version, config | assertion | Log and config agree; no device inventory, no binary hash, no captured command line |
273
274Consequences stated in the report: the engine's clocks are corroborated as **lower bounds**,
275its token counts are not independently checkable, the A/B leg identity rests on the `.bat`
276filenames alone, the recall check keeps its text and can be re-scored by anyone, and the
277speed rows contain no answer text, so the completions cannot be re-tokenised after the fact.
278Independent falsification would need a second measurement route (server-side timestamps, a
279second client, or I/O and GPU instrumentation) or an external tokenizer — none of which is in
280this packet.