Skip to content

Commit

Permalink
Merge pull request foundation-model-stack#160 from anhuong/fix-comple…
Browse files Browse the repository at this point in the history
…te-file

fix: check if output dir exists
  • Loading branch information
anhuong authored May 17, 2024
2 parents d515f78 + 7fd101b commit 63aed35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/launch_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ def main():
shutil.copy(train_logs_filepath, original_output_dir)
# The .complete file will signal to users that we are finished copying
# files over
Path(os.path.join(original_output_dir, ".complete")).touch()
if os.path.exists(original_output_dir):
Path(os.path.join(original_output_dir, ".complete")).touch()
except Exception as e: # pylint: disable=broad-except
logging.error(traceback.format_exc())
write_termination_log(
Expand Down

0 comments on commit 63aed35

Please sign in to comment.