Skip to content

Commit

Permalink
Make the post-training steps a bit more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbern committed Mar 11, 2024
1 parent 594b8c6 commit adf0fe5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,14 @@ def main(
with open(config, "r") as cfg, open(data, "r") as dat:
run_name, train_handle = launch.remote(cfg.read(), dat.read())

# Write a local refernce to the location on the remote volume with the run
# Write a local reference to the location on the remote volume with the run
with open(".last_run_name", "w") as f:
f.write(run_name)

# Wait for the training run to finish.
merge_handle = train_handle.get()
merge_handle.get()

print(f"Training complete. Run tag: {run_name}")
print(f"To inspect weights, run `modal volume ls example-runs-vol {run_name}`")
print(f"To run sample inference, run `modal run -q src.inference --run-folder /runs/{run_name}`")

0 comments on commit adf0fe5

Please sign in to comment.