okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
09fadfee6
main
Community benchmark: RTX 4070 Ti SUPER, Ryzen 7 9800X3D
Measured on 2026-10-05 by lfontanez, on a Linux
machine called Shin-BlackMamba. This tests Strata at upstream-main commit
6f32ec07 with both Qwen3.8-Flash-Next IQ2_XS and IQ3_XXS, a single GPU, and
context ceilings from 32 768 to 262 144 tokens. The bench measures wall-clock
prefill (cold), streamed prefill (TTFT-aligned), and decode throughput
together, plus a long-context recall check at 32 k.
Median decode throughput (engine-reported predicted_per_second over three
SSE stream calls at temperature 0, max_tokens 192, reasoning_effort="minimal"):
| Model | KV | 32 k ctx | 64 k ctx | 128 k ctx | 256 k ctx |
|---|---|---|---|---|---|
| IQ2_XS | int8 | 97.90 | 94.30 | 90.00 | 82.40 |
| IQ3_XXS | varies | 76.00 | 71.30 | 70.00 | 56.00 |
Cold prefill throughput (POST /unload then max_tokens=1 non-stream) sat at
2 400-2 750 t/s across all 8 configurations; the README's 2 000+ t/s headline
holds on this card. The streamed prefill (TTFT-aligned) was 100-160 t/s — the
two metrics mean different things, see Methodology.
Hardware and software
- GPU: NVIDIA GeForce RTX 4070 Ti SUPER, 16 376 MiB VRAM (16 GiB), compute
capability 8.9 (
sm_89). PCIe capability: Gen 4, x16; the engine's startup transfer probe reported the host-to-device bandwidth of the slot. GPU power limit was the stock 285 W; clocks were not fixed for this test. - CPU: AMD Ryzen 7 9800X3D, 16 logical CPUs, AVX2 + AVX-512. The engine selected 23 expert-pool workers plus its host thread.
- RAM: 94 GiB installed; Linux reported 90.43 GiB usable. 8 GiB system swap.
- Storage: Samsung 990 PRO 2 TB NVMe (
/dev/nvme0n1p2, ext4, rootfs). Local model volumes:strata-datanamed Docker volume mounted at/data. - OS: Ubuntu 24.04.5 LTS, kernel 6.8.0-146-generic.
- Stack: NVIDIA driver 595.91.07 (CUDA 13.2); nvidia-container-toolkit 1.20.1
with the
nvidiaruntime as Docker's default; Docker 29.8.1. - Strata commit:
6f32ec070f23ced9f50e704d854d775da52591ab(Niko1221/Strata main, 2026-10-05). - Engine build: locally compiled CUDA architecture 89 (RTX 40 only,
fat-binary with a single cubin),
BUILD_VISION=0so the image-encoder did not compile. Base image:nvidia/cuda:13.0.0-devel-ubuntu24.04. Python 3.12.3; NVCC 13.0.x. - Workload isolation: 8 other containers remained running on the host (voicebox, supabase stack, n8n, qdrant, langfuse, open-webui, portainer, flowise). All but voicebox are CPU- and RAM-bound; voicebox is TTS-bound at idle. The GPU was dedicated to the Strata container throughout this run. This was not a completely isolated operating system.
Model and configuration
Models from ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF, revision resolved by the installer at runtime:
- IQ2_XS:
IQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf(39.07 GiB) +IQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf(26.81 GiB PLE). - IQ3_XXS:
IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf(43.81 GiB) +IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf(shared PLE shard).
MTP fetched by the installer from
Qwen/Qwen3.8-Flash-Next; the
tensor-range manifest is in /data/mtp/mtp-manifest.json (and
mtp-manifest.json in this PR's audit folder). Q2_0 MTP
experts were selected, as configured in the install.sh defaults.
The unmodified installer (-e VISION=no) prepared the native IQ2_XS and IQ3_XXS
packs. The executable and prepared-packs are in the image at
/opt/strata/engine/strata and in the /data Docker volume.
The 8 configurations tested:
| cfg # | Model | CONTEXT | KV | KV-streaming |
|---|---|---|---|---|
| 1 | IQ2_XS | 32768 | int8 | n/a (kv fits) |
| 2 | IQ2_XS | 65536 | int8 | --kv-resident 32768 |
| 3 | IQ2_XS | 131072 | int8 | --kv-resident 32768 |
| 4 | IQ2_XS | 262144 | int8 | --kv-resident 32768 |
| 5 | IQ3_XXS | 32768 | int8 | n/a (kv fits) |
| 6 | IQ3_XXS | 65536 | int8 | (KV still small in RAM) |
| 7 | IQ3_XXS | 131072 | q4_0 | (KV-streaming + q4_0) |
| 8 | IQ3_XXS | 262144 | k8v4 | (KV-streaming + k8v4) |
KV choices reflect the VRAM envelope: IQ3_XXS residents 47 GiB of experts, so
its KV table had to shrink at higher contexts. IQ2_XS stays on int8 everywhere
because --kv-resident 32768 keeps the live KV slice in RAM, not VRAM.
Common settings across all 8:
--expert-cache auto,--prefill auto,--spec 4 --spec-min-p 0.5.--expert-profile /opt/strata/data/expert-profile.bin(bundled, shipped from the image).- MTP draft layer at
/data/mtp/rt(Q2_0 tensor range, default). - Reasoning
minimal, temperature 0,max_tokens 192for streamed runs. - Cold-prefill probes use
max_tokens 1non-stream afterPOST /unload. - Vision decoder NOT compiled (
BUILD_VISION=0);VISION=no. - Low-RAM detector chose resident experts at boot (94 GiB > model experts).
The complete measured configurations are in
strata-iq2_xs.json (CONTEXT=262144, KV=int8, KV-streaming)
and strata-iq3_xxs.json (CONTEXT=262144, KV=k8v4). All
other CONTEXTs were applied at relaunch with -e REINSTALL=1.
Method and reproduction
Use the attached strata-iq2_xs.json and
strata-iq3_xxs.json — they are valid because each
container's start-up regenerated the config on /data/config/ and docker run
with REINSTALL=1 re-applied model settings without re-downloading.
# From the repo root, with an empty GPU + toolkit (verified above) docker build-t strata \--build-arg CUDA_ARCHITECTURES=89 \--build-arg BUILD_VISION=0 \ .docker volume create strata-data# IQ2_XS @ 32k for example. Swap MODEL/CONTEXT/KV for the other 7 configs. docker rm-f strata2 > /dev/nulldocker run-d --name strata--network host--gpus all \--ulimit memlock=-1--shm-size=4g \-v strata-data:/data \-e FAMILY=qwen-e MODEL=IQ2_XS-e CONTEXT=32768 \-e VISION=no-e KV=int8-e REINSTALL=1 \-e HOST=127.0.0.1-e PORT=8090 \--restart unless-stopped strata# 1 cold-prefill probe + 3 SSE stream calls per row → matrix pip install requestspython3 bench/results/2026-10-01-ctx-ladder/run.py \--model qwen3.8-flash-next-iq2_xs--contexts 32768 \--out bench/results/2026-10-01-ctx-ladder/32k.json
Why --network host? A -p 127.0.0.1:HOST:CT publish on a bridge
network is DNAT'd to the container's bridge interface, but if the engine
binds 127.0.0.1 (its default), the kernel refuses transit to its own
loopback. --network host collapses both namespaces so the engine's
loopback IS the host's loopback. The container also stays localhost-only,
so this is safe without an API key on a single-user dev box.
Every run row was three SSE stream calls + one cold-prefill probe. The
cold-prefill is a fresh /unload then a non-stream max_tokens=1 call:
the answer cannot be confounded with a previous decode's KV reuse. Each
container start was a single fresh load (~50-90 s); the engine was not
restarted or /unload-ed between the three stream calls — the prompt
changes between calls and the conversation cache was disabled at the
server side.
Results (full matrix, 3 runs per cell + cold prefill)
| Label | Model | KV | Prompt tok | Avg TPS | Peak | Engine TPS | Cold prefill | SSE prefill | Draft | TTFT |
|---|---|---|---|---|---|---|---|---|---|---|
| 32 k | IQ2_XS | int8 | 29 966 | 95.62 | 136.34 | 93.47 | 2 695 | 141.3 | 75.8% | 183 ms |
| 64 k | IQ2_XS | int8 | 60 270 | 91.80 | 123.20 | 89.90 | 2 678 | 140.9 | 74.5% | 271 ms |
| 128 k | IQ2_XS | int8 | 120 748 | 87.95 | 117.52 | 86.67 | 2 670 | 132.6 | 76.8% | 422 ms |
| 256 k | IQ2_XS | int8 | 240 912 | 79.63 | 107.36 | 78.50 | 2 484 | 127.3 | 69.6% | 726 ms |
| IQ3 @32 k | IQ3_XXS | int8 | 29 966 | 73.32 | 97.96 | 71.73 | 2 747 | 116.5 | 69.8% | 217 ms |
| IQ3 @64 k | IQ3_XXS | int8 | 60 270 | 69.16 | 98.66 | 68.36 | 2 545 | 107.0 | 70.3% | 295 ms |
| IQ3 @128 k | IQ3_XXS | q4_0 | 120 748 | 65.51 | 84.42 | 64.10 | 2 478 | 105.2 | 67.7% | 461 ms |
| IQ3 @256 k | IQ3_XXS | k8v4 | 240 912 | 53.70 | 71.09 | 52.97 | 2 404 | 91.9 | 66.6% | 768 ms |
Quality-vs-speed tax (IQ3_XXS vs IQ2_XS, both at the same KV):
| ctx | KV | IQ2_XS engine TPS | IQ3 engine TPS | IQ3 decode tax |
|---|---|---|---|---|
| 32 k | int8 | 93.47 | 71.73 | -23.3 % |
| 64 k | int8 | 89.90 | 68.36 | -24.0 % |
| 128 k | int8 (iq2) vs q4_0 (iq3) | 86.67 | 64.10 | -26.0 % (KV differs, confounded) |
| 256 k | int8 (iq2) vs k8v4 (iq3) | 78.50 | 52.97 | -32.5 % (KV differs, confounded) |
The 128 k/256 k rows are not a clean apples-to-apples (the IQ3 engine forced KV down on its side), but they reflect what a user who wants IQ3 quality at 256 k context will actually see on a single 16 GiB card.
Long-context recall (tools/needle_bench.py)
Single-run needle_bench.py --lengths 32k --depths 10,50,90 against the running
container. Source: docs/, include/, src/, third_party/llama.cpp/docs, in
a fixed order, cut to ~32 768 × 3.2 chars = ~104 858 chars. The script picks a
random 18-px word from a 16-word list, embeds it at the chosen depth, and asks
for it back.
| label | length | depth | found | prompt tokens | seconds |
|---|---|---|---|---|---|
| IQ2_XS @32k | 32 k | 10 % | ✅ | 32 171 | 13 |
| IQ2_XS @32k | 32 k | 50 % | ✅ | 32 171 | 12 |
| IQ2_XS @32k | 32 k | 90 % | ✅ | 32 172 | 6 |
| IQ3_XXS@32k | 32 k | 10 % | ✅ | 32 171 | 12 |
| IQ3_XXS@32k | 32 k | 50 % | ✅ | 32 171 | 12 |
| IQ3_XXS@32k | 32 k | 90 % | ✅ | 32 172 | 6 |
() 6 of 6 FOUND for both IQ2_XS and IQ3_XXS at 32 k context.
Raw JSON: recall_iq2_xs_32k.json,
recall_iq3_xxs_32k.json.
Methodology
Two prefill metrics appear in the tables; they mean different things:
- Cold Prefill — engine-reported
timings.prompt_per_secondfrom amax_tokens=1non-stream call afterPOST /unload. True end-of-prompt throughput, the number the 2 000+ t/s headline measures. - SSE Prefill — engine-reported
timings.prompt_per_secondfrom the streamed call. Lower, because--prefill autoreads prompts in 8 192-token chunks and overlaps decode with the next chunk's prefill — this reflects how fast the first chunk completes, not the whole prompt.
Decode TPS is engine.predicted_per_second averaged over 3 runs with
max_tokens=192, temperature=0, reasoning_effort="minimal". Wall-clock
TTFT is from the first nonempty SSE content chunk after the request was
issued.
The prefill (cold) vs prefill (SSE) discrepancy does NOT mean "the engine
is lying in its prefill metric"; it means the two quantities are different
things. See bench/results/2026-10-01-ctx-ladder/README.md for the audit tra
il of the underlying engine timings.
Comparing to the README headline (RTX 5070 12 GB, 0.1.26, IQ2_XS Q2_0):
| Model | 32k cold prefill (this host) | 32k cold prefill (RTX 5070) | delta |
|---|---|---|---|
| IQ2_XS | 2 695 | 2 092 | +29 % |
| IQ3_XXS | 2 747 | 1 745 | +57 % |
The prefill ceiling this host achieves is HIGHER than the canonical RTX 5070 table for both models. The 16 GiB on this RTX 4070 Ti SUPER plus a faster Ryzen 7 9800X3D + Gen4 NVMe host→device pipeline let the engine keep the KV-streaming reserve in RAM while prefilling.
Decode is noticeably slower than the RTX 5070 baseline because the 5070 sees a much higher draft-acceptance rate on its workload (synthetic code-explanation prompts), and the speed-matrix corpus uses code-agent prompts that synthetic intelligence recall this card's exact 16 GiB ceiling pinches at the heavy end.
Files in this folder
README.md(this file).strata-iq2_xs.json— container config as recorded by the image at boot of the IQ2_XS @ 262 144 cold run.strata-iq3_xxs.json— container config for IQ3_XXS @ 262 144 (K=k8v4).recall_iq2_xs_32k.json— output oftools/needle_bench.py --lengths 32k --depths 10,50,90against the live IQ2_XS server.recall_iq3_xxs_32k.json— same, against IQ3_XXS.mtp-manifest.json— convenience export of the MTP tensor manifest the installer recorded in/data/mtp/.
The per-row audit trail (cold-prefill probe + 3 SSE runs) sits in
bench/results/2026-10-01-ctx-ladder/
alongside every raw JSON.
Limitations
- Single consumer NVIDIA card (sm_89, 16 GiB). A 5090 or 76/96 GiB card
would lift the decode ceiling and broaden what KV-shape can stay at
int8. - 32 k recall was the only context checked; deeper × wider recall sweeps on this host are pending (would need the upstream PR's context to extend).
- The host shares the GPU with no other workload during this test, but other containers were running CPU-bound, so the OS file-cache and RAM pressure were not zero. A truly isolated bench environment might give decode TPS another ±2-3 % improvement.
- Not yet measured: AMD RDNA4 (the upstream gfx1201 path), two-card layer split (uncertified on 16 GiB pairs because they share expert-cache), and Coder IQ1_M (different attention layout entirely).
Reference
Per-host extension of bench/results/2026-09-29-speed-0126/.
The integrator script tools/integrate_speed_0126_shin_blackmamba.py
appends this host's 8 rows to the canonical matrix.json with a kv schema
field and a prefill_cold_tok_s column; produced .bak files alongside
matrix.json and README.md.
1# Community benchmark: RTX 4070 Ti SUPER, Ryzen 7 9800X3D 2 3Measured on 2026-10-05 by [lfontanez](https://github.com/lfontanez), on a Linux 4machine called Shin-BlackMamba. This tests Strata at upstream-main commit 5`6f32ec07` with both Qwen3.8-Flash-Next IQ2_XS and IQ3_XXS, a single GPU, and 6context ceilings from 32 768 to 262 144 tokens. The bench measures **wall-clock 7prefill (cold)**, **streamed prefill (TTFT-aligned)**, and **decode throughput** 8together, plus a long-context recall check at 32 k. 9 10Median **decode throughput** (engine-reported `predicted_per_second` over three 11SSE stream calls at temperature 0, max_tokens 192, `reasoning_effort="minimal"`): 12 13| Model | KV | 32 k ctx | 64 k ctx | 128 k ctx | 256 k ctx | 14|----------|-------|----------:|----------:|----------:|----------:| 15| IQ2_XS | int8 | **97.90** | **94.30** | **90.00** | **82.40** | 16| IQ3_XXS | varies | 76.00 | 71.30 | 70.00 | 56.00 | 17 18Cold prefill throughput (`POST /unload` then `max_tokens=1` non-stream) sat at 192 400-2 750 t/s across all 8 configurations; the README's 2 000+ t/s headline 20holds on this card. The streamed prefill (TTFT-aligned) was 100-160 t/s — the 21two metrics mean different things, see Methodology. 22 23## Hardware and software 24 25- **GPU**: NVIDIA GeForce RTX 4070 Ti SUPER, 16 376 MiB VRAM (16 GiB), compute 26capability 8.9 (`sm_89`). PCIe capability: Gen 4, x16; the engine's startup 27 transfer probe reported the host-to-device bandwidth of the slot. GPU power 28 limit was the stock 285 W; clocks were not fixed for this test. 29 - **CPU**: AMD Ryzen 7 9800X3D, 16 logical CPUs, AVX2 + AVX-512. The engine 30selected 23 expert-pool workers plus its host thread. 31 - **RAM**: 94 GiB installed; Linux reported 90.43 GiB usable. 8 GiB system swap. 32- **Storage**: Samsung 990 PRO 2 TB NVMe (`/dev/nvme0n1p2`, ext4, rootfs). 33Local model volumes: `strata-data` named Docker volume mounted at `/data`. 34 - **OS**: Ubuntu 24.04.5 LTS, kernel 6.8.0-146-generic. 35- **Stack**: NVIDIA driver 595.91.07 (CUDA 13.2); nvidia-container-toolkit 1.20.1 36with the `nvidia` runtime as Docker's default; Docker 29.8.1. 37 - **Strata commit**: `6f32ec070f23ced9f50e704d854d775da52591ab` 38([Niko1221/Strata](https://github.com/Niko1221/Strata) main, 2026-10-05). 39 - **Engine build**: locally compiled CUDA architecture **89** (RTX 40 only, 40fat-binary with a single cubin), `BUILD_VISION=0` so the image-encoder 41 did **not** compile. Base image: `nvidia/cuda:13.0.0-devel-ubuntu24.04`. 42 Python 3.12.3; NVCC 13.0.x. 43 - **Workload isolation**: 8 other containers remained running on the host 44(voicebox, supabase stack, n8n, qdrant, langfuse, open-webui, portainer, flowise). 45 All but voicebox are CPU- and RAM-bound; voicebox is TTS-bound at idle. The 46 GPU was dedicated to the Strata container throughout this run. This was not 47 a completely isolated operating system. 48 49 ## Model and configuration 50 51Models from [ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF](https://huggingface.co/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF), 52revision resolved by the installer at runtime: 53 54- IQ2_XS: `IQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf` 55(39.07 GiB) + 56`IQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf` (26.81 GiB PLE). 57- IQ3_XXS: `IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf` 58(43.81 GiB) + 59`IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf` (shared PLE shard). 60 61MTP fetched by the installer from 62[Qwen/Qwen3.8-Flash-Next](https://huggingface.co/Qwen/Qwen3.8-Flash-Next); the 63tensor-range manifest is in `/data/mtp/mtp-manifest.json` (and 64[`mtp-manifest.json`](mtp-manifest.json) in this PR's audit folder). Q2_0 MTP 65experts were selected, as configured in the install.sh defaults. 66 67The unmodified installer (`-e VISION=no`) prepared the native IQ2_XS and IQ3_XXS 68packs. The executable and prepared-packs are in the image at 69`/opt/strata/engine/strata` and in the `/data` Docker volume. 70 71The 8 configurations tested: 72 73| cfg # | Model | CONTEXT | KV | KV-streaming | 74|--------|----------|---------:|------:|:------------:| 75| 1 | IQ2_XS | 32768 | int8 | n/a (kv fits) | 76| 2 | IQ2_XS | 65536 | int8 | `--kv-resident 32768` | 77| 3 | IQ2_XS | 131072 | int8 | `--kv-resident 32768` | 78| 4 | IQ2_XS | 262144 | int8 | `--kv-resident 32768` | 79| 5 | IQ3_XXS | 32768 | int8 | n/a (kv fits) | 80| 6 | IQ3_XXS | 65536 | int8 | (KV still small in RAM) | 81| 7 | IQ3_XXS | 131072 | q4_0 | (KV-streaming + q4_0) | 82| 8 | IQ3_XXS | 262144 | k8v4 | (KV-streaming + k8v4) | 83 84KV choices reflect the VRAM envelope: IQ3_XXS residents 47 GiB of experts, so 85its KV table had to shrink at higher contexts. IQ2_XS stays on `int8` everywhere 86because --kv-resident 32768 keeps the live KV slice in RAM, not VRAM. 87 88Common settings across all 8: 89 90- `--expert-cache auto`, `--prefill auto`, `--spec 4 --spec-min-p 0.5`. 91- `--expert-profile /opt/strata/data/expert-profile.bin` (bundled, shipped from the image). 92- MTP draft layer at `/data/mtp/rt` (Q2_0 tensor range, default). 93- Reasoning `minimal`, temperature 0, `max_tokens 192` for streamed runs. 94- Cold-prefill probes use `max_tokens 1` non-stream after `POST /unload`. 95- Vision decoder NOT compiled (`BUILD_VISION=0`); `VISION=no`. 96- Low-RAM detector chose **resident experts** at boot (94 GiB > model experts). 97 98The complete measured configurations are in 99[`strata-iq2_xs.json`](strata-iq2_xs.json) (CONTEXT=262144, KV=int8, KV-streaming) 100and [`strata-iq3_xxs.json`](strata-iq3_xxs.json) (CONTEXT=262144, KV=k8v4). All 101other CONTEXTs were applied at relaunch with `-e REINSTALL=1`. 102 103## Method and reproduction 104 105Use the attached [`strata-iq2_xs.json`](strata-iq2_xs.json) and 106[`strata-iq3_xxs.json`](strata-iq3_xxs.json) — they are valid because each 107container's start-up regenerated the config on `/data/config/` and `docker run` 108with `REINSTALL=1` re-applied model settings without re-downloading. 109 110``` bash 111# From the repo root, with an empty GPU + toolkit (verified above) 112docker build -t strata \ 113--build-arg CUDA_ARCHITECTURES=89 \ 114--build-arg BUILD_VISION=0 \ 115. 116 117docker volume create strata-data 118 119# IQ2_XS @ 32k for example. Swap MODEL/CONTEXT/KV for the other 7 configs. 120docker rm -f strata 2 > /dev/null 121docker run -d --name strata --network host --gpus all \ 122--ulimit memlock=-1 --shm-size=4g \ 123-v strata-data:/data \ 124-e FAMILY=qwen -e MODEL=IQ2_XS -e CONTEXT=32768 \ 125-e VISION=no -e KV=int8 -e REINSTALL=1 \ 126-e HOST=127.0.0.1 -e PORT=8090 \ 127--restart unless-stopped strata 128 129# 1 cold-prefill probe + 3 SSE stream calls per row → matrix 130pip install requests 131python3 bench/results/2026-10-01-ctx-ladder/run.py \ 132--model qwen3.8-flash-next-iq2_xs --contexts 32768 \ 133--out bench/results/2026-10-01-ctx-ladder/32k.json 134``` 135 136**Why `--network host`?** A `-p 127.0.0.1:HOST:CT` publish on a bridge 137network is DNAT'd to the container's bridge interface, but if the engine 138binds `127.0.0.1` (its default), the kernel refuses transit to its own 139loopback. `--network host` collapses both namespaces so the engine's 140loopback IS the host's loopback. The container also stays localhost-only, 141so this is safe without an API key on a single-user dev box. 142 143Every run row was three SSE stream calls + one cold-prefill probe. The 144cold-prefill is a fresh `/unload` then a non-stream `max_tokens=1` call: 145the answer cannot be confounded with a previous decode's KV reuse. Each 146container start was a single fresh load (~50-90 s); the engine was not 147restarted or `/unload`-ed between the three stream calls — the prompt 148changes between calls and the conversation cache was disabled at the 149server side. 150 151## Results (full matrix, 3 runs per cell + cold prefill) 152 153| Label | Model | KV | Prompt tok | Avg TPS | Peak | Engine TPS | **Cold prefill** | SSE prefill | Draft | TTFT | 154|--------------|----------|-------|-----------:|--------:|--------:|-----------:|-----------------:|------------:|------:|-------:| 155| 32 k | IQ2_XS | int8 | 29 966 | 95.62 | 136.34 | 93.47 | **2 695** | 141.3 | 75.8% | 183 ms | 156| 64 k | IQ2_XS | int8 | 60 270 | 91.80 | 123.20 | 89.90 | **2 678** | 140.9 | 74.5% | 271 ms | 157| 128 k | IQ2_XS | int8 | 120 748 | 87.95 | 117.52 | 86.67 | **2 670** | 132.6 | 76.8% | 422 ms | 158| 256 k | IQ2_XS | int8 | 240 912 | 79.63 | 107.36 | 78.50 | **2 484** | 127.3 | 69.6% | 726 ms | 159| IQ3 @32 k | IQ3_XXS | int8 | 29 966 | 73.32 | 97.96 | 71.73 | **2 747** | 116.5 | 69.8% | 217 ms | 160| IQ3 @64 k | IQ3_XXS | int8 | 60 270 | 69.16 | 98.66 | 68.36 | **2 545** | 107.0 | 70.3% | 295 ms | 161| IQ3 @128 k | IQ3_XXS | q4_0 | 120 748 | 65.51 | 84.42 | 64.10 | **2 478** | 105.2 | 67.7% | 461 ms | 162| IQ3 @256 k | IQ3_XXS | k8v4 | 240 912 | 53.70 | 71.09 | 52.97 | **2 404** | 91.9 | 66.6% | 768 ms | 163 164Quality-vs-speed tax (IQ3_XXS vs IQ2_XS, both at the same KV): 165 166| ctx | KV | IQ2_XS engine TPS | IQ3 engine TPS | IQ3 decode tax | 167|-----|-----|-----------------:|---------------:|---------------:| 168| 32 k | int8 | 93.47 | 71.73 | **-23.3 %** | 169| 64 k | int8 | 89.90 | 68.36 | **-24.0 %** | 170| 128 k | int8 (iq2) vs q4_0 (iq3) | 86.67 | 64.10 | **-26.0 %** (KV differs, confounded) | 171| 256 k | int8 (iq2) vs k8v4 (iq3) | 78.50 | 52.97 | **-32.5 %** (KV differs, confounded) | 172 173The 128 k/256 k rows are not a clean apples-to-apples (the IQ3 engine forced 174KV down on its side), but they reflect what a user who wants IQ3 quality at 175256 k context will actually see on a single 16 GiB card. 176 177### Long-context recall (`tools/needle_bench.py`) 178 179Single-run `needle_bench.py --lengths 32k --depths 10,50,90` against the running 180container. Source: `docs/`, `include/`, `src/`, `third_party/llama.cpp/docs`, in 181a fixed order, cut to ~32 768 × 3.2 chars = ~104 858 chars. The script picks a 182random 18-px word from a 16-word list, embeds it at the chosen depth, and asks 183for it back. 184 185| label | length | depth | found| prompt tokens | seconds | 186|-------------|:------:|--------:|:----:|--------------:|--------:| 187| IQ2_XS @32k | 32 k | 10 % | ✅ | 32 171 | 13 | 188| IQ2_XS @32k | 32 k | 50 % | ✅ | 32 171 | 12 | 189| IQ2_XS @32k | 32 k | 90 % | ✅ | 32 172 | 6 | 190| IQ3_XXS@32k | 32 k | 10 % | ✅ | 32 171 | 12 | 191| IQ3_XXS@32k | 32 k | 50 % | ✅ | 32 171 | 12 | 192| IQ3_XXS@32k | 32 k | 90 % | ✅ | 32 172 | 6 | 193 194`() 6 of 6 FOUND` for both IQ2_XS and IQ3_XXS at 32 k context. 195 196Raw JSON: [`recall_iq2_xs_32k.json`](recall_iq2_xs_32k.json), 197[`recall_iq3_xxs_32k.json`](recall_iq3_xxs_32k.json). 198 199## Methodology 200 201Two prefill metrics appear in the tables; they mean different things: 202 203- **Cold Prefill** — engine-reported `timings.prompt_per_second` from a 204`max_tokens=1` non-stream call after `POST /unload`. True end-of-prompt 205throughput, the number the 2 000+ t/s headline measures. 206- **SSE Prefill** — engine-reported `timings.prompt_per_second` from the 207streamed call. Lower, because `--prefill auto` reads prompts in 8 192-token 208chunks and overlaps decode with the next chunk's prefill — this reflects 209how fast the first chunk completes, not the whole prompt. 210 211Decode TPS is `engine.predicted_per_second` averaged over 3 runs with 212`max_tokens=192, temperature=0, reasoning_effort="minimal"`. Wall-clock 213TTFT is from the first nonempty SSE content chunk after the request was 214issued. 215 216The prefill (cold) vs prefill (SSE) discrepancy does NOT mean "the engine 217is lying in its prefill metric"; it means the two quantities are different 218things. See `bench/results/2026-10-01-ctx-ladder/README.md` for the audit tra 219il of the underlying engine timings. 220 221Comparing to the README headline (RTX 5070 12 GB, 0.1.26, IQ2_XS Q2_0): 222 223| Model | 32k cold prefill (this host) | 32k cold prefill (RTX 5070) | delta | 224|---|---:|---:|---:| 225| IQ2_XS | **2 695** | **2 092** | **+29 %** | 226| IQ3_XXS | **2 747** | **1 745** | **+57 %** | 227 228The prefill ceiling this host achieves is HIGHER than the canonical RTX 5070 229table for both models. The 16 GiB on this RTX 4070 Ti SUPER plus a faster 230Ryzen 7 9800X3D + Gen4 NVMe host→device pipeline let the engine keep the 231KV-streaming reserve in RAM while prefilling. 232 233Decode is noticeably slower than the RTX 5070 baseline because the 5070 sees 234a much higher draft-acceptance rate on its workload (synthetic code-explanation 235prompts), and the speed-matrix corpus uses code-agent prompts that synthetic 236intelligence recall this card's exact 16 GiB ceiling pinches at the heavy end. 237 238## Files in this folder 239 240- `README.md` (this file). 241- `strata-iq2_xs.json` — container config as recorded by the image at boot of 242the IQ2_XS @ 262 144 cold run. 243- `strata-iq3_xxs.json` — container config for IQ3_XXS @ 262 144 (K=k8v4). 244- `recall_iq2_xs_32k.json` — output of `tools/needle_bench.py --lengths 32k 245--depths 10,50,90` against the live IQ2_XS server. 246- `recall_iq3_xxs_32k.json` — same, against IQ3_XXS. 247- `mtp-manifest.json` — convenience export of the MTP tensor manifest the 248installer recorded in `/data/mtp/`. 249 250The per-row audit trail (cold-prefill probe + 3 SSE runs) sits in 251[`bench/results/2026-10-01-ctx-ladder/`](../../2026-10-01-ctx-ladder/) 252alongside every raw JSON. 253 254## Limitations 255 256- Single consumer NVIDIA card (sm_89, 16 GiB). A 5090 or 76/96 GiB card 257would lift the decode ceiling and broaden what KV-shape can stay at `int8`. 258- 32 k recall was the only context checked; deeper × wider recall sweeps on 259this host are pending (would need the upstream PR's context to extend). 260- The host shares the GPU with no other workload during this test, but other 261containers were running CPU-bound, so the OS file-cache and RAM pressure 262were not zero. A truly isolated bench environment might give decode TPS 263another ±2-3 % improvement. 264- Not yet measured: AMD RDNA4 (the upstream gfx1201 path), two-card layer 265split (uncertified on 16 GiB pairs because they share expert-cache), and 266Coder IQ1_M (different attention layout entirely). 267 268## Reference 269 270Per-host extension of [`bench/results/2026-09-29-speed-0126/`](../../2026-09-29-speed-0126/). 271The integrator script [`tools/integrate_speed_0126_shin_blackmamba.py`](../../../tools/integrate_speed_0126_shin_blackmamba.py) 272appends this host's 8 rows to the canonical matrix.json with a `kv` schema 273field and a `prefill_cold_tok_s` column; produced `.bak` files alongside 274`matrix.json` and `README.md`.