Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modelopt/torch/quantization/model_calib.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@ def mse_calibrate(
step_size: Step size for amax search (default: 0.1).
start_multiplier: Starting multiplier for amax search (default: 0.25).
stop_multiplier: Ending multiplier for amax search (default: 4.0).
fp8_scale_sweep: If True, sweep over all 128 possible FP8 E4M3 scale values
fp8_scale_sweep: If True, sweep over all 126 valid FP8 E4M3 scale values
for NVFP4 per-block quantization instead of using multipliers.
This is specifically designed for optimizing the FP8-quantized
per-block scales in NVFP4 format (default: False).
per-block scales in NVFP4 format.

See :class:`MseCalibConfig <modelopt.torch.quantization.config.MseCalibConfig>` for
details on the remaining arguments.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ def _fake_quantize(self, inputs):
inputs,
None, # scale
None, # scale_fp8_quant_amax
False, # skip_scale_quant
True, # skip_scale_quant
inputs.dtype, # out_dtype
self._pass_through_bwd, # pass_through_bwd
amax, # amax
Expand Down
Loading