[PR #4942] [CLOSED] [Engine] Interleaved MMVQ (native_mmvq_il) for IQ3_S/IQ3_XXS and HIP/gfx12 (1202) tables #5258

Closed
opened 2026-11-07 16:33:52 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/4942
Author: @bsorensen110
Created: 11/1/2026
Status: ❌ Closed

Base: main ← Head: pr/mmvq-il-iq3-tables


📝 Commits (5)

  • 0a0b9d2 HIP gfx12: build the interleaved mmvq path on HIP; key RDNA4 as 1202 with measured R9700 tables
  • 297b9bc HIP gfx12: interleaved mmvq for IQ3_S and IQ3_XXS on RDNA4 (single accumulator, n_in <= 4096)
  • 0168cf9 test(hip,cuda): quantize_il_parity - fused quantize+interleave vs the pair, byte for byte
  • fdc596a perf(hip): enable fused quantize+interleave (native_quantize_q8_1_il) on gfx12 & document 1202/IQ3 tables
  • a8b70f7 Address review: IL off on gfx906 wave64, plain path on unmeasured HIP, n_in in IL support check, quote HIP header path

📊 Changes

9 files changed (+557 additions, -60 deletions)

View changed files

📝 CMakeLists.txt (+70 -9)
📝 docs/MMVQ_IL_TABLE.md (+4 -3)
📝 include/strata/kernels/native_mmvq.hpp (+3 -2)
📝 metal/src/engine/mmvq_host.cpp (+1 -1)
📝 src/core/verify.cpp (+25 -9)
➕ src/kernels/cuda/iq3_grid.inc.h (+101 -0)
📝 src/kernels/cuda/native_mmvq.cu (+215 -29)
📝 src/kernels/mmvq_il_parity.cpp (+39 -7)
➕ src/kernels/quantize_il_parity.cpp (+99 -0)

📄 Description

Problem and result

Before this change:

  1. The interleaved multi-column MMVQ path (native_mmvq_il, native_quantize_q8_1_il, native_q8_1_interleave) in src/kernels/cuda/native_mmvq.cu was compiled out under #if !defined(__HIPCC__), with HIP stubs throwing or returning false, and il_cc() had no architecture key separating AMD RDNA4 (gfx1200 / gfx1201, which reports compute capability 12.0 with 32 wave32 CUs) from NVIDIA sm_120 (120).
  2. native_mmvq_il only supported IQ4_XS (23), Q4_K (12), Q5_K (13), Q6_K (14), and Q3_K (11). Models whose dense projections use IQ3_S (21) or IQ3_XXS (18) always fell back to native_mmvq on every backend, and mmvq_il_parity --bench --emit-table could not measure or emit IQ3_S / IQ3_XXS rows for any card.

With this change:

  • Interleaved IQ3_S (21) and IQ3_XXS (18) kernels (IlIQ3S, IlIQ3XXS, src/kernels/cuda/iq3_grid.inc.h, src/kernels/cuda/native_mmvq.cu):
    • Adds Iq3XxsBlock (98 B) and Iq3SBlock (110 B) traits (Iq3XxsIlTraits, Iq3SIlTraits) on the shared native_mmvq_il_kernel for both CUDA and HIP, reading the 2-byte-aligned weight words via iq3_int_b2 and the iq3xxs_grid[256] / iq3s_grid[512] codebooks (src/kernels/cuda/iq3_grid.inc.h, copied token-for-token from third_party/ggml/ggml-common.h:1017-1117).
    • Chains chunks into a single accumulator (kIlSingleStream<IlIQ3XXS> = true, kIlSingleStream<IlIQ3S> = true) so floating-point contraction matches native_mmvq's Split<18> / Split<21> baseline bit-for-bit across all tested shapes (n_in <= kIq3IlMaxNIn = 4096). A 4-stream accumulator failed bitwise parity at n_in >= 2560 (337 FAIL lines) and measured 6.9–18.0% slower on table-selected IQ3_S shapes (n_in = 2560, T = 5, 7, 8).
    • Extends mmvq_il_parity (CASES[] and emit_table() for ti < 7) so mmvq_il_parity --bench --emit-table benchmarks and emits IQ3_S (21) and IQ3_XXS (18) rows alongside IQ4_XS / Q4_K / Q5_K / Q6_K / Q3_K on any CUDA or HIP card.
  • HIP native_mmvq_il compilation & RDNA4 (1202) measured tables (src/kernels/cuda/native_mmvq.cu, src/core/verify.cpp, CMakeLists.txt):
    • Compiles the non-PF interleaved path (native_mmvq_il_kernel, native_quantize_q8_1_il, native_q8_1_interleave) on HIP while keeping the PTX-only prefetch variants (native_mmvq_il_pf_kernel, mad.wide.u32 / ld.global.nc) gated behind STRATA_IL_PF (1 on CUDA, 0 on HIP).
    • Maps HIP cc == 120 (gfx12) to architecture key 1202 in il_cc() so RDNA4 never collides with sm_120, and populates kIlRows_1202 (T = 2..4), kIlRows58_1202 (T = 5..8), and kIl1Rows_1202 (T = 1) from two independent mmvq_il_parity --bench --emit-table runs on a Radeon AI PRO R9700 (gfx1201, 32 wave32 CUs), keeping a cell only where both runs agree and every shape in the class beats native_mmvq by >= 3% (else 0).
    • Enables qil_on() (native_quantize_q8_1_il fused quantize + interleave for 2–4 column projection inputs in Verifier::record_window) on gfx12 (STRATA_QIL=0|1) and adds quantize_il_parity (CTest) to verify byte-for-byte identity against native_quantize_q8_1 + native_q8_1_interleave.

Follows up on #3453, #3779, and #3999 (per-architecture native_mmvq_il tables in docs/MMVQ_IL_TABLE.md), extending native_mmvq_il and mmvq_il_parity --bench --emit-table to IQ3_S (21) and IQ3_XXS (18) and adding HIP / RDNA4 (1202) support.

Approach

  • Bitwise parity with native_mmvq: IlIQ3XXS and IlIQ3S replicate Split<18> and Split<21> from iq_kernels.cu and accumulate in chunk order into acc[0][i][c] (kIlSingleStream<I>), producing bitwise-identical float outputs to native_mmvq across T = 1..8 and rows = 1, 2, 4.
  • Conservative agree-or-0 table rule (kIlRows_1202, kIlRows58_1202, kIl1Rows_1202): matching kIlRows_89, mmvq_il_parity --bench --emit-table was run twice on gfx1201 (cold cache, 192 MB rotation). Any cell that disagreed between run 1 and run 2 (two K-quant cells and six IQ3 cells) was zeroed so uncertain shapes stay on native_mmvq.
  • Zero impact on existing CUDA tables: CUDA il_cc() keys (61, 80, 86, 89, 120, 1201) and their tables have no 18 / 21 entries yet, so il_rows() returns 0 for IQ3_S / IQ3_XXS on those cards until measured with mmvq_il_parity --bench --emit-table (or tested immediately via STRATA_MMVQ_IL_ROWS="21:...").

Validation

Passed:

  • Revision fdc596a7 branched from origin/main (c62d5e3a15b40ea51c96aae9e8d36928965f53ab, Strata 0.2.9) on Linux 7.3.0-2-cachyos-server (AMD Radeon AI PRO R9700 gfx1201 32 GB VRAM, ROCm 10.2.0a20260914, 64 GB RAM):
  • cmake -S . -B build-hip -DCMAKE_BUILD_TYPE=Release -DSTRATA_ENABLE_HIP=ON -DSTRATA_BUILD_TESTS=ON -DCMAKE_HIP_ARCHITECTURES=gfx1201 && cmake --build build-hip --target mmvq_il_parity quantize_il_parity strata -j16 -> Built target mmvq_il_parity, Built target quantize_il_parity, Built target strata (0 errors).
  • ctest --test-dir build-hip --output-on-failure -V -R '^(mmvq_il_parity|quantize_il_parity)$':
    • mmvq_il_parity: mmvq_il_parity: OK (every case, T 1-8, rows 1/2/4 and the table, bitwise) (1.51 sec, 0 FAIL lines across all 50 cases including 18 IQ3_S and IQ3_XXS shapes + check_tables() for sm_60/70/80/86/89/120/1202).
    • quantize_il_parity: ALL PASS (0.10 sec, 45/45 cases across n_in = {32, 2560, 4096, 8192, 10240}, ncols = 2..4, 3 seeds each, 0 bytes differing in both plain q8_1 and interleaved buffers).
  • Kernel microbenchmarks on gfx1201 (./build-hip/mmvq_il_parity --bench --emit-table, cold cache with 192 MB rotation, 2 independent runs):
    • IQ3_S (type 21) & IQ3_XXS (type 18) best shape gains vs native_mmvq (run 1 / run 2):
      • T=2: IQ3_S 2560x10240 (rows=1) +5.7% / +5.3%
      • T=3: IQ3_S 4096x640 (rows=1) +9.0% / +7.5%; IQ3_XXS 2560x6144 (rows=1) +3.6% / +3.1%
      • T=4: IQ3_S 4096x640 (rows=1) +12.5% / +11.1%; IQ3_XXS 2560x6144 (rows=1) +8.4% / +9.1%
      • T=5: IQ3_S 2560x12288 (rows=2) +7.4% / +6.6%; IQ3_XXS 2560x12288 (rows=2) +12.2% / +10.9%
      • T=7: IQ3_S 2560x512 (rows=1) +25.0% / +23.8%; IQ3_XXS 2560x512 (rows=1) +25.6% / +25.6%
      • T=8: IQ3_S 2560x12288 (rows=2) +23.1% / +23.1%; IQ3_XXS 2560x512 (rows=1) +22.8% / +22.8%
    • K-quant / IQ4_XS gains on gfx1201 (kIlRows_1202 / kIlRows58_1202, run 1 / run 2):
      • Q5_K LM head 2560x248320: T=3 -48.1% / -48.1%, T=4 -48.7% / -48.8% (1713.2 -> 878.6 us), T=5 -40.8% / -40.4% (1967.6 -> 1164.2 us), T=8 -36.7% / -36.5%
      • IQ4_XS 2560x10240: T=4 -23.6% / -23.0%, T=8 -39.0% / -38.7%
      • Q3_K 2560x10240: T=4 -28.3% / -28.5%, T=8 -41.5% / -41.4%
      • Q6_K 2560x12288: T=4 -25.6% / -25.6%, T=7 -36.5% / -36.1%
  • End-to-end single-slot speculative decode A/B on gfx1201 (IQ3_S dense projections, --mtp --spec 8 --mmap-experts, 2 interleaved rounds of 10 greedy 512-token requests after 3 warmups, STRATA_MMVQ_IL=0 vs STRATA_MMVQ_IL=1):
    • STRATA_MMVQ_IL=0: round medians 155.65, 163.50 tok/s, pooled median 160.95 tok/s (n = 20).
    • STRATA_MMVQ_IL=1: round medians 171.40, 171.20 tok/s, pooled median 171.20 tok/s (n = 20, +10.25 tok/s / +6.4%, 95% bootstrap CI +8.2 to +14.7 tok/s).

Failed:

  • none observed

Not run:

  • Native nvcc CUDA build and runtime mmvq_il_parity --bench --emit-table sweep for IQ3_S / IQ3_XXS cells on NVIDIA GPUs (host is a single-GPU AMD gfx1201 machine; CUDA preprocessor token diff was verified via clang++ -E with __HIPCC__ undefined).
  • gfx1200 hardware measurement (shares key 1202 with gfx1201).

Limits

  • IQ3_S (21) and IQ3_XXS (18) take native_mmvq_il only when n_in <= kIq3IlMaxNIn (4096), matching the parity-tested range; wider inputs fall back to native_mmvq.
  • Only key 1202 (gfx12) populates IQ3_S and IQ3_XXS rows in the built-in tables so far; other architectures keep 0 (native_mmvq) for types 18 and 21 until measured with mmvq_il_parity --bench --emit-table or overridden via STRATA_MMVQ_IL_ROWS.
  • Set STRATA_MMVQ_IL=0 to disable the interleaved MMVQ path or STRATA_QIL=0 to disable fused native_quantize_q8_1_il.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/4942 **Author:** [@bsorensen110](https://github.com/bsorensen110) **Created:** 11/1/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr/mmvq-il-iq3-tables` --- ### 📝 Commits (5) - [`0a0b9d2`](https://github.com/Niko1221/Strata/commit/0a0b9d21df5a30f87cedef4a7609962385b897c3) HIP gfx12: build the interleaved mmvq path on HIP; key RDNA4 as 1202 with measured R9700 tables - [`297b9bc`](https://github.com/Niko1221/Strata/commit/297b9bc2feac6f462abc41b99bf3237daddcfd19) HIP gfx12: interleaved mmvq for IQ3_S and IQ3_XXS on RDNA4 (single accumulator, n_in <= 4096) - [`0168cf9`](https://github.com/Niko1221/Strata/commit/0168cf9e3c51b6a50f68e1e43ac6aa4e99ccb212) test(hip,cuda): quantize_il_parity - fused quantize+interleave vs the pair, byte for byte - [`fdc596a`](https://github.com/Niko1221/Strata/commit/fdc596a7e5ea5ed8ff0def9808a0e14d598a07cc) perf(hip): enable fused quantize+interleave (native_quantize_q8_1_il) on gfx12 & document 1202/IQ3 tables - [`a8b70f7`](https://github.com/Niko1221/Strata/commit/a8b70f7ed8ecd58321f7b6f71ddcabe026f361c4) Address review: IL off on gfx906 wave64, plain path on unmeasured HIP, n_in in IL support check, quote HIP header path ### 📊 Changes **9 files changed** (+557 additions, -60 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+70 -9) 📝 `docs/MMVQ_IL_TABLE.md` (+4 -3) 📝 `include/strata/kernels/native_mmvq.hpp` (+3 -2) 📝 `metal/src/engine/mmvq_host.cpp` (+1 -1) 📝 `src/core/verify.cpp` (+25 -9) ➕ `src/kernels/cuda/iq3_grid.inc.h` (+101 -0) 📝 `src/kernels/cuda/native_mmvq.cu` (+215 -29) 📝 `src/kernels/mmvq_il_parity.cpp` (+39 -7) ➕ `src/kernels/quantize_il_parity.cpp` (+99 -0) </details> ### 📄 Description ## Problem and result Before this change: 1. The interleaved multi-column MMVQ path (`native_mmvq_il`, `native_quantize_q8_1_il`, `native_q8_1_interleave`) in `src/kernels/cuda/native_mmvq.cu` was compiled out under `#if !defined(__HIPCC__)`, with HIP stubs throwing or returning `false`, and `il_cc()` had no architecture key separating AMD RDNA4 (`gfx1200` / `gfx1201`, which reports compute capability `12.0` with 32 wave32 CUs) from NVIDIA `sm_120` (`120`). 2. `native_mmvq_il` only supported `IQ4_XS` (23), `Q4_K` (12), `Q5_K` (13), `Q6_K` (14), and `Q3_K` (11). Models whose dense projections use `IQ3_S` (21) or `IQ3_XXS` (18) always fell back to `native_mmvq` on every backend, and `mmvq_il_parity --bench --emit-table` could not measure or emit `IQ3_S` / `IQ3_XXS` rows for any card. With this change: - **Interleaved `IQ3_S` (21) and `IQ3_XXS` (18) kernels (`IlIQ3S`, `IlIQ3XXS`, `src/kernels/cuda/iq3_grid.inc.h`, `src/kernels/cuda/native_mmvq.cu`):** - Adds `Iq3XxsBlock` (98 B) and `Iq3SBlock` (110 B) traits (`Iq3XxsIlTraits`, `Iq3SIlTraits`) on the shared `native_mmvq_il_kernel` for both CUDA and HIP, reading the 2-byte-aligned weight words via `iq3_int_b2` and the `iq3xxs_grid[256]` / `iq3s_grid[512]` codebooks (`src/kernels/cuda/iq3_grid.inc.h`, copied token-for-token from `third_party/ggml/ggml-common.h:1017-1117`). - Chains chunks into a single accumulator (`kIlSingleStream<IlIQ3XXS> = true`, `kIlSingleStream<IlIQ3S> = true`) so floating-point contraction matches `native_mmvq`'s `Split<18>` / `Split<21>` baseline bit-for-bit across all tested shapes (`n_in <= kIq3IlMaxNIn = 4096`). A 4-stream accumulator failed bitwise parity at `n_in >= 2560` (337 FAIL lines) and measured 6.9–18.0% slower on table-selected `IQ3_S` shapes (`n_in = 2560`, `T = 5, 7, 8`). - Extends `mmvq_il_parity` (`CASES[]` and `emit_table()` for `ti < 7`) so `mmvq_il_parity --bench --emit-table` benchmarks and emits `IQ3_S` (21) and `IQ3_XXS` (18) rows alongside `IQ4_XS` / `Q4_K` / `Q5_K` / `Q6_K` / `Q3_K` on any CUDA or HIP card. - **HIP `native_mmvq_il` compilation & RDNA4 (`1202`) measured tables (`src/kernels/cuda/native_mmvq.cu`, `src/core/verify.cpp`, `CMakeLists.txt`):** - Compiles the non-PF interleaved path (`native_mmvq_il_kernel`, `native_quantize_q8_1_il`, `native_q8_1_interleave`) on HIP while keeping the PTX-only prefetch variants (`native_mmvq_il_pf_kernel`, `mad.wide.u32` / `ld.global.nc`) gated behind `STRATA_IL_PF` (`1` on CUDA, `0` on HIP). - Maps HIP `cc == 120` (`gfx12`) to architecture key `1202` in `il_cc()` so RDNA4 never collides with `sm_120`, and populates `kIlRows_1202` (`T = 2..4`), `kIlRows58_1202` (`T = 5..8`), and `kIl1Rows_1202` (`T = 1`) from two independent `mmvq_il_parity --bench --emit-table` runs on a Radeon AI PRO R9700 (`gfx1201`, 32 wave32 CUs), keeping a cell only where both runs agree and every shape in the class beats `native_mmvq` by >= 3% (else `0`). - Enables `qil_on()` (`native_quantize_q8_1_il` fused quantize + interleave for 2–4 column projection inputs in `Verifier::record_window`) on `gfx12` (`STRATA_QIL=0|1`) and adds `quantize_il_parity` (CTest) to verify byte-for-byte identity against `native_quantize_q8_1` + `native_q8_1_interleave`. ## Related discussion Follows up on #3453, #3779, and #3999 (per-architecture `native_mmvq_il` tables in `docs/MMVQ_IL_TABLE.md`), extending `native_mmvq_il` and `mmvq_il_parity --bench --emit-table` to `IQ3_S` (21) and `IQ3_XXS` (18) and adding HIP / RDNA4 (`1202`) support. ## Approach - **Bitwise parity with `native_mmvq`:** `IlIQ3XXS` and `IlIQ3S` replicate `Split<18>` and `Split<21>` from `iq_kernels.cu` and accumulate in chunk order into `acc[0][i][c]` (`kIlSingleStream<I>`), producing bitwise-identical `float` outputs to `native_mmvq` across `T = 1..8` and `rows = 1, 2, 4`. - **Conservative agree-or-0 table rule (`kIlRows_1202`, `kIlRows58_1202`, `kIl1Rows_1202`):** matching `kIlRows_89`, `mmvq_il_parity --bench --emit-table` was run twice on `gfx1201` (cold cache, 192 MB rotation). Any cell that disagreed between run 1 and run 2 (two K-quant cells and six IQ3 cells) was zeroed so uncertain shapes stay on `native_mmvq`. - **Zero impact on existing CUDA tables:** CUDA `il_cc()` keys (`61`, `80`, `86`, `89`, `120`, `1201`) and their tables have no `18` / `21` entries yet, so `il_rows()` returns `0` for `IQ3_S` / `IQ3_XXS` on those cards until measured with `mmvq_il_parity --bench --emit-table` (or tested immediately via `STRATA_MMVQ_IL_ROWS="21:..."`). ## Validation **Passed:** - Revision `fdc596a7` branched from `origin/main` (`c62d5e3a15b40ea51c96aae9e8d36928965f53ab`, Strata `0.2.9`) on Linux `7.3.0-2-cachyos-server` (AMD Radeon AI PRO R9700 `gfx1201` 32 GB VRAM, ROCm `10.2.0a20260914`, 64 GB RAM): - `cmake -S . -B build-hip -DCMAKE_BUILD_TYPE=Release -DSTRATA_ENABLE_HIP=ON -DSTRATA_BUILD_TESTS=ON -DCMAKE_HIP_ARCHITECTURES=gfx1201 && cmake --build build-hip --target mmvq_il_parity quantize_il_parity strata -j16` -> `Built target mmvq_il_parity`, `Built target quantize_il_parity`, `Built target strata` (0 errors). - `ctest --test-dir build-hip --output-on-failure -V -R '^(mmvq_il_parity|quantize_il_parity)$'`: - `mmvq_il_parity`: `mmvq_il_parity: OK (every case, T 1-8, rows 1/2/4 and the table, bitwise)` (`1.51 sec`, 0 FAIL lines across all 50 cases including 18 `IQ3_S` and `IQ3_XXS` shapes + `check_tables()` for `sm_60`/`70`/`80`/`86`/`89`/`120`/`1202`). - `quantize_il_parity`: `ALL PASS` (`0.10 sec`, 45/45 cases across `n_in = {32, 2560, 4096, 8192, 10240}`, `ncols = 2..4`, 3 seeds each, `0` bytes differing in both plain `q8_1` and interleaved buffers). - Kernel microbenchmarks on `gfx1201` (`./build-hip/mmvq_il_parity --bench --emit-table`, cold cache with 192 MB rotation, 2 independent runs): - **`IQ3_S` (type 21) & `IQ3_XXS` (type 18) best shape gains vs `native_mmvq` (run 1 / run 2):** - `T=2`: `IQ3_S` `2560x10240` (`rows=1`) **+5.7% / +5.3%** - `T=3`: `IQ3_S` `4096x640` (`rows=1`) **+9.0% / +7.5%**; `IQ3_XXS` `2560x6144` (`rows=1`) **+3.6% / +3.1%** - `T=4`: `IQ3_S` `4096x640` (`rows=1`) **+12.5% / +11.1%**; `IQ3_XXS` `2560x6144` (`rows=1`) **+8.4% / +9.1%** - `T=5`: `IQ3_S` `2560x12288` (`rows=2`) **+7.4% / +6.6%**; `IQ3_XXS` `2560x12288` (`rows=2`) **+12.2% / +10.9%** - `T=7`: `IQ3_S` `2560x512` (`rows=1`) **+25.0% / +23.8%**; `IQ3_XXS` `2560x512` (`rows=1`) **+25.6% / +25.6%** - `T=8`: `IQ3_S` `2560x12288` (`rows=2`) **+23.1% / +23.1%**; `IQ3_XXS` `2560x512` (`rows=1`) **+22.8% / +22.8%** - **K-quant / `IQ4_XS` gains on `gfx1201` (`kIlRows_1202` / `kIlRows58_1202`, run 1 / run 2):** - `Q5_K` LM head `2560x248320`: `T=3` **-48.1% / -48.1%**, `T=4` **-48.7% / -48.8%** (`1713.2 -> 878.6 us`), `T=5` **-40.8% / -40.4%** (`1967.6 -> 1164.2 us`), `T=8` **-36.7% / -36.5%** - `IQ4_XS` `2560x10240`: `T=4` **-23.6% / -23.0%**, `T=8` **-39.0% / -38.7%** - `Q3_K` `2560x10240`: `T=4` **-28.3% / -28.5%**, `T=8` **-41.5% / -41.4%** - `Q6_K` `2560x12288`: `T=4` **-25.6% / -25.6%**, `T=7` **-36.5% / -36.1%** - End-to-end single-slot speculative decode A/B on `gfx1201` (`IQ3_S` dense projections, `--mtp --spec 8 --mmap-experts`, 2 interleaved rounds of 10 greedy 512-token requests after 3 warmups, `STRATA_MMVQ_IL=0` vs `STRATA_MMVQ_IL=1`): - `STRATA_MMVQ_IL=0`: round medians `155.65`, `163.50 tok/s`, pooled median **`160.95 tok/s`** (`n = 20`). - `STRATA_MMVQ_IL=1`: round medians `171.40`, `171.20 tok/s`, pooled median **`171.20 tok/s`** (`n = 20`, **+10.25 tok/s / +6.4%**, 95% bootstrap CI `+8.2` to `+14.7 tok/s`). **Failed:** - none observed **Not run:** - Native `nvcc` CUDA build and runtime `mmvq_il_parity --bench --emit-table` sweep for `IQ3_S` / `IQ3_XXS` cells on NVIDIA GPUs (host is a single-GPU AMD `gfx1201` machine; CUDA preprocessor token diff was verified via `clang++ -E` with `__HIPCC__` undefined). - `gfx1200` hardware measurement (shares key `1202` with `gfx1201`). ## Limits - `IQ3_S` (21) and `IQ3_XXS` (18) take `native_mmvq_il` only when `n_in <= kIq3IlMaxNIn` (`4096`), matching the parity-tested range; wider inputs fall back to `native_mmvq`. - Only key `1202` (`gfx12`) populates `IQ3_S` and `IQ3_XXS` rows in the built-in tables so far; other architectures keep `0` (`native_mmvq`) for types `18` and `21` until measured with `mmvq_il_parity --bench --emit-table` or overridden via `STRATA_MMVQ_IL_ROWS`. - Set `STRATA_MMVQ_IL=0` to disable the interleaved MMVQ path or `STRATA_QIL=0` to disable fused `native_quantize_q8_1_il`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:33:52 +07:00
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#5258
No description provided.