okami.mom/strata

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

shrisha108bench: community report, 2x TITAN RTX (sm_75), IQ3_S at 262K (#389)219960ef3

main
5.8 KiB119 linesraw

Community benchmark: 2x TITAN RTX (sm_75, NVLink), Xeon E5-2696 v4

Two consumer Turing cards, no AVX-512 on the CPU, and the model's native 262,144-token window. Reported per docs/COMMUNITY_BENCHMARKS.md: three runs per configuration, medians and ranges, prompt and decode throughput kept apart, and the recall check attached.

A note from the submitter, since numbers alone do not say why this was worth the weekend: I did not expect any of this to be possible. The whole point of the exercise was to see whether a 125B MoE could run at all on two consumer Turing cards, and it does — 60 tok/s of decode with the model's full 262,144-token window, on hardware that was never sold for this. Whatever you do with the engine, that part is genuinely surprising. Thank you.

Hardware and software

GPU2x NVIDIA TITAN RTX, 24 GB each (Turing, sm_75), driver 615.71.09
GPU-GPUNV2 — 2 bonded NVLinks (nvidia-smi topo -m). Not used, see below
PCIex16, gen 3 under load on both cards (gen 1 at idle), 220 W power limit each
CPUIntel Xeon E5-2696 v4 @ 2.20 GHz, 22 cores / 44 threads, 1 socket, no AVX-512
RAM125 GiB
StorageSamsung MZVLW1T0HMLH NVMe 1 TB (model), SATA SSD also present
OSAlmaLinux 9.8, kernel 5.14.0-687.51.1.el9_8.x86_64
CUDA12.9 (nvcc), source build
Stratacommit 9259cad, engine 0.1.31, built from source for CMAKE_CUDA_ARCHITECTURES=75

Build used no non-default options beyond -DSTRATA_ENABLE_CUDA=ON -DSTRATA_BUILD_TESTS=OFF -DCMAKE_CUDA_ARCHITECTURES=75. No prebuilt engine: the release ships strata-windows-x64.zip only.

Model and configuration

Qwen3.8-Flash-Next IQ3_S (3.5 bpw, the recommended quality tier), ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF, two GGUF shards (54,817,524,224 + 28,800,138,432 bytes), plus the MTP draft layer packed by setup.sh into Strata-data/mtp/rt (787 MB).

--pack Strata-data/packs/iq3_s --native ...IQ3_S-00001-of-00002.gguf
--ple-gguf ...IQ3_S-00002-of-00002.gguf --expert-profile data/expert-profile.bin
--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5
--mtp Strata-data/mtp/rt --max-context 262144 --kv int8 --kv-resident 65536
--ple-io ram --layer-split auto

host 0.0.0.0, api_key set (removed here). Calibration was not enabled and the experimental speed projection was off.

Observed after warm-up: 23,652 / 23,778 MiB VRAM in use, 61 GB RAM in use plus ~68 GB page cache, of which 27.1 GiB is the n-gram table under --ple-io ram (file-backed, so free reports it as cache, not used).

Method and reproduction

benchmark.py in this directory. Three runs at each of 4,096 / 32,768 / 128,000 target prompt tokens, 256-token output cap, temperature=0, non- streaming. Each run sends a distinct prompt (a Document revision marker differs per run) so no run reuses another one's prefix; a warm expert cache is shared across runs by design, and the engine log's expert cache NN% hit is recorded per run.

Prompts are a repeated paragraph of MoE-routing prose, so the filler itself selects a narrow expert set; the recall check below is the correctness evidence for long context, not these prompts.

Startup (~1 min, reading ~55 GB of experts into RAM) is not included in any timing. Decode throughput comes from the engine's own timings.predicted_per_second, which counts reasoning tokens; TTFT is wall-clock minus generation time.

Results

Prompt throughput rises with prompt length — the opposite of a degradation curve, presumably from amortising expert-cache warm-up and larger prefill chunks.

Prompt tokensPrompt t/s (3 runs)MedianDecode t/s (3 runs)MedianTTFT (3 runs)
4,096840.9 / 865.4 / 864.7864.767.3 / 79.5 / 68.168.13.64 / 3.54 / 3.54 s
32,7681619.9 / 1611.8 / 1603.21611.859.5 / 62.6 / 57.959.515.32 / 15.39 / 15.48 s
128,0001786.2 / 1782.9 / 1784.61784.661.6 / 59.1 / 62.661.654.28 / 54.40 / 54.36 s

Longer replies decode at the same rate as short ones: a separate 2,000-token run at a 95-token prompt measured 59.7-65.4 t/s with an expert cache hit rate of 99.0-99.7%, so decode is context-independent here.

Both GPUs work throughout: sampled utilization.gpu during decode was 57% / 42% with 195 W / 155 W and ~1900 MHz on both. The imbalance is the auto layer split (one card carries slightly more layers plus the MTP draft). Idle: both drop to 0% and ~1350 MHz.

Recall and limitations

needle_bench.py --lengths 32k,128k --depths 10,50,90: 6 of 6 found, no misses or errors. Actual prompt lengths 30,742 (32k) and 122,707 (128k); wall-clock 19 s and 67-74 s respectively.

NVLink is present but unused. nvidia-smi topo -m reports NV2 between the two cards, but per docs/MULTI_GPU.md the engine deliberately does not use NVLink or peer-to-peer access: activations cross cards through pinned RAM once per verify window rather than twice per layer, so the same numbers should be expected on cards with no bridge. Do not expect a gain from adding a bridge on consumer boards.

Settings I compared, in case it helps someone choosing:

  • --spec 2 measured 58.3 / 58.5 t/s against --spec 4's 60.1 / 65.4, so the default depth 4 was kept. Acceptance stayed at 97.5-99.7% hit rate either way.
  • --kv-resident 65536 cost 101 expert slots (10,080 vs 10,181) and gained ~2% prompt throughput (1595.9 vs 1565.2 t/s on a 176,460-token prompt); decode was unchanged. Kept at 65536.
  • --ple-io ram measured the same as the default direct (1596.0 vs 1595.9 t/s on the same prompt) while holding 27.1 GiB more resident. Kept here only because this machine has RAM to spare; on a smaller machine the default is the better choice.

Not measured: vision (the ready-made encoder has no sm_75 code, so it needs a local build and ~1.4 GiB of VRAM), and the low-RAM variant.

1# Community benchmark: 2x TITAN RTX (sm_75, NVLink), Xeon E5-2696 v4
2
3Two consumer Turing cards, no AVX-512 on the CPU, and the model's native
4262,144-token window. Reported per `docs/COMMUNITY_BENCHMARKS.md`: three runs
5per configuration, medians and ranges, prompt and decode throughput kept apart,
6and the recall check attached.
7
8> A note from the submitter, since numbers alone do not say why this was worth
9> the weekend: I did not expect any of this to be possible. The whole point of
10> the exercise was to see whether a 125B MoE could run at all on two consumer
11> Turing cards, and it does — 60 tok/s of decode with the model's full
12> 262,144-token window, on hardware that was never sold for this. Whatever you
13> do with the engine, that part is genuinely surprising. Thank you.
14
15## Hardware and software
16
17| | |
18| --- | --- |
19| GPU | 2x NVIDIA TITAN RTX, 24 GB each (Turing, sm_75), driver 615.71.09 |
20| GPU-GPU | `NV2` — 2 bonded NVLinks (`nvidia-smi topo -m`). **Not used**, see below |
21| PCIe | x16, **gen 3** under load on both cards (gen 1 at idle), 220 W power limit each |
22| CPU | Intel Xeon E5-2696 v4 @ 2.20 GHz, 22 cores / 44 threads, 1 socket, **no AVX-512** |
23| RAM | 125 GiB |
24| Storage | Samsung MZVLW1T0HMLH NVMe 1 TB (model), SATA SSD also present |
25| OS | AlmaLinux 9.8, kernel 5.14.0-687.51.1.el9_8.x86_64 |
26| CUDA | 12.9 (nvcc), source build |
27| Strata | commit `9259cad`, engine 0.1.31, built from source for `CMAKE_CUDA_ARCHITECTURES=75` |
28
29Build used no non-default options beyond `-DSTRATA_ENABLE_CUDA=ON
30-DSTRATA_BUILD_TESTS=OFF -DCMAKE_CUDA_ARCHITECTURES=75`. No prebuilt engine:
31the release ships `strata-windows-x64.zip` only.
32
33## Model and configuration
34
35Qwen3.8-Flash-Next **IQ3_S** (3.5 bpw, the recommended quality tier),
36`ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF`, two GGUF shards
37(54,817,524,224 + 28,800,138,432 bytes), plus the MTP draft layer packed by
38`setup.sh` into `Strata-data/mtp/rt` (787 MB).
39
40```
41--pack Strata-data/packs/iq3_s --native ...IQ3_S-00001-of-00002.gguf
42--ple-gguf ...IQ3_S-00002-of-00002.gguf --expert-profile data/expert-profile.bin
43--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5
44--mtp Strata-data/mtp/rt --max-context 262144 --kv int8 --kv-resident 65536
45--ple-io ram --layer-split auto
46```
47
48`host 0.0.0.0`, `api_key` set (removed here). Calibration was not enabled and
49the experimental speed projection was off.
50
51Observed after warm-up: 23,652 / 23,778 MiB VRAM in use, 61 GB RAM in use
52plus ~68 GB page cache, of which 27.1 GiB is the n-gram table under
53`--ple-io ram` (file-backed, so `free` reports it as cache, not `used`).
54
55## Method and reproduction
56
57`benchmark.py` in this directory. Three runs at each of 4,096 / 32,768 /
58128,000 target prompt tokens, 256-token output cap, `temperature=0`, non-
59streaming. **Each run sends a distinct prompt** (a `Document revision marker`
60differs per run) so no run reuses another one's prefix; a warm expert cache is
61shared across runs by design, and the engine log's `expert cache NN% hit` is
62recorded per run.
63
64Prompts are a repeated paragraph of MoE-routing prose, so the filler itself
65selects a narrow expert set; the recall check below is the correctness
66evidence for long context, not these prompts.
67
68Startup (~1 min, reading ~55 GB of experts into RAM) is **not** included in any
69timing. Decode throughput comes from the engine's own `timings.predicted_per_second`,
70which counts reasoning tokens; TTFT is wall-clock minus generation time.
71
72## Results
73
74Prompt throughput rises with prompt length — the opposite of a degradation
75curve, presumably from amortising expert-cache warm-up and larger prefill
76chunks.
77
78| Prompt tokens | Prompt t/s (3 runs) | Median | Decode t/s (3 runs) | Median | TTFT (3 runs) |
79| --- | --- | --- | --- | --- | --- |
80| 4,096 | 840.9 / 865.4 / 864.7 | 864.7 | 67.3 / 79.5 / 68.1 | 68.1 | 3.64 / 3.54 / 3.54 s |
81| 32,768 | 1619.9 / 1611.8 / 1603.2 | 1611.8 | 59.5 / 62.6 / 57.9 | 59.5 | 15.32 / 15.39 / 15.48 s |
82| 128,000 | 1786.2 / 1782.9 / 1784.6 | 1784.6 | 61.6 / 59.1 / 62.6 | 61.6 | 54.28 / 54.40 / 54.36 s |
83
84Longer replies decode at the same rate as short ones: a separate 2,000-token
85run at a 95-token prompt measured 59.7-65.4 t/s with an expert cache hit rate
86of 99.0-99.7%, so decode is context-independent here.
87
88Both GPUs work throughout: sampled `utilization.gpu` during decode was
89**57% / 42%** with 195 W / 155 W and ~1900 MHz on both. The imbalance is the
90auto layer split (one card carries slightly more layers plus the MTP draft).
91Idle: both drop to 0% and ~1350 MHz.
92
93## Recall and limitations
94
95`needle_bench.py --lengths 32k,128k --depths 10,50,90`: **6 of 6 found**, no
96misses or errors. Actual prompt lengths 30,742 (32k) and 122,707 (128k);
97wall-clock 19 s and 67-74 s respectively.
98
99**NVLink is present but unused.** `nvidia-smi topo -m` reports `NV2`
100between the two cards, but per `docs/MULTI_GPU.md` the engine deliberately
101does not use NVLink or peer-to-peer access: activations cross cards through
102pinned RAM once per verify window rather than twice per layer, so the same
103numbers should be expected on cards with no bridge. Do not expect a gain from
104adding a bridge on consumer boards.
105
106Settings I compared, in case it helps someone choosing:
107
108- `--spec 2` measured 58.3 / 58.5 t/s against `--spec 4`'s 60.1 / 65.4, so
109  the default depth 4 was kept. Acceptance stayed at 97.5-99.7% hit rate either way.
110- `--kv-resident 65536` cost 101 expert slots (10,080 vs 10,181) and gained
111  ~2% prompt throughput (1595.9 vs 1565.2 t/s on a 176,460-token prompt);
112  decode was unchanged. Kept at 65536.
113- `--ple-io ram` measured **the same** as the default `direct` (1596.0 vs
114  1595.9 t/s on the same prompt) while holding 27.1 GiB more resident. Kept
115  here only because this machine has RAM to spare; on a smaller machine the
116  default is the better choice.
117
118Not measured: vision (the ready-made encoder has no sm_75 code, so it needs a
119local build and ~1.4 GiB of VRAM), and the low-RAM variant.