act_quant_inplace

Function act_quant_inplace 

Source
pub fn act_quant_inplace(x: &mut [f32])
Expand description

act_quant(x, 32, "ue8m0", e8m0, inplace=True): per block of FP8_BLOCK, scale = the power-of-two ceiling of amax / 448 (amax floored at 1e-4), values to e4m3 (RNE, clamped), then dequantised and stored back as bf16.