code: def to_bitsandbytes(self) -> BitsAndBytesConfig:
      return BitsAndBytesConfig(
          load_in_4bit=self.bits == 4,
          load_in_8bit=self.bits == 8,
          llm_int8_threshold=self.llm_int8_threshold,
          llm_int8_has_fp16_weight=self.llm_int8_has_fp16_weight,
          bnb_4bit_compute_dtype=self.bnb_4bit_compute_dtype,
          bnb_4bit_use_double_quant=self.bnb_4bit_use_double_quant,
          bnb_4bit_quant_type=self.bnb_4bit_quant_type,
      )
  
file_path: ludwig/ludwig/schema/llms/quantization.py
imports: import warnings
  from transformers import BitsAndBytesConfig
  from ludwig.api_annotations import DeveloperAPI
  from ludwig.schema import utils
  from ludwig.schema.metadata import LLM_METADATA
  from ludwig.schema.metadata.parameter_metadata import convert_metadata_to_json
  from ludwig.schema.utils import ludwig_dataclass
label_desc: Use image node_id 1 for calling the QuantizationConfig obj's underlying member method code with example usage: obj.to_bitsandbytes() and returns: BitsAndBytesConfig