compressed_tensors.quantization.quant_metadata
Classes:
-
QuantizationMetadata–Container class for metadata related to quantization
QuantizationMetadata
Container class for metadata related to quantization
Methods:
-
all_qparam_names–All quantization parameter names that might be registered
-
clear_all_qparams–Remove all parameters related to quantization that might have
-
clear_quantization–Remove all artifacts of quantization from module, non-recursively.
all_qparam_names
staticmethod
All quantization parameter names that might be registered onto a module during lifecycle (excluding serialized parameters)
Source code in src/compressed_tensors/quantization/quant_metadata.py
clear_all_qparams
classmethod
Remove all parameters related to quantization that might have been registered onto a module previously in lifecycle (excluding serialized parameters)
Parameters:
-
module(Module) –Module to clear
Source code in src/compressed_tensors/quantization/quant_metadata.py
clear_quantization
classmethod
Remove all artifacts of quantization from module, non-recursively. Artifacts include any qparams, quantization_scheme, or wrapped forward method that might have been altered previously in lifecycle.
quantization_status and quantization_enabled are left unchanged.
Parameters:
-
module(Module) –Module to clear