okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
0a9381336
main
1// src/quant/arm/act_neon.cpp - the Neon contract's activation quantizers: ggml's NEON Q8_0 / Q8_1 (round half to even, vcvtnq), and Q8_K, which is ggml's scalar 2// `_ref` on Arm too (its Arm file calls it a placeholder). Compiled with the flags of cmake/backends/quant.cmake. 3#include "tier_common.hpp" 4 5#include "../registry.hpp" 6#include "strata/quant/act.hpp" 7 8namespace strata::quant { 9namespace neon { 10 11#include "arm_helpers.inc" 12#include "arm_act.inc" 13 14}// namespace neon 15 16namespace { 17const ActKernel kTable []= { 18 {neon::quantize_q8_0 ,Type ::Q8_0 ,Arith ::Neon ,Isa ::Neon ,"neon_q8_0" }, 19 {neon::quantize_q8_1 ,Type ::Q8_1 ,Arith ::Neon ,Isa ::Neon ,"neon_q8_1" }, 20 {quantize_q8_K_ref ,Type ::Q8_K ,Arith ::Neon ,Isa ::Scalar ,"neon_q8_K_ref" }, 21}; 22}// namespace 23 24ActTable neon_act_table ()noexcept {return {kTable , (int ) (sizeof kTable /sizeof kTable [0 ])}; } 25 26}// namespace strata::quant