Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the post-training steps a bit more clear #36

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}`")
Loading