llmcompressor.transformers.utils
Utilities for applying sparsification algorithms to Hugging Face transformers flows
Modules:
-
helpers–Helper variables and functions for integrating LLM Compressor with
-
preprocessing_functions–Dataset preprocessing functions for text generation tasks.
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:
-
(pathstr) –path to the model or HF stub
Returns:
-
bool–True if config contains quantization_config from the given path