[bnb] Let's make the daily CI green 🍏 (#21597)

* fix bnb slow test

* make fixup
This commit is contained in:
Younes Belkada 2023-02-13 16:18:50 +01:00 committed by GitHub
parent 24273268b7
commit 1666c42f0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,9 @@ class MixedInt8Test(BaseMixedInt8Test):
super().setUp()
# Models and tokenizer
self.model_fp16 = AutoModelForCausalLM.from_pretrained(self.model_name, torch_dtype="auto", device_map="auto")
self.model_fp16 = AutoModelForCausalLM.from_pretrained(
self.model_name, torch_dtype=torch.float16, device_map="auto"
)
self.model_8bit = AutoModelForCausalLM.from_pretrained(self.model_name, load_in_8bit=True, device_map="auto")
def tearDown(self):