def get_quantization_info(model: torch.nn.Module):
    """Get the quantization info from the model."""
    if (
        hasattr(model, "quantization_method")
        and hasattr(model, "config")
        and hasattr(model.config, "quantization_config")
    ):
        return model.quantization_method, model.config.quantization_config
    return None, None
Get the quantization info from the model.
olive/common/hf/quant.py