[GH-ISSUE #1842] 0.1.41: 128K decode is 18% slower than 0.1.40.3 on an RTX 4090 (sm_89); STRATA_MMVQ_IL=0 gives all of it back #724

Closed
opened 2026-11-04 01:45:22 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @Wanderingss on GitHub (Oct 10, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1842

On a Windows RTX 4090 (sm_89, IQ3_S pack) the 128K-context decode drops from 90.3–95.4 tok/s on v0.1.40.3 to 73.2–78.4 on v0.1.41 — four runs, no overlap between the arms — while prefill at the same context is unchanged (3705.5–3774.7 vs 3745.0–3749.4). On the same v0.1.41 binary, STRATA_MMVQ_IL=0 restores 90.7 and 91.9 tok/s, inside the v0.1.40.3 band, and short-context decode keeps its v0.1.41 gain (8K per-request decode 105.3–118.6 with IL off, 89.2–109.6 with IL on, 63.6–83.3 on v0.1.40.3). The engine's own table says why this card in particular: native_mmvq.cu:2510 — "sm_89 (Ada) has none yet: nobody measured it (we have no such card), so it takes the shared table", and that shared table was read off an RTX 3060 (sm_86) and an RTX 5070 (sm_120) with the rule "the worse of the two cards still takes at least 3% off native_mmvq's time". Limits: one 4090 rig, one quant, one model; the same A/B on an A100-class A30 (sm_80, UD-Q4_K_XL, Linux) shows no effect at all, so this is a table-tuning miss on an unmeasured card, not a general regression.

Setup

Windows 11, RTX 4090 24 GB (+ a GTX 1660 Ti holding only the vision encoder), 128 GB RAM, CUDA 12.9, engine from the release zip (source: release, experimental: true).

  • v0.1.41 strata.exe md5 39898e491e796c51b7d042783817d2ae; v0.1.40.3 md5 5ad3617a7a9a5c7fb330e6add75fc87c.
  • Pack: Qwen3.8-Flash-Next IQ3_S. Engine args (identical in both arms, verified from the startup block, which is byte-identical apart from the version string): --spec 4 --spec-min-p 0.5 --mtp <rt> --max-context 262144 --kv int8 --kv-resident 32768 --expert-cache auto --prefill auto --ple-io ram --pcie-frac 0.0 --vram-reserve-mib 700 --vision → 8251 slots / 15.65 GiB, 424 MiB of VRAM free, verify: window up to 6 tokens, draft head over 106299 tokens.
  • Method: tools/staged_bench.py with one salt label across all arms, so the prompt bytes are identical; arms alternate order per round; each arm's binary is re-checked by md5 after the swap. Decode is the engine's own per-request line right after the 128K prefill (48 tokens, --ask = the prime list).

The 128K decode, six samples

arm 48 tokens decode tok/s verify windows (steps) ms per step
v0.1.41, IL on (default) r1 656 ms 73.2 45 14.6
v0.1.41, IL on (default) r2 612 ms 78.4 42 14.6
v0.1.41 + STRATA_MMVQ_IL=0 direct 529 ms 90.7 41 12.9
v0.1.41 + STRATA_MMVQ_IL=0 via a proxy 522 ms 91.9 37 14.1
v0.1.40.3 r1 / r2 503 / 532 ms 95.4 / 90.3 37 / 41 13.6 / 13.0
The step count is not the effect: across all six samples it moves 37–45 on its own (48 tokens is a small sample), so read it aligned — at 41 steps IL-on gives 78.4 and IL-off gives 90.7 (+15.7%). The per-step cost is the effect, and that is also what kills the natural first guess: this is not KV streaming or bandwidth. The KV ledger is the same in every arm (KV streaming: 88.77% of 382044 block reads hit VRAM, 172.8 MiB read from RAM in the IL-off run; 88.4–89.3% in the IL-on runs), the expert hit rate is the same (85.5–90.1%), and prefill at 128K never moves (3786.0 / 3788.0 tok/s with IL off).

The A30 (sm_80) is unaffected — same A/B, env-only arms on one binary

A100-class A30 24 GB, Xeon Gold 5320, Linux, CUDA 12.4 build, UD-Q4_K_XL pack, 0c085b0de2386b30e8c11cbb6a21974c, 5184 slots, 2 rounds × 2 arms, order alternated, same salt:

A30 IL on (default) STRATA_MMVQ_IL=0
128K prefill tok/s 1566.4 / 1554.3 1553.8 / 1552.9
128K decode tok/s 63.0 / 62.8 62.1 / 63.4
512 / 1k / 8K prefill 438.6 / 561.7 / 1170.6 439.3 / 561.2 / 1168.5
decode best (3 × 128 at 8K) 79.4 79.3
So the same default-on path is free on sm_80 and costs ~18% on sm_89 at long context.

Why I think it is the table, not the kernel

native_mmvq_il_supported() gates IL to types IQ4_XS / Q4_K / Q5_K / Q6_K, 2–4 columns, sm_80+ (or sm_70 with the opt-in), and g_multi_exact. The rows-a-warp choice comes from native_mmvq_il_rows_for(cc, …), whose only per-architecture entry is kIlRows_70; every other sm_80+ card, sm_89 and sm_80 included, uses kIlRowsShared, measured on an RTX 3060 and an RTX 5070 with a "worse card still ≥3% faster" rule. A 4090 is neither card, and the cells that matter for a decode window are exactly the 2–4-column dense projections. The source comment even names the fix and the no-rebuild override: mmvq_il_parity --bench --emit-table → paste as kIlRows_89, or STRATA_MMVQ_IL_ROWS="type:ncols:r0,r1,r2,r3,r4;…".

Ruled out

  • Draft acceptance / speculative depth: the acceptance column is equal or better on 0.1.41 in every context bucket over 3,240 production requests on this box; --spec 4 identical; coupled drafting and STRATA_SPEC_PROB / SPEC_GUMBEL / SPEC_MIN_TEMP are off by default and not enabled here.
  • Every other new long-context path in 0.1.41 is gated away on this card: PDL and the decode top-k thread-block cluster need sm_90+; the FP32 tiled block scorer needs <sm_80 and STRATA_SELECT_SIMT=1; the pre75 attention kernel needs <sm_75; STRATA_PIN_GUARD / PIN_RESERVE_GIB are inside #if defined(__linux__); file_cache_keeps' hot fraction explicitly keeps the Windows rule; STAGE_PIN is STAGE_PIN_DEFAULT 0.
  • KV residency and expert cache: identical args, identical hit rates, identical VRAM free line.
  • The 3 × 128 at 8K decode metric cannot see this at all: it reads 132.5–138.1 on 0.1.41 and 134.9–142.5 on 0.1.40.3, i.e. "no difference", while the 128K decode is 18% down. Worth saying about the release gate: it caught STRATA_PIN_GUARD/STAGE_PIN corrupting IQ3_S decode, but a default-on decode kernel that costs 18% only at long context passes it, because the gate's decode number is a short-context one.

What I am asking

  1. Is IL default-on intended for sm_80+ cards that have no measured table, or only for the shapes where the shared table was actually measured? On this 4090 the honest answer for long-context decode is that the shared table is a guess that loses ~18%.
  2. Would a measured kIlRows_89 (and an sm_80 entry, since the A30 also inherits the shared table) be welcome? We own a 4090 and an A30 and can run mmvq_il_parity --bench --emit-table if a Windows/CUDA 12.9 build recipe for that binary is documented (docs/MMVQ_IL_TABLE.md is referenced in the source comment).
  3. If a table is not coming soon, is STRATA_MMVQ_IL_ROWS with the 4090's costly cells set to 0 the intended interim answer? We are running STRATA_MMVQ_IL=0 in production on this box now, which is coarser than needed.
    We can also sweep STRATA_MMVQ_IL_ROWS per type on this 4090 (four 128K decode runs, ~2 minutes each) and report which cells cost, if that helps narrow it without an Ada card in your lab.
    Engine log lines for all six 128K runs are attached (strata-iq3_s.log, the prompt 158896 tokens = … lines with their drafts accepted A of B and KV streaming: follow-ups).
Originally created by @Wanderingss on GitHub (Oct 10, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1842 **On a Windows RTX 4090 (sm_89, IQ3_S pack) the 128K-context decode drops from 90.3–95.4 tok/s on v0.1.40.3 to 73.2–78.4 on v0.1.41 — four runs, no overlap between the arms — while prefill at the same context is unchanged (3705.5–3774.7 vs 3745.0–3749.4). On the same v0.1.41 binary, `STRATA_MMVQ_IL=0` restores 90.7 and 91.9 tok/s, inside the v0.1.40.3 band, and short-context decode keeps its v0.1.41 gain (8K per-request decode 105.3–118.6 with IL off, 89.2–109.6 with IL on, 63.6–83.3 on v0.1.40.3). The engine's own table says why this card in particular: `native_mmvq.cu:2510` — "sm_89 (Ada) has none yet: nobody measured it (we have no such card), so it takes the shared table", and that shared table was read off an RTX 3060 (sm_86) and an RTX 5070 (sm_120) with the rule "the worse of the two cards still takes at least 3% off `native_mmvq`'s time". Limits: one 4090 rig, one quant, one model; the same A/B on an A100-class A30 (sm_80, UD-Q4_K_XL, Linux) shows **no effect at all**, so this is a table-tuning miss on an unmeasured card, not a general regression.** ## Setup Windows 11, RTX 4090 24 GB (+ a GTX 1660 Ti holding only the vision encoder), 128 GB RAM, CUDA 12.9, engine from the release zip (`source: release`, `experimental: true`). - v0.1.41 `strata.exe` md5 `39898e491e796c51b7d042783817d2ae`; v0.1.40.3 md5 `5ad3617a7a9a5c7fb330e6add75fc87c`. - Pack: Qwen3.8-Flash-Next IQ3_S. Engine args (identical in both arms, verified from the startup block, which is byte-identical apart from the version string): `--spec 4 --spec-min-p 0.5 --mtp <rt> --max-context 262144 --kv int8 --kv-resident 32768 --expert-cache auto --prefill auto --ple-io ram --pcie-frac 0.0 --vram-reserve-mib 700 --vision` → `8251 slots / 15.65 GiB`, `424 MiB of VRAM free`, `verify: window up to 6 tokens`, `draft head over 106299 tokens`. - Method: `tools/staged_bench.py` with **one salt label across all arms**, so the prompt bytes are identical; arms alternate order per round; each arm's binary is re-checked by md5 after the swap. Decode is the engine's own per-request line right after the 128K prefill (48 tokens, `--ask` = the prime list). ## The 128K decode, six samples | arm | 48 tokens | decode tok/s | verify windows (steps) | ms per step | |---|---|---|---|---| | v0.1.41, IL on (default) r1 | 656 ms | 73.2 | 45 | 14.6 | | v0.1.41, IL on (default) r2 | 612 ms | 78.4 | 42 | 14.6 | | **v0.1.41 + `STRATA_MMVQ_IL=0`** direct | **529 ms** | **90.7** | 41 | 12.9 | | **v0.1.41 + `STRATA_MMVQ_IL=0`** via a proxy | **522 ms** | **91.9** | 37 | 14.1 | | v0.1.40.3 r1 / r2 | 503 / 532 ms | 95.4 / 90.3 | 37 / 41 | 13.6 / 13.0 | The step count is **not** the effect: across all six samples it moves 37–45 on its own (48 tokens is a small sample), so read it aligned — at 41 steps IL-on gives 78.4 and IL-off gives 90.7 (+15.7%). The per-step cost is the effect, and that is also what kills the natural first guess: **this is not KV streaming or bandwidth.** The KV ledger is the same in every arm (`KV streaming: 88.77% of 382044 block reads hit VRAM, 172.8 MiB read from RAM` in the IL-off run; 88.4–89.3% in the IL-on runs), the expert hit rate is the same (85.5–90.1%), and prefill at 128K never moves (3786.0 / 3788.0 tok/s with IL off). ## The A30 (sm_80) is unaffected — same A/B, env-only arms on one binary A100-class A30 24 GB, Xeon Gold 5320, Linux, CUDA 12.4 build, UD-Q4_K_XL pack, `0c085b0de2386b30e8c11cbb6a21974c`, 5184 slots, 2 rounds × 2 arms, order alternated, same salt: | A30 | IL on (default) | `STRATA_MMVQ_IL=0` | |---|---|---| | 128K prefill tok/s | 1566.4 / 1554.3 | 1553.8 / 1552.9 | | **128K decode tok/s** | **63.0 / 62.8** | **62.1 / 63.4** | | 512 / 1k / 8K prefill | 438.6 / 561.7 / 1170.6 | 439.3 / 561.2 / 1168.5 | | decode best (3 × 128 at 8K) | 79.4 | 79.3 | So the same default-on path is free on sm_80 and costs ~18% on sm_89 at long context. ## Why I think it is the table, not the kernel `native_mmvq_il_supported()` gates IL to types IQ4_XS / Q4_K / Q5_K / Q6_K, 2–4 columns, sm_80+ (or sm_70 with the opt-in), and `g_multi_exact`. The rows-a-warp choice comes from `native_mmvq_il_rows_for(cc, …)`, whose only per-architecture entry is `kIlRows_70`; **every other sm_80+ card, sm_89 and sm_80 included, uses `kIlRowsShared`**, measured on an RTX 3060 and an RTX 5070 with a "worse card still ≥3% faster" rule. A 4090 is neither card, and the cells that matter for a decode window are exactly the 2–4-column dense projections. The source comment even names the fix and the no-rebuild override: `mmvq_il_parity --bench --emit-table` → paste as `kIlRows_89`, or `STRATA_MMVQ_IL_ROWS="type:ncols:r0,r1,r2,r3,r4;…"`. ## Ruled out - Draft acceptance / speculative depth: the acceptance column is equal or better on 0.1.41 in every context bucket over 3,240 production requests on this box; `--spec 4` identical; coupled drafting and `STRATA_SPEC_PROB` / `SPEC_GUMBEL` / `SPEC_MIN_TEMP` are off by default and not enabled here. - Every other new long-context path in 0.1.41 is gated away on this card: PDL and the decode top-k thread-block cluster need sm_90+; the FP32 tiled block scorer needs <sm_80 and `STRATA_SELECT_SIMT=1`; the pre75 attention kernel needs <sm_75; `STRATA_PIN_GUARD` / `PIN_RESERVE_GIB` are inside `#if defined(__linux__)`; `file_cache_keeps`' hot fraction explicitly keeps the Windows rule; `STAGE_PIN` is `STAGE_PIN_DEFAULT 0`. - KV residency and expert cache: identical args, identical hit rates, identical `VRAM free` line. - The `3 × 128 at 8K` decode metric cannot see this at all: it reads 132.5–138.1 on 0.1.41 and 134.9–142.5 on 0.1.40.3, i.e. "no difference", while the 128K decode is 18% down. Worth saying about the release gate: it caught `STRATA_PIN_GUARD`/`STAGE_PIN` corrupting IQ3_S decode, but a default-on decode kernel that costs 18% only at long context passes it, because the gate's decode number is a short-context one. ## What I am asking 1. Is IL default-on intended for sm_80+ cards that have no measured table, or only for the shapes where the shared table was actually measured? On this 4090 the honest answer for long-context decode is that the shared table is a guess that loses ~18%. 2. Would a measured `kIlRows_89` (and an sm_80 entry, since the A30 also inherits the shared table) be welcome? We own a 4090 and an A30 and can run `mmvq_il_parity --bench --emit-table` if a Windows/CUDA 12.9 build recipe for that binary is documented (`docs/MMVQ_IL_TABLE.md` is referenced in the source comment). 3. If a table is not coming soon, is `STRATA_MMVQ_IL_ROWS` with the 4090's costly cells set to 0 the intended interim answer? We are running `STRATA_MMVQ_IL=0` in production on this box now, which is coarser than needed. We can also sweep `STRATA_MMVQ_IL_ROWS` per type on this 4090 (four 128K decode runs, ~2 minutes each) and report which cells cost, if that helps narrow it without an Ada card in your lab. Engine log lines for all six 128K runs are attached (`strata-iq3_s.log`, the `prompt 158896 tokens = …` lines with their `drafts accepted A of B` and `KV streaming:` follow-ups).
Author
Owner

@christopherrobertbrooks-tech commented on GitHub (Oct 11, 2026):

An sm_89 table, measured as docs/MMVQ_IL_TABLE.md describes: RTX 4070 12 GB (sm_89, driver 580.173.02, CUDA 12.9, Linux), mmvq_il_parity built from the v0.1.42 tag (61b3fb5). The card also drives the desktop; Steam was closed and the GPU sat idle (0%) before the runs. mmvq_il_parity: OK on both runs.

Two runs of --bench --emit-table; 57 of the 60 cells agree. The three that differ are all Q5_K at 4 tokens, where the timings are close:

// run 1
    {23, {{0, 0, 0, 1, 1}, {1, 1, 1, 1, 1}, {1, 1, 1, 1, 1}}},   // IQ4_XS
    {12, {{0, 0, 0, 2, 2}, {0, 1, 1, 1, 1}, {0, 1, 1, 1, 1}}},   // Q4_K
    {13, {{0, 0, 1, 1, 1}, {0, 0, 1, 1, 1}, {0, 2, 1, 1, 2}}},   // Q5_K
    {14, {{0, 0, 0, 0, 0}, {1, 0, 0, 1, 1}, {0, 0, 0, 1, 1}}},   // Q6_K
// run 2: the same, except Q5_K at 4 tokens: {0, 0, 2, 2, 2}

Against kIlRowsShared on this card (mean of the two runs): 27 of the shared table's 28 non-zero choices are faster than the plain kernel or within 3% of it. One is slower: Q5_K 4096x2560 at 3 tokens, where the shared table takes 4 rows (22.5 µs) and the plain kernel 17.9 µs (+26%). This is a smaller Ada card than the 4090 above, so it's one sm_89 data point, not necessarily the 4090's table.

Full output, run 1
BENCH IQ4_XS 2560x10240          T=2  multi 34.4 us | il rows1 32.5 rows2 32.8 rows4 36.4 us
BENCH IQ4_XS 2560x10240          T=3  multi 43.0 us | il rows1 33.1 rows2 34.6 rows4 36.7 us
BENCH IQ4_XS 2560x10240          T=4  multi 51.3 us | il rows1 34.7 rows2 35.0 rows4 41.5 us
BENCH IQ4_XS 2560x6144           T=2  multi 20.9 us | il rows1 20.4 rows2 20.6 rows4 23.5 us
BENCH IQ4_XS 2560x6144           T=3  multi 25.1 us | il rows1 20.7 rows2 22.0 rows4 22.6 us
BENCH IQ4_XS 2560x6144           T=4  multi 31.2 us | il rows1 22.0 rows2 22.3 rows4 27.5 us
BENCH IQ4_XS 4096x2560           T=2  multi 14.2 us | il rows1 13.8 rows2 13.9 rows4 14.3 us
BENCH IQ4_XS 4096x2560           T=3  multi 15.3 us | il rows1 14.0 rows2 14.7 rows4 16.2 us
BENCH IQ4_XS 4096x2560           T=4  multi 17.7 us | il rows1 14.5 rows2 14.6 rows4 16.2 us
BENCH IQ4_XS 2560x512            T=2  multi 2.8 us | il rows1 3.2 rows2 3.1 rows4 3.8 us
BENCH IQ4_XS 2560x512            T=3  multi 3.8 us | il rows1 3.5 rows2 4.2 rows4 3.9 us
BENCH IQ4_XS 2560x512            T=4  multi 4.3 us | il rows1 3.3 rows2 3.6 rows4 4.2 us
BENCH Q4_K 2560x10240            T=2  multi 37.8 us | il rows1 33.6 rows2 33.6 rows4 34.0 us
BENCH Q4_K 2560x10240            T=3  multi 39.4 us | il rows1 34.1 rows2 37.0 rows4 42.8 us
BENCH Q4_K 2560x10240            T=4  multi 44.9 us | il rows1 35.7 rows2 37.0 rows4 52.1 us
BENCH Q4_K 4096x2560             T=2  multi 14.7 us | il rows1 15.1 rows2 15.5 rows4 15.1 us
BENCH Q4_K 4096x2560             T=3  multi 15.5 us | il rows1 15.0 rows2 17.3 rows4 18.1 us
BENCH Q4_K 4096x2560             T=4  multi 17.4 us | il rows1 15.4 rows2 16.2 rows4 28.8 us
BENCH Q4_K odd rows 2560x2051    T=2  multi 10.0 us | il rows1 9.0 rows2 9.6 rows4 8.6 us
BENCH Q4_K odd rows 2560x2051    T=3  multi 10.0 us | il rows1 8.8 rows2 10.7 rows4 10.7 us
BENCH Q4_K odd rows 2560x2051    T=4  multi 11.1 us | il rows1 9.2 rows2 10.0 rows4 11.5 us
BENCH Q5_K 2560x12288            T=2  multi 51.3 us | il rows1 47.7 rows2 51.6 rows4 51.0 us
BENCH Q5_K 2560x12288            T=3  multi 53.8 us | il rows1 48.2 rows2 49.5 rows4 54.1 us
BENCH Q5_K 2560x12288            T=4  multi 62.1 us | il rows1 53.0 rows2 51.1 rows4 62.7 us
BENCH Q5_K 2560x6144             T=2  multi 27.2 us | il rows1 24.9 rows2 27.1 rows4 28.5 us
BENCH Q5_K 2560x6144             T=3  multi 28.3 us | il rows1 25.2 rows2 26.6 rows4 27.8 us
BENCH Q5_K 2560x6144             T=4  multi 32.3 us | il rows1 27.6 rows2 27.9 rows4 32.3 us
BENCH Q5_K 4096x2560             T=2  multi 17.1 us | il rows1 17.4 rows2 23.3 rows4 18.2 us
BENCH Q5_K 4096x2560             T=3  multi 17.8 us | il rows1 17.6 rows2 18.2 rows4 22.5 us
BENCH Q5_K 4096x2560             T=4  multi 19.6 us | il rows1 18.9 rows2 18.7 rows4 28.7 us
BENCH Q5_K head 2560x248320      T=2  multi 972.6 us | il rows1 939.8 rows2 975.5 rows4 944.6 us
BENCH Q5_K head 2560x248320      T=3  multi 1073.6 us | il rows1 949.5 rows2 950.8 rows4 962.3 us
BENCH Q5_K head 2560x248320      T=4  multi 1258.5 us | il rows1 1041.6 rows2 962.0 rows4 1135.6 us
BENCH Q6_K 2560x12288            T=2  multi 59.4 us | il rows1 58.4 rows2 62.4 rows4 77.0 us
BENCH Q6_K 2560x12288            T=3  multi 66.4 us | il rows1 60.0 rows2 60.7 rows4 72.0 us
BENCH Q6_K 2560x12288            T=4  multi 79.0 us | il rows1 60.8 rows2 63.0 rows4 64.4 us
BENCH Q6_K 2560x10240            T=2  multi 50.0 us | il rows1 50.0 rows2 51.0 rows4 61.5 us
BENCH Q6_K 2560x10240            T=3  multi 56.0 us | il rows1 50.0 rows2 51.1 rows4 59.2 us
BENCH Q6_K 2560x10240            T=4  multi 66.5 us | il rows1 52.7 rows2 53.8 rows4 54.7 us
BENCH Q6_K 4096x2560             T=2  multi 21.5 us | il rows1 22.5 rows2 22.8 rows4 30.4 us
BENCH Q6_K 4096x2560             T=3  multi 22.4 us | il rows1 21.1 rows2 26.8 rows4 25.5 us
BENCH Q6_K 4096x2560             T=4  multi 25.5 us | il rows1 23.0 rows2 25.0 rows4 27.9 us
BENCH Q6_K odd rows 2560x2051    T=2  multi 11.8 us | il rows1 13.1 rows2 12.2 rows4 17.8 us
BENCH Q6_K odd rows 2560x2051    T=3  multi 13.1 us | il rows1 11.9 rows2 11.7 rows4 14.3 us
BENCH Q6_K odd rows 2560x2051    T=4  multi 14.7 us | il rows1 13.8 rows2 15.3 rows4 12.2 us
BENCH Q6_K 2560x512              T=2  multi 3.6 us | il rows1 4.1 rows2 5.6 rows4 8.5 us
BENCH Q6_K 2560x512              T=3  multi 4.0 us | il rows1 3.6 rows2 5.6 rows4 6.1 us
BENCH Q6_K 2560x512              T=4  multi 4.5 us | il rows1 4.7 rows2 5.0 rows4 5.7 us
// measured on this card by mmvq_il_parity --bench --emit-table
    {23, {{0, 0, 0, 1, 1}, {1, 1, 1, 1, 1}, {1, 1, 1, 1, 1}}},   // IQ4_XS
    {12, {{0, 0, 0, 2, 2}, {0, 1, 1, 1, 1}, {0, 1, 1, 1, 1}}},   // Q4_K
    {13, {{0, 0, 1, 1, 1}, {0, 0, 1, 1, 1}, {0, 2, 1, 1, 2}}},   // Q5_K
    {14, {{0, 0, 0, 0, 0}, {1, 0, 0, 1, 1}, {0, 0, 0, 1, 1}}},   // Q6_K
mmvq_il_parity: OK (every case, T 2-4, rows 1/2/4 and the table, bitwise)
<!-- gh-comment-id:6104165129 --> @christopherrobertbrooks-tech commented on GitHub (Oct 11, 2026): An sm_89 table, measured as docs/MMVQ_IL_TABLE.md describes: RTX 4070 12 GB (sm_89, driver 580.173.02, CUDA 12.9, Linux), `mmvq_il_parity` built from the v0.1.42 tag (61b3fb5). The card also drives the desktop; Steam was closed and the GPU sat idle (0%) before the runs. `mmvq_il_parity: OK` on both runs. Two runs of `--bench --emit-table`; 57 of the 60 cells agree. The three that differ are all Q5_K at 4 tokens, where the timings are close: ``` // run 1 {23, {{0, 0, 0, 1, 1}, {1, 1, 1, 1, 1}, {1, 1, 1, 1, 1}}}, // IQ4_XS {12, {{0, 0, 0, 2, 2}, {0, 1, 1, 1, 1}, {0, 1, 1, 1, 1}}}, // Q4_K {13, {{0, 0, 1, 1, 1}, {0, 0, 1, 1, 1}, {0, 2, 1, 1, 2}}}, // Q5_K {14, {{0, 0, 0, 0, 0}, {1, 0, 0, 1, 1}, {0, 0, 0, 1, 1}}}, // Q6_K // run 2: the same, except Q5_K at 4 tokens: {0, 0, 2, 2, 2} ``` Against `kIlRowsShared` on this card (mean of the two runs): 27 of the shared table's 28 non-zero choices are faster than the plain kernel or within 3% of it. One is slower: Q5_K 4096x2560 at 3 tokens, where the shared table takes 4 rows (22.5 µs) and the plain kernel 17.9 µs (+26%). This is a smaller Ada card than the 4090 above, so it's one sm_89 data point, not necessarily the 4090's table. <details><summary>Full output, run 1</summary> ``` BENCH IQ4_XS 2560x10240 T=2 multi 34.4 us | il rows1 32.5 rows2 32.8 rows4 36.4 us BENCH IQ4_XS 2560x10240 T=3 multi 43.0 us | il rows1 33.1 rows2 34.6 rows4 36.7 us BENCH IQ4_XS 2560x10240 T=4 multi 51.3 us | il rows1 34.7 rows2 35.0 rows4 41.5 us BENCH IQ4_XS 2560x6144 T=2 multi 20.9 us | il rows1 20.4 rows2 20.6 rows4 23.5 us BENCH IQ4_XS 2560x6144 T=3 multi 25.1 us | il rows1 20.7 rows2 22.0 rows4 22.6 us BENCH IQ4_XS 2560x6144 T=4 multi 31.2 us | il rows1 22.0 rows2 22.3 rows4 27.5 us BENCH IQ4_XS 4096x2560 T=2 multi 14.2 us | il rows1 13.8 rows2 13.9 rows4 14.3 us BENCH IQ4_XS 4096x2560 T=3 multi 15.3 us | il rows1 14.0 rows2 14.7 rows4 16.2 us BENCH IQ4_XS 4096x2560 T=4 multi 17.7 us | il rows1 14.5 rows2 14.6 rows4 16.2 us BENCH IQ4_XS 2560x512 T=2 multi 2.8 us | il rows1 3.2 rows2 3.1 rows4 3.8 us BENCH IQ4_XS 2560x512 T=3 multi 3.8 us | il rows1 3.5 rows2 4.2 rows4 3.9 us BENCH IQ4_XS 2560x512 T=4 multi 4.3 us | il rows1 3.3 rows2 3.6 rows4 4.2 us BENCH Q4_K 2560x10240 T=2 multi 37.8 us | il rows1 33.6 rows2 33.6 rows4 34.0 us BENCH Q4_K 2560x10240 T=3 multi 39.4 us | il rows1 34.1 rows2 37.0 rows4 42.8 us BENCH Q4_K 2560x10240 T=4 multi 44.9 us | il rows1 35.7 rows2 37.0 rows4 52.1 us BENCH Q4_K 4096x2560 T=2 multi 14.7 us | il rows1 15.1 rows2 15.5 rows4 15.1 us BENCH Q4_K 4096x2560 T=3 multi 15.5 us | il rows1 15.0 rows2 17.3 rows4 18.1 us BENCH Q4_K 4096x2560 T=4 multi 17.4 us | il rows1 15.4 rows2 16.2 rows4 28.8 us BENCH Q4_K odd rows 2560x2051 T=2 multi 10.0 us | il rows1 9.0 rows2 9.6 rows4 8.6 us BENCH Q4_K odd rows 2560x2051 T=3 multi 10.0 us | il rows1 8.8 rows2 10.7 rows4 10.7 us BENCH Q4_K odd rows 2560x2051 T=4 multi 11.1 us | il rows1 9.2 rows2 10.0 rows4 11.5 us BENCH Q5_K 2560x12288 T=2 multi 51.3 us | il rows1 47.7 rows2 51.6 rows4 51.0 us BENCH Q5_K 2560x12288 T=3 multi 53.8 us | il rows1 48.2 rows2 49.5 rows4 54.1 us BENCH Q5_K 2560x12288 T=4 multi 62.1 us | il rows1 53.0 rows2 51.1 rows4 62.7 us BENCH Q5_K 2560x6144 T=2 multi 27.2 us | il rows1 24.9 rows2 27.1 rows4 28.5 us BENCH Q5_K 2560x6144 T=3 multi 28.3 us | il rows1 25.2 rows2 26.6 rows4 27.8 us BENCH Q5_K 2560x6144 T=4 multi 32.3 us | il rows1 27.6 rows2 27.9 rows4 32.3 us BENCH Q5_K 4096x2560 T=2 multi 17.1 us | il rows1 17.4 rows2 23.3 rows4 18.2 us BENCH Q5_K 4096x2560 T=3 multi 17.8 us | il rows1 17.6 rows2 18.2 rows4 22.5 us BENCH Q5_K 4096x2560 T=4 multi 19.6 us | il rows1 18.9 rows2 18.7 rows4 28.7 us BENCH Q5_K head 2560x248320 T=2 multi 972.6 us | il rows1 939.8 rows2 975.5 rows4 944.6 us BENCH Q5_K head 2560x248320 T=3 multi 1073.6 us | il rows1 949.5 rows2 950.8 rows4 962.3 us BENCH Q5_K head 2560x248320 T=4 multi 1258.5 us | il rows1 1041.6 rows2 962.0 rows4 1135.6 us BENCH Q6_K 2560x12288 T=2 multi 59.4 us | il rows1 58.4 rows2 62.4 rows4 77.0 us BENCH Q6_K 2560x12288 T=3 multi 66.4 us | il rows1 60.0 rows2 60.7 rows4 72.0 us BENCH Q6_K 2560x12288 T=4 multi 79.0 us | il rows1 60.8 rows2 63.0 rows4 64.4 us BENCH Q6_K 2560x10240 T=2 multi 50.0 us | il rows1 50.0 rows2 51.0 rows4 61.5 us BENCH Q6_K 2560x10240 T=3 multi 56.0 us | il rows1 50.0 rows2 51.1 rows4 59.2 us BENCH Q6_K 2560x10240 T=4 multi 66.5 us | il rows1 52.7 rows2 53.8 rows4 54.7 us BENCH Q6_K 4096x2560 T=2 multi 21.5 us | il rows1 22.5 rows2 22.8 rows4 30.4 us BENCH Q6_K 4096x2560 T=3 multi 22.4 us | il rows1 21.1 rows2 26.8 rows4 25.5 us BENCH Q6_K 4096x2560 T=4 multi 25.5 us | il rows1 23.0 rows2 25.0 rows4 27.9 us BENCH Q6_K odd rows 2560x2051 T=2 multi 11.8 us | il rows1 13.1 rows2 12.2 rows4 17.8 us BENCH Q6_K odd rows 2560x2051 T=3 multi 13.1 us | il rows1 11.9 rows2 11.7 rows4 14.3 us BENCH Q6_K odd rows 2560x2051 T=4 multi 14.7 us | il rows1 13.8 rows2 15.3 rows4 12.2 us BENCH Q6_K 2560x512 T=2 multi 3.6 us | il rows1 4.1 rows2 5.6 rows4 8.5 us BENCH Q6_K 2560x512 T=3 multi 4.0 us | il rows1 3.6 rows2 5.6 rows4 6.1 us BENCH Q6_K 2560x512 T=4 multi 4.5 us | il rows1 4.7 rows2 5.0 rows4 5.7 us // measured on this card by mmvq_il_parity --bench --emit-table {23, {{0, 0, 0, 1, 1}, {1, 1, 1, 1, 1}, {1, 1, 1, 1, 1}}}, // IQ4_XS {12, {{0, 0, 0, 2, 2}, {0, 1, 1, 1, 1}, {0, 1, 1, 1, 1}}}, // Q4_K {13, {{0, 0, 1, 1, 1}, {0, 0, 1, 1, 1}, {0, 2, 1, 1, 2}}}, // Q5_K {14, {{0, 0, 0, 0, 0}, {1, 0, 0, 1, 1}, {0, 0, 0, 1, 1}}}, // Q6_K mmvq_il_parity: OK (every case, T 2-4, rows 1/2/4 and the table, bitwise) ``` </details>
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:6156227388 --> @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#724
No description provided.