Skip to content

Commit

Permalink
fix fix fix
Browse files Browse the repository at this point in the history
  • Loading branch information
milocress committed Jan 10, 2024
1 parent 433b616 commit 62015a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/callbacks/test_hf_checkpointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def assert_checkpoint_saves_to_uri(
with patch('logging.Logger.info', dummy_log_info(logs)):
my_checkpointer = HuggingFaceCheckpointer(
save_folder=uri, save_interval=dummy_save_interval)
my_checkpointer.remote_ud.upload_file = dummy_upload_file
if my_checkpointer.remote_ud is not None:
my_checkpointer.remote_ud.upload_file = dummy_upload_file
my_checkpointer._save_checkpoint(dummy_state, dummy_logger)

assert any([uri_base in str(log) for log in logs])
Expand Down

0 comments on commit 62015a7

Please sign in to comment.