okami.mom/strata

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

Niko1221Merge f-142b-serve into f-1426e1085c1d

main
7.0 KiB131 linesraw

Community benchmark on Tesla V100-SXM2-32GB (sm_70): the opt-in Volta decode kernels

Measured on 2026-10-08/09 by Mitsuasa513. This report answers the question docs/NVIDIA_V100.md leaves open: whether STRATA_SM70_TABLE=1 — the interleaved native_mmvq_il with a Volta rows table, expert mode 8 and the latency-hidden norm/up — should become the default on sm_70 with the 0.1.41 code. On this machine it should: decode +10% to +15%, with output that is bit-for-bit identical to the default path.

The main limitation: one machine, one model, greedy decoding, and four back-to-back engine runs (plus the repository's own A/B tool, which is too noisy here to resolve the short-chat cases).

Hardware and software

  • GPU: Tesla V100-SXM2-32GB (sm_70), PCIe Gen3 x16 (engine probe: 13.1 GB/s host→device), 32,768 MiB, driver 560.94. A GTX 1050 is present in the machine but not used (--gpu 1).

  • CPU: AMD Threadripper 2990WX (32 cores, AVX2, no AVX-512); RAM: 96 GB; storage: NVMe SSD.

  • OS: Windows 11 (build 26200). CUDA 12.6 (nvidia-smi reports CUDA 12.6 runtime). MSVC 19.44.

  • Strata: Niko1221/Strata at fb58e0d (v0.1.41), source build:

    cmake -S . -B build -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release \
          -DSTRATA_ENABLE_CUDA=ON -DSTRATA_ENABLE_HIP=OFF \
          -DSTRATA_EXPERIMENTAL_SM60=ON -DCMAKE_CUDA_ARCHITECTURES=70 \
          -DSTRATA_GGML_DIR=<llama.cpp 3cf03257f219afbe7334045ff7c6a06ac68c627d>
    

    strata.exe SHA-256 5bfb80e584053443904b19e7723faa41b7c97390487a5bb8c9e902d8901fc501. The ggml source is the commit third_party/ggml/VERSION.txt pins (unchanged since 0.1.39). NMake Makefiles rather than Ninja: on the Windows host used for this run, ninja could not start any child process (its job-object use was refused by the tooling sandbox), while nmake and the MSVC toolchain worked normally. That is a property of this host, not of Strata.

Model and configuration

  • Unsloth UD-IQ4_XS (Qwen3.8-Flash-Next-UD-IQ4_XS, merged single GGUF, 87.2 GiB), the model docs/NVIDIA_V100.md measures. Pack built with tools/iq_pack.py (native experts, pack index v3), MTP runtime from tools/mtp_rt.py. Vision off. Shipped expert profile.
  • Context 262144, --kv int8, --expert-cache auto, --prefill auto, --vram-reserve-mib 1024, --spec 3, greedy.
  • The two arms differ in one environment variable: STRATA_SM70_TABLE=0 (A: exactly what 0.1.40.3 ran) versus STRATA_SM70_TABLE=1 (B).
strata.exe --pack <E:\V100-strata-0.1.41\packs\iq4xs> \
  --native <Qwen3.8-Flash-Next-UD-IQ4_XS-merged.gguf> \
  --ple-gguf <same file> --expert-profile <data\expert-profile.bin> \
  --expert-cache auto --prefill auto --spec 3 --mtp <mtp\rt> \
  --max-context 262144 --kv int8 --vram-reserve-mib 1024 \
  --tokens-file prompt_8k.txt --max-new 256

Method

Two measurements, both on the same machine and workload:

  1. Engine-level paired runs (the primary evidence). The same pretokenized 7,999-token prompt and a 256-token greedy cap, arms run back to back, in two pairs with the order swapped (A→B and B→A) so a warm-up drift cannot favor one arm. Each arm is one engine process (load ≈ 2.5 min, not included in the timings). Decode/prefill come from the engine's own lines.
  2. tools/ab_engine.py (the repository's A/B tool), 3 rounds, arms alternating per round: three short chats plus one 6,000-word prompt, max_tokens 256, temperature 0, enable_thinking false. Raw rows in ab-engine.jsonl.

The MTP draft acceptance and the number of tokens per round are reported because they are the same in both arms: the arms generate the same tokens, so the comparison is of the same work done at different speed.

Results

Engine-level, paired and order-swapped (UD-IQ4_XS, 262144 context, int8 KV)

PairOrderArmDecode tok/sPrefill tok/sTTFT sDraft acceptTokens/roundpool ms/roundhost ms/round
1A→BA STRATA_SM70_TABLE=028.161626.85.910.6122.2346.519.1
1A→BB =130.921633.15.870.6122.2339.912.6
2B→AB =132.941619.05.810.6122.2337.318.2
2B→AA STRATA_SM70_TABLE=028.641629.35.990.6122.2345.818.6

Decode: +9.8% (pair 1) and +15.0% (pair 2); the two A runs agree within 1.7% (28.16 / 28.64), so the difference is larger than the run-to-run spread. Prompt throughput is unchanged (1619–1633 tok/s in every run).

For context on the version upgrade itself, the same arm on the 0.1.39 engine measured 29.82 tok/s (single run, bench/results/2026-10-05-community-v100-sxm2); 0.1.41's default is 28.2–28.6, i.e. the same within this machine's spread — the 0.1.41 gain on a V100 is in the opt-in kernels, which is exactly what this report is about.

Q2_0 (official GSQ-RCO Q2_0, fp16 KV, --prefill 8192) with STRATA_SM70_TABLE=1 measured 69.70 tok/s decode / 1561.5 prompt tok/s, against 65.16 / 1571.8 for the same arm on 0.1.39 (single runs, one each).

tools/ab_engine.py, 3 rounds, medians

RequestPrompt tokensA decodeB decodeA promptB prompt
chat03426.221.534.931.1
chat12731.430.333.030.2
chat22927.226.429.730.6
long634530.231.7291.9287.9

The three short chats do not resolve the two arms on this machine: their per-round decode medians swing between 20.9 and 37.2 tok/s within one arm, more than the effect being measured (the runtime is dominated by things that are not the decode kernels at a 30-token prompt). The long-prompt arm, which does the real work, points the same way as the engine-level pairs (+5%). Reported as measured, not as support.

Correctness: the arms are bit-identical

All four engine-level runs (both arms, both pairs) produced the same generated token sequence:

pair1 A  len=1508  sha256[0:24]=258d9017223cd4d36c7b47bf
pair1 B  len=1508  sha256[0:24]=258d9017223cd4d36c7b47bf
pair2 B  len=1508  sha256[0:24]=258d9017223cd4d36c7b47bf
pair2 A  len=1508  sha256[0:24]=258d9017223cd4d36c7b47bf

and the draft acceptance (142 of 232) and tokens per round (2.23) are identical too. The kernels therefore change the speed and not the arithmetic, as docs/NVIDIA_V100.md claims.

Limitations

  • One machine (Windows, 96 GB RAM, no AVX-512, Gen3 x16), one model (UD-IQ4_XS), greedy decoding. The decode numbers move ±10–20% between runs on this box (the adaptive expert tier); that is why the arms are compared paired and order-swapped, not across sessions.
  • Loading time is not part of the timings (≈2.5 min per arm, excluded).
  • The short-chat cases of tools/ab_engine.py are below the noise floor here; only the long-prompt arm is informative.
  • No needle test, no image test in this report; the expert cache state after load is the shipped profile's, not a warmed one.
1# Community benchmark on Tesla V100-SXM2-32GB (sm_70): the opt-in Volta decode kernels
2
3Measured on 2026-10-08/09 by **Mitsuasa513**. This report answers the question
4`docs/NVIDIA_V100.md` leaves open: whether `STRATA_SM70_TABLE=1` — the interleaved `native_mmvq_il`
5with a Volta rows table, expert mode 8 and the latency-hidden norm/up — should become the default on
6sm_70 with the 0.1.41 code. On this machine it should: **decode +10% to +15%, with output that is
7bit-for-bit identical** to the default path.
8
9The main limitation: one machine, one model, greedy decoding, and four back-to-back engine runs
10(plus the repository's own A/B tool, which is too noisy here to resolve the short-chat cases).
11
12## Hardware and software
13
14- **GPU:** Tesla V100-SXM2-32GB (sm_70), PCIe Gen3 **x16** (engine probe: 13.1 GB/s host→device),
15  32,768 MiB, driver 560.94. A GTX 1050 is present in the machine but not used (`--gpu 1`).
16- **CPU:** AMD Threadripper 2990WX (32 cores, AVX2, **no AVX-512**); **RAM:** 96 GB;
17  **storage:** NVMe SSD.
18- **OS:** Windows 11 (build 26200). **CUDA 12.6** (nvidia-smi reports CUDA 12.6 runtime). MSVC 19.44.
19- **Strata:** `Niko1221/Strata` at **`fb58e0d`** (v0.1.41), source build:
20
21  ```text
22  cmake -S . -B build -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release \
23        -DSTRATA_ENABLE_CUDA=ON -DSTRATA_ENABLE_HIP=OFF \
24        -DSTRATA_EXPERIMENTAL_SM60=ON -DCMAKE_CUDA_ARCHITECTURES=70 \
25        -DSTRATA_GGML_DIR=<llama.cpp 3cf03257f219afbe7334045ff7c6a06ac68c627d>
26  ```
27
28  `strata.exe` SHA-256 `5bfb80e584053443904b19e7723faa41b7c97390487a5bb8c9e902d8901fc501`.
29  The ggml source is the commit `third_party/ggml/VERSION.txt` pins (unchanged since 0.1.39).
30  `NMake Makefiles` rather than Ninja: on the Windows host used for this run, ninja could not start
31  any child process (its job-object use was refused by the tooling sandbox), while nmake and the
32  MSVC toolchain worked normally. That is a property of this host, not of Strata.
33
34## Model and configuration
35
36- Unsloth **UD-IQ4_XS** (`Qwen3.8-Flash-Next-UD-IQ4_XS`, merged single GGUF, 87.2 GiB), the model
37  `docs/NVIDIA_V100.md` measures. Pack built with `tools/iq_pack.py` (native experts, pack index v3),
38  MTP runtime from `tools/mtp_rt.py`. Vision off. Shipped expert profile.
39- Context **262144**, **`--kv int8`**, `--expert-cache auto`, **`--prefill auto`**,
40  `--vram-reserve-mib 1024`, `--spec 3`, greedy.
41- The two arms differ in **one** environment variable:
42  `STRATA_SM70_TABLE=0` (A: exactly what 0.1.40.3 ran) versus `STRATA_SM70_TABLE=1` (B).
43
44```text
45strata.exe --pack <E:\V100-strata-0.1.41\packs\iq4xs> \
46  --native <Qwen3.8-Flash-Next-UD-IQ4_XS-merged.gguf> \
47  --ple-gguf <same file> --expert-profile <data\expert-profile.bin> \
48  --expert-cache auto --prefill auto --spec 3 --mtp <mtp\rt> \
49  --max-context 262144 --kv int8 --vram-reserve-mib 1024 \
50  --tokens-file prompt_8k.txt --max-new 256
51```
52
53## Method
54
55Two measurements, both on the same machine and workload:
56
571. **Engine-level paired runs** (the primary evidence). The same pretokenized 7,999-token prompt and
58   a 256-token greedy cap, arms run back to back, in **two pairs with the order swapped**
59   (A→B and B→A) so a warm-up drift cannot favor one arm. Each arm is one engine process
60   (load ≈ 2.5 min, not included in the timings). Decode/prefill come from the engine's own lines.
612. **`tools/ab_engine.py`** (the repository's A/B tool), 3 rounds, arms alternating per round:
62   three short chats plus one 6,000-word prompt, `max_tokens 256`, `temperature 0`,
63   `enable_thinking false`. Raw rows in `ab-engine.jsonl`.
64
65The MTP draft acceptance and the number of tokens per round are reported because they are the same
66in both arms: the arms generate **the same tokens**, so the comparison is of the same work done
67at different speed.
68
69## Results
70
71### Engine-level, paired and order-swapped (UD-IQ4_XS, 262144 context, int8 KV)
72
73| Pair | Order | Arm | Decode tok/s | Prefill tok/s | TTFT s | Draft accept | Tokens/round | pool ms/round | host ms/round |
74| --- | --- | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
75| 1 | A→B | A `STRATA_SM70_TABLE=0` | 28.16 | 1626.8 | 5.91 | 0.612 | 2.23 | 46.5 | 19.1 |
76| 1 | A→B | **B `=1`** | **30.92** | 1633.1 | 5.87 | 0.612 | 2.23 | 39.9 | 12.6 |
77| 2 | B→A | **B `=1`** | **32.94** | 1619.0 | 5.81 | 0.612 | 2.23 | 37.3 | 18.2 |
78| 2 | B→A | A `STRATA_SM70_TABLE=0` | 28.64 | 1629.3 | 5.99 | 0.612 | 2.23 | 45.8 | 18.6 |
79
80**Decode: +9.8% (pair 1) and +15.0% (pair 2); the two A runs agree within 1.7%** (28.16 / 28.64),
81so the difference is larger than the run-to-run spread. Prompt throughput is unchanged
82(1619–1633 tok/s in every run).
83
84For context on the version upgrade itself, the same arm on the **0.1.39** engine measured
85**29.82 tok/s** (single run, `bench/results/2026-10-05-community-v100-sxm2`); 0.1.41's default is
8628.2–28.6, i.e. the same within this machine's spread — **the 0.1.41 gain on a V100 is in the
87opt-in kernels**, which is exactly what this report is about.
88
89Q2_0 (official GSQ-RCO Q2_0, fp16 KV, `--prefill 8192`) with `STRATA_SM70_TABLE=1` measured
90**69.70 tok/s decode / 1561.5 prompt tok/s**, against **65.16 / 1571.8** for the same arm on 0.1.39
91(single runs, one each).
92
93### `tools/ab_engine.py`, 3 rounds, medians
94
95| Request | Prompt tokens | A decode | B decode | A prompt | B prompt |
96| --- | ---: | ---: | ---: | ---: | ---: |
97| chat0 | 34 | 26.2 | 21.5 | 34.9 | 31.1 |
98| chat1 | 27 | 31.4 | 30.3 | 33.0 | 30.2 |
99| chat2 | 29 | 27.2 | 26.4 | 29.7 | 30.6 |
100| long | 6345 | 30.2 | **31.7** | 291.9 | 287.9 |
101
102The three short chats do **not** resolve the two arms on this machine: their per-round decode
103medians swing between 20.9 and 37.2 tok/s within one arm, more than the effect being measured
104(the runtime is dominated by things that are not the decode kernels at a 30-token prompt).
105The long-prompt arm, which does the real work, points the same way as the engine-level pairs
106(+5%). Reported as measured, not as support.
107
108### Correctness: the arms are bit-identical
109
110All four engine-level runs (both arms, both pairs) produced **the same generated token sequence**:
111
112```text
113pair1 A  len=1508  sha256[0:24]=258d9017223cd4d36c7b47bf
114pair1 B  len=1508  sha256[0:24]=258d9017223cd4d36c7b47bf
115pair2 B  len=1508  sha256[0:24]=258d9017223cd4d36c7b47bf
116pair2 A  len=1508  sha256[0:24]=258d9017223cd4d36c7b47bf
117```
118
119and the draft acceptance (142 of 232) and tokens per round (2.23) are identical too. The kernels
120therefore change the speed and not the arithmetic, as `docs/NVIDIA_V100.md` claims.
121
122## Limitations
123
124- One machine (Windows, 96 GB RAM, no AVX-512, Gen3 x16), one model (UD-IQ4_XS), greedy decoding.
125  The decode numbers move ±10–20% between runs on this box (the adaptive expert tier); that is why
126  the arms are compared **paired and order-swapped**, not across sessions.
127- Loading time is not part of the timings (≈2.5 min per arm, excluded).
128- The short-chat cases of `tools/ab_engine.py` are below the noise floor here; only the long-prompt
129  arm is informative.
130- No needle test, no image test in this report; the expert cache state after load is the shipped
131  profile's, not a warmed one.