Skip to main content

dequant_q8_1

Function dequant_q8_1 

Source
pub fn dequant_q8_1(src: &[u8]) -> Result<Vec<f32>, QuantError>
Expand description

Dequantize a Q8_1 buffer into f32. Formula verified against real ggml-quants.c::dequantize_row_q8_1: identical to Q8_0 (y = q*d) – the extra s field (upstream: a precomputed per-block sum used only by ggml’s own fused SIMD dot kernels) doesn’t change the dequantized value and is intentionally unread here.