cpu: add bit-exact AVX2 singleton expert rows

This commit is contained in:
InB4DevOps authored and Niko1221 committed 2026-10-14 07:07:04 +02:00
1 parent 79376a2732
commit 8ee2005dae
6 files changed
+146 -5

No files matched your search

+5
View File
@@ -11,6 +11,11 @@
namespace strata::kernels::cpu {
bool iq256_supported(int ggml_type) noexcept;
/// Bit-identical to ggml's singleton gate/up for IQ2_XXS, IQ2_XS, IQ3_XXS and IQ3_S.
/// The caller checks AVX2 support and passes one Q8_K activation.
void iq256_gu_rows_exact_one(int ggml_type, const uint8_t* blob, size_t gu_row, size_t up_off, int n,
const void* act, float* ff, int r0, int r1);
/// ff[t][r] = silu(gate_r . a[t]) * (up_r . a[t]), rows [r0, r1); gate rows at blob, up rows at blob + up_off.
void iq256_gu_rows(int ggml_type, const uint8_t* blob, size_t gu_row, size_t up_off, int n, const void* const* act,
int nt, float* const* ff, int r0, int r1);