cpu: IQ2_S in the bit-exact singleton rows; the singleton path only below the #152 rule

Stacked on #1415. IQ2_S (type 22, 122 gathered) joins STRATA_CPU_IQ_ALL_EXACT1's list: ggml's AVX2
iq2_s dot sums the same int32 lanes as row_dot_ggml_one and ends with 0.125f * hsum_float_8.
The singleton gate now also requires nt < native_gu_mt_min, so with STRATA_IQ_MT_MIN=1 a lone token
keeps the multi-token kernel and native_expert_parity's width invariance passes with the switch on.
This commit is contained in:
Stuart Chapin authored and Niko1221 committed 2026-10-14 07:07:08 +02:00
1 parent 8ee2005dae
commit 77ddc2ff14
5 files changed
+14 -6

No files matched your search

+1 -1
View File
@@ -100,7 +100,7 @@ int check_blob(const cpu::NativeFmt& f, const std::vector<uint8_t>& blob, int se
a[k] = act[k].data();
ffp[k] = ff[k].data();
}
if ((f.gu_type == 18 || f.gu_type == 21) && cpu::cpu_avx2_ok() && !cpu::cpu_avx512_ok()) {
if ((f.gu_type == 18 || f.gu_type == 21 || f.gu_type == 22) && cpu::cpu_avx2_ok() && !cpu::cpu_avx512_ok()) {
const auto dot = ggml_get_type_traits_cpu((ggml_type) f.gu_type)->vec_dot;
size_t differ = 0;
std::vector<float> exact((size_t) FF);