okami.mom/strata

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

albedocmake: strata_kernels links strata_kernels_cpu (iq_kernels.cu reads the latent colscale table from expert_layout.cpp; strata-q36ref failed to link)a4af4df61

main
2 files

files

README.md8.7 KiB
engine-measurements.json2.6 KiB

Community benchmark: Tesla V100-SXM2-32GB on Windows (CUDA 12.6, MSVC), three quantizations

Measured on 2026-10-05 on a Windows 11 desktop. This report tests the experimental Volta build (-DSTRATA_EXPERIMENTAL_SM60=ON, #236) on a V100-SXM2-32GB and compares three quantizations of Qwen3.8-Flash-Next on the same machine, including a small correctness battery.

There is already a V100 document covering the kernel paths and the Linux build. This report adds a Windows / MSVC / CUDA 12.6 data point and the quantization comparison.

Headline: with the official Q2_0 (2-bit) the engine decodes at 76.4 tok/s and reads an 8,000-token prompt at 1,268 tok/s; the 4-bit Unsloth UD-IQ4_XS is 26.3 tok/s, i.e. the 2-bit files are ~3x faster. On a 5-question reasoning battery Q2_0 answered 5/5 and IQ2_XS answered everything it finished (4/4, one ran out of its token budget).

Hardware and software

Models and configuration

Three complete model sets, all packed with the repository's own tools/iq_pack.py:

ModelSourceSizePack
Q2_0ISTA-DASLab GSQ-RCO (2 shards)66 GB--gguf shard1
IQ2_XSISTA-DASLab GSQ-RCO (2 shards)68 GB--gguf shard1
UD-IQ4_XSunsloth (merged, single file)87 GB--compat-bf16

For the two GSQ-RCO models --native is shard 1 (the experts) and --ple-gguf is shard 2 (per_layer_token_embd.weight). The UD file is single, so both options point at it.

Common configuration: --expert-cache auto --prefill 2048 --spec 3 --max-context 32768 (262144 for the long-context point) --kv fp16 --vram-reserve-mib 2048, greedy decoding. The MTP draft layer was built from the original checkpoint with tools/mtp_fetch.py + mtp_pack.py + mtp_rt.py.

Speed

Protocol: an 8,000-token prompt, 256 generated tokens, one run per configuration (the engine itself reports about ±20% between runs; see the limits). These are engine-side numbers from the decode / prefill lines, not client timings.

Modelcontextdecode tok/sprefill tok/sVRAM expert cache
Q2_032,76876.41,268~18,900 slots, 24.4 GiB
IQ2_XS32,76871.21,183~18,200 slots, 24.4 GiB
IQ2_XS262,14475.71,165~14,200 slots, 18.3 GiB
UD-IQ4_XS32,76826.366510,078 slots, 22.7 GiB

The 2-bit files are ~3x faster for a structural reason: an expert is about half the bytes, so nearly twice as many fit in the same VRAM, and the number of experts per layer left to the CPU falls from 3.9 to 0.7. The engine's slot accounting (18,900 vs 10,078) and its "CPU experts per layer" line both show it.

MTP acceptance was 63-76% across these runs (2.2-2.7 tokens per round).

Long context

On this machine --max-context from 32K to 256K does not change steady-state decode speed (32K: 22.6 / 64K: 17.5 / 128K: 19.3 / 256K: 22.3 tok/s for one model in an earlier sweep - all inside the run-to-run noise). It only costs VRAM: fp16 KV at 256K takes about 6.9 GB, which shrinks the expert cache. --kv-resident 32768 moves most of the KV to RAM instead and gives the VRAM back to the experts.

The link is the first thing to check

The same machine, the same 30,000-token prompt, the same model, two different PCIe link widths:

Linkengine's probeprefill tok/stime to first token
Gen3 x43.3 GB/s (pcie_frac 0.00)179168 s
Gen3 x1613.1 GB/s (pcie_frac 0.28)68245 s

3.8x from the slot alone. The engine adapts: at 3.3 GB/s it decides to keep every expert on the CPU, at 13.1 GB/s it offloads a third. If a V100 looks far slower than these numbers, check nvidia-smi --query-gpu=pcie.link.width.current before changing anything else.

(These two runs are from an earlier build of the engine on the same machine - the rest of this report is from 6f32ec0. The link was the only thing that changed between them.)

Correctness on a reasoning battery

Five prompts with checkable answers, greedy, 1024-token cap, through the resident server:

QuestionQ2_0IQ2_XS
Wolf, goat, cabbage (the classical 7-step solution)correct, completehit the token cap mid-thought
Reverse arithmetic (answer 10)correct, with a checkcorrect, with a check
Measure 4 L with 3 L and 5 L jugscorrect (7 steps)correct (6 steps)
Chickens and rabbits (23 / 12)correctcorrect
two_sum in O(n)correctcorrect

Both answered every question they finished. The difference is verbosity of the thinking block: Q2_0 finished the wolf problem in 983 tokens, IQ2_XS spent its whole budget re-deriving and never wrote the answer. Nothing here establishes general answer quality - a 4-bit model is still the safer default for hard reasoning, and it is the 3x slower option.

A 2-bit failure mode worth knowing

Twice, on different engine revisions, a 2-bit model fell into a verbatim repetition loop (the same few lines of reasoning repeated dozens of times, eating the whole budget). It is not an incorrect answer, it is a stuck one. On the one occasion it was chased down, enabling sampling fixed it: the same prompt with --seed 42 --temperature 0.7 answered both questions correctly. Greedy decoding reproduces the loop deterministically, so a retry with sampling (or another seed) is the practical escape.

Limits

Windows notes (not Volta-specific)

  1. Batch files must be ASCII-only. Under a GBK console code page cmd.exe mis-parses a batch file that contains non-ASCII bytes: it eats a fixed number of characters from the start of every line, so rem Rebuild executes as build and set "ROOT becomes OOT.
  2. taskkill does not reliably kill the engine. taskkill /PID <engine> /F answers Access denied and leaves it running, still holding ~34 GB of pinned RAM. TerminateProcess (PowerShell Stop-Process -Force, or psutil.Process(pid).kill()) works, and the engine then needs 10-30 s to hand the pinned memory back. Verify before starting the next run: process gone, nvidia-smi back to idle, port free. We lost a measurement round to a stale engine that silently answered in place of the model we thought we had started.
  3. There is a multi-second cold start on the first tokens after a large --max-context (the KV buffers are touched for the first time). Any comparison with fewer than ~30 generated tokens is measuring that instead of throughput.