Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

bench/results: V100 prompt experts on FP16 tensor cores (+9.6% / +10.3% prompt speed); docs/NVIDIA_V100.md

NoxestNoz140f011030e4
diff --git a/bench/results/2026-10-07-v100-prompt-experts/README.md b/bench/results/2026-10-07-v100-prompt-experts/README.md
new file mode 100644
index 000000000..7be73e1bf
--- /dev/null
+++ b/bench/results/2026-10-07-v100-prompt-experts/README.md
@@ -0,0 +1,70 @@
+# V100 (sm_70): the prompt's experts on FP16 tensor cores (2026-10-07)
+
+On sm_70 the prompt path ran the routed experts on llama.cpp's MMQ, whose integer products are `dp4a` there (Volta has
+no int8 tensor cores), and IQ1_M layers on the FP16 path (each expert dequantized to global memory, then one cuBLAS
+call per product). `gemm_iq_f16_grouped` (`src/kernels/cuda/iq_kernels.cu`) runs a whole MMQ expert group per launch on
+the FP16 tensor cores (WMMA, FP32 sums): a block takes 128 weight rows of one expert and up to 256 of its token rows,
+dequantizes each weight superblock once into shared memory with `dq_dispatch` (the FP16 path's own formulas), and
+streams the FP16 activations through it, the next tile prefetched into registers. sm_70 takes it by default for the
+layers MMQ would take and for IQ1_M (which then rides MMQ's grouping); `STRATA_PF_WMMA=0` is the old path,
+`STRATA_PF_WMMA=1` turns it on for any CUDA card (not measured elsewhere).
+
+## Rig
+
+As in [2026-10-07-v100-decode-kernels](../2026-10-07-v100-decode-kernels/README.md): V100-SXM2-32GB (PCIe gen3 x16),
+2x Xeon Gold 6130 in a container with a ~15-CPU quota, CUDA 12.8; setup's IQ2_XS (gate/up IQ2_S on 34 layers, IQ2_XXS
+on 11, IQ1_M on 3; down Q2_0), setup's config (`--prefill auto`: 8,192-token chunks here) plus `--pool-workers 14`.
+
+## Prompt speed
+
+`tools/ab_engine.py`, 3 rounds, the arms' order alternating, one server start per arm and round; the server's own
+prompt tokens/s. `orig`: `e8ca9af` as setup built it; `off`: this branch with `STRATA_PF_WMMA=0`; `new`: this branch.
+
+| Prompt | orig | off | new | new vs orig |
+| --- | ---: | ---: | ---: | ---: |
+| 26,359 tokens (median of 3) | 1,467 tok/s | 1,462 | 1,608 | **+9.6%** |
+| 6,345 tokens (median of 3) | 1,390 tok/s | 1,393 | 1,534 | **+10.3%** |
+
+All runs: `ab-runs.jsonl` (the spread between rounds is under 1%). The engine's phase table
+(`STRATA_PREFILL_TIMING=1`, the 26,352-token prompt, ms):
+
+| | orig | new |
+| --- | ---: | ---: |
+| experts gate/up | 3,913 | 3,670 |
+| experts down | 2,229 | 1,212 |
+| dequant (the IQ1_M layers' FP16 path, and the rest of that phase) | 740 | 575 |
+| GPU timeline | 17,391 | 15,847 |
+
+Decode does not use this path (decode tok/s in the same runs: within the noise).
+
+## Accuracy
+
+- `pf_wmma_parity` (synthetic, no model): every format it takes (IQ2_XXS, IQ2_S, IQ1_M gate/up, 1280 x 2560; Q2_0 down,
+ 2560 x 640), 7 experts with 0-300 rows, against a double-precision product of the same FP16 weights and activations:
+ max error 4.4e-4 to 5.2e-4 of outputs up to ~110 (Q2_0: 2.8e-6 of 1.16) - FP32 summation order.
+- **Teacher-forced** (`STRATA_LOGPOS` with `STRATA_LOGPOS_TOPK=20`; a long random-word prompt read by the batched path,
+ then a continuation read through the decode windows with `--short-read 1024`, each token's log-probability against
+ the text). MMQ is not a reference either - its activations are q8_1, these are FP16 - so the table puts the change
+ next to what MMQ alone does when only the chunk size changes:
+
+| Continuation (after) | Compared | argmax agreement | KL (top 20) | perplexity |
+| --- | --- | ---: | ---: | --- |
+| 363 tokens of prose (26,359-token prompt) | MMQ vs this | 98.3% | 0.0083 | 50.7 / 60.5 |
+| | MMQ 8,192 vs 32,768-token chunks | 98.3% | 0.0084 | 50.7 / 50.6 |
+| | MMQ 8,192 vs 16,384-token chunks | 93.6% | 0.0177 | 50.7 / 39.2 |
+| 327 tokens of Python (12,676-token prompt) | MMQ vs this | 94.5% | 0.0312 | 3.98 / 3.38 |
+| | MMQ 8,192 vs 4,096-token chunks | 96.3% | 0.0253 | 3.98 / 3.49 |
+| | MMQ 4,096 chunks vs this | 96.3% | 0.0170 | 3.49 / 3.38 |
+
+ Two MMQ runs of the same configuration were bit for bit the same. After a long prompt these continuations move this
+ much from any change of the prompt path's arithmetic (the perplexities swing both ways); the change sits inside
+ what the chunk size alone does. Two texts are not a quality benchmark; a run against a full-precision reference
+ (llama.cpp, as in [UNSLOTH_Q4](../../../docs/UNSLOTH_Q4.md)) was not made.
+
+## Notes
+
+- One observation from these runs, not followed up: on the 12,676-token prompt MMQ with `--prefill 4096` read
+ 1,560 tok/s against 1,370 with `auto` (8,192 here) - a single run each.
+- Tried and dropped on the way: the FP16 path for chunks of 16K+ tokens (+10% at `--prefill auto:32768`, but superseded
+ by this, which also wins at setup's chunk size); a row-per-warp hyper-connection down projection (no gain in the
+ engine). Groups of 32 experts instead of 16: no gain.
diff --git a/bench/results/2026-10-07-v100-prompt-experts/ab-runs.jsonl b/bench/results/2026-10-07-v100-prompt-experts/ab-runs.jsonl
new file mode 100644
index 000000000..938d3fabe
--- /dev/null
+++ b/bench/results/2026-10-07-v100-prompt-experts/ab-runs.jsonl
@@ -0,0 +1,72 @@
+{"round": 0, "arm": "orig", "req": "chat0", "decode": 84.7, "prompt": 106.9, "prompt_n": 34, "n": 32, "text": "```python\ndef merge_sorted_lists(list1: list, list2: list) -> list:\n \"\"\"\n "}
+{"round": 0, "arm": "orig", "req": "chat1", "decode": 58.8, "prompt": 93.4, "prompt_n": 27, "n": 32, "text": "A refrigerator operates by utilizing a refrigerant, a fluid with a low boiling p"}
+{"round": 0, "arm": "orig", "req": "chat2", "decode": 75.4, "prompt": 103.5, "prompt_n": 29, "n": 32, "text": "1. Set specific, measurable goals to maintain motivation and track your progress"}
+{"round": 0, "arm": "orig", "req": "long", "decode": 60.9, "prompt": 1469.9, "prompt_n": 26359, "n": 32, "text": "The list consists entirely of single-word nouns that evoke a variety of natural,"}
+{"round": 0, "arm": "off", "req": "chat0", "decode": 90.5, "prompt": 110.7, "prompt_n": 34, "n": 32, "text": "```python\ndef merge_sorted_lists(list1: list, list2: list) -> list:\n \"\"\"\n "}
+{"round": 0, "arm": "off", "req": "chat1", "decode": 61.6, "prompt": 95.0, "prompt_n": 27, "n": 32, "text": "A refrigerator operates by utilizing a refrigerant, a fluid with a low boiling p"}
+{"round": 0, "arm": "off", "req": "chat2", "decode": 79.7, "prompt": 106.5, "prompt_n": 29, "n": 32, "text": "1. Set specific, measurable goals to maintain motivation and track your progress"}
+{"round": 0, "arm": "off", "req": "long", "decode": 63.7, "prompt": 1458.4, "prompt_n": 26359, "n": 32, "text": "The list consists entirely of single-word nouns that evoke a variety of natural,"}
+{"round": 0, "arm": "new", "req": "chat0", "decode": 90.7, "prompt": 110.6, "prompt_n": 34, "n": 32, "text": "```python\ndef merge_sorted_lists(list1: list, list2: list) -> list:\n \"\"\"\n "}
+{"round": 0, "arm": "new", "req": "chat1", "decode": 61.6, "prompt": 95.2, "prompt_n": 27, "n": 32, "text": "A refrigerator operates by utilizing a refrigerant, a fluid with a low boiling p"}
+{"round": 0, "arm": "new", "req": "chat2", "decode": 79.7, "prompt": 107.1, "prompt_n": 29, "n": 32, "text": "1. Set specific, measurable goals to maintain motivation and track your progress"}
+{"round": 0, "arm": "new", "req": "long", "decode": 61.6, "prompt": 1608.4, "prompt_n": 26359, "n": 32, "text": "The list consists entirely of single-word nouns that evoke a variety of natural,"}
+{"round": 1, "arm": "new", "req": "chat0", "decode": 89.8, "prompt": 110.6, "prompt_n": 34, "n": 32, "text": "```python\ndef merge_sorted_lists(list1: list, list2: list) -> list:\n \"\"\"\n "}
+{"round": 1, "arm": "new", "req": "chat1", "decode": 61.2, "prompt": 94.0, "prompt_n": 27, "n": 32, "text": "A refrigerator operates by utilizing a refrigerant, a fluid with a low boiling p"}
+{"round": 1, "arm": "new", "req": "chat2", "decode": 79.1, "prompt": 107.1, "prompt_n": 29, "n": 32, "text": "1. Set specific, measurable goals to maintain motivation and track your progress"}
+{"round": 1, "arm": "new", "req": "long", "decode": 61.0, "prompt": 1607.2, "prompt_n": 26359, "n": 32, "text": "The list consists entirely of single-word nouns that evoke a variety of natural,"}
+{"round": 1, "arm": "off", "req": "chat0", "decode": 90.8, "prompt": 110.9, "prompt_n": 34, "n": 32, "text": "```python\ndef merge_sorted_lists(list1: list, list2: list) -> list:\n \"\"\"\n "}
+{"round": 1, "arm": "off", "req": "chat1", "decode": 61.5, "prompt": 95.5, "prompt_n": 27, "n": 32, "text": "A refrigerator operates by utilizing a refrigerant, a fluid with a low boiling p"}
+{"round": 1, "arm": "off", "req": "chat2", "decode": 79.8, "prompt": 107.0, "prompt_n": 29, "n": 32, "text": "1. Set specific, measurable goals to maintain motivation and track your progress"}
+{"round": 1, "arm": "off", "req": "long", "decode": 63.8, "prompt": 1473.8, "prompt_n": 26359, "n": 32, "text": "The list consists entirely of single-word nouns that evoke a variety of natural,"}
+{"round": 1, "arm": "orig", "req": "chat0", "decode": 84.9, "prompt": 106.6, "prompt_n": 34, "n": 32, "text": "```python\ndef merge_sorted_lists(list1: list, list2: list) -> list:\n \"\"\"\n "}
+{"round": 1, "arm": "orig", "req": "chat1", "decode": 58.9, "prompt": 92.9, "prompt_n": 27, "n": 32, "text": "A refrigerator operates by utilizing a refrigerant, a fluid with a low boiling p"}
+{"round": 1, "arm": "orig", "req": "chat2", "decode": 75.5, "prompt": 103.6, "prompt_n": 29, "n": 32, "text": "1. Set specific, measurable goals to maintain motivation and track your progress"}
+{"round": 1, "arm": "orig", "req": "long", "decode": 61.0, "prompt": 1467.3, "prompt_n": 26359, "n": 32, "text": "The list consists entirely of single-word nouns that evoke a variety of natural,"}
+{"round": 2, "arm": "orig", "req": "chat0", "decode": 84.0, "prompt": 106.8, "prompt_n": 34, "n": 32, "text": "```python\ndef merge_sorted_lists(list1: list, list2: list) -> list:\n \"\"\"\n "}
+{"round": 2, "arm": "orig", "req": "chat1", "decode": 58.8, "prompt": 93.2, "prompt_n": 27, "n": 32, "text": "A refrigerator operates by utilizing a refrigerant, a fluid with a low boiling p"}
+{"round": 2, "arm": "orig", "req": "chat2", "decode": 75.5, "prompt": 103.7, "prompt_n": 29, "n": 32, "text": "1. Set specific, measurable goals to maintain motivation and track your progress"}
+{"round": 2, "arm": "orig", "req": "long", "decode": 60.7, "prompt": 1458.4, "prompt_n": 26359, "n": 32, "text": "The list consists entirely of single-word nouns that evoke a variety of natural,"}
+{"round": 2, "arm": "off", "req": "chat0", "decode": 90.5, "prompt": 110.4, "prompt_n": 34, "n": 32, "text": "```python\ndef merge_sorted_lists(list1: list, list2: list) -> list:\n \"\"\"\n "}
+{"round": 2, "arm": "off", "req": "chat1", "decode": 61.5, "prompt": 95.1, "prompt_n": 27, "n": 32, "text": "A refrigerator operates by utilizing a refrigerant, a fluid with a low boiling p"}
+{"round": 2, "arm": "off", "req": "chat2", "decode": 79.7, "prompt": 107.2, "prompt_n": 29, "n": 32, "text": "1. Set specific, measurable goals to maintain motivation and track your progress"}
+{"round": 2, "arm": "off", "req": "long", "decode": 63.4, "prompt": 1462.2, "prompt_n": 26359, "n": 32, "text": "The list consists entirely of single-word nouns that evoke a variety of natural,"}
+{"round": 2, "arm": "new", "req": "chat0", "decode": 90.7, "prompt": 109.7, "prompt_n": 34, "n": 32, "text": "```python\ndef merge_sorted_lists(list1: list, list2: list) -> list:\n \"\"\"\n "}
+{"round": 2, "arm": "new", "req": "chat1", "decode": 61.6, "prompt": 95.2, "prompt_n": 27, "n": 32, "text": "A refrigerator operates by utilizing a refrigerant, a fluid with a low boiling p"}
+{"round": 2, "arm": "new", "req": "chat2", "decode": 79.8, "prompt": 106.8, "prompt_n": 29, "n": 32, "text": "1. Set specific, measurable goals to maintain motivation and track your progress"}
+{"round": 2, "arm": "new", "req": "long", "decode": 61.9, "prompt": 1608.2, "prompt_n": 26359, "n": 32, "text": "The list consists entirely of single-word nouns that evoke a variety of natural,"}
+{"round": 0, "arm": "orig", "req": "chat0", "decode": 85.0, "prompt": 106.9, "prompt_n": 34, "n": 32, "text": "```python\ndef merge_sorted_lists(list1: list, list2: list) -> list:\n \"\"\"\n "}
+{"round": 0, "arm": "orig", "req": "chat1", "decode": 58.5, "prompt": 93.2, "prompt_n": 27, "n": 32, "text": "A refrigerator operates by utilizing a refrigerant, a fluid with a low boiling p"}
+{"round": 0, "arm": "orig", "req": "chat2", "decode": 75.6, "prompt": 103.9, "prompt_n": 29, "n": 32, "text": "1. Set specific, measurable goals to maintain motivation and track your progress"}
+{"round": 0, "arm": "orig", "req": "long", "decode": 69.1, "prompt": 1390.1, "prompt_n": 6345, "n": 32, "text": "The list consists entirely of single, lowercase English words that appear to be "}
+{"round": 0, "arm": "off", "req": "chat0", "decode": 89.8, "prompt": 110.8, "prompt_n": 34, "n": 32, "text": "```python\ndef merge_sorted_lists(list1: list, list2: list) -> list:\n \"\"\"\n "}
+{"round": 0, "arm": "off", "req": "chat1", "decode": 61.6, "prompt": 94.2, "prompt_n": 27, "n": 32, "text": "A refrigerator operates by utilizing a refrigerant, a fluid with a low boiling p"}
+{"round": 0, "arm": "off", "req": "chat2", "decode": 79.8, "prompt": 105.2, "prompt_n": 29, "n": 32, "text": "1. Set specific, measurable goals to maintain motivation and track your progress"}
+{"round": 0, "arm": "off", "req": "long", "decode": 72.9, "prompt": 1392.7, "prompt_n": 6345, "n": 32, "text": "The list consists entirely of single, lowercase English words that appear to be "}
+{"round": 0, "arm": "new", "req": "chat0", "decode": 70.1, "prompt": 102.0, "prompt_n": 34, "n": 32, "text": "```python\ndef merge_sorted_lists(list1: list, list2: list) -> list:\n \"\"\"\n "}
+{"round": 0, "arm": "new", "req": "chat1", "decode": 48.3, "prompt": 80.6, "prompt_n": 27, "n": 32, "text": "A refrigerator operates by utilizing a refrigerant, a fluid with a low boiling p"}
+{"round": 0, "arm": "new", "req": "chat2", "decode": 56.1, "prompt": 90.1, "prompt_n": 29, "n": 32, "text": "1. Set specific, measurable goals to maintain motivation and track your progress"}
+{"round": 0, "arm": "new", "req": "long", "decode": 57.9, "prompt": 1533.9, "prompt_n": 6345, "n": 32, "text": "The list consists entirely of single, lowercase English nouns that appear to be "}
+{"round": 1, "arm": "new", "req": "chat0", "decode": 90.5, "prompt": 110.6, "prompt_n": 34, "n": 32, "text": "```python\ndef merge_sorted_lists(list1: list, list2: list) -> list:\n \"\"\"\n "}
+{"round": 1, "arm": "new", "req": "chat1", "decode": 61.1, "prompt": 95.4, "prompt_n": 27, "n": 32, "text": "A refrigerator operates by utilizing a refrigerant, a fluid with a low boiling p"}
+{"round": 1, "arm": "new", "req": "chat2", "decode": 79.6, "prompt": 106.9, "prompt_n": 29, "n": 32, "text": "1. Set specific, measurable goals to maintain motivation and track your progress"}
+{"round": 1, "arm": "new", "req": "long", "decode": 74.9, "prompt": 1534.9, "prompt_n": 6345, "n": 32, "text": "The list consists entirely of single, lowercase English nouns that appear to be "}
+{"round": 1, "arm": "off", "req": "chat0", "decode": 54.9, "prompt": 92.0, "prompt_n": 34, "n": 32, "text": "```python\ndef merge_sorted_lists(list1: list, list2: list) -> list:\n \"\"\"\n "}
+{"round": 1, "arm": "off", "req": "chat1", "decode": 41.8, "prompt": 69.1, "prompt_n": 27, "n": 32, "text": "A refrigerator operates by utilizing a refrigerant, a fluid with a low boiling p"}
+{"round": 1, "arm": "off", "req": "chat2", "decode": 48.9, "prompt": 79.0, "prompt_n": 29, "n": 32, "text": "1. Set specific, measurable goals to maintain motivation and track your progress"}
+{"round": 1, "arm": "off", "req": "long", "decode": 49.3, "prompt": 1387.5, "prompt_n": 6345, "n": 32, "text": "The list consists entirely of single, lowercase English words that appear to be "}
+{"round": 1, "arm": "orig", "req": "chat0", "decode": 65.2, "prompt": 99.3, "prompt_n": 34, "n": 32, "text": "```python\ndef merge_sorted_lists(list1: list, list2: list) -> list:\n \"\"\"\n "}
+{"round": 1, "arm": "orig", "req": "chat1", "decode": 45.7, "prompt": 76.8, "prompt_n": 27, "n": 32, "text": "A refrigerator operates by utilizing a refrigerant, a fluid with a low boiling p"}
+{"round": 1, "arm": "orig", "req": "chat2", "decode": 53.8, "prompt": 86.3, "prompt_n": 29, "n": 32, "text": "1. Set specific, measurable goals to maintain motivation and track your progress"}
+{"round": 1, "arm": "orig", "req": "long", "decode": 51.6, "prompt": 1380.8, "prompt_n": 6345, "n": 32, "text": "The list consists entirely of single, lowercase English words that appear to be "}
+{"round": 2, "arm": "orig", "req": "chat0", "decode": 65.4, "prompt": 99.2, "prompt_n": 34, "n": 32, "text": "```python\ndef merge_sorted_lists(list1: list, list2: list) -> list:\n \"\"\"\n "}
+{"round": 2, "arm": "orig", "req": "chat1", "decode": 46.8, "prompt": 78.5, "prompt_n": 27, "n": 32, "text": "A refrigerator operates by utilizing a refrigerant, a fluid with a low boiling p"}
+{"round": 2, "arm": "orig", "req": "chat2", "decode": 54.6, "prompt": 87.3, "prompt_n": 29, "n": 32, "text": "1. Set specific, measurable goals to maintain motivation and track your progress"}
+{"round": 2, "arm": "orig", "req": "long", "decode": 51.0, "prompt": 1392.7, "prompt_n": 6345, "n": 32, "text": "The list consists entirely of single, lowercase English words that appear to be "}
+{"round": 2, "arm": "off", "req": "chat0", "decode": 77.5, "prompt": 107.6, "prompt_n": 34, "n": 32, "text": "```python\ndef merge_sorted_lists(list1: list, list2: list) -> list:\n \"\"\"\n "}
+{"round": 2, "arm": "off", "req": "chat1", "decode": 51.7, "prompt": 86.6, "prompt_n": 27, "n": 32, "text": "A refrigerator operates by utilizing a refrigerant, a fluid with a low boiling p"}
+{"round": 2, "arm": "off", "req": "chat2", "decode": 61.0, "prompt": 94.8, "prompt_n": 29, "n": 32, "text": "1. Set specific, measurable goals to maintain motivation and track your progress"}
+{"round": 2, "arm": "off", "req": "long", "decode": 55.5, "prompt": 1397.5, "prompt_n": 6345, "n": 32, "text": "The list consists entirely of single, lowercase English words that appear to be "}
+{"round": 2, "arm": "new", "req": "chat0", "decode": 78.1, "prompt": 107.7, "prompt_n": 34, "n": 32, "text": "```python\ndef merge_sorted_lists(list1: list, list2: list) -> list:\n \"\"\"\n "}
+{"round": 2, "arm": "new", "req": "chat1", "decode": 52.4, "prompt": 87.4, "prompt_n": 27, "n": 32, "text": "A refrigerator operates by utilizing a refrigerant, a fluid with a low boiling p"}
+{"round": 2, "arm": "new", "req": "chat2", "decode": 61.9, "prompt": 96.5, "prompt_n": 29, "n": 32, "text": "1. Set specific, measurable goals to maintain motivation and track your progress"}
+{"round": 2, "arm": "new", "req": "long", "decode": 59.7, "prompt": 1532.3, "prompt_n": 6345, "n": 32, "text": "The list consists entirely of single, lowercase English nouns that appear to be "}
diff --git a/docs/NVIDIA_V100.md b/docs/NVIDIA_V100.md
index 15514a8ba..4a5042275 100644
--- a/docs/NVIDIA_V100.md
+++ b/docs/NVIDIA_V100.md
@@ -27,7 +27,7 @@ select "old" kernels everywhere: which kernel runs is decided per architecture w
| Part of the prompt path | On sm_70 |
| --- | --- |
-| MoE experts (ggml MMQ) | `dp4a` kernels (Volta has no int8 tensor cores) |
+| MoE experts | `gemm_iq_f16_grouped`: a group of experts per launch on the FP16 tensor cores, the weights dequantized in shared memory (+10% prompt speed against MMQ's `dp4a` kernels, [bench](../bench/results/2026-10-07-v100-prompt-experts/README.md); `STRATA_PF_WMMA=0`: MMQ) |
| Dense projections (dequantized weights) | FP16 tensor-core GEMMs (cuBLAS / CUTLASS `s884`) |
| BF16 projections (hyper-connection, router, indexer, ...) | converted to FP16 and run on the FP16 tensor cores (#655, #540; `STRATA_BF16_TC=0`: cuBLAS BF16, an FP32 SIMT kernel on Volta) |
| QSA attention for decode and verify windows (and prompts with `STRATA_PROMPT_ATTN_OLD=1`) | #540's kernel (fewer shuffles, bit-exact; `STRATA_ATTN_PRE75=0`: the one other cards run) |