calib

Modules

modelopt.torch.quantization.calib.bias

Calibrator that returns the bias of all collected tensors.

modelopt.torch.quantization.calib.calibrator

Abstract base class for calibrators.

modelopt.torch.quantization.calib.histogram

Histogram based calibrators.

modelopt.torch.quantization.calib.max

Calibrator that returns the absolute max of all collected tensors.

modelopt.torch.quantization.calib.mse

Calibrator that returns the MSE amax of all collected tensors.

modelopt.torch.quantization.calib.nvfp4_act_max

Calibrator for the NVFP4 activation global scale (nvfp4_act_max).

Calibrator classes.

modelopt.torch.quantization.calib provides Calibrator classes that collect data statistics and determine modelopt.torch.quantization parameters.