Skip to content

Commit ad2dd62

Browse files
committed
fix
1 parent e276f08 commit ad2dd62

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/models/test_modeling_common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,6 +1460,8 @@ def test_sharded_checkpoints_with_parallel_loading(self):
14601460
_, inputs_dict = self.prepare_init_args_and_inputs_for_common()
14611461
new_output = new_model(**inputs_dict)
14621462
self.assertTrue(torch.allclose(base_output[0], new_output[0], atol=1e-5))
1463+
# set to no.
1464+
os.environ["HF_ENABLE_PARALLEL_LOADING"] = "no"
14631465

14641466
@require_torch_accelerator
14651467
def test_sharded_checkpoints_device_map(self):

0 commit comments

Comments
 (0)