Fused RMSNorm + Q8_K Quantization kernel. More...
#include <immintrin.h>#include <math.h>#include <stdint.h>#include <string.h>#include "ckernel_quant.h"Go to the source code of this file.
Functions | |
| void | rmsnorm_q8_k_fused (const float *input, const float *gamma, void *vy, int tokens, int d_model, int aligned_embed_dim, float eps) |
Fused RMSNorm + Q8_K Quantization kernel.
After changes: make test && make llamacpp-parity-full
FUSION BENEFIT: Eliminates intermediate FP32 buffer between RMSNorm and quantization, keeping normalized values in registers/L1.
Definition in file rmsnorm_q8_k_fused.c.
| void rmsnorm_q8_k_fused | ( | const float * | input, |
| const float * | gamma, | ||
| void * | vy, | ||
| int | tokens, | ||
| int | d_model, | ||
| int | aligned_embed_dim, | ||
| float | eps | ||
| ) |
Definition at line 144 of file rmsnorm_q8_k_fused.c.
References block_q8_K::bsums, block_q8_K::d, QK_K, and block_q8_K::qs.