docstr: Overwrite this method in subclass to define how to quantize your model for quantization
docstr_tok: ["Overwrite","this","method","in","subclass","to","define","how","to","quantize","your","model","for","quantization"]
code: def quantize(
      self,
      save_dir: Union[str, Path],
      file_prefix: Optional[str] = None,
      **kwargs,
  ):
      """Overwrite this method in subclass to define how to quantize your model for quantization"""
      raise NotImplementedError(
          "Overwrite this method in subclass to define how to quantize your model for quantization"
      )
  
file_path: optimum/optimum/quantization_base.py
imports: import logging
  from abc import ABC, abstractmethod
  from pathlib import Path
  from typing import Optional, Union
label_desc: Use image node_id 2 for calling the OptimumQuantizer obj's underlying member method code with example usage: obj.quantize(save_dir, file_prefix) without return types