llmcompressor.transformers.utils
Utilities for applying sparsification algorithms to Hugging Face transformers flows
is_model_ct_quantized_from_path(path)
Determine if model from path is quantized based on the config
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path | str | path to the model or HF stub | required |
Returns:
Type | Description |
---|---|
bool | True if config contains quantization_config from the given path |