Skip to content

Commit

Permalink
Merge pull request #36 from modal-labs/erikbern/post-training-steps
Browse files Browse the repository at this point in the history
Make the post-training steps a bit more clear
  • Loading branch information
erikbern authored Mar 11, 2024
2 parents 8cfa429 + adf0fe5 commit 08e99cb
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 08e99cb

Please sign in to comment.