Skip to content

llmcompressor.modifiers.logarithmic_equalization

Modules:

Classes:

LogarithmicEqualizationModifier

LogarithmicEqualizationModifier(**kwargs)

Bases: SmoothQuantModifier

.. deprecated:: LogarithmicEqualizationModifier is deprecated and will be removed in a future release. Use SmoothQuantModifier with algorithm="log_equalization" instead::

    SmoothQuantModifier:
      algorithm: log_equalization
      mappings: [...]

Implements the Logarithmic Equalization Algorithm from https://arxiv.org/abs/2308.15987. This modifier is now an alias for SmoothQuantModifier(algorithm="log_equalization").

Source code in src/llmcompressor/modifiers/logarithmic_equalization/base.py
def __init__(self, **kwargs):
    warnings.warn(
        "LogarithmicEqualizationModifier is deprecated and will be removed in a "
        "future release. Use SmoothQuantModifier with "
        "algorithm='log_equalization' instead.",
        DeprecationWarning,
        stacklevel=2,
    )
    kwargs.setdefault("algorithm", "log_equalization")
    super().__init__(**kwargs)