Skip to content

Commit e708f8f

Browse files
committed
update test
1 parent 7f75ba8 commit e708f8f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_modeling_common.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2364,7 +2364,9 @@ def test_disk_offload_bin(self):
23642364
max_size = int(self.model_split_percents[0] * model_size)
23652365
max_memory = {0: max_size, "cpu": max_size}
23662366
# This errors out cause it's missing an offload folder
2367-
new_model = model_class.from_pretrained(tmp_dir, device_map="auto", max_memory=max_memory)
2367+
new_model = model_class.from_pretrained(
2368+
tmp_dir, device_map="auto", max_memory=max_memory, use_safetensors=False
2369+
)
23682370

23692371
max_size = int(self.model_split_percents[1] * model_size)
23702372
max_memory = {0: max_size, "cpu": max_size}

0 commit comments

Comments
 (0)