llmcompressor.transformers.utils
Utilities for applying compression algorithms to Hugging Face transformers flows
Modules:
-
helpers–Helper variables and functions for integrating LLM Compressor with
Functions:
-
is_model_ct_quantized_from_path–Determine if model from path is quantized based
is_model_ct_quantized_from_path
Determine if model from path is quantized based on the config
Parameters:
-
path(str) –path to the model or HF stub
Returns:
-
bool–True if config contains quantization_config from the given path