docstr: Test that loading the model with the config is equivalent
docstr_tok: ["Test","that","loading","the","model","with","the","config","is","equivalent"]
code: def test_generate_quality_config(self):
      r"""
      Test that loading the model with the config is equivalent
      """
      bnb_config = BitsAndBytesConfig()
      bnb_config.load_in_8bit = True
  
      model_8bit_from_config = AutoModelForCausalLM.from_pretrained(
          self.model_name,
          quantization_config=bnb_config,
          device_map="auto",
      )
  
      encoded_input = self.tokenizer(
          self.input_text, return_tensors="pt"
      )
      output_sequences = model_8bit_from_config.generate(
          input_ids=encoded_input["input_ids"].to(0), max_new_tokens=10
      )
  
      self.assertEqual(
          self.tokenizer.decode(
              output_sequences[0], skip_special_tokens=True
          ),
          self.EXPECTED_OUTPUT,
      )
  
imports: import gc
  import importlib.metadata
  import tempfile
  import unittest
  from packaging import version
  from transformers import AutoConfig, AutoModel, AutoModelForCausalLM, AutoModelForSeq2SeqLM, AutoModelForSequenceClassification, AutoTokenizer, BitsAndBytesConfig, pipeline
  from transformers.testing_utils import is_accelerate_available, is_torch_available, require_accelerate, require_bitsandbytes, require_torch, require_torch_gpu, require_torch_multi_gpu, slow
label_desc: Use image node_id 11 for calling the MixedInt8Test obj's underlying member method code with example usage: obj.test_generate_quality_config() without return types