okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
a4af4df61
main
files
| data/ | |
| scripts/ | |
| README.md | 30.4 KiB |
| TRIMMED.md | 3.9 KiB |
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 IDs1DA2:475E(slot0000:2d:00.0) and1EAE:790A(slot0000: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.0is on a clean path - root port00:03.1through2b:00.0and2c: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, goes00:01.2(8.0 GT/s now, max 16.0 GT/s x8) then02:00.2,03:00.0,04:00.0,05:00.0, and the hops from03:00.0down 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 andlspcineed root, so negotiated widths beyond what sysfs shows were not read. - Order: the config's
"gpu": [1, 0]makes the server setHIP_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/zram032,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'smake-rocm-tree.pyfrom nixpkgs ROCm packages, ROCm 7.2.3, HIP 7.2.53211, rocm-smi 4.0.0);ROCM_PATHand the loader paths come from<local opt>/strata-env.sh. - Source:
mainat1735d64(pulled 2026-10-06 19:11), engine version 0.1.40, llama.cpp pinned at3cf0325. - Build: a local HIP source build, not a release binary:
engine/BUILD.jsonsays"source": "local-hip", "backend": "hip", "version": "0.1.40", "archs": ["gfx1100"], built withcmake -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/stratais 11,419,856 B, mtime 2026-10-06 19:13, and--versionreports 0.1.40. One bookkeeping wrinkle: thesrcfingerprint inBUILD.jsonisd63ddbc6a262e39e, which is the fingerprintsetup.pycomputes for the tree at6f32ec0(the commit before the 19:11 pull), while the tree at run time (1735d64) fingerprints as6f298dff754d187f.setup.pyhashes 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 2start-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.gguf29,608,446,496 B (29.6 GB / 27.6 GiB), passed as--native;Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf28,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 asindex.txtsays:# 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(sha2562cb3352786bcae81...;dense.bin1,475,120,640 B,experts.bin25,146,163,200 B,native_experts.txtsha2569ace1b92e1fe1259...). - Expert profile:
expert-profile-learned-coder.bin(98,328 B, sha256be2c27b6d2267470162d9ebadeac8f3e2d36c4f70399cea04d51db6fef78d636as it stood after the last run). It is a learned profile: passed as--expert-profileat start and rewritten by--expert-profile-savewhile 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.binsha256c724dc0b0822ada5...,experts.binsha25609398406be61f1f5...,draft_vocab.binsha256369151522226a5ed...), draft vocabularyen. - Vision:
--visionwithstrata-visionandmmproj-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 2in 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_tokensis 2048 in the config but no request asks for reasoning). - Environment:
STRATA_HIPBLASLT_TUNING=<strata checkout>/tools/hip/gfx1100-hipblaslt-100202.txt(sha256a594869223200c62...),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_tokenson.
# 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 2vs 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_TRIMis already1in the install config, so the stage-trim arm's B side sets it to0: 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.pywriting a row every 60 s. --batch: the same short arm with--batch 2and--batch 4(single requests, so it shows that the config loads and that nothing hangs), thenscripts/batch_concurrent.pyposting N requests at once, which is what actually fills the batch slots (tools/hip/bench_prefill.pyis 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 ininterleave500.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/healthbefore 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.pysamples every 60 s: whole-machine RAM asMemTotal - MemAvailable(this counts page cache that is in use, not "anonymous memory only"), each card'smem_info_vram_usedfrom 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.shpasses--open, soBROWSER=truewas exported to stop it opening a tab; no other desktop effect is known.
Files
| File | What it holds |
|---|---|
| data/hardware.txt | os-release, uname, rocminfo, rocm-smi, sysfs PCIe links, CPU/RAM/storage, engine version, PCI topology of both cards |
| data/interleave500.json | the 20 interleave requests: arm, pair, prompt id, TTFT, wall, engine metrics, finish reason, output head |
| data/interleave500-server.out, data/engine-interleave.log | the server output and the engine log slice for those 20 requests |
| data/ab-<label>-A.json, data/ab-<label>-B.json | the short arms' per-request records (pipeline-off, stage-trim-off, resident, batch2, batch4) |
| data/cfg-<label>-B.json | 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 |
| data/ab-<label>-run.out | the harness's own printed A/B summary for each arm |
| data/ab-<label>-server-A.out, data/ab-<label>-server-B.out | each side's server output (start-up decisions, done lines) |
| data/engine-ab-<label>.log | each arm's engine log slice (start-up decisions plus request lines) |
| data/soak-mem.csv, data/soak.json | the 60 s memory samples and the soak's 239 per-prompt records |
| data/soak-summary.json, data/soak-engine.log, 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 |
| data/run-all.out | the console transcript of the whole serial run, including the soak's per-prompt lines |
| data/batch-concurrent-batch<n>.json | the 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.out | the server output, engine slice and console transcript of each concurrency run |
| data/engine.log | start-up lines plus request lines for every step of this report |
| data/summary.md | the 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.
| 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 |
|---|---|---|---|---|---|---|---|
--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) |
--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) |
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 |
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 |
--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 |
--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 |
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 |
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 |
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 |
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 |
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 |
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 |
--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 |
--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 |
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 |
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 |
--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 |
--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 |
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 |
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 |
--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 |
--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 |
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). Nono 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.0first 15.004 GiB, peak 15.054 GiB of 16.0;0000:2d:00.0first 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.pylooks for its stop file at the top of its loop, so it only noticed one full 60 s interval later, andsoak.pywaited 30 s - itssubprocess.TimeoutExpiredis 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 rebuiltsoak-summary.jsonfrom 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:
| Pair | Prompt tokens | Generated A / B | Decode A tok/s | Decode B tok/s | B vs A |
|---|---|---|---|---|---|
| 1 | 1,757 | 409 / 414 | 66.4 | 60.5 | -8.9% |
| 2 | 2,334 | 500 / 500 | 72.6 | 59.7 | -17.8% |
| 3 | 2,913 | 500 / 500 | 67.8 | 68.3 | +0.7% |
| 4 | 3,584 | 500 / 500 | 68.8 | 68.1 | -1.0% |
| 5 | 4,238 | 500 / 256 | 73.2 | 63.3 | -13.5% |
| 6 | 1,757 | 336 / 258 | 67.4 | 63.5 | -5.8% |
| 7 | 2,334 | 500 / 500 | 66.9 | 63.8 | -4.6% |
| 8 | 2,913 | 500 / 500 | 71.0 | 69.7 | -1.8% |
| 9 | 3,584 | 500 / 500 | 74.3 | 64.6 | -13.1% |
| 10 | 4,238 | 500 / 500 | 69.9 | 63.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 cache | 4,673 slots, 8.46 GiB | 3,832 slots, 6.93 GiB |
| CUDA1 expert cache | 4,765 slots, 9.62 GiB | 3,792 slots, 7.67 GiB |
| resident experts at start | 9,438 | 7,624 |
| engine's own share line | 77% of the experts resident | not printed |
| CUDA1 free before the cache fill | 12.38 GiB of 15.98 | 10.43 GiB of 15.98 |
| free with everything loaded | 3,192 MiB | 3,170 MiB |
| decode expert-cache hit rate | 93.6-99.2% | 87.9-97.6% |
| fresh prefill median | 1,582.9 tok/s | 1,103.4 tok/s (-30.3%) |
| fresh decode median | 75.7 tok/s | 67.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 freeand 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.
| Run | Slots filled | TTFT seconds, by slot | Wall seconds, by slot | Decode tok/s, by slot | Aggregate decode tok/s | Hung slots |
|---|---|---|---|---|---|---|
--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 |
--batch 2, 2 at once | 2 | 2.33, 6.26 | 19.13, 21.69 | 24.2, 32.4 | 56.6 | 0 |
--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 |
- No doorbell was left ringing. Every slot finished inside the 300 s per-slot timeout (worst
43.9 s),
hung_slotsis empty in both JSONs, and neither engine slice contains ano 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.