okami.mom/strata

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

Niko1221Merge branch 'f-1402-w' into f-140253623e56f

main
30.4 KiB390 linesraw

Community benchmark: 2x AMD Radeon RX 7900 GRE 16 GiB (gfx1100), Ryzen 7 5700X3D

Measured on 2026-10-06 by jase100k on a NixOS desktop. This tests the Coder model (IQ1_M) with the layer split across two RX 7900 GRE cards on engine 0.1.40, and the four things the 0.1.40 notes asked a two-card rig to check: --pipeline-windows (#859), resident RAM mode on a split (#848), --batch (#776) and the stage-weights trim (#880).

The main limitation is that the two cards are not on the same link. One is wired straight to a 16.0 GT/s x16 root port (the engine probes 28.2 GB/s host to device, pcie_frac 0.55); the other sits behind a chain of bridges that settles at 8.0 GT/s x4 (3.1 GB/s, pcie_frac 0.08). Layers 0-26 run on the fast card, layers 27-47 on the slow one, so every number below is for that lopsided pair. Memory is reported in GiB, the engine's link and transfer rates in GB/s as it prints them.

Median decode throughput was 69.3 tok/s with --pipeline-windows 2 and 63.8 tok/s with --pipeline-windows 1 over 10 interleaved pairs of 500-token greedy generations (1,757-4,238 fresh prompt tokens each): the one-window arm was slower in 9 of 10 pairs, the paired change median -7.2% (range -17.8% to +0.7%). With the stage trim off (STRATA_STAGE_TRIM=0) the fresh-prompt decode median fell from 75.7 to 67.6 tok/s and fresh prefill from 1,582.9 to 1,103.4 tok/s, with 7,624 resident experts instead of 9,438. Resident RAM mode (--resident-budget-gib 30) landed inside the baseline's own run-to-run spread: 72.1 tok/s fresh decode against 71.2-79.1 tok/s for the same config measured as arm A of the other four arms. --batch 2 and --batch 4 load and run without hanging, but filling the slots does not raise throughput: one request at a time on the batch config decoded at 68.3 tok/s, two at once totalled 56.6 and four at once 64.6.

Hardware and software

  • GPUs: 2x AMD Radeon RX 7900 GRE, 16 GiB each (17,163,091,968 B of VRAM per card; PCI device 1002:744c, gfx1100, wave32, HIP names the agents gfx1100). Subsystem IDs 1DA2:475E (slot 0000:2d:00.0) and 1EAE:790A (slot 0000:06:00.0). rocm-smi saw no maximum power limit without root; average package power at collection time (idle) was 29.0 W and 46.0 W.
  • PCIe: 0000:2d:00.0 is on a clean path - root port 00:03.1 through 2b:00.0 and 2c:00.0, every hop 16.0 GT/s x16, and the engine probes 28.2 GB/s host to device (pcie_frac 0.55). The other card, 0000:06:00.0, goes 00:01.2 (8.0 GT/s now, max 16.0 GT/s x8) then 02:00.2, 03:00.0, 04:00.0, 05:00.0, and the hops from 03:00.0 down run 8.0 GT/s x4, which the engine measures as 3.1 GB/s (pcie_frac 0.08). The endpoint's own link registers still report x16; the limit is the root-port hop. Extended control/status registers and lspci need root, so negotiated widths beyond what sysfs shows were not read.
  • Order: the config's "gpu": [1, 0] makes the server set HIP_VISIBLE_DEVICES=1,0, so the engine's CUDA0 is HIP device 1 (0000:2d:00.0, the fast card) and CUDA1 is HIP device 0 (0000:06:00.0, the slow card). Layers 0-26 on the fast card, 27-47 on the slow one.
  • CPU and RAM: AMD Ryzen 7 5700X3D, 8 cores / 16 threads, AVX2 only (no AVX-512). 65,760,268 kB installed RAM = 62.7 GiB. Swap: /dev/zram0 32,880,124 kB (31.4 GiB, priority 5) plus an unused NVMe partition of 72,347,404 kB (69.0 GiB, priority -1), 100.3 GiB in total.
  • Storage: KINGSTON SKC3000D2048G, 1.9 TB NVMe (no rotating media). Model, pack and MTP files live on it.
  • OS and runtime: NixOS 26.11 (Zokor), kernel 7.2.8-cachyos, amdgpu. ROCm at <local opt>/rocm (a tree built by this machine's make-rocm-tree.py from nixpkgs ROCm packages, ROCm 7.2.3, HIP 7.2.53211, rocm-smi 4.0.0); ROCM_PATH and the loader paths come from <local opt>/strata-env.sh.
  • Source: main at 1735d64 (pulled 2026-10-06 19:11), engine version 0.1.40, llama.cpp pinned at 3cf0325.
  • Build: a local HIP source build, not a release binary: engine/BUILD.json says "source": "local-hip", "backend": "hip", "version": "0.1.40", "archs": ["gfx1100"], built with cmake -DSTRATA_ENABLE_HIP=ON -DSTRATA_ENABLE_CUDA=OFF -DSTRATA_BUILD_TESTS=OFF -DSTRATA_PREFILL_MMQ=ON -DCMAKE_HIP_ARCHITECTURES=gfx1100 -DSTRATA_PORTABLE=OFF (Release, ROCm clang); engine/strata is 11,419,856 B, mtime 2026-10-06 19:13, and --version reports 0.1.40. One bookkeeping wrinkle: the src fingerprint in BUILD.json is d63ddbc6a262e39e, which is the fingerprint setup.py computes for the tree at 6f32ec0 (the commit before the 19:11 pull), while the tree at run time (1735d64) fingerprints as 6f298dff754d187f. setup.py hashes the source when the compile starts and stamps the version when it ends, so this build started before the pull and finished after it. The binary reports 0.1.40 and behaves like it: the --pipeline-windows 2 start-up line carries the 0.1.40 clause and the two window settings print different lines and measure different speeds (Results below).
  • Background workloads: a normal desktop session, not a dedicated bench box. No other GPU client was known to be running (amdgpu reported 1-2% busy at collection time); CPU-side services and the desktop kept running. Nothing was clock-locked and no power limit was set. GPU temperatures at collection: edge 32 / 44 C, junction 39 / 52 C, memory 54 / 66 C.

Model and configuration

  • Model: ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-Coder-GGUF, IQ1_M, 48 layers / 5,376 routed experts (the profile counts 12,288 ranked pairs). The repository revision was not recorded; the files were downloaded 2026-09-30 20:29-20:36:
    • Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf 29,608,446,496 B (29.6 GB / 27.6 GiB), passed as --native;
    • Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf 28,800,138,432 B (28.8 GB / 26.8 GiB), passed as --ple-gguf.
  • Pack: <data root>/packs/coder-iq1_m, built with the repository's own tool as index.txt says: # strata pack index v3 -- generated by tools/iq_pack.py (native experts) from Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf (sha256 2cb3352786bcae81...; dense.bin 1,475,120,640 B, experts.bin 25,146,163,200 B, native_experts.txt sha256 9ace1b92e1fe1259...).
  • Expert profile: expert-profile-learned-coder.bin (98,328 B, sha256 be2c27b6d2267470162d9ebadeac8f3e2d36c4f70399cea04d51db6fef78d636 as it stood after the last run). It is a learned profile: passed as --expert-profile at start and rewritten by --expert-profile-save while the server runs, so it is both an input to and an output of these measurements. The profile ranks 12,288 pairs for 12,288 slots.
  • MTP draft: <data root>/mtp/rt (dense.bin sha256 c724dc0b0822ada5..., experts.bin sha256 09398406be61f1f5..., draft_vocab.bin sha256 369151522226a5ed...), draft vocabulary en.
  • Vision: --vision with strata-vision and mmproj-Qwen3.8-Flash-Next-BF16.gguf, encoder on the CPU (4 threads, gpu: false). No image was sent in this report, so the vision path is enabled but unmeasured.
  • Context and KV: 262,144 tokens (--max-context 262144), --kv int8 --kv-resident 32768 (32,768 KV cells per attention layer resident in VRAM, the rest streamed from RAM).
  • Split and caches: --layer-split 27 (layers 0-26 on CUDA0, 27-47 on CUDA1), --expert-cache auto, --prefill auto, --vram-reserve-mib 3072 --vram-reserve-later-mib 800.
  • Pipeline: --pipeline-windows 2 in the install config; one arm uses --pipeline-windows 1.
  • MTP and sampling: --spec 5 --spec-min-p 0.5, suffix drafting on (the default). Every request in this report is greedy: temperature 0, top_k 1, top_p 1, min_p 0, seed 42, reasoning_effort none (reasoning_budget_tokens is 2048 in the config but no request asks for reasoning).
  • Environment: STRATA_HIPBLASLT_TUNING=<strata checkout>/tools/hip/gfx1100-hipblaslt-100202.txt (sha256 a594869223200c62...), STRATA_ADAPT_NOWAIT=1, STRATA_STAGE_TRIM=1, STRATA_PREFILL_HELP=1, STRATA_RING_BYTES=1, STRATA_SPLIT_OWN=1, STRATA_EXCHANGE_ROTATE=1, STRATA_PF_FUSED=1.
  • Not used: no calibration, no experimental speed projection, no control vectors, no API key, fit_max_tokens on.
# the server (run-coder-iq1_m.sh); the config holds the model paths and the environment
. "<local opt>/strata-env.sh"
"<strata checkout>/.venv/bin/python" "<strata checkout>/serve/server.py" --engine strata \
  --config "<strata checkout>/strata-coder-iq1_m.json" --port 8080

# what the server starts (the "engine started" line in data/engine.log)
<strata checkout>/engine/strata --serve --pack <data root>/packs/coder-iq1_m \
  --native <data root>/models/coder-IQ1_M/Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf \
  --ple-gguf <data root>/models/coder-IQ1_M/Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf \
  --expert-profile expert-profile-learned-coder.bin --expert-cache auto --prefill auto \
  --spec 5 --spec-min-p 0.5 --mtp <data root>/mtp/rt --max-context 262144 --kv int8 \
  --kv-resident 32768 --vram-reserve-mib 3072 --vram-reserve-later-mib 800 \
  --pipeline-windows 2 --vision --layer-split 27 \
  --expert-profile-save expert-profile-learned-coder.bin
# with HIP_VISIBLE_DEVICES=1,0 (from "gpu": [1, 0]) and the eight environment variables above

Method

Four kinds of measurement, run one after another on the same machine, each starting its own server on port 8080 and killing the previous one (scripts/run-all.sh runs them in order: interleave500, then the pipeline-off, stage-trim-off and resident arms, then the soak, then the batch2 and batch4 arms). The A/B harness is vendored into this folder as scripts/ab-run.sh - arm A is the install config as it stands, arm B the same config plus the extra engine args/env - and is called through scripts/run-arm.sh, which strips the --arg marker the runner spells (the harness takes bare flag/value pairs and would otherwise raise IndexError before writing arm B's config) and archives each arm's JSON, server output and engine-log slice into data/. Because ab-run.sh ends by starting a server on the base config, the next arm's log slice can begin with one extra start-up block from that leftover server; the blocks are told apart by their expert counts, and only the blocks that then serve requests belong to the arms.

  • --pipeline-windows 2 vs 1, interleaved (scripts/interleave500.py, results under "Per-pair detail"): 10 pairs, each pair posting the same prompt to arm A (the install config, window 2) and arm B (--pipeline-windows 1) back to back, alternating which arm goes first by pair, one server restart per request so neither arm keeps a warm cache the other does not get. max_tokens=500, greedy (temperature 0, top_k 1, top_p 1, min_p 0, seed 42), reasoning_effort: none, no reused tokens (every request is a fresh conversation). Prompt tokens 1,757, 2,334, 2,913, 3,584 and 4,238, twice each per arm.
  • Short arms (scripts/ab-run.sh + tools/hip/bench_prefill.py): one warm-up request (Reply READY., excluded), then 4 fresh prompts (synthetic JavaScript of 140 and 280 lines, 4,210 and 8,830 prompt tokens, reused 0) and 4 follow-ups on those same conversations (4,451 and 9,071 prompt tokens, of which 4,203-8,958 were reused), 128 generated tokens per request, same greedy settings. Each arm restarts the server for side A and again for side B, with a 30 s pause before the pair. STRATA_STAGE_TRIM is already 1 in the install config, so the stage-trim arm's B side sets it to 0: A is "trim on", the default, and B is "trim off".
  • Soak: one server for 30 minutes with --resident-budget-gib 30, one fresh conversation after another at 128 tokens, scripts/sample_mem.py writing a row every 60 s.
  • --batch: the same short arm with --batch 2 and --batch 4 (single requests, so it shows that the config loads and that nothing hangs), then scripts/batch_concurrent.py posting N requests at once, which is what actually fills the batch slots (tools/hip/bench_prefill.py is single request).
  • Timing boundaries: prompt tok/s and decode tok/s always come from the engine's own completion line (prompt N tokens = X reused + Y read in Z ms (P tok/s), G generated in D ms (D tok/s)), never from wall time divided by token count. TTFT is measured only in interleave500.py, client side over loopback, from just before the POST to the first non-empty streaming delta (empty deltas and keep-alives ignored); it is not measured in the short arms. Wall time is the whole request at the client, over loopback. Model loading is excluded: every side waits for {"loaded": true} on /health before its first request.
  • State between runs: each side of each arm is a fresh server, so the expert cache, KV cache and CUDA context are cold at the start of every side; within a side, the expert cache is pre-filled from the profile at start and then keeps adapting (the engine prints its hit rate at the end of each request). Fresh prompts and follow-ups that reuse a prefix are always reported separately.
  • Memory: scripts/sample_mem.py samples every 60 s: whole-machine RAM as MemTotal - MemAvailable (this counts page cache that is in use, not "anonymous memory only"), each card's mem_info_vram_used from amdgpu's sysfs counters, and the engine process's RSS. Values in the soak section are first sample and peak over those 60 s samples; a peak between samples can be missed.
  • Browser: ab-run.sh passes --open, so BROWSER=true was exported to stop it opening a tab; no other desktop effect is known.

Files

FileWhat it holds
data/hardware.txtos-release, uname, rocminfo, rocm-smi, sysfs PCIe links, CPU/RAM/storage, engine version, PCI topology of both cards
data/interleave500.jsonthe 20 interleave requests: arm, pair, prompt id, TTFT, wall, engine metrics, finish reason, output head
data/interleave500-server.out, data/engine-interleave.logthe server output and the engine log slice for those 20 requests
data/ab-<label>-A.json, data/ab-<label>-B.jsonthe short arms' per-request records (pipeline-off, stage-trim-off, resident, batch2, batch4)
data/cfg-<label>-B.jsonthe config each arm's B side actually ran (cfg-soak.json and cfg-interleave-B.json are the soak's and the interleave's), with private paths rewritten
data/ab-<label>-run.outthe harness's own printed A/B summary for each arm
data/ab-<label>-server-A.out, data/ab-<label>-server-B.outeach side's server output (start-up decisions, done lines)
data/engine-ab-<label>.logeach arm's engine log slice (start-up decisions plus request lines)
data/soak-mem.csv, data/soak.jsonthe 60 s memory samples and the soak's 239 per-prompt records
data/soak-summary.json, data/soak-engine.log, data/soak-server.outthe rebuilt soak summary (survived, peaks, request counts), the engine slice it was rebuilt from, and the soak's server output
data/run-all.outthe console transcript of the whole serial run, including the soak's per-prompt lines
data/batch-concurrent-batch<n>.jsonthe N-concurrent batch measurements: per-slot TTFT, wall, finish, the server's done lines and the engine slice
data/batch-concurrent-batch<n>.server.out, data/batch-concurrent-batch<n>.engine.log, data/run-batch-concurrent.outthe server output, engine slice and console transcript of each concurrency run
data/engine.logstart-up lines plus request lines for every step of this report
data/summary.mdthe machine-built median/range tables this README's numbers are taken from
scripts/every script that produced the above, including the A/B harness (ab-run.sh)

Results

All runs

Every row is a median (minimum-maximum) over the runs in that row; every run is in the linked JSON. No request failed and no arm needed a retry. Prompt throughput is freshly read tokens per second from the engine's own completion line; decode is generated tokens per that line's decode time; TTFT is client side over loopback and is not measured outside the interleave. Warm-up requests are excluded everywhere.

ConfigurationActual prompt tokensReused tokensGenerated tokensRunsPrompt tok/s median and rangeDecode tok/s median and rangeTTFT seconds median and range
--pipeline-windows 2 (A), 500-token, interleaved1,757-4,2380256-500 (cap 500)10961.0 (841.5-1,270.1)69.3 (66.4-74.3)2.9 (1.9-3.6)
--pipeline-windows 1 (B), 500-token, interleaved1,757-4,2380256-500 (cap 500)10959.9 (839.6-1,271.9)63.8 (59.7-69.7)2.9 (1.9-3.7)
baseline (A) fresh, pipeline-off arm4,210-8,830012841,582.8 (1,302.1-1,756.8)77.1 (70.9-83.9)not measured
baseline (A) follow-up, pipeline-off arm4,451-9,0714,203-8,9581284185.8 (182.3-315.1)66.2 (60.0-73.2)not measured
--pipeline-windows 1 (B) fresh4,210-8,830012841,568.0 (1,174.4-1,738.6)70.0 (63.1-73.6)not measured
--pipeline-windows 1 (B) follow-up4,451-9,0714,337-8,823118-1284246.8 (182.7-313.1)62.8 (56.9-64.6)not measured
baseline (A) fresh, stage-trim-off arm4,210-8,830012841,582.9 (1,229.7-1,751.3)75.7 (67.6-84.7)not measured
baseline (A) follow-up, stage-trim-off arm4,451-9,0714,337-8,9571284186.1 (180.4-193.3)73.5 (68.7-79.1)not measured
STRATA_STAGE_TRIM=0 (B) fresh4,210-8,830012841,103.4 (883.2-1,213.6)67.6 (57.7-77.1)not measured
STRATA_STAGE_TRIM=0 (B) follow-up4,451-9,0714,203-8,9571284193.4 (132.3-254.3)70.9 (65.1-76.7)not measured
baseline (A) fresh, resident arm4,210-8,830076-12841,558.5 (1,235.2-1,736.0)72.1 (63.9-78.5)not measured
baseline (A) follow-up, resident arm4,451-9,0714,203-8,9581284186.6 (181.1-301.3)63.4 (61.3-70.1)not measured
--resident-budget-gib 30 (B) fresh4,210-8,830012841,550.0 (1,313.5-1,718.9)69.0 (58.0-72.1)not measured
--resident-budget-gib 30 (B) follow-up4,451-9,0714,203-8,9581284243.9 (179.6-312.5)64.6 (60.5-66.6)not measured
baseline (A) fresh, batch2 arm4,210-8,830076-12841,542.7 (1,301.4-1,712.5)79.1 (74.1-82.0)not measured
baseline (A) follow-up, batch2 arm4,398-9,0714,203-8,9581284227.3 (188.4-311.4)70.1 (62.3-71.3)not measured
--batch 2 (B) fresh, one request at a time4,210-8,830012841,404.0 (1,155.0-1,552.9)68.3 (66.2-69.4)not measured
--batch 2 (B) follow-up, one request at a time4,451-9,0714,203-8,9571284288.7 (174.1-300.7)62.8 (59.6-69.1)not measured
baseline (A) fresh, batch4 arm4,210-8,830012841,452.3 (956.0-1,798.1)71.2 (56.7-72.3)not measured
baseline (A) follow-up, batch4 arm4,451-9,0714,338-8,823127-1284213.9 (141.3-298.2)61.0 (57.8-68.0)not measured
--batch 4 (B) fresh, one request at a time4,210-8,830012841,117.7 (854.2-1,238.9)68.5 (66.0-74.9)not measured
--batch 4 (B) follow-up, one request at a time4,451-9,0714,337-8,9571284147.1 (144.7-256.3)60.9 (59.0-67.6)not measured

Four runs stopped before the 128-token cap (76, 76, 118 and 127 generated tokens: two in arm A follow-ups of the resident and batch2 arms, one in the pipeline arm's B follow-up and one in the batch4 arm's A follow-up) and are published as they are; their prompts are the reason those rows' token counts differ slightly. The same baseline config was measured as the A side of all five arms: fresh decode medians 77.1, 75.7, 72.1, 79.1 and 71.2 tok/s, a 71.2-79.1 tok/s spread on one configuration, which is the noise floor for any arm-to-arm difference discussed below.

Soak: 30 minutes with --resident-budget-gib 30

data/soak-summary.json, data/soak-mem.csv and data/soak-engine.log:

  • survived: yes. 239 prompts sent over 30 minutes (one fresh conversation each, 128 tokens, greedy), 239 completed, 0 errors, all finish_reason: length. Request wall time 2.02 / 2.55 / 3.23 s (min / median / max). No no progress, NaN, crash, never rang, doorbell, abort, OOM or "killed" line appears in the soak's engine-log slice.
  • Samples: 31 rows spanning 1,800.2 s, one every 60 s.
  • RAM (MemTotal - MemAvailable, whole machine, includes page cache in use): first sample 22,713.6 MiB, peak 24,009.0 MiB (23.4 GiB) of 62.7 GiB installed.
  • Engine RSS: first sample 10,810.3 MiB, peak 11,180.1 MiB (10.9 GiB).
  • VRAM (amdgpu mem_info_vram_used, whole card): 0000:06:00.0 first 15.004 GiB, peak 15.054 GiB of 16.0; 0000:2d:00.0 first 14.314 GiB, peak 14.440 GiB of 16.0. These are 60 s samples; a peak between samples can be missed.
  • Resident RAM mode was active for the whole soak: resident RAM mode: 5.38 GiB of experts in RAM (page-locked), 4648 in the GPU cache; adaptive swaps exchange them with the GPU cache (no file reads), 9,413 resident experts on the token-graph hit path, 77% of the experts resident, and the decode expert-cache hit rate went from 95.9% on the first completed request to 97.2% on the last.
  • The harness's teardown failed, not the soak: sample_mem.py looks for its stop file at the top of its loop, so it only noticed one full 60 s interval later, and soak.py waited 30 s - its subprocess.TimeoutExpired is the one traceback in data/run-all.out. The samples, the per-prompt records and the engine slice were all written before that point; scripts/soak_summary.py rebuilt soak-summary.json from them, and scripts/soak.py now waits out one whole interval so a repeat finishes cleanly.

Per-pair detail: --pipeline-windows 2 vs --pipeline-windows 1

The same prompt to both arms, one server restart per request, A always first in the pair:

PairPrompt tokensGenerated A / BDecode A tok/sDecode B tok/sB vs A
11,757409 / 41466.460.5-8.9%
22,334500 / 50072.659.7-17.8%
32,913500 / 50067.868.3+0.7%
43,584500 / 50068.868.1-1.0%
54,238500 / 25673.263.3-13.5%
61,757336 / 25867.463.5-5.8%
72,334500 / 50066.963.8-4.6%
82,913500 / 50071.069.7-1.8%
93,584500 / 50074.364.6-13.1%
104,238500 / 50069.963.9-8.6%

Prompt tokens are identical within a pair, which is what makes the pairing useful. Decode is greedy but not bit-reproducible across server restarts: prompt 0 generated 409 tokens in pair 1 and 336 in pair 6 under arm A, and in 3 of the 10 pairs the two arms stopped at different token counts (pairs 1, 5 and 6). Those short runs are included, not thrown away.

What the engine printed

  • --pipeline-windows 2: two verifiers per stage, the stages overlap across windows (decode too; the GDN snapshots beside the window)
  • --pipeline-windows 1: two verifiers per stage, the stages overlap across windows

The two settings print different start-up lines, so 0.1.40 does act on the flag. The install config already carried --pipeline-windows 2 under 0.1.39, where it was ignored; this report does not compare versions, only this setting inside 0.1.40.

Stage weights (#880)

STRATA_STAGE_TRIM=1 (default, A)STRATA_STAGE_TRIM=0 (B)
CUDA0 expert cache4,673 slots, 8.46 GiB3,832 slots, 6.93 GiB
CUDA1 expert cache4,765 slots, 9.62 GiB3,792 slots, 7.67 GiB
resident experts at start9,4387,624
engine's own share line77% of the experts residentnot printed
CUDA1 free before the cache fill12.38 GiB of 15.9810.43 GiB of 15.98
free with everything loaded3,192 MiB3,170 MiB
decode expert-cache hit rate93.6-99.2%87.9-97.6%
fresh prefill median1,582.9 tok/s1,103.4 tok/s (-30.3%)
fresh decode median75.7 tok/s67.6 tok/s (-10.7%)

Both sides print CUDA0 loads the dense weights of layers 0-26 only and CUDA1 loads the dense weights of layers 27-47 only; what the trim removes is 1,814 resident experts (a little over 2 GiB of slots across both cards), and the slow card pays for every expert it then has to fetch.

--batch (#776): slot sessions, real concurrency, doorbells

Arm B adds --batch 2 or --batch 4, and the engine switches the pipeline window off by itself:

  • --pipeline-windows 2 is off: not with --batch slots
  • --batch: 4 slot sessions on CUDA0 (0.52 GiB each); 11.16 GiB free and the same on CUDA1 (0.50 GiB each), --batch 4: the slot sessions take 2.08 GiB of VRAM on CUDA0 that the expert cache would otherwise hold (2 slots: 1.04 GiB)
  • strata verify: batch windows of up to 4 sequences (layers [0, 27)) and (layers [27, 48))

So the --batch rows in the table are the batch config as a whole - slot sessions taking VRAM away from the expert cache and the window overlap switched off - not batch alone. Against the baseline, fresh prefill fell from 1,582.8 to 1,404.0 (--batch 2) and 1,117.7 tok/s (--batch 4), and fresh decode from 77.1 to 68.3 and 68.5 tok/s. All 36 runs of the two batch arms completed (9 requests per side, two sides, two arms) with no error and no stage waiting.

Concurrency (scripts/batch_concurrent.py): N fresh 500-token greedy conversations posted at the same instant, per-request TTFT and wall time measured at the client, decode taken from the server's own [strata] done: N tokens in T s (X tok/s) line (the engine's completion line is one per prompt chunk under --batch, so it cannot be summed). Files: data/batch-concurrent-batch2.json, data/batch-concurrent-batch4.json, each with its .server.out and .engine.log slice.

RunSlots filledTTFT seconds, by slotWall seconds, by slotDecode tok/s, by slotAggregate decode tok/sHung slots
--batch 2, one request at a time (the arm above, 128-token runs)1not measurednot measured68.3 (66.2-69.4)68.30
--batch 2, 2 at once22.33, 6.2619.13, 21.6924.2, 32.456.60
--batch 4, 4 at once43.22, 8.15, 13.36, 18.6837.85, 42.03, 43.15, 43.8513.1, 14.8, 16.8, 19.964.60
  • No doorbell was left ringing. Every slot finished inside the 300 s per-slot timeout (worst 43.9 s), hung_slots is empty in both JSONs, and neither engine slice contains a no progress, never rang, stall, abort, NaN or OOM line. The windows visibly form: strata batch: slot 3 takes 3584 tokens (copied in 111.7 ms), strata verify: captured the batch window over slots 0,1,2,3.
  • The slots did not buy throughput here. One request at a time on the same config decoded at 68.3 tok/s; two at once totalled 56.6 and four at once 64.6 (the sum of the per-slot rates), so the batch kept the machine near a single request's output rate while each request fell to 24.2-32.4 tok/s with 2 slots (2.4x slower) and 13.1-19.9 tok/s with 4 (4.2x slower). TTFT also stacks, because prompts are admitted in turn: the fourth slot waited 18.7 s for its first token (strata batch: the prompt was read in 2 parts, the slots decoding 1034 ms between them).
  • Caveats: the single-request reference row is from the arm's 128-token runs while the concurrent rows are 500-token runs, so it is a rate comparison and not a latency one, and it is one machine and one quantization, as the limitations below say.

Correctness and limitations

  • No answer-quality check was run. This report is speed and stability only: no needle_bench.py, no coding task with tests, no vision input. Nothing here says anything about answer quality.
  • Greedy is not bit-reproducible across restarts. Same config, same prompt, same seed gave 409 then 336 generated tokens for prompt 0 under arm A, and 3 of the 10 window pairs stopped at different points. Decode tok/s still comes from the engine's own decode timing, so the short runs are comparable, but they are noisier than the runs that hit the 500-token cap.
  • One machine, one quantization, one layer split, small synthetic prompts. The longest prompt measured fresh is 4,238 tokens and the longest context used is that; the 262,144-token context, 128,000-token prompts, vision, tool use, concurrency beyond the batch runs, thinking and sampled decoding were not tested. The two cards differ by nearly a factor of nine in measured link bandwidth, so a machine with two identical links would show different numbers.
  • The baseline was measured five times (once as the A side of each arm) and its fresh-decode medians were 77.1, 75.7, 72.1, 79.1 and 71.2 tok/s (71.2-79.1), plus 69.3 in the interleaved 500-token runs, which are a different workload. Differences smaller than that spread are not treated as effects here.
  • The expert profile changes while the server runs (--expert-profile-save), so the arms do not see byte-identical profiles; each side starts from the file the previous side left behind.
  • Model revision unknown. The GGUF files' repository revision was not recorded, only their names, sizes and download time, so a later revision of the same repository could differ.
  • Suggested comparison on this machine: none. There is no second version, second card or second quantization measured here to compare against, and the report rules forbid a version-to-version claim from a single configuration.
1# Community benchmark: 2x AMD Radeon RX 7900 GRE 16 GiB (gfx1100), Ryzen 7 5700X3D
2
3Measured on 2026-10-06 by [jase100k](https://github.com/jase100k) on a NixOS desktop. This tests the
4Coder model (IQ1_M) with the layer split across two RX 7900 GRE cards on engine 0.1.40, and the four
5things the 0.1.40 notes asked a two-card rig to check: `--pipeline-windows` (#859), resident RAM mode
6on a split (#848), `--batch` (#776) and the stage-weights trim (#880).
7
8The main limitation is that the two cards are not on the same link. One is wired straight to a
916.0 GT/s x16 root port (the engine probes **28.2 GB/s** host to device, `pcie_frac 0.55`); the other
10sits behind a chain of bridges that settles at 8.0 GT/s x4 (**3.1 GB/s**, `pcie_frac 0.08`). Layers
110-26 run on the fast card, layers 27-47 on the slow one, so every number below is for that lopsided
12pair. Memory is reported in GiB, the engine's link and transfer rates in GB/s as it prints them.
13
14Median decode throughput was **69.3 tok/s with `--pipeline-windows 2` and 63.8 tok/s with
15`--pipeline-windows 1`** over 10 interleaved pairs of 500-token greedy generations (1,757-4,238 fresh
16prompt tokens each): the one-window arm was slower in 9 of 10 pairs, the paired change median
17**-7.2%** (range -17.8% to +0.7%). With the stage trim off (`STRATA_STAGE_TRIM=0`) the fresh-prompt
18decode median fell from 75.7 to 67.6 tok/s and fresh prefill from 1,582.9 to 1,103.4 tok/s, with
197,624 resident experts instead of 9,438. Resident RAM mode (`--resident-budget-gib 30`) landed
20inside the baseline's own run-to-run spread: 72.1 tok/s fresh decode against 71.2-79.1 tok/s for the
21same config measured as arm A of the other four arms. `--batch 2` and `--batch 4` load and run
22without hanging, but filling the slots does not raise throughput: one request at a time on the batch
23config decoded at 68.3 tok/s, two at once totalled 56.6 and four at once 64.6.
24
25## Hardware and software
26
27- **GPUs:** 2x AMD Radeon RX 7900 GRE, 16 GiB each (17,163,091,968 B of VRAM per card; PCI device
28  `1002:744c`, gfx1100, wave32, HIP names the agents gfx1100). Subsystem IDs `1DA2:475E` (slot
29  `0000:2d:00.0`) and `1EAE:790A` (slot `0000:06:00.0`). rocm-smi saw no maximum power limit without
30  root; average package power at collection time (idle) was 29.0 W and 46.0 W.
31- **PCIe:** `0000:2d:00.0` is on a clean path - root port `00:03.1` through `2b:00.0` and `2c:00.0`,
32  every hop 16.0 GT/s x16, and the engine probes **28.2 GB/s** host to device (`pcie_frac 0.55`). The
33  other card, `0000:06:00.0`, goes `00:01.2` (8.0 GT/s now, max 16.0 GT/s x8) then `02:00.2`,
34  `03:00.0`, `04:00.0`, `05:00.0`, and the hops from `03:00.0` down run **8.0 GT/s x4**, which the
35  engine measures as **3.1 GB/s** (`pcie_frac 0.08`). The endpoint's own link registers still report
36  x16; the limit is the root-port hop. Extended control/status registers and `lspci` need root, so
37  negotiated widths beyond what sysfs shows were not read.
38- **Order:** the config's `"gpu": [1, 0]` makes the server set `HIP_VISIBLE_DEVICES=1,0`, so the
39  engine's CUDA0 is HIP device 1 (`0000:2d:00.0`, the fast card) and CUDA1 is HIP device 0
40  (`0000:06:00.0`, the slow card). Layers 0-26 on the fast card, 27-47 on the slow one.
41- **CPU and RAM:** AMD Ryzen 7 5700X3D, 8 cores / 16 threads, AVX2 only (no AVX-512). 65,760,268 kB
42  installed RAM = **62.7 GiB**. Swap: `/dev/zram0` 32,880,124 kB (31.4 GiB, priority 5) plus an
43  unused NVMe partition of 72,347,404 kB (69.0 GiB, priority -1), 100.3 GiB in total.
44- **Storage:** KINGSTON SKC3000D2048G, 1.9 TB NVMe (no rotating media). Model, pack and MTP files
45  live on it.
46- **OS and runtime:** NixOS 26.11 (Zokor), kernel `7.2.8-cachyos`, amdgpu. ROCm at
47  `<local opt>/rocm` (a tree built by this machine's `make-rocm-tree.py` from nixpkgs ROCm packages,
48  ROCm 7.2.3, HIP 7.2.53211, rocm-smi 4.0.0); `ROCM_PATH` and the loader paths come from
49  `<local opt>/strata-env.sh`.
50- **Source:** `main` at `1735d64` (pulled 2026-10-06 19:11), engine version 0.1.40, llama.cpp pinned
51  at `3cf0325`.
52- **Build:** a local HIP source build, not a release binary: `engine/BUILD.json` says
53  `"source": "local-hip", "backend": "hip", "version": "0.1.40", "archs": ["gfx1100"]`, built with
54  `cmake -DSTRATA_ENABLE_HIP=ON -DSTRATA_ENABLE_CUDA=OFF -DSTRATA_BUILD_TESTS=OFF
55  -DSTRATA_PREFILL_MMQ=ON -DCMAKE_HIP_ARCHITECTURES=gfx1100 -DSTRATA_PORTABLE=OFF` (Release, ROCm
56  clang); `engine/strata` is 11,419,856 B, mtime 2026-10-06 19:13, and `--version` reports 0.1.40.
57  One bookkeeping wrinkle: the `src` fingerprint in `BUILD.json` is `d63ddbc6a262e39e`, which is the
58  fingerprint `setup.py` computes for the tree at `6f32ec0` (the commit before the 19:11 pull), while
59  the tree at run time (`1735d64`) fingerprints as `6f298dff754d187f`. `setup.py` hashes the source
60  when the compile starts and stamps the version when it ends, so this build started before the pull
61  and finished after it. The binary reports 0.1.40 and behaves like it: the `--pipeline-windows 2`
62  start-up line carries the 0.1.40 clause and the two window settings print different lines and
63  measure different speeds (Results below).
64- **Background workloads:** a normal desktop session, not a dedicated bench box. No other GPU client
65  was known to be running (amdgpu reported 1-2% busy at collection time); CPU-side services and the
66  desktop kept running. Nothing was clock-locked and no power limit was set. GPU temperatures at
67  collection: edge 32 / 44 C, junction 39 / 52 C, memory 54 / 66 C.
68
69## Model and configuration
70
71- **Model:** [`ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-Coder-GGUF`](https://huggingface.co/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-Coder-GGUF),
72  IQ1_M, 48 layers / 5,376 routed experts (the profile counts 12,288 ranked pairs). The repository
73  revision was not recorded; the files were downloaded 2026-09-30 20:29-20:36:
74  - `Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf` 29,608,446,496 B (29.6 GB / 27.6 GiB),
75    passed as `--native`;
76  - `Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf` 28,800,138,432 B (28.8 GB / 26.8 GiB),
77    passed as `--ple-gguf`.
78- **Pack:** `<data root>/packs/coder-iq1_m`, built with the repository's own tool as `index.txt` says:
79  `# strata pack index v3 -- generated by tools/iq_pack.py (native experts) from
80  Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf` (sha256 `2cb3352786bcae81...`; `dense.bin`
81  1,475,120,640 B, `experts.bin` 25,146,163,200 B, `native_experts.txt` sha256
82  `9ace1b92e1fe1259...`).
83- **Expert profile:** `expert-profile-learned-coder.bin` (98,328 B, sha256
84  `be2c27b6d2267470162d9ebadeac8f3e2d36c4f70399cea04d51db6fef78d636` as it stood after the last run).
85  It is a *learned* profile: passed as `--expert-profile` at start and rewritten by
86  `--expert-profile-save` while the server runs, so it is both an input to and an output of these
87  measurements. The profile ranks 12,288 pairs for 12,288 slots.
88- **MTP draft:** `<data root>/mtp/rt` (`dense.bin` sha256 `c724dc0b0822ada5...`, `experts.bin`
89  sha256 `09398406be61f1f5...`, `draft_vocab.bin` sha256 `369151522226a5ed...`), draft vocabulary
90  `en`.
91- **Vision:** `--vision` with `strata-vision` and `mmproj-Qwen3.8-Flash-Next-BF16.gguf`, encoder on
92  the CPU (4 threads, `gpu: false`). No image was sent in this report, so the vision path is enabled
93  but unmeasured.
94- **Context and KV:** 262,144 tokens (`--max-context 262144`), `--kv int8 --kv-resident 32768`
95  (32,768 KV cells per attention layer resident in VRAM, the rest streamed from RAM).
96- **Split and caches:** `--layer-split 27` (layers 0-26 on CUDA0, 27-47 on CUDA1),
97  `--expert-cache auto`, `--prefill auto`, `--vram-reserve-mib 3072 --vram-reserve-later-mib 800`.
98- **Pipeline:** `--pipeline-windows 2` in the install config; one arm uses `--pipeline-windows 1`.
99- **MTP and sampling:** `--spec 5 --spec-min-p 0.5`, suffix drafting on (the default). Every request
100  in this report is greedy: `temperature 0, top_k 1, top_p 1, min_p 0, seed 42, reasoning_effort
101  none` (`reasoning_budget_tokens` is 2048 in the config but no request asks for reasoning).
102- **Environment:** `STRATA_HIPBLASLT_TUNING=<strata checkout>/tools/hip/gfx1100-hipblaslt-100202.txt`
103  (sha256 `a594869223200c62...`), `STRATA_ADAPT_NOWAIT=1`, `STRATA_STAGE_TRIM=1`,
104  `STRATA_PREFILL_HELP=1`, `STRATA_RING_BYTES=1`, `STRATA_SPLIT_OWN=1`, `STRATA_EXCHANGE_ROTATE=1`,
105  `STRATA_PF_FUSED=1`.
106- **Not used:** no calibration, no experimental speed projection, no control vectors, no API key,
107  `fit_max_tokens` on.
108
109```text
110# the server (run-coder-iq1_m.sh); the config holds the model paths and the environment
111. "<local opt>/strata-env.sh"
112"<strata checkout>/.venv/bin/python" "<strata checkout>/serve/server.py" --engine strata \
113  --config "<strata checkout>/strata-coder-iq1_m.json" --port 8080
114
115# what the server starts (the "engine started" line in data/engine.log)
116<strata checkout>/engine/strata --serve --pack <data root>/packs/coder-iq1_m \
117  --native <data root>/models/coder-IQ1_M/Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf \
118  --ple-gguf <data root>/models/coder-IQ1_M/Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf \
119  --expert-profile expert-profile-learned-coder.bin --expert-cache auto --prefill auto \
120  --spec 5 --spec-min-p 0.5 --mtp <data root>/mtp/rt --max-context 262144 --kv int8 \
121  --kv-resident 32768 --vram-reserve-mib 3072 --vram-reserve-later-mib 800 \
122  --pipeline-windows 2 --vision --layer-split 27 \
123  --expert-profile-save expert-profile-learned-coder.bin
124# with HIP_VISIBLE_DEVICES=1,0 (from "gpu": [1, 0]) and the eight environment variables above
125```
126
127## Method
128
129Four kinds of measurement, run one after another on the same machine, each starting its own
130server on port 8080 and killing the previous one (`scripts/run-all.sh` runs them in order:
131[interleave500](scripts/interleave500.py), then the `pipeline-off`, `stage-trim-off`
132and `resident` arms, then the soak, then the `batch2` and `batch4` arms). The A/B harness is
133vendored into this folder as [scripts/ab-run.sh](scripts/ab-run.sh) - arm A is the install config as
134it stands, arm B the same config plus the extra engine args/env - and is called through
135[scripts/run-arm.sh](scripts/run-arm.sh), which strips the `--arg` marker the runner spells (the
136harness takes bare flag/value pairs and would otherwise raise `IndexError` before writing arm B's
137config) and archives each arm's JSON, server output and engine-log slice into `data/`. Because
138`ab-run.sh` ends by starting a server on the base config, the next arm's log slice can begin
139with one extra start-up block from that leftover server; the blocks are told apart by their expert
140counts, and only the blocks that then serve requests belong to the arms.
141
142- **`--pipeline-windows 2` vs 1, interleaved** ([`scripts/interleave500.py`](scripts/interleave500.py),
143  results under "Per-pair detail"): 10 pairs, each pair posting the same prompt to arm A (the install
144  config, window 2) and arm B (`--pipeline-windows 1`) back to back, alternating which arm goes first
145  by pair, one server restart per request so neither arm keeps a warm cache the other does not get.
146  `max_tokens=500`, greedy (`temperature 0, top_k 1, top_p 1, min_p 0, seed 42`), `reasoning_effort:
147  none`, no reused tokens (every request is a fresh conversation). Prompt tokens 1,757, 2,334, 2,913,
148  3,584 and 4,238, twice each per arm.
149- **Short arms** ([`scripts/ab-run.sh`](scripts/ab-run.sh) + `tools/hip/bench_prefill.py`): one
150  warm-up request
151  (`Reply READY.`, excluded), then 4 fresh prompts (synthetic JavaScript of 140 and 280 lines,
152  4,210 and 8,830 prompt tokens, `reused 0`) and 4 follow-ups on those same conversations
153  (4,451 and 9,071 prompt tokens, of which 4,203-8,958 were reused), 128 generated tokens per
154  request, same greedy settings. Each arm restarts the server for side A and again for side B, with
155  a 30 s pause before the pair. `STRATA_STAGE_TRIM` is already `1` in the install config, so the
156  stage-trim arm's *B* side sets it to `0`: A is "trim on", the default, and B is "trim off".
157- **Soak:** one server for 30 minutes with `--resident-budget-gib 30`, one fresh conversation after
158  another at 128 tokens, `scripts/sample_mem.py` writing a row every 60 s.
159- **`--batch`:** the same short arm with `--batch 2` and `--batch 4` (single requests, so it shows
160  that the config loads and that nothing hangs), then
161  [`scripts/batch_concurrent.py`](scripts/batch_concurrent.py) posting N requests at once, which is
162  what actually fills the batch slots (`tools/hip/bench_prefill.py` is single request).
163- **Timing boundaries:** prompt tok/s and decode tok/s always come from the engine's own completion
164  line (`prompt N tokens = X reused + Y read in Z ms (P tok/s), G generated in D ms (D tok/s)`), never
165  from wall time divided by token count. TTFT is measured only in `interleave500.py`, client side over
166  loopback, from just before the POST to the first non-empty streaming delta (empty deltas and
167  keep-alives ignored); it is not measured in the short arms. Wall time is the whole request at the
168  client, over loopback. Model loading is excluded: every side waits for
169  `{"loaded": true}` on `/health` before its first request.
170- **State between runs:** each side of each arm is a fresh server, so the expert cache, KV cache and
171  CUDA context are cold at the start of every side; within a side, the expert cache is pre-filled from
172  the profile at start and then keeps adapting (the engine prints its hit rate at the end of each
173  request). Fresh prompts and follow-ups that reuse a prefix are always reported separately.
174- **Memory:** `scripts/sample_mem.py` samples every 60 s: whole-machine RAM as
175  `MemTotal - MemAvailable` (this counts page cache that is in use, not "anonymous memory only"), each
176  card's `mem_info_vram_used` from amdgpu's sysfs counters, and the engine process's RSS. Values in
177  the soak section are first sample and peak over those 60 s samples; a peak between samples can be
178  missed.
179- **Browser:** `ab-run.sh` passes `--open`, so `BROWSER=true` was exported to stop it opening a
180  tab; no other desktop effect is known.
181
182### Files
183
184| File | What it holds |
185| --- | --- |
186| [data/hardware.txt](data/hardware.txt) | os-release, uname, rocminfo, rocm-smi, sysfs PCIe links, CPU/RAM/storage, engine version, PCI topology of both cards |
187| [data/interleave500.json](data/interleave500.json) | the 20 interleave requests: arm, pair, prompt id, TTFT, wall, engine metrics, finish reason, output head |
188| [data/interleave500-server.out](data/interleave500-server.out), [data/engine-interleave.log](data/engine-interleave.log) | the server output and the engine log slice for those 20 requests |
189| [data/ab-\<label\>-A.json](data), [data/ab-\<label\>-B.json](data) | the short arms' per-request records (`pipeline-off`, `stage-trim-off`, `resident`, `batch2`, `batch4`) |
190| [data/cfg-\<label\>-B.json](data) | the config each arm's B side actually ran (`cfg-soak.json` and `cfg-interleave-B.json` are the soak's and the interleave's), with private paths rewritten |
191| [data/ab-\<label\>-run.out](data) | the harness's own printed A/B summary for each arm |
192| [data/ab-\<label\>-server-A.out](data), [data/ab-\<label\>-server-B.out](data) | each side's server output (start-up decisions, `done` lines) |
193| [data/engine-ab-\<label\>.log](data) | each arm's engine log slice (start-up decisions plus request lines) |
194| [data/soak-mem.csv](data/soak-mem.csv), [data/soak.json](data/soak.json) | the 60 s memory samples and the soak's 239 per-prompt records |
195| [data/soak-summary.json](data/soak-summary.json), [data/soak-engine.log](data/soak-engine.log), [data/soak-server.out](data/soak-server.out) | the rebuilt soak summary (survived, peaks, request counts), the engine slice it was rebuilt from, and the soak's server output |
196| [data/run-all.out](data/run-all.out) | the console transcript of the whole serial run, including the soak's per-prompt lines |
197| [data/batch-concurrent-batch\<n\>.json](data) | the N-concurrent batch measurements: per-slot TTFT, wall, finish, the server's `done` lines and the engine slice |
198| [data/batch-concurrent-batch\<n\>.server.out](data), [data/batch-concurrent-batch\<n\>.engine.log](data), [data/run-batch-concurrent.out](data/run-batch-concurrent.out) | the server output, engine slice and console transcript of each concurrency run |
199| [data/engine.log](data/engine.log) | start-up lines plus request lines for every step of this report |
200| [data/summary.md](data/summary.md) | the machine-built median/range tables this README's numbers are taken from |
201| [scripts/](scripts) | every script that produced the above, including the A/B harness (`ab-run.sh`) |
202
203## Results
204
205### All runs
206
207Every row is a **median (minimum-maximum)** over the runs in that row; every run is in the linked
208JSON. No request failed and no arm needed a retry. Prompt throughput is freshly read tokens per
209second from the engine's own completion line; decode is generated tokens per that line's decode
210time; TTFT is client side over loopback and is `not measured` outside the interleave. Warm-up
211requests are excluded everywhere.
212
213| Configuration | Actual prompt tokens | Reused tokens | Generated tokens | Runs | Prompt tok/s median and range | Decode tok/s median and range | TTFT seconds median and range |
214| --- | ---: | ---: | ---: | ---: | --- | --- | --- |
215| `--pipeline-windows 2` (A), 500-token, interleaved | 1,757-4,238 | 0 | 256-500 (cap 500) | 10 | 961.0 (841.5-1,270.1) | **69.3 (66.4-74.3)** | 2.9 (1.9-3.6) |
216| `--pipeline-windows 1` (B), 500-token, interleaved | 1,757-4,238 | 0 | 256-500 (cap 500) | 10 | 959.9 (839.6-1,271.9) | **63.8 (59.7-69.7)** | 2.9 (1.9-3.7) |
217| baseline (A) fresh, `pipeline-off` arm | 4,210-8,830 | 0 | 128 | 4 | 1,582.8 (1,302.1-1,756.8) | 77.1 (70.9-83.9) | not measured |
218| baseline (A) follow-up, `pipeline-off` arm | 4,451-9,071 | 4,203-8,958 | 128 | 4 | 185.8 (182.3-315.1) | 66.2 (60.0-73.2) | not measured |
219| `--pipeline-windows 1` (B) fresh | 4,210-8,830 | 0 | 128 | 4 | 1,568.0 (1,174.4-1,738.6) | 70.0 (63.1-73.6) | not measured |
220| `--pipeline-windows 1` (B) follow-up | 4,451-9,071 | 4,337-8,823 | 118-128 | 4 | 246.8 (182.7-313.1) | 62.8 (56.9-64.6) | not measured |
221| baseline (A) fresh, `stage-trim-off` arm | 4,210-8,830 | 0 | 128 | 4 | 1,582.9 (1,229.7-1,751.3) | 75.7 (67.6-84.7) | not measured |
222| baseline (A) follow-up, `stage-trim-off` arm | 4,451-9,071 | 4,337-8,957 | 128 | 4 | 186.1 (180.4-193.3) | 73.5 (68.7-79.1) | not measured |
223| `STRATA_STAGE_TRIM=0` (B) fresh | 4,210-8,830 | 0 | 128 | 4 | 1,103.4 (883.2-1,213.6) | 67.6 (57.7-77.1) | not measured |
224| `STRATA_STAGE_TRIM=0` (B) follow-up | 4,451-9,071 | 4,203-8,957 | 128 | 4 | 193.4 (132.3-254.3) | 70.9 (65.1-76.7) | not measured |
225| baseline (A) fresh, `resident` arm | 4,210-8,830 | 0 | 76-128 | 4 | 1,558.5 (1,235.2-1,736.0) | 72.1 (63.9-78.5) | not measured |
226| baseline (A) follow-up, `resident` arm | 4,451-9,071 | 4,203-8,958 | 128 | 4 | 186.6 (181.1-301.3) | 63.4 (61.3-70.1) | not measured |
227| `--resident-budget-gib 30` (B) fresh | 4,210-8,830 | 0 | 128 | 4 | 1,550.0 (1,313.5-1,718.9) | 69.0 (58.0-72.1) | not measured |
228| `--resident-budget-gib 30` (B) follow-up | 4,451-9,071 | 4,203-8,958 | 128 | 4 | 243.9 (179.6-312.5) | 64.6 (60.5-66.6) | not measured |
229| baseline (A) fresh, `batch2` arm | 4,210-8,830 | 0 | 76-128 | 4 | 1,542.7 (1,301.4-1,712.5) | 79.1 (74.1-82.0) | not measured |
230| baseline (A) follow-up, `batch2` arm | 4,398-9,071 | 4,203-8,958 | 128 | 4 | 227.3 (188.4-311.4) | 70.1 (62.3-71.3) | not measured |
231| `--batch 2` (B) fresh, one request at a time | 4,210-8,830 | 0 | 128 | 4 | 1,404.0 (1,155.0-1,552.9) | 68.3 (66.2-69.4) | not measured |
232| `--batch 2` (B) follow-up, one request at a time | 4,451-9,071 | 4,203-8,957 | 128 | 4 | 288.7 (174.1-300.7) | 62.8 (59.6-69.1) | not measured |
233| baseline (A) fresh, `batch4` arm | 4,210-8,830 | 0 | 128 | 4 | 1,452.3 (956.0-1,798.1) | 71.2 (56.7-72.3) | not measured |
234| baseline (A) follow-up, `batch4` arm | 4,451-9,071 | 4,338-8,823 | 127-128 | 4 | 213.9 (141.3-298.2) | 61.0 (57.8-68.0) | not measured |
235| `--batch 4` (B) fresh, one request at a time | 4,210-8,830 | 0 | 128 | 4 | 1,117.7 (854.2-1,238.9) | 68.5 (66.0-74.9) | not measured |
236| `--batch 4` (B) follow-up, one request at a time | 4,451-9,071 | 4,337-8,957 | 128 | 4 | 147.1 (144.7-256.3) | 60.9 (59.0-67.6) | not measured |
237
238Four runs stopped before the 128-token cap (76, 76, 118 and 127 generated tokens: two in arm A
239follow-ups of the `resident` and `batch2` arms, one in the pipeline arm's B follow-up and one in the
240`batch4` arm's A follow-up) and are published as they are; their prompts are the reason those rows'
241token counts differ slightly. The same baseline config was measured as the A side of all five arms:
242fresh decode medians 77.1, 75.7, 72.1, 79.1 and 71.2 tok/s, a **71.2-79.1 tok/s spread on one
243configuration**, which is the noise floor for any arm-to-arm difference discussed below.
244
245### Soak: 30 minutes with `--resident-budget-gib 30`
246
247[data/soak-summary.json](data/soak-summary.json), [data/soak-mem.csv](data/soak-mem.csv) and
248[data/soak-engine.log](data/soak-engine.log):
249
250- **survived: yes.** 239 prompts sent over 30 minutes (one fresh conversation each, 128 tokens,
251  greedy), **239 completed, 0 errors**, all `finish_reason: length`. Request wall time 2.02 / 2.55 /
252  3.23 s (min / median / max). No `no progress`, NaN, crash, `never rang`, doorbell, abort, OOM or
253  "killed" line appears in the soak's engine-log slice.
254- **Samples:** 31 rows spanning 1,800.2 s, one every 60 s.
255- **RAM** (`MemTotal - MemAvailable`, whole machine, includes page cache in use): first sample
256  **22,713.6 MiB**, peak **24,009.0 MiB** (23.4 GiB) of 62.7 GiB installed.
257- **Engine RSS:** first sample **10,810.3 MiB**, peak **11,180.1 MiB** (10.9 GiB).
258- **VRAM** (amdgpu `mem_info_vram_used`, whole card): `0000:06:00.0` first 15.004 GiB, peak
259  **15.054 GiB** of 16.0; `0000:2d:00.0` first 14.314 GiB, peak **14.440 GiB** of 16.0. These are
260  60 s samples; a peak between samples can be missed.
261- Resident RAM mode was active for the whole soak: `resident RAM mode: 5.38 GiB of experts in RAM
262  (page-locked), 4648 in the GPU cache; adaptive swaps exchange them with the GPU cache (no file
263  reads)`, 9,413 resident experts on the token-graph hit path, 77% of the experts resident, and the
264  decode expert-cache hit rate went from 95.9% on the first completed request to 97.2% on the last.
265- **The harness's teardown failed, not the soak:** `sample_mem.py` looks for its stop file at the top
266  of its loop, so it only noticed one full 60 s interval later, and `soak.py` waited 30 s - its
267  `subprocess.TimeoutExpired` is the one traceback in [data/run-all.out](data/run-all.out). The
268  samples, the per-prompt records and the engine slice were all written before that point;
269  [scripts/soak_summary.py](scripts/soak_summary.py) rebuilt `soak-summary.json` from them, and
270  [scripts/soak.py](scripts/soak.py) now waits out one whole interval so a repeat finishes cleanly.
271
272### Per-pair detail: `--pipeline-windows 2` vs `--pipeline-windows 1`
273
274The same prompt to both arms, one server restart per request, A always first in the pair:
275
276| Pair | Prompt tokens | Generated A / B | Decode A tok/s | Decode B tok/s | B vs A |
277| ---: | ---: | ---: | ---: | ---: | ---: |
278| 1 | 1,757 | 409 / 414 | 66.4 | 60.5 | -8.9% |
279| 2 | 2,334 | 500 / 500 | 72.6 | 59.7 | -17.8% |
280| 3 | 2,913 | 500 / 500 | 67.8 | 68.3 | +0.7% |
281| 4 | 3,584 | 500 / 500 | 68.8 | 68.1 | -1.0% |
282| 5 | 4,238 | 500 / 256 | 73.2 | 63.3 | -13.5% |
283| 6 | 1,757 | 336 / 258 | 67.4 | 63.5 | -5.8% |
284| 7 | 2,334 | 500 / 500 | 66.9 | 63.8 | -4.6% |
285| 8 | 2,913 | 500 / 500 | 71.0 | 69.7 | -1.8% |
286| 9 | 3,584 | 500 / 500 | 74.3 | 64.6 | -13.1% |
287| 10 | 4,238 | 500 / 500 | 69.9 | 63.9 | -8.6% |
288
289Prompt tokens are identical within a pair, which is what makes the pairing useful. Decode is greedy
290but not bit-reproducible across server restarts: prompt 0 generated 409 tokens in pair 1 and 336 in
291pair 6 under arm A, and in 3 of the 10 pairs the two arms stopped at different token counts (pairs 1,
2925 and 6). Those short runs are included, not thrown away.
293
294### What the engine printed
295
296- `--pipeline-windows 2: two verifiers per stage, the stages overlap across windows (decode too; the
297  GDN snapshots beside the window)`
298- `--pipeline-windows 1: two verifiers per stage, the stages overlap across windows`
299
300The two settings print different start-up lines, so 0.1.40 does act on the flag. The install config
301already carried `--pipeline-windows 2` under 0.1.39, where it was ignored; this report does not
302compare versions, only this setting inside 0.1.40.
303
304### Stage weights (#880)
305
306| | `STRATA_STAGE_TRIM=1` (default, A) | `STRATA_STAGE_TRIM=0` (B) |
307| --- | --- | --- |
308| CUDA0 expert cache | 4,673 slots, 8.46 GiB | 3,832 slots, 6.93 GiB |
309| CUDA1 expert cache | 4,765 slots, 9.62 GiB | 3,792 slots, 7.67 GiB |
310| resident experts at start | **9,438** | **7,624** |
311| engine's own share line | `77% of the experts resident` | not printed |
312| CUDA1 free before the cache fill | 12.38 GiB of 15.98 | 10.43 GiB of 15.98 |
313| free with everything loaded | 3,192 MiB | 3,170 MiB |
314| decode expert-cache hit rate | 93.6-99.2% | 87.9-97.6% |
315| fresh prefill median | 1,582.9 tok/s | 1,103.4 tok/s (-30.3%) |
316| fresh decode median | 75.7 tok/s | 67.6 tok/s (-10.7%) |
317
318Both sides print `CUDA0 loads the dense weights of layers 0-26 only` and
319`CUDA1 loads the dense weights of layers 27-47 only`; what the trim removes is 1,814 resident experts
320(a little over 2 GiB of slots across both cards), and the slow card pays for every expert it then
321has to fetch.
322
323### `--batch` (#776): slot sessions, real concurrency, doorbells
324
325Arm B adds `--batch 2` or `--batch 4`, and the engine switches the pipeline window off by itself:
326
327- `--pipeline-windows 2 is off: not with --batch slots`
328- `--batch: 4 slot sessions on CUDA0 (0.52 GiB each); 11.16 GiB free` and the same on CUDA1
329  (0.50 GiB each), `--batch 4: the slot sessions take 2.08 GiB of VRAM on CUDA0 that the expert
330  cache would otherwise hold` (2 slots: 1.04 GiB)
331- `strata verify: batch windows of up to 4 sequences (layers [0, 27))` and `(layers [27, 48))`
332
333So the `--batch` rows in the table are the batch config *as a whole* - slot sessions taking VRAM
334away from the expert cache **and** the window overlap switched off - not batch alone. Against the
335baseline, fresh prefill fell from 1,582.8 to 1,404.0 (`--batch 2`) and 1,117.7 tok/s (`--batch 4`),
336and fresh decode from 77.1 to 68.3 and 68.5 tok/s. All 36 runs of the two batch arms completed (9
337requests per side, two sides, two arms) with no error and no stage waiting.
338
339**Concurrency** ([`scripts/batch_concurrent.py`](scripts/batch_concurrent.py)): N fresh 500-token
340greedy conversations posted at the same instant, per-request TTFT and wall time measured at the
341client, decode taken from the server's own `[strata] done: N tokens in T s (X tok/s)` line (the
342engine's completion line is one per prompt *chunk* under `--batch`, so it cannot be summed). Files:
343[data/batch-concurrent-batch2.json](data/batch-concurrent-batch2.json),
344[data/batch-concurrent-batch4.json](data/batch-concurrent-batch4.json), each with its
345`.server.out` and `.engine.log` slice.
346
347| Run | Slots filled | TTFT seconds, by slot | Wall seconds, by slot | Decode tok/s, by slot | Aggregate decode tok/s | Hung slots |
348| --- | ---: | --- | --- | --- | ---: | ---: |
349| `--batch 2`, one request at a time (the arm above, 128-token runs) | 1 | not measured | not measured | 68.3 (66.2-69.4) | 68.3 | 0 |
350| `--batch 2`, 2 at once | 2 | 2.33, 6.26 | 19.13, 21.69 | 24.2, 32.4 | **56.6** | 0 |
351| `--batch 4`, 4 at once | 4 | 3.22, 8.15, 13.36, 18.68 | 37.85, 42.03, 43.15, 43.85 | 13.1, 14.8, 16.8, 19.9 | **64.6** | 0 |
352
353- **No doorbell was left ringing.** Every slot finished inside the 300 s per-slot timeout (worst
354  43.9 s), `hung_slots` is empty in both JSONs, and neither engine slice contains a `no progress`,
355  `never rang`, stall, abort, NaN or OOM line. The windows visibly form: `strata batch: slot 3 takes
356  3584 tokens (copied in 111.7 ms)`, `strata verify: captured the batch window over slots 0,1,2,3`.
357- **The slots did not buy throughput here.** One request at a time on the same config decoded at
358  68.3 tok/s; two at once totalled 56.6 and four at once 64.6 (the sum of the per-slot rates), so
359  the batch kept the machine near a single request's output rate while each request fell to
360  24.2-32.4 tok/s with 2 slots (2.4x slower) and 13.1-19.9 tok/s with 4 (4.2x slower). TTFT also
361  stacks, because prompts are admitted in turn: the fourth slot waited 18.7 s for its first token
362  (`strata batch: the prompt was read in 2 parts, the slots decoding 1034 ms between them`).
363- Caveats: the single-request reference row is from the arm's 128-token runs while the concurrent
364  rows are 500-token runs, so it is a rate comparison and not a latency one, and it is one machine
365  and one quantization, as the limitations below say.
366
367## Correctness and limitations
368
369- **No answer-quality check was run.** This report is speed and stability only: no `needle_bench.py`,
370  no coding task with tests, no vision input. Nothing here says anything about answer quality.
371- **Greedy is not bit-reproducible across restarts.** Same config, same prompt, same seed gave 409
372  then 336 generated tokens for prompt 0 under arm A, and 3 of the 10 window pairs stopped at
373  different points. Decode tok/s still comes from the engine's own decode timing, so the short runs
374  are comparable, but they are noisier than the runs that hit the 500-token cap.
375- **One machine, one quantization, one layer split, small synthetic prompts.** The longest prompt
376  measured fresh is 4,238 tokens and the longest context used is that; the 262,144-token context,
377  128,000-token prompts, vision, tool use, concurrency beyond the batch runs, thinking and sampled
378  decoding were not tested. The two cards differ by nearly a factor of nine in measured link
379  bandwidth, so a machine with two identical links would show different numbers.
380- **The baseline was measured five times** (once as the A side of each arm) and its fresh-decode
381  medians were 77.1, 75.7, 72.1, 79.1 and 71.2 tok/s (71.2-79.1), plus 69.3 in the interleaved
382  500-token runs, which are a different workload. Differences smaller than that spread are not
383  treated as effects here.
384- **The expert profile changes while the server runs** (`--expert-profile-save`), so the arms do not
385  see byte-identical profiles; each side starts from the file the previous side left behind.
386- **Model revision unknown.** The GGUF files' repository revision was not recorded, only their names,
387  sizes and download time, so a later revision of the same repository could differ.
388- **Suggested comparison on this machine:** none. There is no second version, second card or second
389  quantization measured here to compare against, and the report rules forbid a version-to-version
390  claim from a single configuration.