docstr: A simple test to check if the model succesfully stores the original dtype
docstr_tok: ["A","simple","test","to","check","if","the","model","succesfully","stores","the","original","dtype"]
code: def test_original_dtype(self):
      r"""
      A simple test to check if the model succesfully stores the original dtype
      """
      self.assertTrue(
          hasattr(self.model_8bit.config, "_pre_quantization_dtype")
      )
      self.assertFalse(
          hasattr(self.model_fp16.config, "_pre_quantization_dtype")
      )
      self.assertTrue(
          self.model_8bit.config._pre_quantization_dtype
          == torch.float16
      )
  
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 6 for calling the MixedInt8Test obj's underlying member method code with example usage: obj.test_original_dtype() without return types