code: def _set_gptq_params(self, model_id, revision):
      filename = "config.json"
      try:
          if os.path.exists(os.path.join(model_id, filename)):
              filename = os.path.join(model_id, filename)
          else:
              filename = hf_hub_download(
                  model_id, filename=filename, revision=revision
              )
          with open(filename, "r") as f:
              data = json.load(f)
          self.gptq_bits = data["quantization_config"]["bits"]
          self.gptq_groupsize = data["quantization_config"][
              "group_size"
          ]
          self.gptq_desc_act = data["quantization_config"]["desc_act"]
      except Exception:
          filename = "quantize_config.json"
          try:
              if os.path.exists(os.path.join(model_id, filename)):
                  filename = os.path.join(model_id, filename)
              else:
                  filename = hf_hub_download(
                      model_id, filename=filename, revision=revision
                  )
              with open(filename, "r") as f:
                  data = json.load(f)
              self.gptq_bits = data["bits"]
              self.gptq_groupsize = data["group_size"]
              self.gptq_desc_act = data["desc_act"]
          except Exception:
              filename = "quant_config.json"
              try:
                  if os.path.exists(os.path.join(model_id, filename)):
                      filename = os.path.join(model_id, filename)
                  else:
                      filename = hf_hub_download(
                          model_id, filename=filename, revision=revision
                      )
                  with open(filename, "r") as f:
                      data = json.load(f)
                  self.gptq_bits = data["w_bit"]
                  self.gptq_groupsize = data["q_group_size"]
                  self.gptq_desc_act = data["desc_act"]
              except Exception:
                  pass
  
imports: import os
  from pathlib import Path
  from typing import List, Dict, Optional, Tuple
  from safetensors import safe_open, SafetensorError
  import torch
  from loguru import logger
  from huggingface_hub import hf_hub_download
  import json
  from text_generation_server.utils.log import log_once
label_desc: Use image node_id 15 for calling the Weights obj's underlying member method code with example usage: obj._set_gptq_params(model_id, revision) without return types