| 479 | } |
| 480 | |
| 481 | void act_quant_any(const float* x, int n, ActQ& a) { |
| 482 | // the q8 quantizer is VBMI-free: a VNNI-but-no-VBMI CPU (Cascade Lake Xeon) keeps its 512-bit form |
| 483 | if (cpu_vnni_ok()) act_quant_q8_1(x, n, a); |
| 484 | else if (cpu_avx2_ok()) act_quant_q8_1_avx2(x, n, a); |
| 485 | else act_quant_q8_1_avx1(x, n, a); // issue #1699 |
| 486 | } |
| 487 | |
| 488 | #if !defined(STRATA_NATIVE_EXPERTS) |
| 489 | // Without ggml-cpu no native pack loads (expert_layout_load refuses), so these are never reached. |