-
Notifications
You must be signed in to change notification settings - Fork 3
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
Merge local and remote runs #39
Conversation
Regenerated Cargo.lock to fix some vulnerabilities Co-authored-by: Jonathan Richard <[email protected]>
If the --runner flag is specified, the run will be remote on that runner
# Conflicts: # Cargo.lock # crates/heat-sdk-cli/src/cli_commands/run/remote/training.rs # examples/guide-cli/src/main.rs
Fix problems linked to PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, see my comment on the project version argument. Feel free to apply it or not depending on what you both prefer.
(Some(_), Some(_)) => remote_run(args, context), | ||
(None, None) => local_run(args, context), | ||
(Some(_), None) => Err(anyhow::anyhow!("You must provide the project version to run on the runner with --version argument")), | ||
(None, Some(_)) => Err(anyhow::anyhow!("Project version is ignored when executing locally (i.e. no runner is defined with --runner argument")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can make it just a warning and continue executing locally.
The message can be tweaked like that:
"Project version is ignored when executing locally (i.e. no runner is defined with --runner argument). Running locally uses the current version on the local machine."
This PR merges the local and remote training commands.
It is now required for the git repo to not be dirty before packaging or running a project.
Project versions are now commit hashes instead of auto-incrementing numbers returned by heat.
Requires the corresponding PR in
heat
to be merged to work: https://github.com/tracel-ai/heat/pull/100