Skip to content
fn

quantize_op

int quantize_op(const int & w, int group_size, int bits)

Python wrappers

Public Python APIs implemented by this engine symbol.

Quantize a float weight to MLX group-wise affine. Returns {packed_weight (I32-tagged uint32), scales (F32), biases (F32)}.