MCPcopy Create free account
hub / github.com/Niko1221/Strata / act_quant_any

Function act_quant_any

engine/src/kernels/cpu/expert_layout.cpp:481–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479}
480
481void 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.

Callers 12

mainFunction · 0.85
check_blobFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
ActsMethod · 0.85
mainFunction · 0.85
mainFunction · 0.85
prefill.cppFile · 0.85

Calls 5

cpu_vnni_okFunction · 0.85
act_quant_q8_1Function · 0.70
cpu_avx2_okFunction · 0.70
act_quant_q8_1_avx2Function · 0.70
act_quant_q8_1_avx1Function · 0.70

Tested by 1

mainFunction · 0.68