Optimum documentation

Optimization

You are viewing v1.2.1 version. A newer version v1.23.3 is available.
Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Optimization

IncOptimizer

class optimum.intel.IncOptimizer

< >

( model: typing.Union[transformers.modeling_utils.PreTrainedModel, torch.nn.modules.module.Module] quantizer: typing.Optional[neural_compressor.experimental.quantization.Quantization] = None pruner: typing.Optional[neural_compressor.experimental.pruning.Pruning] = None )