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++

cpu: iq_avx1 - IQ4_XS gate/up stays on ggml's generic dot (the 128-bit grid kernel measures 0.7-1.0x against its auto-vectorized generic on an E5-2470 v2; the kernel stays built and parity-tested, only the dispatch declines it)

bossmanaab7e30d0140
diff --git a/src/kernels/cpu/iq_avx1.cpp b/src/kernels/cpu/iq_avx1.cpp
index 66bae5d1b..f80cc652b 100644
--- a/src/kernels/cpu/iq_avx1.cpp
+++ b/src/kernels/cpu/iq_avx1.cpp
@@ -394,7 +394,11 @@ void q2_0_rows(const uint8_t* w, size_t row_bytes, int n, const block_q8_0* cons
} // namespace
bool iq128_supported(int type) noexcept {
- return type == 18 || type == 21 || type == 22 || type == 23;
+ // IQ4_XS (23) is deliberately NOT here: its ggml generic dot auto-vectorizes well and beats the 128-bit
+ // grid kernel (0.7-1.0x in iq_avx1_parity --bench on an E5-2470 v2); the generic stays for that format's
+ // gate/up rows. Its down rows (IQ4_NL/Q2_0) still take iq128_down_rows. The kernel itself stays built
+ // and parity-tested.
+ return type == 18 || type == 21 || type == 22;
}
bool iq128_down_supported(int type) noexcept {