Skip to content

Commit

Permalink
Add comment related to .complete
Browse files Browse the repository at this point in the history
Signed-off-by: Kelly A <kellyaa@users.noreply.github.com>
  • Loading branch information
kellyaa committed Jun 6, 2024
1 parent e736417 commit c7e00e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions caikit/runtime/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@ def main() -> int:
future = train(module, wait=True, **train_kwargs)
info = future.get_info()
if info.status == TrainingStatus.COMPLETED:
# The .complete file indicates all model files have completed
# being written to the filesystem
complete_path = os.path.join(args.save_path, ".complete")
log.info(f"Creating completion file at: {complete_path}")
Path(complete_path).touch()
Expand Down

0 comments on commit c7e00e9

Please sign in to comment.