Skip to content
New issue

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

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

Already on GitHub? # to your account

[train v2+tune] Propagate Train v2 feature flag from Tune driver to Train driver #49519

Merged

Conversation

justinvyu
Copy link
Contributor

Why are these changes needed?

To use the new revamped Ray Train proposed in ray-project/enhancements#57, users should set the RAY_TRAIN_V2_ENABLED=1 feature flag environment variable on their job driver. However, if using Ray Tune to launch Ray Train jobs, this environment variable does not get propagated from the driver process to the Ray actor that is now acting as the Ray Train driver process. This PR propagates this environment variable automatically.

Signed-off-by: Justin Yu <justinvyu@anyscale.com>
@justinvyu justinvyu changed the title [train+tune] Propagate Train v2 feature flag from Tune driver to Train driver [train v2+tune] Propagate Train v2 feature flag from Tune driver to Train driver Jan 1, 2025
@justinvyu justinvyu enabled auto-merge (squash) January 3, 2025 22:53
@github-actions github-actions bot added the go add ONLY when ready to merge, run all tests label Jan 3, 2025
…_revamp/propagate_trainv2_env_var

Signed-off-by: Justin Yu <justinvyu@anyscale.com>
@github-actions github-actions bot disabled auto-merge January 4, 2025 00:47
@justinvyu justinvyu merged commit 8a52aa0 into ray-project:master Jan 6, 2025
5 checks passed
@justinvyu justinvyu deleted the tune_revamp/propagate_trainv2_env_var branch January 6, 2025 17:57
roshankathawate pushed a commit to roshankathawate/ray that referenced this pull request Jan 7, 2025
…rain driver (ray-project#49519)

To use the new revamped Ray Train proposed in
ray-project/enhancements#57, users should set
the `RAY_TRAIN_V2_ENABLED=1` feature flag environment variable on their
job driver. However, if using Ray Tune to launch Ray Train jobs, this
environment variable does not get propagated from the driver process to
the Ray actor that is now acting as the Ray Train driver process. This
PR propagates this environment variable automatically.

Signed-off-by: Justin Yu <justinvyu@anyscale.com>
roshankathawate pushed a commit to roshankathawate/ray that referenced this pull request Jan 9, 2025
…rain driver (ray-project#49519)

To use the new revamped Ray Train proposed in
ray-project/enhancements#57, users should set
the `RAY_TRAIN_V2_ENABLED=1` feature flag environment variable on their
job driver. However, if using Ray Tune to launch Ray Train jobs, this
environment variable does not get propagated from the driver process to
the Ray actor that is now acting as the Ray Train driver process. This
PR propagates this environment variable automatically.

Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Roshan Kathawate <roshankathawate@gmail.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
go add ONLY when ready to merge, run all tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants