code: def __init__(
      self,
      q_groups=1,
      q_mixed_fp16=False,
      q_change_ratio=0.01,
      q_type=0,
      q_rounding=0,
      q_verbose=False,
      q_eigenvalue=False,
      use_quantizer_kernel=False,
      layer_num=0,
  ):
      self.q_groups = q_groups
      self.q_mixed_fp16 = q_mixed_fp16
      self.q_change_ratio = q_change_ratio
      self.q_type = q_type
      self.qsteps = 0
      self.quantize_real_ratio = 1.000
      self.q_verbose = q_verbose
      self.q_eigenvalue = q_eigenvalue
      self.use_quantizer_kernel = use_quantizer_kernel
      self.q_rounding = q_rounding
      self.layer_num = layer_num
  
file_path: H2O/h2o_flexgen/benchmark/third_party/DeepSpeed/deepspeed/runtime/quantize.py
imports: import torch
  import math
  from deepspeed.utils import logger
  from deepspeed.ops.quantizer import ds_quantizer
label_desc: Use image node_id 1 to create a new Quantizer object from inherited base classes: object with example: obj = Quantizer(q_groups, q_mixed_fp16, q_change_ratio, q_type, q_rounding, q_verbose, q_eigenvalue, use_quantizer_kernel, layer_num)