mlx_rs::nn

Function quantize

Source
pub fn quantize<M>(
    module: M,
    group_size: impl Into<Option<i32>>,
    bits: impl Into<Option<i32>>,
) -> Result<M::Quantized, M::QuantizationError>
where M: Quantizable,
Expand description

Quantize a module.

ยงParams