nvflare.app_opt.pt.quantization.ada_quant module
- class AdaQuantizer(weight: float = 0.01, compression: bool = True)[source]
Bases:
object- Implements the ADAQUANT quantization scheme,
for further details refer to the paper https://arxiv.org/abs/2208.05174
- Parameters:
weight – a hyperparameter for the trade-off between quantization size and error
compression – whether to compress the resulting integer quantized tensor