-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[AIR/train] Use new Train API #25735
Conversation
|
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.
Thanks @Yard1 lgtm overall!
Please ping again when this is ready to merge!
@@ -2,14 +2,14 @@ | |||
from typing import Dict |
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.
+1 we should make sure to dedup and move over the AIR examples to train in a follow up
@amogkam it's ready to merge! |
Uses the new AIR Train API for examples and tests. The `Result` object gets a new attribute - `log_dir`, pointing to the Trial's `logdir` allowing users to access tensorboard logs and artifacts of other loggers. This PR only deals with "low hanging fruit" - tests that need substantial rewriting or Train user guide are not touched. Those will be updated in followup PRs. Tests and examples that concern deprecated features or which are duplicated in AIR have been removed or disabled. Requires ray-project#25943 to be merged in first Signed-off-by: Stefan van der Kleij <[email protected]>
This PR replaces legacy API calls to `train.` with AIR `session.` in Train code, examples and docs. Depends on ray-project#25735 Signed-off-by: Stefan van der Kleij <[email protected]>
Why are these changes needed?
Uses the new AIR Train API for examples and tests.
The
Result
object gets a new attribute -log_dir
, pointing to the Trial'slogdir
allowing users to access tensorboard logs and artifacts of other loggers.This PR only deals with "low hanging fruit" - tests that need substantial rewriting or Train user guide are not touched. Those will be updated in followup PRs.
Tests and examples that concern deprecated features or which are duplicated in AIR have been removed or disabled.
Requires #25943 to be merged in first
Related issue number
Checks
scripts/format.sh
to lint the changes in this PR.