Repository navigation
[doc][train] Drop stale RAY_TRAIN_V2_ENABLED=1 instructions - #67510
Merged
dstrodtman merged 1 commit intoOct 28, 2026
Merged
Conversation
Problem: - Ray Train V2 is the default since Ray 2.51. - Some Train docs still tell readers to set RAY_TRAIN_V2_ENABLED=1. - The rendered report-callback snippet on the monitoring page asserts that the variable equals "1". Copied as-is, it raises KeyError. Change: - Drop the variable from the multi-node torchrun commands in the local mode guide. - Say that V2 is the default in the V1 API page note, and point to RAY_TRAIN_V2_ENABLED=0 for the deprecated V1 API. - Remove the lines that set or assert the variable in the fault_tolerance, metric_logging and train_tune_interop doc code. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Marwan Sarieddine <[email protected]>
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the documentation and example code to reflect that Ray Train V2 is now enabled by default starting in Ray 2.51, removing unnecessary environment variable configurations. Feedback on the changes suggests avoiding contractions like 'It's' in the documentation to maintain a formal tone.
pseudo-rnd-thoughts
approved these changes
Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
is_v2_enabled()defaults toTrue.RAY_TRAIN_V2_ENABLED=1."1". If you copy it as-is, it raisesKeyError.Change
local-mode.md: dropRAY_TRAIN_V2_ENABLED=1from the two multi-nodetorchruncommands. The single-node command on the same page already has none.deprecated.rst: say that V2 is the default since 2.51, and point toRAY_TRAIN_V2_ENABLED=0for the deprecated V1 API.doc_code/{fault_tolerance,metric_logging,train_tune_interop}.py: remove the lines that set or assert the variable.Decisions to confirm
=0V1 opt-outs alone (dl_guide.py,tuner.py,hvd_trainer.py,horovod.md, the V1 doctests indoc/BUILD.bazel).Related: follows #66895. The FSDP2 example page and several other templates come from
anyscale/templatesand still set the flag. They are not part of this PR.Tested:
metric_logging.pyandtrain_tune_interop.pyrun cleanly with the variable unset. Infault_tolerance.pyevery section runs up to therelax_collectives_on_preemptionblock, which needs master (#66225); the test venv had Ray 2.59.🤖 Generated with Claude Code