llmcompressor.observers.mse
Classes:
-
MovingAverageMSEObserver–Compute quantization parameters by finding the optimal min/max values which minimize
MemorylessMSEObserver
Bases: Observer
Compute quantization parameters by finding the optimal min/max values which minimize the mean of quantization error squared.
Source code in src/llmcompressor/observers/mse.py
MovingAverageMSEObserver
Bases: Observer
Compute quantization parameters by finding the optimal min/max values which minimize the mean of quantization error squared, with moving average smoothing.
Source code in src/llmcompressor/observers/mse.py
NVFP4ExpandedMSEObserver
Bases: MemorylessMSEObserver
MSE observer with defaults tuned for NVFP4 range expansion.
Searches from expand times the observed range down to
(1 - maxshrink) * expand times the observed range.
With the defaults below, this covers 1.8x down to ~0.8x of
the original per-group range in 112 search steps.
Usage::
QuantizationArgs(
...
observer="nvfp4_expanded_mse",
)