Skip to content

Commit

Permalink
Update tests/utils/test_modeling_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
amyeroberts committed Jul 19, 2024
1 parent 55a87a7 commit 5b6ee7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utils/test_modeling_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ def test_checkpoint_variant_local_sharded_safe(self):
for p1, p2 in zip(model.parameters(), new_model.parameters()):
self.assertTrue(torch.allclose(p1, p2))

def test_checkpoint_safetensors(self):
def test_checkpoint_loading_only_safetensors_available(self):
# Test that the loading behaviour is as expected when only safetensor checkpoints are available
# - We can load the model with use_safetensors=True
# - We can load the model without specifying use_safetensors i.e. we search for the available checkpoint,
Expand Down

0 comments on commit 5b6ee7b

Please sign in to comment.