class_docstr: Mixin class for quantization config
class_docstr_tok: ["Mixin","class","for","quantization","config"]
docstr: Instantiates a [`QuantizationConfigMixin`] from a Python dictionary of parameters.
  
  Args:
      config_dict (`Dict[str, Any]`):
          Dictionary that will be used to instantiate the configuration object.
      return_unused_kwargs (`bool`,*optional*, defaults to `False`):
          Whether or not to return a list of unused keyword arguments. Used for `from_pretrained` method in
          `PreTrainedModel`.
      kwargs (`Dict[str, Any]`):
          Additional parameters from which to initialize the configuration object.
  
  Returns:
      [`QuantizationConfigMixin`]: The configuration object instantiated from those parameters.
docstr_tok: ["Instantiates","a","[","`","QuantizationConfigMixin","`","]","from","a","Python","dictionary","of","parameters",".","Args",":","config_dict","(","`","Dict","[","str",",","Any","]","`",")",":","Dictionary","that","will","be","used","to","instantiate","the","configuration","object",".","return_unused_kwargs","(","`","bool","`",",","*","optional","*",",","defaults","to","`","False","`",")",":","Whether","or","not","to","return","a","list","of","unused","keyword","arguments",".","Used","for","`","from_pretrained","`","method","in","`","PreTrainedModel","`",".","kwargs","(","`","Dict","[","str",",","Any","]","`",")",":","Additional","parameters","from","which","to","initialize","the","configuration","object",".","Returns",":","[","`","QuantizationConfigMixin","`","]",":","The","configuration","object","instantiated","from","those","parameters","."]
code: def from_dict(cls, config_dict, return_unused_kwargs=False, **kwargs):
      """
      Instantiates a [`QuantizationConfigMixin`] from a Python dictionary of parameters.
  
      Args:
          config_dict (`Dict[str, Any]`):
              Dictionary that will be used to instantiate the configuration object.
          return_unused_kwargs (`bool`,*optional*, defaults to `False`):
              Whether or not to return a list of unused keyword arguments. Used for `from_pretrained` method in
              `PreTrainedModel`.
          kwargs (`Dict[str, Any]`):
              Additional parameters from which to initialize the configuration object.
  
      Returns:
          [`QuantizationConfigMixin`]: The configuration object instantiated from those parameters.
      """
  
      config = cls(**config_dict)
  
      to_remove = []
      for key, value in kwargs.items():
          if hasattr(config, key):
              setattr(config, key, value)
              to_remove.append(key)
      for key in to_remove:
          kwargs.pop(key, None)
  
      if return_unused_kwargs:
          return config, kwargs
      else:
          return config
  
imports: import copy
  import importlib.metadata
  import json
  import os
  from dataclasses import dataclass
  from enum import Enum
  from typing import Any, Dict, List, Optional, Union
  from packaging import version
  from ..utils import is_auto_awq_available, is_torch_available, logging
label_desc: Use image node_id 1 for calling the QuantizationConfigMixin obj's underlying member method code with example usage: obj.from_dict(cls, config_dict, return_unused_kwargs) and returns: config,  kwargs, config