Skip to content

Commit

Permalink
make clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
irenedea committed Oct 21, 2024
1 parent c236c63 commit bd749ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer/callbacks/checkpoint_saver.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,8 @@ def __init__(
if local_folder == '':
local_folder = '.'

if backend != '': # If we are uploading to a remote path, we use a temporary directory to save local checkpoints.
is_remote_folder = backend != ''
if is_remote_folder: # If we are uploading to a remote path, we use a temporary directory to save local checkpoints.
local_folder = os.path.join(tempfile.mkdtemp(), local_folder)

filename = str(filename)
Expand Down

0 comments on commit bd749ea

Please sign in to comment.