[GH-ISSUE #1639] Community benchmark: 5x Tesla P100 (sm_60), Flash-Next IQ3_S, 262K context — STRATA_STAGE_TRIM data + a Pascal Q6_K kernel #658

Closed
opened 2026-11-04 01:44:51 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @thedrzinger on GitHub (Oct 9, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1639

Measured on 2026-10-08/09 on five Tesla P100s with Flash-Next IQ3_S at the native 262,144-token context. Main limitations: 2 runs per configuration in the main comparison (1 run in the context sweep), and the machine is a Proxmox LXC container with 24 CPU threads and 52 GB of RAM. Only the baseline (A0) used a stock engine. Every other number comes from a locally modified build of fb58e0d, described under "Hardware and software".

Two findings that may be useful beyond Pascal:

  1. STRATA_STAGE_TRIM=1 with explicit split points made the largest difference on this rig. With 5 cards, every card kept a full dense copy. With the trim, the expert caches went from 19,364 to 23,702 of 24,576 profiled experts (~98.0% → ~99.9% of the routed mass), and CUDA1/CUDA3 held all of theirs. Measured together with a context change (see table A).
  2. On Pascal, the Q6_K decode MMVQ is far below memory bandwidth.
    • Cause: 2-byte loads on the 210-byte blocks, plus dp4a emulated per column. I measured 2-byte loads topping out at ~360 GB/s and 8-byte loads at ~600 GB/s on a P100.
    • The kernel: I wrote a Pascal-only kernel that reads the existing native_q6_k_pack planes with 8-byte loads and does FP32 math on exact small integers. It's 1.1-2.2x faster per call and was +7-20% on decode here (table A). It's not bitwise equal to the dp4a kernels (relative difference ~2e-7), so as a PR it would be opt-in.
    • Offer: happy to open it as a separate opt-in PR if that's wanted.

Hardware and software

  • GPUs: 1x Tesla P100-PCIE-16GB + 4x Tesla P100-PCIE-12GB (64 GB VRAM total). No NVLink, two PCIe root complexes (GPU0-1 on NUMA node 0, GPU2-4 on node 1). All PCIe 3.0 x16 capable; the engine's probe measured 11.8 / 10.4 / 6.2 / 10.5 / 10.4 GB/s host→device. 200 W power limit each.
  • CPU, RAM, storage: 2x Xeon E5-2650 v4 (AVX2, no AVX-512); the container gets 24 threads, and the engine used 17 expert-pool workers + the host thread. 52 GB RAM in the container, NVMe storage.
  • OS: Ubuntu 26.04 LXC on Proxmox (kernel 7.0.14-12-pve), NVIDIA driver 580.167.08, CUDA 12.9 (nvcc 12.9, host compiler g++-14).
  • Strata: fb58e0d (engine 0.1.41), built from source with STRATA_EXPERIMENTAL_SM60=1 and -DCMAKE_CUDA_ARCHITECTURES=60. Two builds were used:
    • Stock: the engine setup.sh --build --cuda 12 compiled from unmodified fb58e0d. Used for config A0 only.

    • Modified: fb58e0d plus my local changes, not upstream. Used for A1, A2 and everything after (sections B and C, needles, HumanEval+, vision). The changes:

      • the Pascal Q6_K kernel, switchable with an env var for the A1/A2 comparison;
      • the bit-exact PRMT/XMAD dp4a emulation in include/strata/kernels/dp4a.hpp;
      • the same sequence patched into ggml's sm_60 dp4a fallback (prompt-path MMQ).

      With the kernel off (A1), the only difference from stock is the dp4a change, which is bit-exact. The Python server, setup and everything else are unmodified.

  • Background workloads: none on the GPUs during the runs.

Model and configuration

  • Model: ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF, IQ3_S (both shards), prepared by the unmodified installer.
  • Bundled files: expert profile, MTP draft head from the installer (mtp/rt).
  • Memory mode: low-RAM resident mode (--resident-experts), chosen by setup for 52 GB of RAM.
  • Engine settings: int8 KV, --expert-cache auto, --prefill auto, --spec 4 --spec-min-p 0.5. No calibration, experimental speed projection off.
  • Setup command:
STRATA_EXPERIMENTAL_SM60=1 ./setup.sh --yes --family qwen --model IQ3_S --gguf-dir <IQ3_S dir> \
  --gpus 0,1,2,3,4 --cuda 12 --build --vision no --no-start

Configurations compared (same machine, same workload, back to back):

Config What changed
A0 setup defaults stock engine, config as written by setup: 32K context, layer_split auto (picked K=10,19,29,38)
A1 + trim modified engine with the Pascal Q6_K kernel off, STRATA_STAGE_TRIM=1, "layer_split": "10,19,29,38", --max-context 262144
A2 + Pascal kernel A1 with the Pascal Q6_K kernel on (modified engine)

A0 → A1 changes only stock settings (trim, split points, context). The engine difference is the bit-exact dp4a change, which measured no decode difference in isolation. A1 → A2 is the Pascal kernel alone.

Method

  • Workload: bench/results/2026-10-06-community-2x-p100/benchmark.py, unchanged. Its synthetic code-explanation prompts are fresh for every request (0 reused tokens, checked in the engine log).
  • Generation: greedy, reasoning off, 256-token cap. Every run hit the cap.
  • Timing: engine-reported prompt and decode rates; TTFT measured at the client over loopback.
  • Cache state: one warm-up request was excluded, and the expert cache stayed warm between runs.
  • Restarts: the engine was restarted between configurations, not between runs.

Results

A. Settings comparison (2 runs each; median [range])

Config Prompt tokens Prompt tok/s Decode tok/s TTFT s
A0 setup defaults 511 93.2 [83.5–102.8] 31.4 [29.7–33.2] 5.59 [5.01–6.17]
A1 + trim, 262K 511 103.8 [89.4–118.2] 34.1 [33.2–34.9] 5.07 [4.37–5.77]
A2 + Pascal kernel 511 104.5 [90.9–118.2] 37.2 [36.7–37.7] 5.01 [4.37–5.66]
A0 setup defaults 3,999 234.4 [234.0–234.8] 35.8 [35.0–36.5] 17.11 [17.08–17.14]
A1 + trim, 262K 3,999 255.2 [254.6–255.9] 36.5 [34.7–38.4] 15.73 [15.68–15.78]
A2 + Pascal kernel 3,999 256.7 [255.5–257.8] 38.9 [37.7–40.1] 15.63 [15.56–15.71]
A0 setup defaults 16,000 401.3 [368.0–434.7] 32.7 [31.5–33.8] 40.22 [36.87–43.57]
A1 + trim, 262K 16,000 467.4 [463.7–471.2] 33.2 [33.0–33.4] 34.32 [34.05–34.59]
A2 + Pascal kernel 16,000 467.0 [461.6–472.4] 40.1 [37.6–42.6] 34.34 [33.94–34.74]

Decode hit rate 97.6–99.8% in all runs; drafts accepted 142–165 of 203–241 per run.

Expert slots by card (CUDA0..4) and the profiled routed mass the caches held:

Slots, CUDA0 / 1 / 2 / 3 / 4 Routed mass held
A0 (no trim) 5120 / 3916 / 3678 / 3738 / 2749 ~98.0%
A1 / A2 (trim) 5120 / 4608 / 4956 / 4608 / 3736 ~99.9%

At 262K context the slots are a little lower: 4531 on CUDA2, 3232 on CUDA4.

B. Context sweep (config A2; 1 run each)

Context Decode tok/s, 3,999 / 64,000-token prompt Prompt tok/s, 64,000 Notes
131,072 38.6 / 39.3 841.7
196,608 38.2 / 39.7 802.0
262,144 37.9 / 37.4 796.6 200,000-token prompt: decode 35.9, prompt 958.8 tok/s, TTFT 209 s, hit 99.5%
262,144, --kv-resident 32768 38.3 / 39.1 789.1 ~400 more experts cached; no clear difference
524,288, YaRN x2 38.9 / 41.2 795.3 experimental, quality not checked

C. The Pascal kernel in isolation

Per call, measured against native_mmvq(14, ...) on identical data. Relative max difference 1-2e-7 for 1-8 columns.

Shape Columns Stock Pascal kernel Speedup
2560x12288 1 / 4 / 8 135 / 255 / 434 µs 80 / 139 / 208 µs 1.70x / 1.84x / 2.08x
4096x2560 1 / 4 / 8 47 / 88 / 144 µs 35 / 60 / 87 µs 1.35x / 1.47x / 1.67x
head 2560x248320 1 / 4 / 8 2.47 / 4.73 / 7.91 ms 1.26 / 2.30 / 3.64 ms 1.97x / 2.06x / 2.17x

Memory at A2, 262K, with GPU vision on GPU0:

  • VRAM used: 13.1 / 10.7 / 11.6 / 11.2 / 12.0 GiB.
  • RAM: ~11-15 GB used (5.1 GiB of resident experts).

No OOM, no paging.

Correctness and limitations

  • Needles (tools/needle_bench.py, 262K context): 6 of 6 found at 8K (8,064 tokens) and 190K (189,451 tokens), depths 10/50/90.

  • HumanEval+ (EvalPlus 0.1.10, greedy, thinking off, standard EvalPlus prompt, 164 problems):

    Run HumanEval HumanEval+
    Kernel on, run 1 96.3% 94.5%
    Kernel on, run 2 96.3% 92.1%
    Kernel off 97.6% 95.1%

    Two kernel-on runs already differ on 6 problems (cache and CPU/GPU rounding between restarts), and kernel on vs off differ on 2-5. So no measurable effect from the kernel.

  • Vision (GPU, encoder pinned to GPU0 via "cuda_device": 0): read the text and shapes of a test image correctly. Expert caches and decode speed were unchanged.

  • Not tested:

    • other quants (Q2_0, IQ2_XS, IQ3_XXS) and other models (Swift 1.5, Coder);
    • fewer than 5 GPUs;
    • --pipeline-windows;
    • prompts past 200K tokens;
    • 3+ runs per configuration;
    • a cold page cache.

    A0 differs from A1 in context (32K vs 262K) as well as the trim, so table A does not isolate the trim alone. The slot counts do.

  • Other gains: the stock dp4a emulation could also use PRMT + 16-bit MADs (bit-exact, 1.46x in isolation). It had no measurable effect on decode here, so I'm not proposing it.

Originally created by @thedrzinger on GitHub (Oct 9, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1639 Measured on 2026-10-08/09 on five Tesla P100s with Flash-Next IQ3_S at the native 262,144-token context. Main limitations: **2 runs per configuration** in the main comparison (1 run in the context sweep), and the machine is a Proxmox LXC container with 24 CPU threads and 52 GB of RAM. **Only the baseline (A0) used a stock engine.** Every other number comes from a locally modified build of `fb58e0d`, described under "Hardware and software". Two findings that may be useful beyond Pascal: 1. **`STRATA_STAGE_TRIM=1` with explicit split points made the largest difference on this rig.** With 5 cards, every card kept a full dense copy. With the trim, the expert caches went from 19,364 to 23,702 of 24,576 profiled experts (~98.0% → ~99.9% of the routed mass), and CUDA1/CUDA3 held all of theirs. Measured together with a context change (see table A). 2. **On Pascal, the Q6_K decode MMVQ is far below memory bandwidth.** - **Cause:** 2-byte loads on the 210-byte blocks, plus `dp4a` emulated per column. I measured 2-byte loads topping out at ~360 GB/s and 8-byte loads at ~600 GB/s on a P100. - **The kernel:** I wrote a Pascal-only kernel that reads the existing `native_q6_k_pack` planes with 8-byte loads and does FP32 math on exact small integers. It's 1.1-2.2x faster per call and was +7-20% on decode here (table A). It's not bitwise equal to the dp4a kernels (relative difference ~2e-7), so as a PR it would be opt-in. - **Offer:** happy to open it as a separate opt-in PR if that's wanted. ## Hardware and software - **GPUs:** 1x Tesla P100-PCIE-16GB + 4x Tesla P100-PCIE-12GB (64 GB VRAM total). No NVLink, two PCIe root complexes (GPU0-1 on NUMA node 0, GPU2-4 on node 1). All PCIe 3.0 x16 capable; the engine's probe measured 11.8 / 10.4 / 6.2 / 10.5 / 10.4 GB/s host→device. 200 W power limit each. - **CPU, RAM, storage:** 2x Xeon E5-2650 v4 (AVX2, no AVX-512); the container gets 24 threads, and the engine used 17 expert-pool workers + the host thread. 52 GB RAM in the container, NVMe storage. - **OS:** Ubuntu 26.04 LXC on Proxmox (kernel 7.0.14-12-pve), NVIDIA driver 580.167.08, CUDA 12.9 (nvcc 12.9, host compiler g++-14). - **Strata:** `fb58e0d` (engine 0.1.41), built from source with `STRATA_EXPERIMENTAL_SM60=1` and `-DCMAKE_CUDA_ARCHITECTURES=60`. Two builds were used: - **Stock:** the engine `setup.sh --build --cuda 12` compiled from unmodified `fb58e0d`. Used for config A0 only. - **Modified:** `fb58e0d` plus my local changes, not upstream. Used for A1, A2 and everything after (sections B and C, needles, HumanEval+, vision). The changes: - the Pascal Q6_K kernel, switchable with an env var for the A1/A2 comparison; - the bit-exact PRMT/XMAD `dp4a` emulation in `include/strata/kernels/dp4a.hpp`; - the same sequence patched into ggml's sm_60 `dp4a` fallback (prompt-path MMQ). With the kernel off (A1), the only difference from stock is the `dp4a` change, which is bit-exact. The Python server, setup and everything else are unmodified. - **Background workloads:** none on the GPUs during the runs. ## Model and configuration - **Model:** `ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF`, IQ3_S (both shards), prepared by the unmodified installer. - **Bundled files:** expert profile, MTP draft head from the installer (`mtp/rt`). - **Memory mode:** low-RAM resident mode (`--resident-experts`), chosen by setup for 52 GB of RAM. - **Engine settings:** int8 KV, `--expert-cache auto`, `--prefill auto`, `--spec 4 --spec-min-p 0.5`. No calibration, experimental speed projection off. - **Setup command:** ```text STRATA_EXPERIMENTAL_SM60=1 ./setup.sh --yes --family qwen --model IQ3_S --gguf-dir <IQ3_S dir> \ --gpus 0,1,2,3,4 --cuda 12 --build --vision no --no-start ``` Configurations compared (same machine, same workload, back to back): | Config | What changed | |---|---| | **A0** setup defaults | **stock engine**, config as written by setup: 32K context, `layer_split auto` (picked K=10,19,29,38) | | **A1** + trim | **modified engine** with the Pascal Q6_K kernel **off**, `STRATA_STAGE_TRIM=1`, `"layer_split": "10,19,29,38"`, `--max-context 262144` | | **A2** + Pascal kernel | A1 with the Pascal Q6_K kernel on (**modified engine**) | A0 → A1 changes only stock settings (trim, split points, context). The engine difference is the bit-exact `dp4a` change, which measured no decode difference in isolation. A1 → A2 is the Pascal kernel alone. ## Method - **Workload:** `bench/results/2026-10-06-community-2x-p100/benchmark.py`, unchanged. Its synthetic code-explanation prompts are fresh for every request (0 reused tokens, checked in the engine log). - **Generation:** greedy, reasoning off, 256-token cap. Every run hit the cap. - **Timing:** engine-reported prompt and decode rates; TTFT measured at the client over loopback. - **Cache state:** one warm-up request was excluded, and the expert cache stayed warm between runs. - **Restarts:** the engine was restarted between configurations, not between runs. ## Results ### A. Settings comparison (2 runs each; median [range]) | Config | Prompt tokens | Prompt tok/s | Decode tok/s | TTFT s | | --- | ---: | --- | --- | --- | | A0 setup defaults | 511 | 93.2 [83.5–102.8] | 31.4 [29.7–33.2] | 5.59 [5.01–6.17] | | A1 + trim, 262K | 511 | 103.8 [89.4–118.2] | 34.1 [33.2–34.9] | 5.07 [4.37–5.77] | | A2 + Pascal kernel | 511 | 104.5 [90.9–118.2] | **37.2** [36.7–37.7] | 5.01 [4.37–5.66] | | A0 setup defaults | 3,999 | 234.4 [234.0–234.8] | 35.8 [35.0–36.5] | 17.11 [17.08–17.14] | | A1 + trim, 262K | 3,999 | 255.2 [254.6–255.9] | 36.5 [34.7–38.4] | 15.73 [15.68–15.78] | | A2 + Pascal kernel | 3,999 | 256.7 [255.5–257.8] | **38.9** [37.7–40.1] | 15.63 [15.56–15.71] | | A0 setup defaults | 16,000 | 401.3 [368.0–434.7] | 32.7 [31.5–33.8] | 40.22 [36.87–43.57] | | A1 + trim, 262K | 16,000 | 467.4 [463.7–471.2] | 33.2 [33.0–33.4] | 34.32 [34.05–34.59] | | A2 + Pascal kernel | 16,000 | 467.0 [461.6–472.4] | **40.1** [37.6–42.6] | 34.34 [33.94–34.74] | Decode hit rate 97.6–99.8% in all runs; drafts accepted 142–165 of 203–241 per run. Expert slots by card (CUDA0..4) and the profiled routed mass the caches held: | | Slots, CUDA0 / 1 / 2 / 3 / 4 | Routed mass held | |---|---|---| | A0 (no trim) | 5120 / 3916 / 3678 / 3738 / 2749 | ~98.0% | | A1 / A2 (trim) | 5120 / 4608 / 4956 / 4608 / 3736 | ~99.9% | At 262K context the slots are a little lower: 4531 on CUDA2, 3232 on CUDA4. ### B. Context sweep (config A2; 1 run each) | Context | Decode tok/s, 3,999 / 64,000-token prompt | Prompt tok/s, 64,000 | Notes | |---|---|---|---| | 131,072 | 38.6 / 39.3 | 841.7 | | | 196,608 | 38.2 / 39.7 | 802.0 | | | 262,144 | 37.9 / 37.4 | 796.6 | 200,000-token prompt: decode **35.9**, prompt 958.8 tok/s, TTFT 209 s, hit 99.5% | | 262,144, `--kv-resident 32768` | 38.3 / 39.1 | 789.1 | ~400 more experts cached; no clear difference | | 524,288, YaRN x2 | 38.9 / 41.2 | 795.3 | experimental, quality not checked | ### C. The Pascal kernel in isolation Per call, measured against `native_mmvq(14, ...)` on identical data. Relative max difference 1-2e-7 for 1-8 columns. | Shape | Columns | Stock | Pascal kernel | Speedup | |---|---:|---:|---:|---:| | 2560x12288 | 1 / 4 / 8 | 135 / 255 / 434 µs | 80 / 139 / 208 µs | 1.70x / 1.84x / 2.08x | | 4096x2560 | 1 / 4 / 8 | 47 / 88 / 144 µs | 35 / 60 / 87 µs | 1.35x / 1.47x / 1.67x | | head 2560x248320 | 1 / 4 / 8 | 2.47 / 4.73 / 7.91 ms | 1.26 / 2.30 / 3.64 ms | 1.97x / 2.06x / 2.17x | Memory at A2, 262K, with GPU vision on GPU0: - **VRAM used:** 13.1 / 10.7 / 11.6 / 11.2 / 12.0 GiB. - **RAM:** ~11-15 GB used (5.1 GiB of resident experts). No OOM, no paging. ## Correctness and limitations - **Needles** (`tools/needle_bench.py`, 262K context): 6 of 6 found at 8K (8,064 tokens) and 190K (189,451 tokens), depths 10/50/90. - **HumanEval+** (EvalPlus 0.1.10, greedy, thinking off, standard EvalPlus prompt, 164 problems): | Run | HumanEval | HumanEval+ | |---|---|---| | Kernel on, run 1 | 96.3% | 94.5% | | Kernel on, run 2 | 96.3% | 92.1% | | Kernel off | 97.6% | 95.1% | Two kernel-on runs already differ on 6 problems (cache and CPU/GPU rounding between restarts), and kernel on vs off differ on 2-5. So no measurable effect from the kernel. - **Vision** (GPU, encoder pinned to GPU0 via `"cuda_device": 0`): read the text and shapes of a test image correctly. Expert caches and decode speed were unchanged. - **Not tested:** - other quants (Q2_0, IQ2_XS, IQ3_XXS) and other models (Swift 1.5, Coder); - fewer than 5 GPUs; - `--pipeline-windows`; - prompts past 200K tokens; - 3+ runs per configuration; - a cold page cache. A0 differs from A1 in context (32K vs 262K) as well as the trim, so table A does not isolate the trim alone. The slot counts do. - **Other gains:** the stock dp4a emulation could also use PRMT + 16-bit MADs (bit-exact, 1.46x in isolation). It had no measurable effect on decode here, so I'm not proposing it.
Author
Owner

@ruibeikaa commented on GitHub (Oct 9, 2026):

@thedrzinger Thanks for the five-P100 report. On the dp4a emulation: decode does not move here either, but the prompt path does, once the form is chosen by rows per expert. With a two-file change to ggml's sm_60 MMQ, prompt reads on four GP100 dies take 2.5–8.4% less time (34,835-token read 50.337 / 50.516 s → 49.186 s; 90-token read 1.278 / 1.277 s → 1.170 s), with replies identical bit for bit and decode unchanged.

Conditions: 2× PH402 SKU 200 (four GP100 dies, sm_60, 48 SMs, 32 GB HBM2 each), clocks locked at 1050 MHz, 140 W cap, Windows 11, driver 581.80 (TCC), CUDA 12.9. Strata 0.1.41 (fb58e0d) source build for sm_60 that carries several open PRs (#1424, #1656 and #1674 among them) plus local commits. The two builds differ only in the llama.cpp checkout MMQ is compiled from. Swift 1.5 IQ3_XXS, --layer-split 12,24,36, every expert resident, --prefill auto, STRATA_PREFILL_PIPE=768 (#1441), STRATA_MMQ_RESIDENT_SORT_NE=1, greedy. One engine start per arm and two warm-up requests, then the same five requests in a fixed order. Arms ran base → patch → base again, one request per prompt per arm.

Which form wins depends on rows per expert. This is the MMQ the prompt path links, timed alone on one die. The shapes are Swift's expert shapes, gate/up 1280 × 2560 and down 2560 × 640, IQ3_XXS with random weights, 16 experts per launch and R rows per expert. The engine stayed loaded on the dies during these runs, idle as far as we know. ggml picks the MMQ tile width J from R: the smallest J with the fewest tiles, so R = 8 → J = 8, 15 → 16, 20 and 24 → 24, and 64 and more → 64. On this config the base kernel does 0.629 T MAC/s on gate/up at R = 8 and 1.616 at R = 512, so few rows per expert is where it is weakest. Time per launch against byte-wise in the same run (- = faster):

gate/up, IQ3_XXS, one GP100 die R = 8 15 32 64 256
4× VMAD in the fallback -19.5% -11.2% +3.5% +8.7% +12.2%
PRMT + 16-bit products in the fallback -10.6% -9.7% -6.1% -5.9% -3.8%
k01 loop unrolled (byte-wise) -7.8% -8.0% -5.2% +10.6% +9.1%
8-int block sum as a tree (byte-wise) +3.8% +20.3% +10.4% +8.0% +10.4%
tree + unroll + VMAD -23.0% -12.7% +18.1% +16.0% +18.8%
tree + unroll + PRMT -13.8% -11.5% -5.1% +8.2% +11.1%
this patch: tree + unroll + VMAD for J ≤ 16, PRMT elsewhere (separate run) -22.4% -12.7% -6.0% -5.4% -3.8%

For the patch, down is -22.7 / -11.1 / -5.9 / -4.1 / -3.9% at the same R. At R = 20, 24 and 48 it is -8.2 / -7.3 / -4.4% on gate/up and -7.8 / -8.0 / -4.8% on down. In absolute terms, gate/up at R = 8 goes from 630.9 → 489.5 us per launch, gate/up at R = 256 from 8334.3 → 8015.3 us, and down at R = 8 from 250.4 → 193.5 us. Output hashes equal base at every shape and R: 16 of 16 in the patch run (R 8–256), 10 of 10 in a run of the patch exactly as built for the engine (R 8, 15, 24, 64, 256), and all of them for the six variants above.

Why it stays bit-exact: PRMT sign-extends the byte pairs into 16-bit halves, and the four 16 × 16 products give the same int32 sum as the byte-wise form. The J ≤ 16 path changes only the order of integer additions, which are exact, and keeps the float accumulation in the same k01 order.

End to end (prompt read time from the engine's per-request line):

Swift 1.5 IQ3_XXS, four GP100 dies, read s tokens read base patch base again patch vs mean of base
fresh 1K 1,158 4.888 4.707 4.933 -4.1%
fresh 30K 34,835 50.337 49.186 50.516 -2.5%
1K appended to the 30K conversation 1,027 4.593 4.320 4.603 -6.0%
short prompt (CSV parser + tests) 90 1.278 1.170 1.277 -8.4%
short prompt (word problem) 112 1.704 1.628 1.710 -4.6%
  • Reply hashes (sha1 of content|reasoning) were the same in all three arms for all five requests.
  • Decode was within 0.8 tok/s of both base arms in every request. The two base arms differ from each other by up to 1.1 tok/s, and by at most 0.92% in read time.
  • The gain is smallest where chunks are largest. The 30K read goes in 3584-token chunks (-2.5%), the appended 1K in 512-token chunks (-6.0%). That fits the harness, but it is an inference.
  • Prompts: the long ones are a one-line file header followed by upstream src/prefill/prefill.cpp (v0.1.40.3), cut at 3,500 and 105,000 characters, plus a one-line question. The appended 1K is the next 3,500 characters.

Where the change lives. Both pieces are in llama.cpp's ggml-cuda, not in Strata:

  • common.cuh holds the __CUDA_ARCH__ < 610 fallback of ggml_cuda_dp4a.
  • mmq-vec-dot.cuh holds ggml_cuda_mmq_vec_dot_q8_0_q8_1_dp4a, which the IQ3_XXS and IQ3_S tiles both go through, and so do the Q8_0 tiles the prompt path uses for the MTP draft head (code reading; IQ3_S not measured).

In Strata only src/prefill calls that MMQ. The decode kernels take their dp4a from include/strata/kernels/dp4a.hpp (4× VMAD), which this change does not touch, so it cannot move decode (code reading; measured decode above agrees). You switched that file to PRMT and saw no decode change. We did not try that, but in isolation PRMT was slower than VMAD here (last table), so we would not expect a decode gain from it on this rig either (inference). Strata compiles MMQ from the llama.cpp commit it pins, 3cf03257: setup.py unpacks it into third_party/llama.cpp and passes that as -DSTRATA_GGML_DIR, and a plain CMake build fetches it. Neither has a patch step, so a Strata PR cannot carry this as things stand. The diff against 3cf03257 (applies with git apply; llama.cpp master still has the byte-wise fallback):

The diff (two files, against 3cf03257)
diff --git a/ggml/src/ggml-cuda/common.cuh b/ggml/src/ggml-cuda/common.cuh
--- a/ggml/src/ggml-cuda/common.cuh
+++ b/ggml/src/ggml-cuda/common.cuh
@@ -717,6 +717,20 @@ static __device__ __forceinline__ uint32_t __hgt2_mask(const half2 a, const half
 }
 #endif // (defined(CUDART_VERSION) && CUDART_VERSION < CUDART_HMASK) || defined(GGML_USE_HIP) || (defined(MUSART_VERSION) && MUSART_VERSION < MUSART_HMASK)
 
+#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ < 610
+// sm_60: four VMAD.S8.S8 (as in Strata's include/strata/kernels/dp4a.hpp), bit-exact with the byte-wise form.
+// In IQ3_XXS MMQ on a GP100 it beat the PRMT form below at 8 and 15 rows per expert and lost from 20 up: J <= 16 only.
+static __device__ __forceinline__ int strata_dp4a_vmad(const int a, const int b, const int c) {
+    int r = c;
+    asm("vmad.s32.s32.s32 %0, %1.b0, %2.b0, %0;\n\t"
+        "vmad.s32.s32.s32 %0, %1.b1, %2.b1, %0;\n\t"
+        "vmad.s32.s32.s32 %0, %1.b2, %2.b2, %0;\n\t"
+        "vmad.s32.s32.s32 %0, %1.b3, %2.b3, %0;"
+        : "+r"(r) : "r"(a), "r"(b));
+    return r;
+}
+#endif // defined(__CUDA_ARCH__) && __CUDA_ARCH__ < 610
+
 static __device__ __forceinline__ int ggml_cuda_dp4a(const int a, const int b, int c) {
 #if defined(GGML_USE_HIP)
 #if defined(CDNA) || defined(RDNA2) || defined(__gfx906__)
@@ -749,9 +763,16 @@ static __device__ __forceinline__ int ggml_cuda_dp4a(const int a, const int b, i
 #if __CUDA_ARCH__ >= GGML_CUDA_CC_DP4A || defined(GGML_USE_MUSA)
     return __dp4a(a, b, c);
 #else // __CUDA_ARCH__ >= GGML_CUDA_CC_DP4A || defined(GGML_USE_MUSA)
-    const int8_t * a8 = (const int8_t *) &a;
-    const int8_t * b8 = (const int8_t *) &b;
-    return c + a8[0]*b8[0] + a8[1]*b8[1] + a8[2]*b8[2] + a8[3]*b8[3];
+    // sm_60: the byte pairs sign-extended into 16-bit halves by PRMT, then 16x16 products - the same int32 sum as
+    // the byte-wise form (1.07e9 cases incl. every byte pair in every lane, 0 mismatches); IQ3_XXS MMQ on a GP100:
+    // 3.8-8.2% less time per launch at 20-256 rows per expert
+    int a02, a13, b02, b13;
+    asm("prmt.b32 %0, %1, 0, 0xA280;" : "=r"(a02) : "r"(a));
+    asm("prmt.b32 %0, %1, 0, 0xB391;" : "=r"(a13) : "r"(a));
+    asm("prmt.b32 %0, %1, 0, 0xA280;" : "=r"(b02) : "r"(b));
+    asm("prmt.b32 %0, %1, 0, 0xB391;" : "=r"(b13) : "r"(b));
+    return c + ((int) (short) a02 * (int) (short) b02 + (a02 >> 16) * (b02 >> 16))
+             + ((int) (short) a13 * (int) (short) b13 + (a13 >> 16) * (b13 >> 16));
 #endif // __CUDA_ARCH__ >= GGML_CUDA_CC_DP4A || defined(GGML_USE_MUSA)
 
 #endif // defined(GGML_USE_HIP)
diff --git a/ggml/src/ggml-cuda/mmq-vec-dot.cuh b/ggml/src/ggml-cuda/mmq-vec-dot.cuh
--- a/ggml/src/ggml-cuda/mmq-vec-dot.cuh
+++ b/ggml/src/ggml-cuda/mmq-vec-dot.cuh
@@ -119,6 +119,37 @@ template <ggml_type type, int J, bool fallback> static __device__ __forceinline_
     const int   * y_qs = (const int   *) y + 4;
     const float * y_df = (const float *) y;
 
+#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ < 610
+    if constexpr (J <= 16) {
+        // sm_60, few columns (J <= 16, i.e. up to 16 rows per expert):
+        // Every k01 step unrolled and each 8-int block's integer sum as a tree of VMAD dot products: the same
+        // int32 sum (exact and associative) and the float accumulation in the same k01 order, so bit for bit
+        // the loop below; IQ3_XXS MMQ on a GP100: 11.1-22.7% less time per launch at 8 and 15 rows per expert.
+#pragma unroll
+        for (int k01 = 0; k01 < MMQ_TILE_NE_K; k01 += VDR_Q8_0_Q8_1_MMQ) {
+            const int k0 = k00 + k01;
+#pragma unroll
+            for (int j0 = 0; j0 < J; j0 += nwarps) {
+                const int j = j0 + threadIdx.y;
+#pragma unroll
+                for (int i0 = 0; i0 < I; i0 += warp_size) {
+                    const int i = i0 + threadIdx.x;
+                    const int * v = &x_qs[i*(2*MMQ_TILE_NE_K + 1) + k0];
+                    const int * u = &y_qs[j*MMQ_TILE_Y_K + k0 % MMQ_TILE_NE_K];
+                    static_assert(VDR_Q8_0_Q8_1_MMQ == 8, "the tree is for 8 ints");
+                    int p[8];
+#pragma unroll
+                    for (int q = 0; q < 8; ++q) p[q] = strata_dp4a_vmad(v[q], u[q], 0);
+                    const int sumi = ((p[0] + p[1]) + (p[2] + p[3])) + ((p[4] + p[5]) + (p[6] + p[7]));
+                    const float d8_0 = x_df[i*(2*MMQ_TILE_NE_K/QI8_0) + i/(QI8_0/2) + k0/QI8_0];
+                    const float d8_1 = y_df[j*MMQ_TILE_Y_K + (k0/QI8_1) % (MMQ_TILE_NE_K/QI8_1)];
+                    sum[j0/nwarps*I/warp_size + i0/warp_size] += d8_0*d8_1 * ((float) sumi);
+                }
+            }
+        }
+        return;
+    }
+#endif // defined(__CUDA_ARCH__) && __CUDA_ARCH__ < 610
 // #pragma unroll
     for (int k01 = 0; k01 < MMQ_TILE_NE_K; k01 += VDR_Q8_0_Q8_1_MMQ) {
         const int k0 = k00 + k01;
What did not help (tile loader, sign masks, occupancy, I tile)

What did not help. These were tried in the same harness; the numbers are gate/up (down behaved similarly), and T MAC/s changes are throughput (- = slower). They may save you the time:

  • Timing-only builds (wrong output on purpose) give upper bounds for the tile loader. Skipping the IQ3_XXS codebook lookup saved 1.2–4.2% of launch time at R = 8, 15, 32, 64 and 256 on both shapes. Skipping all weight loads saved at most 10.5% (gate/up, R = 15) and nothing from R = 64 up (-0.4% to +2.4%). Inference: most of the launch time is not in the loader.
  • Sign masks from a 128-entry table of 64-bit masks, instead of unpack_ksigns + __vcmpne4 in the IQ3_XXS loader: -4.4% to +1.0% T MAC/s.
  • Occupancy 3 or 4 instead of 2: down to -22.3% and -70.5% T MAC/s.
  • I tile 32 instead of 64: -20.4% to -27.7% T MAC/s, or -21.5% to -29.0% together with occupancy 4.
  • Output hashes were not printed for the last three, so their exactness is unchecked. The last two were slower at every R, and the sign-mask table gained at most 1.0%.
The dp4a forms in isolation, and your 1.46×

In isolation (one GP100 die, 8 independent accumulators per thread). Exactness was checked on 1.07e9 cases: edge values, every byte pair in every lane, and random ones.

dp4a form, one GP100 die G dp4a/s T MAC/s mismatches vs byte-wise
byte-wise (ggml's sm_60 fallback today) 321.1 1.28 -
4× VMAD (Strata's dp4a.hpp) 366.1 1.46 0
PRMT + 16-bit products (compiles to PRMT + XMAD.S16.S16) 333.3 1.33 0
PRMT + mad.wide.s16 355.6 1.42 0

Over byte-wise that is 1.14× for VMAD, and 1.04× and 1.11× for the two PRMT forms; over VMAD the two PRMT forms are 0.91× and 0.97× (computed from the table). Both are well short of your 1.46×. Was that against the byte-wise form or against dp4a.hpp's VMAD? In MMQ the order also flips with R: VMAD alone is the fastest form at R = 8 and 15 but 8.7–12.2% behind byte-wise at R = 64 and 256. So an isolated number did not tell which form to use in MMQ. Why the order flips is not established: nvprof metric collection failed here with "Internal profiling error 4212:27", and only summary mode worked.

Not measured: IQ3_S or Flash-Next, P100 cards, five stages, Linux, three or more runs per arm, other MMQ types, and ggml's other sm_60 dp4a callers (MMVQ and the rest of ggml-cuda, which Strata does not build). Not affected: compute capability 6.1 (P40, P4, GTX 10 series), which has __dp4a, so neither path is compiled there.

If you're willing, a prompt-read A/B on your P100s would tell whether the J ≤ 16 path holds on IQ3_S over five stages. That means fb58e0d with this diff applied to the llama.cpp tree it builds MMQ from (third_party/llama.cpp in a setup.sh build), against the same build without it. Your PRMT-only ggml build as a third arm would separate the two pieces.

<!-- gh-comment-id:6086238713 --> @ruibeikaa commented on GitHub (Oct 9, 2026): @thedrzinger Thanks for the five-P100 report. On the dp4a emulation: decode does not move here either, but the prompt path does, once the form is chosen by rows per expert. With a two-file change to ggml's sm_60 MMQ, prompt reads on four GP100 dies take **2.5–8.4% less time** (34,835-token read 50.337 / 50.516 s → **49.186 s**; 90-token read 1.278 / 1.277 s → **1.170 s**), with replies identical bit for bit and decode unchanged. Conditions: 2× PH402 SKU 200 (four GP100 dies, sm_60, 48 SMs, 32 GB HBM2 each), clocks locked at 1050 MHz, 140 W cap, Windows 11, driver 581.80 (TCC), CUDA 12.9. Strata 0.1.41 (fb58e0d) source build for sm_60 that carries several open PRs (#1424, #1656 and #1674 among them) plus local commits. The two builds differ only in the llama.cpp checkout MMQ is compiled from. Swift 1.5 IQ3_XXS, `--layer-split 12,24,36`, every expert resident, `--prefill auto`, `STRATA_PREFILL_PIPE=768` (#1441), `STRATA_MMQ_RESIDENT_SORT_NE=1`, greedy. One engine start per arm and two warm-up requests, then the same five requests in a fixed order. Arms ran base → patch → base again, one request per prompt per arm. **Which form wins depends on rows per expert.** This is the MMQ the prompt path links, timed alone on one die. The shapes are Swift's expert shapes, gate/up 1280 × 2560 and down 2560 × 640, IQ3_XXS with random weights, 16 experts per launch and R rows per expert. The engine stayed loaded on the dies during these runs, idle as far as we know. ggml picks the MMQ tile width J from R: the smallest J with the fewest tiles, so R = 8 → J = 8, 15 → 16, 20 and 24 → 24, and 64 and more → 64. On this config the base kernel does 0.629 T MAC/s on gate/up at R = 8 and 1.616 at R = 512, so few rows per expert is where it is weakest. Time per launch against byte-wise in the same run (- = faster): | gate/up, IQ3_XXS, one GP100 die | R = 8 | 15 | 32 | 64 | 256 | |---|---:|---:|---:|---:|---:| | 4× VMAD in the fallback | -19.5% | -11.2% | +3.5% | +8.7% | +12.2% | | PRMT + 16-bit products in the fallback | -10.6% | -9.7% | **-6.1%** | **-5.9%** | **-3.8%** | | k01 loop unrolled (byte-wise) | -7.8% | -8.0% | -5.2% | +10.6% | +9.1% | | 8-int block sum as a tree (byte-wise) | +3.8% | +20.3% | +10.4% | +8.0% | +10.4% | | tree + unroll + VMAD | **-23.0%** | **-12.7%** | +18.1% | +16.0% | +18.8% | | tree + unroll + PRMT | -13.8% | -11.5% | -5.1% | +8.2% | +11.1% | | this patch: tree + unroll + VMAD for J ≤ 16, PRMT elsewhere (separate run) | -22.4% | -12.7% | -6.0% | -5.4% | -3.8% | For the patch, down is -22.7 / -11.1 / -5.9 / -4.1 / -3.9% at the same R. At R = 20, 24 and 48 it is -8.2 / -7.3 / -4.4% on gate/up and -7.8 / -8.0 / -4.8% on down. In absolute terms, gate/up at R = 8 goes from 630.9 → 489.5 us per launch, gate/up at R = 256 from 8334.3 → 8015.3 us, and down at R = 8 from 250.4 → 193.5 us. Output hashes equal base at every shape and R: 16 of 16 in the patch run (R 8–256), 10 of 10 in a run of the patch exactly as built for the engine (R 8, 15, 24, 64, 256), and all of them for the six variants above. Why it stays bit-exact: PRMT sign-extends the byte pairs into 16-bit halves, and the four 16 × 16 products give the same int32 sum as the byte-wise form. The J ≤ 16 path changes only the order of integer additions, which are exact, and keeps the float accumulation in the same k01 order. **End to end** (prompt read time from the engine's per-request line): | Swift 1.5 IQ3_XXS, four GP100 dies, read s | tokens read | base | patch | base again | patch vs mean of base | |---|---:|---:|---:|---:|---:| | fresh 1K | 1,158 | 4.888 | **4.707** | 4.933 | -4.1% | | fresh 30K | 34,835 | 50.337 | **49.186** | 50.516 | -2.5% | | 1K appended to the 30K conversation | 1,027 | 4.593 | **4.320** | 4.603 | -6.0% | | short prompt (CSV parser + tests) | 90 | 1.278 | **1.170** | 1.277 | -8.4% | | short prompt (word problem) | 112 | 1.704 | **1.628** | 1.710 | -4.6% | - Reply hashes (sha1 of content|reasoning) were the same in all three arms for all five requests. - Decode was within 0.8 tok/s of both base arms in every request. The two base arms differ from each other by up to 1.1 tok/s, and by at most 0.92% in read time. - The gain is smallest where chunks are largest. The 30K read goes in 3584-token chunks (-2.5%), the appended 1K in 512-token chunks (-6.0%). That fits the harness, but it is an inference. - Prompts: the long ones are a one-line file header followed by upstream `src/prefill/prefill.cpp` (v0.1.40.3), cut at 3,500 and 105,000 characters, plus a one-line question. The appended 1K is the next 3,500 characters. **Where the change lives.** Both pieces are in llama.cpp's ggml-cuda, not in Strata: - `common.cuh` holds the `__CUDA_ARCH__ < 610` fallback of `ggml_cuda_dp4a`. - `mmq-vec-dot.cuh` holds `ggml_cuda_mmq_vec_dot_q8_0_q8_1_dp4a`, which the IQ3_XXS and IQ3_S tiles both go through, and so do the Q8_0 tiles the prompt path uses for the MTP draft head (code reading; IQ3_S not measured). In Strata only `src/prefill` calls that MMQ. The decode kernels take their dp4a from `include/strata/kernels/dp4a.hpp` (4× VMAD), which this change does not touch, so it cannot move decode (code reading; measured decode above agrees). You switched that file to PRMT and saw no decode change. We did not try that, but in isolation PRMT was slower than VMAD here (last table), so we would not expect a decode gain from it on this rig either (inference). Strata compiles MMQ from the llama.cpp commit it pins, 3cf03257: `setup.py` unpacks it into `third_party/llama.cpp` and passes that as `-DSTRATA_GGML_DIR`, and a plain CMake build fetches it. Neither has a patch step, so a Strata PR cannot carry this as things stand. The diff against 3cf03257 (applies with `git apply`; llama.cpp master still has the byte-wise fallback): <details><summary>The diff (two files, against 3cf03257)</summary> ```diff diff --git a/ggml/src/ggml-cuda/common.cuh b/ggml/src/ggml-cuda/common.cuh --- a/ggml/src/ggml-cuda/common.cuh +++ b/ggml/src/ggml-cuda/common.cuh @@ -717,6 +717,20 @@ static __device__ __forceinline__ uint32_t __hgt2_mask(const half2 a, const half } #endif // (defined(CUDART_VERSION) && CUDART_VERSION < CUDART_HMASK) || defined(GGML_USE_HIP) || (defined(MUSART_VERSION) && MUSART_VERSION < MUSART_HMASK) +#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ < 610 +// sm_60: four VMAD.S8.S8 (as in Strata's include/strata/kernels/dp4a.hpp), bit-exact with the byte-wise form. +// In IQ3_XXS MMQ on a GP100 it beat the PRMT form below at 8 and 15 rows per expert and lost from 20 up: J <= 16 only. +static __device__ __forceinline__ int strata_dp4a_vmad(const int a, const int b, const int c) { + int r = c; + asm("vmad.s32.s32.s32 %0, %1.b0, %2.b0, %0;\n\t" + "vmad.s32.s32.s32 %0, %1.b1, %2.b1, %0;\n\t" + "vmad.s32.s32.s32 %0, %1.b2, %2.b2, %0;\n\t" + "vmad.s32.s32.s32 %0, %1.b3, %2.b3, %0;" + : "+r"(r) : "r"(a), "r"(b)); + return r; +} +#endif // defined(__CUDA_ARCH__) && __CUDA_ARCH__ < 610 + static __device__ __forceinline__ int ggml_cuda_dp4a(const int a, const int b, int c) { #if defined(GGML_USE_HIP) #if defined(CDNA) || defined(RDNA2) || defined(__gfx906__) @@ -749,9 +763,16 @@ static __device__ __forceinline__ int ggml_cuda_dp4a(const int a, const int b, i #if __CUDA_ARCH__ >= GGML_CUDA_CC_DP4A || defined(GGML_USE_MUSA) return __dp4a(a, b, c); #else // __CUDA_ARCH__ >= GGML_CUDA_CC_DP4A || defined(GGML_USE_MUSA) - const int8_t * a8 = (const int8_t *) &a; - const int8_t * b8 = (const int8_t *) &b; - return c + a8[0]*b8[0] + a8[1]*b8[1] + a8[2]*b8[2] + a8[3]*b8[3]; + // sm_60: the byte pairs sign-extended into 16-bit halves by PRMT, then 16x16 products - the same int32 sum as + // the byte-wise form (1.07e9 cases incl. every byte pair in every lane, 0 mismatches); IQ3_XXS MMQ on a GP100: + // 3.8-8.2% less time per launch at 20-256 rows per expert + int a02, a13, b02, b13; + asm("prmt.b32 %0, %1, 0, 0xA280;" : "=r"(a02) : "r"(a)); + asm("prmt.b32 %0, %1, 0, 0xB391;" : "=r"(a13) : "r"(a)); + asm("prmt.b32 %0, %1, 0, 0xA280;" : "=r"(b02) : "r"(b)); + asm("prmt.b32 %0, %1, 0, 0xB391;" : "=r"(b13) : "r"(b)); + return c + ((int) (short) a02 * (int) (short) b02 + (a02 >> 16) * (b02 >> 16)) + + ((int) (short) a13 * (int) (short) b13 + (a13 >> 16) * (b13 >> 16)); #endif // __CUDA_ARCH__ >= GGML_CUDA_CC_DP4A || defined(GGML_USE_MUSA) #endif // defined(GGML_USE_HIP) diff --git a/ggml/src/ggml-cuda/mmq-vec-dot.cuh b/ggml/src/ggml-cuda/mmq-vec-dot.cuh --- a/ggml/src/ggml-cuda/mmq-vec-dot.cuh +++ b/ggml/src/ggml-cuda/mmq-vec-dot.cuh @@ -119,6 +119,37 @@ template <ggml_type type, int J, bool fallback> static __device__ __forceinline_ const int * y_qs = (const int *) y + 4; const float * y_df = (const float *) y; +#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ < 610 + if constexpr (J <= 16) { + // sm_60, few columns (J <= 16, i.e. up to 16 rows per expert): + // Every k01 step unrolled and each 8-int block's integer sum as a tree of VMAD dot products: the same + // int32 sum (exact and associative) and the float accumulation in the same k01 order, so bit for bit + // the loop below; IQ3_XXS MMQ on a GP100: 11.1-22.7% less time per launch at 8 and 15 rows per expert. +#pragma unroll + for (int k01 = 0; k01 < MMQ_TILE_NE_K; k01 += VDR_Q8_0_Q8_1_MMQ) { + const int k0 = k00 + k01; +#pragma unroll + for (int j0 = 0; j0 < J; j0 += nwarps) { + const int j = j0 + threadIdx.y; +#pragma unroll + for (int i0 = 0; i0 < I; i0 += warp_size) { + const int i = i0 + threadIdx.x; + const int * v = &x_qs[i*(2*MMQ_TILE_NE_K + 1) + k0]; + const int * u = &y_qs[j*MMQ_TILE_Y_K + k0 % MMQ_TILE_NE_K]; + static_assert(VDR_Q8_0_Q8_1_MMQ == 8, "the tree is for 8 ints"); + int p[8]; +#pragma unroll + for (int q = 0; q < 8; ++q) p[q] = strata_dp4a_vmad(v[q], u[q], 0); + const int sumi = ((p[0] + p[1]) + (p[2] + p[3])) + ((p[4] + p[5]) + (p[6] + p[7])); + const float d8_0 = x_df[i*(2*MMQ_TILE_NE_K/QI8_0) + i/(QI8_0/2) + k0/QI8_0]; + const float d8_1 = y_df[j*MMQ_TILE_Y_K + (k0/QI8_1) % (MMQ_TILE_NE_K/QI8_1)]; + sum[j0/nwarps*I/warp_size + i0/warp_size] += d8_0*d8_1 * ((float) sumi); + } + } + } + return; + } +#endif // defined(__CUDA_ARCH__) && __CUDA_ARCH__ < 610 // #pragma unroll for (int k01 = 0; k01 < MMQ_TILE_NE_K; k01 += VDR_Q8_0_Q8_1_MMQ) { const int k0 = k00 + k01; ``` </details> <details><summary>What did not help (tile loader, sign masks, occupancy, I tile)</summary> **What did not help.** These were tried in the same harness; the numbers are gate/up (down behaved similarly), and T MAC/s changes are throughput (- = slower). They may save you the time: - **Timing-only builds** (wrong output on purpose) give upper bounds for the tile loader. Skipping the IQ3_XXS codebook lookup saved 1.2–4.2% of launch time at R = 8, 15, 32, 64 and 256 on both shapes. Skipping all weight loads saved at most 10.5% (gate/up, R = 15) and nothing from R = 64 up (-0.4% to +2.4%). Inference: most of the launch time is not in the loader. - **Sign masks** from a 128-entry table of 64-bit masks, instead of `unpack_ksigns` + `__vcmpne4` in the IQ3_XXS loader: -4.4% to +1.0% T MAC/s. - **Occupancy 3 or 4** instead of 2: down to -22.3% and -70.5% T MAC/s. - **I tile 32** instead of 64: -20.4% to -27.7% T MAC/s, or -21.5% to -29.0% together with occupancy 4. - Output hashes were not printed for the last three, so their exactness is unchecked. The last two were slower at every R, and the sign-mask table gained at most 1.0%. </details> <details><summary>The dp4a forms in isolation, and your 1.46×</summary> **In isolation** (one GP100 die, 8 independent accumulators per thread). Exactness was checked on 1.07e9 cases: edge values, every byte pair in every lane, and random ones. | dp4a form, one GP100 die | G dp4a/s | T MAC/s | mismatches vs byte-wise | |---|---:|---:|---:| | byte-wise (ggml's sm_60 fallback today) | 321.1 | 1.28 | - | | 4× VMAD (Strata's dp4a.hpp) | **366.1** | **1.46** | 0 | | PRMT + 16-bit products (compiles to PRMT + XMAD.S16.S16) | 333.3 | 1.33 | 0 | | PRMT + mad.wide.s16 | 355.6 | 1.42 | 0 | Over byte-wise that is 1.14× for VMAD, and 1.04× and 1.11× for the two PRMT forms; over VMAD the two PRMT forms are 0.91× and 0.97× (computed from the table). Both are well short of your 1.46×. Was that against the byte-wise form or against dp4a.hpp's VMAD? In MMQ the order also flips with R: VMAD alone is the fastest form at R = 8 and 15 but 8.7–12.2% behind byte-wise at R = 64 and 256. So an isolated number did not tell which form to use in MMQ. Why the order flips is not established: nvprof metric collection failed here with "Internal profiling error 4212:27", and only summary mode worked. </details> Not measured: IQ3_S or Flash-Next, P100 cards, five stages, Linux, three or more runs per arm, other MMQ types, and ggml's other sm_60 dp4a callers (MMVQ and the rest of ggml-cuda, which Strata does not build). Not affected: compute capability 6.1 (P40, P4, GTX 10 series), which has `__dp4a`, so neither path is compiled there. If you're willing, a prompt-read A/B on your P100s would tell whether the J ≤ 16 path holds on IQ3_S over five stages. That means fb58e0d with this diff applied to the llama.cpp tree it builds MMQ from (`third_party/llama.cpp` in a setup.sh build), against the same build without it. Your PRMT-only ggml build as a third arm would separate the two pieces.
Author
Owner

@thedrzinger commented on GitHub (Oct 9, 2026):

@ruibeikaa Had claude run the A/B you asked for on the P100s, with a fourth arm and a correction to my report.

Short version: on 5x P100 with Flash-Next IQ3_S, the dp4a fallback form accounts for the prompt-read gain (−3 to −8%). The J ≤ 16 path added nothing measurable here. Replies were identical bit for bit in every run, and decode was unchanged.

Arms. Same source (fb58e0d + my local P100 changes, the same build otherwise), differing only in the llama.cpp tree MMQ is compiled from, all at 3cf03257:

Arm What it is
base stock: byte-wise fallback in common.cuh, stock mmq-vec-dot.cuh
prmt my PRMT + mad.wide.s16 fallback only (what I run)
patch your diff exactly as posted (git apply clean): PRMT with C 16-bit products + the J ≤ 16 VMAD tree
j16 my mad.wide.s16 fallback + your J ≤ 16 path and strata_dp4a_vmad helper

Conditions:

  • Hardware: 1x P100-PCIE-16GB + 4x P100-PCIE-12GB (GP100, sm_60, 56 SMs each), clocks not locked (1,328 MHz max), 200 W limit, Linux (Proxmox LXC), driver 580.167.08, CUDA 12.9.
  • Model and settings: Flash-Next IQ3_S, --layer-split 10,19,29,38 with STRATA_STAGE_TRIM=1, 262,144 context, --prefill auto, --spec 3, greedy, reasoning off, 64-token cap.
  • Expert cache: ~99.9% of profiled experts resident, no STRATA_PREFILL_PIPE or STRATA_MMQ_RESIDENT_SORT_NE.
  • Procedure: one engine start per arm, two warm-ups, then the same five requests in a fixed order. Two full rounds, base → prmt → patch → j16 → base → prmt → patch → j16.
  • Prompts (your style):
    • one-line file header + upstream src/prefill/prefill.cpp, cut at 3,500 and 105,000 characters, plus a question;
    • the next 3,500 characters appended to the 30K conversation;
    • two short prompts.

Prompt read time from the engine's per-request line (seconds, round 1 / round 2; change of the mean vs base):

Request Tokens read base prmt patch j16
fresh 1K 1,133 7.506 / 7.713 7.171 / 7.437 (−4.0%) 7.559 / 7.102 (−3.7%) 7.370 / 7.342 (−3.3%)
fresh 30K 34,462 59.923 / 59.733 57.955 / 57.922 (−3.2%) 59.019 / 59.510 (−0.9%) 57.715 / 58.003 (−3.3%)
1K appended to 30K 1,276 8.241 / 8.220 7.558 / 7.582 (−8.0%) 7.971 / 7.986 (−3.1%) 7.555 / 7.595 (−8.0%)
short (CSV parser) 30 0.568 / 0.603 0.572 / 0.575 (−2.1%) 0.568 / 0.562 (−3.6%) 0.577 / 0.599 (+0.5%)
short (word problem) 70 1.215 / 1.215 1.216 / 1.213 (0.0%) 1.216 / 1.213 (−0.1%) 1.212 / 1.213 (−0.2%)
  • Replies: sha1 of content|reasoning was identical for each request across all 8 runs.
  • Decode: mean 39.55 / 39.64 / 39.68 / 39.70 tok/s for base / prmt / patch / j16.
  • prmt vs j16: within noise on every request. The J ≤ 16 path did not help on this config.
    • Inference (not measured): Flash-Next routes 10 of 512 experts per token, so even the ~1.1K reads give ~22 rows per expert (J = 24), above where that path applies. The two short prompts are dominated by other costs.
  • patch vs prmt: "patch" trails "prmt" on the 30K and appended reads. That fits your isolated numbers, where the C 16-bit-product PRMT form was slower than the mad.wide.s16 one (333 vs 356 G/s). The only other difference between the two arms is the J ≤ 16 path, which j16 shows is neutral here.

Your question about my 1.46×. It was against Strata's VMAD form (dp4a.hpp), not byte-wise. And it overstates things: in my harness one operand was shared by the 8 accumulators in each iteration, so its two PRMTs were amortized. With both operands fresh on every call your numbers are the fairer ones, and they match what I saw end to end: no decode change from switching dp4a.hpp to PRMT. I'll treat that part of my report as "neutral for decode, bit-exact". The prompt-read gain above comes from ggml's fallback.

<!-- gh-comment-id:6087339632 --> @thedrzinger commented on GitHub (Oct 9, 2026): @ruibeikaa Had claude run the A/B you asked for on the P100s, with a fourth arm and a correction to my report. **Short version:** on 5x P100 with Flash-Next IQ3_S, the dp4a fallback form accounts for the prompt-read gain (−3 to −8%). The J ≤ 16 path added nothing measurable here. Replies were identical bit for bit in every run, and decode was unchanged. **Arms.** Same source (`fb58e0d` + my local P100 changes, the same build otherwise), differing only in the llama.cpp tree MMQ is compiled from, all at `3cf03257`: | Arm | What it is | |---|---| | **base** | stock: byte-wise fallback in `common.cuh`, stock `mmq-vec-dot.cuh` | | **prmt** | my PRMT + `mad.wide.s16` fallback only (what I run) | | **patch** | your diff exactly as posted (`git apply` clean): PRMT with C 16-bit products + the J ≤ 16 VMAD tree | | **j16** | my `mad.wide.s16` fallback + your J ≤ 16 path and `strata_dp4a_vmad` helper | **Conditions:** - **Hardware:** 1x P100-PCIE-16GB + 4x P100-PCIE-12GB (GP100, sm_60, 56 SMs each), clocks not locked (1,328 MHz max), 200 W limit, Linux (Proxmox LXC), driver 580.167.08, CUDA 12.9. - **Model and settings:** Flash-Next IQ3_S, `--layer-split 10,19,29,38` with `STRATA_STAGE_TRIM=1`, 262,144 context, `--prefill auto`, `--spec 3`, greedy, reasoning off, 64-token cap. - **Expert cache:** ~99.9% of profiled experts resident, no `STRATA_PREFILL_PIPE` or `STRATA_MMQ_RESIDENT_SORT_NE`. - **Procedure:** one engine start per arm, two warm-ups, then the same five requests in a fixed order. Two full rounds, base → prmt → patch → j16 → base → prmt → patch → j16. - **Prompts** (your style): - one-line file header + upstream `src/prefill/prefill.cpp`, cut at 3,500 and 105,000 characters, plus a question; - the next 3,500 characters appended to the 30K conversation; - two short prompts. **Prompt read time** from the engine's per-request line (seconds, round 1 / round 2; change of the mean vs base): | Request | Tokens read | base | prmt | patch | j16 | |---|---:|---|---|---|---| | fresh 1K | 1,133 | 7.506 / 7.713 | 7.171 / 7.437 (**−4.0%**) | 7.559 / 7.102 (−3.7%) | 7.370 / 7.342 (−3.3%) | | fresh 30K | 34,462 | 59.923 / 59.733 | 57.955 / 57.922 (**−3.2%**) | 59.019 / 59.510 (−0.9%) | 57.715 / 58.003 (**−3.3%**) | | 1K appended to 30K | 1,276 | 8.241 / 8.220 | 7.558 / 7.582 (**−8.0%**) | 7.971 / 7.986 (−3.1%) | 7.555 / 7.595 (**−8.0%**) | | short (CSV parser) | 30 | 0.568 / 0.603 | 0.572 / 0.575 (−2.1%) | 0.568 / 0.562 (−3.6%) | 0.577 / 0.599 (+0.5%) | | short (word problem) | 70 | 1.215 / 1.215 | 1.216 / 1.213 (0.0%) | 1.216 / 1.213 (−0.1%) | 1.212 / 1.213 (−0.2%) | - **Replies:** sha1 of content|reasoning was identical for each request across all 8 runs. - **Decode:** mean 39.55 / 39.64 / 39.68 / 39.70 tok/s for base / prmt / patch / j16. - **prmt vs j16:** within noise on every request. The J ≤ 16 path did not help on this config. - **Inference (not measured):** Flash-Next routes 10 of 512 experts per token, so even the ~1.1K reads give ~22 rows per expert (J = 24), above where that path applies. The two short prompts are dominated by other costs. - **patch vs prmt:** "patch" trails "prmt" on the 30K and appended reads. That fits your isolated numbers, where the C 16-bit-product PRMT form was slower than the `mad.wide.s16` one (333 vs 356 G/s). The only other difference between the two arms is the J ≤ 16 path, which j16 shows is neutral here. **Your question about my 1.46×.** It was against Strata's VMAD form (`dp4a.hpp`), not byte-wise. And it overstates things: in my harness one operand was shared by the 8 accumulators in each iteration, so its two PRMTs were amortized. With both operands fresh on every call your numbers are the fairer ones, and they match what I saw end to end: no decode change from switching `dp4a.hpp` to PRMT. I'll treat that part of my report as "neutral for decode, bit-exact". The prompt-read gain above comes from ggml's fallback.
Author
Owner

@ruibeikaa commented on GitHub (Oct 9, 2026):

@thedrzinger Thanks for running it, and for the four arms. Your form wins here too, by more than I expected.

I built your mad.wide.s16 fallback into the same harness (IQ3_XXS, Swift's expert shapes, 16 experts per launch, one GP100 die, same random weights) beside the two forms I posted. Time per launch, output hashes equal in every cell:

gate/up 1280 × 2560 R = 8 15 24 32 48 64 256
PRMT + C 16-bit products, J ≤ 16 VMAD tree (what I posted and ran) 493.9 744.6 997.8 1216.1 1653.2 2108.1 8014.3
PRMT + mad.wide.s16 (yours) 502.8 655.7 831.9 1028.2 1491.9 1967.8 7138.8
yours for J > 16, the VMAD tree for J ≤ 16 491.8 744.5 831.1 1040.9 1498.4 1950.8 7096.8

down 2560 × 640 behaves the same: 312.2 → 270.4 µs at R = 15, 409.2 → 344.1 at 24, 3255.2 → 2840.2 at 256.

So the J ≤ 16 tree only beats your form at R = 8 (by 2%), and at R = 15 it loses to it by 12%. Your reading of why the tree did nothing on your rig also holds here: it only ever runs at J ≤ 16, and with 10 of 512 experts that needs chunks under about 820 tokens. On this rig the 1K reads do use 512-token chunks (STRATA_PREFILL_PIPE), which is why it showed up in my harness and not in yours.

I've dropped the tree and switched this rig to your form alone. End to end on four GP100 dies, same requests as before, bracketed starts (previous patch → yours → previous patch), replies identical:

Swift 1.5 IQ3_XXS, four GP100 dies, STRATA_PREFILL_PIPE=290, read s tokens read previous patch yours previous patch again
fresh 1K 1,158 4.017 3.821 4.012
fresh 30K 34,835 49.456 43.976 46.573
1K appended to the 30K conversation 1,027 4.790 4.183 4.328
short (CSV parser) 90 1.252 1.134 1.167
short (word problem) 112 1.725 1.685 1.594

Against the closer of the two bracketing starts: −4.8% at 1K, −5.6% at 30K, −3.4% on the appended read; the two short prompts are within their own noise. The two bracketing starts disagree by 6% on the 30K read (49.456 vs 46.573; an earlier start today read it in 46.545), so the first one looks like the outlier, and I would not claim more than the −5.6%. Decode moved within 0.0–1.4 tok/s between the builds. The 1K reads here use 512-token chunks, so this is also the case where the dropped tree used to apply; your form still wins there end to end.

On the 1.46×: thanks for checking the harness, that settles it. The isolated numbers I posted had both operands fresh per call; with one operand shared across the 8 accumulators the two PRMTs of that operand are amortized, which is also the shape inside MMQ's inner loop (the y tile is reused across the x rows), so your in-MMQ result is the one that counts.

The only question left on my side is the C-products form: it is 3.8–11.5% faster than byte-wise in isolation but 10–17% slower than yours in MMQ at R ≥ 15, and I have not looked at why (register pressure or the extra I2I/SHF the compiler emits around the 16-bit products would be my guess; not measured).

<!-- gh-comment-id:6088365141 --> @ruibeikaa commented on GitHub (Oct 9, 2026): @thedrzinger Thanks for running it, and for the four arms. Your form wins here too, by more than I expected. I built your `mad.wide.s16` fallback into the same harness (IQ3_XXS, Swift's expert shapes, 16 experts per launch, one GP100 die, same random weights) beside the two forms I posted. Time per launch, output hashes equal in every cell: | gate/up 1280 × 2560 | R = 8 | 15 | 24 | 32 | 48 | 64 | 256 | |---|---:|---:|---:|---:|---:|---:|---:| | PRMT + C 16-bit products, J ≤ 16 VMAD tree (what I posted and ran) | 493.9 | 744.6 | 997.8 | 1216.1 | 1653.2 | 2108.1 | 8014.3 | | PRMT + `mad.wide.s16` (yours) | 502.8 | **655.7** | **831.9** | **1028.2** | **1491.9** | **1967.8** | **7138.8** | | yours for J > 16, the VMAD tree for J ≤ 16 | 491.8 | 744.5 | 831.1 | 1040.9 | 1498.4 | 1950.8 | 7096.8 | down 2560 × 640 behaves the same: 312.2 → 270.4 µs at R = 15, 409.2 → 344.1 at 24, 3255.2 → 2840.2 at 256. So the J ≤ 16 tree only beats your form at R = 8 (by 2%), and at R = 15 it loses to it by 12%. Your reading of why the tree did nothing on your rig also holds here: it only ever runs at J ≤ 16, and with 10 of 512 experts that needs chunks under about 820 tokens. On this rig the 1K reads do use 512-token chunks (`STRATA_PREFILL_PIPE`), which is why it showed up in my harness and not in yours. I've dropped the tree and switched this rig to your form alone. End to end on four GP100 dies, same requests as before, bracketed starts (previous patch → yours → previous patch), replies identical: | Swift 1.5 IQ3_XXS, four GP100 dies, `STRATA_PREFILL_PIPE=290`, read s | tokens read | previous patch | yours | previous patch again | |---|---:|---:|---:|---:| | fresh 1K | 1,158 | 4.017 | **3.821** | 4.012 | | fresh 30K | 34,835 | 49.456 | **43.976** | 46.573 | | 1K appended to the 30K conversation | 1,027 | 4.790 | **4.183** | 4.328 | | short (CSV parser) | 90 | 1.252 | 1.134 | 1.167 | | short (word problem) | 112 | 1.725 | 1.685 | 1.594 | Against the closer of the two bracketing starts: −4.8% at 1K, −5.6% at 30K, −3.4% on the appended read; the two short prompts are within their own noise. The two bracketing starts disagree by 6% on the 30K read (49.456 vs 46.573; an earlier start today read it in 46.545), so the first one looks like the outlier, and I would not claim more than the −5.6%. Decode moved within 0.0–1.4 tok/s between the builds. The 1K reads here use 512-token chunks, so this is also the case where the dropped tree used to apply; your form still wins there end to end. On the 1.46×: thanks for checking the harness, that settles it. The isolated numbers I posted had both operands fresh per call; with one operand shared across the 8 accumulators the two PRMTs of that operand are amortized, which is also the shape inside MMQ's inner loop (the y tile is reused across the x rows), so your in-MMQ result is the one that counts. The only question left on my side is the C-products form: it is 3.8–11.5% faster than byte-wise in isolation but 10–17% slower than yours in MMQ at R ≥ 15, and I have not looked at why (register pressure or the extra I2I/SHF the compiler emits around the 16-bit products would be my guess; not measured).
Author
Owner

@thedrzinger commented on GitHub (Oct 9, 2026):

@ruibeikaa Thanks for re-running it on your side. Good to see the mad.wide.s16 form hold up on GP100 with smaller chunks too. To close this out, here's where my 5x P100 setup ended up and how it got there.

Final config. Flash-Next IQ3_S, 262,144 context, all 5 cards, served through llama-swap, vision on (encoder pinned to GPU0).

  • Engine: fb58e0d + local changes.
  • Settings:
    • STRATA_STAGE_TRIM=1 with "layer_split": "10,19,29,38";
    • --spec 3 --spec-min-p 0.5;
    • --mtp-draft-vocab data/draft_vocab_en.bin;
    • int8 KV, KV in VRAM, --resident-experts.

How it got there (engine decode tok/s, greedy, reasoning off, 256-token cap):

Step Decode
setup.sh defaults (32K, auto split) 31.4 / 35.8 / 32.7 at 512 / 4K / 16K prompt tokens
+ STRATA_STAGE_TRIM=1, explicit split, 262K context (experts in VRAM 19,364 → 23,702 of 24,576) 34.1 / 36.5 / 33.2
+ Pascal Q6_K MMVQ (packed planes, 8-byte loads, FP32 on exact ints) 37.2 / 38.9 / 40.1

Later steps were measured through llama-swap: 3 runs each at ~600 / 4.3K / 17K tokens, mean of the 9.

Step Mean decode
--spec 4 (setup's) 39.9
--spec 3 + English draft vocab ~41.8
+ a Pascal expert gate/up kernel for IQ3_XXS / IQ3_S (A/B in one session, two interleaved rounds) 41.3 → 42.6

At a 200K-token prompt decode is ~36 tok/s. Needles were 6/6 at 8K and 190K. HumanEval+ was unchanged (96.3% / 93.9%, inside the run-to-run range of earlier runs).

The expert kernel may matter for your Swift IQ3_XXS.

  • What it does: a half-warp stages a whole gate/up row (98 / 110-byte blocks) in shared memory with aligned 4-byte loads. Each 32-weight sub-block is decoded once and applied to up to 4 tokens of the expert, from activations staged in shared memory.
  • Numerics: integer sums per sub-block are exact; the float order differs (gate/up relative difference ~6e-6 for IQ3_XXS, ~1e-7 for IQ3_S).
  • Speed: on a P100, per call: IQ3_XXS 1.18–1.37×, IQ3_S 1.30–1.50×. That covers 1–6 tokens across 10 of 512 experts, 6 tokens sharing 12 experts, and the striding launch.
  • Offer: happy to share the diff if you want to try it.

Tried and dropped (slower than stock on P100, or no effect):

  • the same approach for IQ2_S gate/up (0.71–0.76×), IQ4_NL down (0.8–0.9×) and Q2_0 down (0.82× with shared experts);
  • an FP32 kernel for the dense Q4_K / Q5_K / IQ4_XS MMVQs;
  • --spec 2 / 5 / 6, and --spec-min-p 0.3 / 0.7;
  • STRATA_HC_Q8, a no-op here: this GGUF stores the HC projections as BF16.

On the C-products question: I didn't look at it either, so I have nothing to add to your guess.

<!-- gh-comment-id:6089283540 --> @thedrzinger commented on GitHub (Oct 9, 2026): @ruibeikaa Thanks for re-running it on your side. Good to see the `mad.wide.s16` form hold up on GP100 with smaller chunks too. To close this out, here's where my 5x P100 setup ended up and how it got there. **Final config.** Flash-Next IQ3_S, 262,144 context, all 5 cards, served through llama-swap, vision on (encoder pinned to GPU0). - **Engine:** `fb58e0d` + local changes. - **Settings:** - `STRATA_STAGE_TRIM=1` with `"layer_split": "10,19,29,38"`; - `--spec 3 --spec-min-p 0.5`; - `--mtp-draft-vocab data/draft_vocab_en.bin`; - int8 KV, KV in VRAM, `--resident-experts`. **How it got there** (engine decode tok/s, greedy, reasoning off, 256-token cap): | Step | Decode | |---|---| | setup.sh defaults (32K, auto split) | 31.4 / 35.8 / 32.7 at 512 / 4K / 16K prompt tokens | | + `STRATA_STAGE_TRIM=1`, explicit split, 262K context (experts in VRAM 19,364 → 23,702 of 24,576) | 34.1 / 36.5 / 33.2 | | + Pascal Q6_K MMVQ (packed planes, 8-byte loads, FP32 on exact ints) | 37.2 / 38.9 / 40.1 | Later steps were measured through llama-swap: 3 runs each at ~600 / 4.3K / 17K tokens, mean of the 9. | Step | Mean decode | |---|---| | `--spec 4` (setup's) | 39.9 | | `--spec 3` + English draft vocab | ~41.8 | | + a Pascal expert gate/up kernel for IQ3_XXS / IQ3_S (A/B in one session, two interleaved rounds) | 41.3 → **42.6** | At a 200K-token prompt decode is ~36 tok/s. Needles were 6/6 at 8K and 190K. HumanEval+ was unchanged (96.3% / 93.9%, inside the run-to-run range of earlier runs). **The expert kernel may matter for your Swift IQ3_XXS.** - **What it does:** a half-warp stages a whole gate/up row (98 / 110-byte blocks) in shared memory with aligned 4-byte loads. Each 32-weight sub-block is decoded once and applied to up to 4 tokens of the expert, from activations staged in shared memory. - **Numerics:** integer sums per sub-block are exact; the float order differs (gate/up relative difference ~6e-6 for IQ3_XXS, ~1e-7 for IQ3_S). - **Speed:** on a P100, per call: IQ3_XXS 1.18–1.37×, IQ3_S 1.30–1.50×. That covers 1–6 tokens across 10 of 512 experts, 6 tokens sharing 12 experts, and the striding launch. - **Offer:** happy to share the diff if you want to try it. **Tried and dropped** (slower than stock on P100, or no effect): - the same approach for IQ2_S gate/up (0.71–0.76×), IQ4_NL down (0.8–0.9×) and Q2_0 down (0.82× with shared experts); - an FP32 kernel for the dense Q4_K / Q5_K / IQ4_XS MMVQs; - `--spec` 2 / 5 / 6, and `--spec-min-p` 0.3 / 0.7; - `STRATA_HC_Q8`, a no-op here: this GGUF stores the HC projections as BF16. On the C-products question: I didn't look at it either, so I have nothing to add to your guess.
Author
Owner

@Niko1221 commented on GitHub (Oct 13, 2026):

Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.

If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.

<!-- gh-comment-id:6156167849 --> @Niko1221 commented on GitHub (Oct 13, 2026): Thanks for the report. To keep the tracker current we are closing issues older than three days: [0.1.44](https://github.com/Niko1221/Strata/releases/tag/v0.1.44) is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1. If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#658
No description provided.