pub fn quantize_model_weights(
config_json: String,
layers: impl IntoIterator<Item = (String, Vec<f32>, Vec<usize>, Option<Vec<f32>>)>,
) -> QuantizedModelExpand description
Quantise a named list of FP32 weight tensors.
This function takes the flat (name, weights, shape, bias) representation
that would be extracted from a SensorLMModel and produces a
QuantizedModel.
ยงArguments
config_jsonโ JSON string of the model config.layersโ Iterator of(name, fp32_weights, shape, optional_bias).