Skip to content

[Train] [doc] Local mode user guide#57751

Merged
matthewdeng merged 23 commits intoray-project:masterfrom
xinyuangui2:local-mode-user-guide
Oct 28, 2025
Merged

[Train] [doc] Local mode user guide#57751
matthewdeng merged 23 commits intoray-project:masterfrom
xinyuangui2:local-mode-user-guide

Conversation

@xinyuangui2
Copy link
Contributor

@xinyuangui2 xinyuangui2 commented Oct 15, 2025

Description

User guide for local mode.

image image image image image

Related issues

Types of change

  • Bug fix 🐛
  • New feature ✨
  • Enhancement 🚀
  • Code refactoring 🔧
  • Documentation update 📖
  • Chore 🧹
  • Style 🎨

Checklist

Does this PR introduce breaking changes?

  • Yes ⚠️
  • No

Testing:

  • Added/updated tests for my changes
  • Tested the changes manually
  • This PR is not tested ❌ (please explain why)

Code Quality:

  • Signed off every commit (git commit -s)
  • Ran pre-commit hooks (setup guide)

Documentation:

  • Updated documentation (if applicable) (contribution guide)
  • Added new APIs to doc/source/ (if applicable)

Additional context

@xinyuangui2 xinyuangui2 requested review from a team as code owners October 15, 2025 20:25
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a user guide for local mode in Ray Train. The documentation is well-written and provides clear examples for single-process, multi-process (with torchrun), and testing scenarios. I've made a couple of minor suggestions to improve clarity and fix a style issue in the new documentation file.

xinyuangui2 and others added 2 commits October 15, 2025 13:31
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: Xinyuan <[email protected]>
cursor[bot]

This comment was marked as outdated.

Signed-off-by: xgui <[email protected]>
Signed-off-by: xgui <[email protected]>
@ray-gardener ray-gardener bot added docs An issue or change related to documentation train Ray Train Related Issue labels Oct 16, 2025
Copy link
Contributor

@TimothySeah TimothySeah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM with some suggestions

Ray Train automatically detects the torchrun environment variables and configures the distributed
training accordingly. You can access distributed training information through :func:`ray.train.get_context()`:

.. testcode::
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider moving this to a separate section that describes the behavior of various ray.train functions in local mode

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added one section at the end to list the different behaviors.

Copy link
Contributor

@matthewdeng matthewdeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love this user guide! Mostly made some suggestions around reorganization of the existing content for better flow.

cursor[bot]

This comment was marked as outdated.

Signed-off-by: xgui <[email protected]>
Signed-off-by: xgui <[email protected]>
@matthewdeng matthewdeng enabled auto-merge (squash) October 28, 2025 05:30
@github-actions github-actions bot added the go add ONLY when ready to merge, run all tests label Oct 28, 2025
@matthewdeng matthewdeng merged commit 899f47f into ray-project:master Oct 28, 2025
8 checks passed
YoussefEssDS pushed a commit to YoussefEssDS/ray that referenced this pull request Nov 8, 2025
User guide for local mode.


---------

Signed-off-by: xgui <[email protected]>
Signed-off-by: Xinyuan <[email protected]>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Timothy Seah <[email protected]>
Co-authored-by: matthewdeng <[email protected]>
landscapepainter pushed a commit to landscapepainter/ray that referenced this pull request Nov 17, 2025
User guide for local mode.


---------

Signed-off-by: xgui <[email protected]>
Signed-off-by: Xinyuan <[email protected]>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Timothy Seah <[email protected]>
Co-authored-by: matthewdeng <[email protected]>
Aydin-ab pushed a commit to Aydin-ab/ray-aydin that referenced this pull request Nov 19, 2025
User guide for local mode.

---------

Signed-off-by: xgui <[email protected]>
Signed-off-by: Xinyuan <[email protected]>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Timothy Seah <[email protected]>
Co-authored-by: matthewdeng <[email protected]>
Signed-off-by: Aydin Abiar <[email protected]>
Future-Outlier pushed a commit to Future-Outlier/ray that referenced this pull request Dec 7, 2025
User guide for local mode.

---------

Signed-off-by: xgui <[email protected]>
Signed-off-by: Xinyuan <[email protected]>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Timothy Seah <[email protected]>
Co-authored-by: matthewdeng <[email protected]>
Signed-off-by: Future-Outlier <[email protected]>
peterxcli pushed a commit to peterxcli/ray that referenced this pull request Feb 25, 2026
User guide for local mode.

---------

Signed-off-by: xgui <[email protected]>
Signed-off-by: Xinyuan <[email protected]>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Timothy Seah <[email protected]>
Co-authored-by: matthewdeng <[email protected]>
Signed-off-by: peterxcli <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs An issue or change related to documentation go add ONLY when ready to merge, run all tests train Ray Train Related Issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants