Repository navigation
[doc][train] Rename Train landing to index and hyphenate page slugs - #66883
Merged
Merged
Conversation
Pure path change for the Ray Train docs, no content edits:
- train/train.md -> train/index.md
- train/user-guides.md -> train/user-guides/index.md
- user-guides/local_mode.md -> user-guides/local-mode.md
- examples/intel_gaudi/, jax/intro_to_jax_trainer/, and
transformers/transformer_reinforcement_learning/ directories, plus
18 example pages, renamed from underscores to hyphens
Updates the inbound references (toctrees, {doc} roles, button-ref,
navbar.yml), the conf.py landing CSS hook and llms-full exclusions,
examples.yml gallery links, notebook names in Bazel targets, the TRL
release-test working_dir, and the three release/air_examples symlinks
that point at renamed notebooks. Adds a page redirect for every
renamed URL.
Signed-off-by: Douglas Strodtman <[email protected]>
Contributor
There was a problem hiding this comment.
Code Review
This pull request primarily renames various documentation files and directories under the Ray Train examples from snake_case to kebab-case, converting underscores to hyphens in notebook filenames and directory names like intel_gaudi and transformer_reinforcement_learning. It also updates all corresponding links, Bazel build configurations, Sphinx configurations, and redirect rules to ensure consistency. Additionally, the Ray Train user guides index has been restructured. The review comments correctly identify minor typographical errors, such as 'this examples uses' and 'with with', in the updated notebooks that should be corrected.
This was referenced Oct 9, 2026
ronny-anyscale
approved these changes
Oct 9, 2026
matthewdeng
approved these changes
Oct 9, 2026
elliot-barn
approved these changes
Oct 9, 2026
dstrodtman
added a commit
that referenced
this pull request
Oct 9, 2026
## Why are these changes needed? This PR applies the Ray writing-style guide and its new "Writing Ray Train docs" terms table (#66885) to the Ray Train user guides. It's one of three style-pass PRs for Ray Train, split by section. **Stacked on #66885.** Retarget it to `master` once that PR and #66883 merge. ## What changed - **Trainer and term casing:** "trainer" is lowercase in prose, with class names in code style. "Fault tolerance", "local mode", and "training worker" follow the terms table. - **Headings:** sentence case, imperatives for task headings ("Save checkpoints during training"), question headings for conceptual sections in elastic training, and "Label: Title" in place of parenthetical prefixes, such as "Deprecated: Set the local staging directory" and "PyTorch: Set the communication backend". - **Voice and wording:** removed first-person plural, passive, "will", "allows/enables", filler, and Latin abbreviations. Benefits lists in fault tolerance, checkpoints, persistent storage, and hyperparameter optimization are now prose. - **Structure:** ordered lists use `1.`, bold "Step N:" and "Option N:" pseudo-headings become headings, lead-ins, or rubrics, and a resource-leak caveat in asynchronous validation moves into a `caution`. - **Unicode punctuation:** curly quotes and em dashes are ASCII now. That includes a `param_space={...}` inline code sample that used curly quotes. - **Old URL fragments keep working.** Each reworded heading with a specific old slug gets a MyST label named after that slug, such as `(saving-checkpoints-during-training)=`. Generic two-word slugs such as `#getting-started` and `#viewing-metrics` don't get labels, because a site-wide label would claim the name. Nothing in the repo links to those. - **Fixes a broken link target:** `python/ray/air/config.py` and `python/ray/tune/tune.py` link to `persistent-storage.html#setting-the-local-staging-directory`. That fragment broke when the heading gained its "(Deprecated)" prefix. A label restores it. - **New `{rubric}` directives** replace two bold option labels inside a Transformers tab in `checkpoints.md`. Please check that they render in the preview. ## Questions for maintainers These are pre-existing claims that the pass kept as written: - `checkpoints.md`: "you can't use a temporary directory that Ray Train might delete before the upload finishes, for example from `tempfile.TemporaryDirectory`". Python deletes a `TemporaryDirectory` when its context exits. Is Ray Train the right actor, or does this mean `delete_local_checkpoint_after_upload`? - `fault-tolerance.md`: does Ray Train V2 still need `RAY_TRAIN_V2_ENABLED=1` "starting in Ray 2.43" on master? - `persistent-storage.md`: "In the preceding example, the training loop saves some artifacts to the worker's current working directory." No preceding example does that. - `hyperparameter-optimization.md`: "The next section on fault tolerance describes this further." That section doesn't mention driver snapshots to `storage_path`. - `local-mode.md`: the prose says to change only `num_workers`, but the diff also adds `use_gpu=True`. Also, "master node" matches torchrun's `MASTER_ADDR`. Keep it or write "head node"? - `elastic-training.md`: "Without a retry limit, the run exits on the first such failure" describes the `max_failures` default. Should it say "without retries"? - `using-accelerators.md`: "Get the associated devices with `get_device`" uses a plural for a function that returns one device. ## Duplicate check No open PR restyles these pages. I searched open `ray-project/ray` PRs that touch `doc/source/train/`. The only hits are #66883 (the slug renames this stack builds on) and #66885 (the Train Vale rules). ## Testing ```bash vale --output=line doc/source/train/<changed files> # from the repo root, with #66885's .vale.ini codespell <changed files> pre-commit run --files <changed files> ``` - Vale leaves only intentional alerts: acronym definitions (Google.Parens, Google.Acronyms), passives with no actor to name, "will be removed in a future release", "currently" on a temporary limitation, and spelling false positives such as "nullable", "autoencoder", and "prefetches". - A per-file check against a pre-edit snapshot confirms that code blocks, `{ref}`/`{py:*}` role targets, and URLs are unchanged. The only added `(label)=` anchors keep old heading fragments working. - `pre-commit` passed, but only the master-branch link check applied. No hook lints Markdown under `doc/source/train/`, so the hook run doesn't validate the prose. - A meaning check compared every edited block with its before text and the Ray source. A follow-up commit restores the few edits that changed a claim, and the review comment on this PR lists them. - Prose-only change: no library tests run. The Read the Docs preview is the build check. AI assistance (Claude Code) drafted these edits and ran the meaning check. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
dstrodtman
added a commit
that referenced
this pull request
Oct 9, 2026
…t enforced) (#66885) ## Why are these changes needed? This PR adds Vale terminology rules for Ray Train docs ahead of a style pass over those pages. It follows the pattern from #65239 (KubeRay), #66236 (RLlib), and #66640 (Ray Core). Every rule is warn-level and **doesn't run in CI yet**. Registering the config lets contributors run `vale doc/source/train/` by hand during the style pass. **Stacked on #66883**, which renames the Train landing page and hyphenates page slugs. The path-scoped section targets the final paths, so this PR targets that branch. Retarget it to `master` once #66883 merges. ## What's here - **`.vale/styles/Train/Terms.yml`:** case-sensitive `substitution` swaps at `level: warning`, each safe to apply without judgment, so the file sets `action: replace`. The forms follow the four concepts `train/overview.md` defines: - `train function` becomes `training function`. - `scaling config`, `run config`, and `checkpoint config` are spelled out in prose. The classes keep code style. - `finetune` and its forms become `fine-tune`. - `Train v2` becomes `Train V2`. - **`.vale/styles/Train/Capitalization.yml`:** title-cased generic nouns, such as `Fault Tolerance`, `Local Mode`, and `Worker Group`, plus `Trainer` written as the Ray Train concept. Applying any of these takes judgment, so this rule has no replace action: - Lowercasing would also drop the capital at the start of a heading or sentence, which has to stay. - A bare "Trainer" in prose is often a third-party class, such as the Lightning or Hugging Face Transformers `Trainer`. Those need code style, not lowercase. The rule's keys carry a preceding word, such as `the Trainer` and `your Trainer`, and leave the decision to a person. - **Trainer casing:** prose uses "trainer" lowercase for the concept, with class names in code style. That matches the guide's rule to lowercase generic nouns even when they name a Ray concept, the way Ray Core treats "placement group." `overview.md` capitalizes it today, so the style pass changes that page. - **Accept lists:** - `Train` gains `JAX`, `Flax`, `Optax`, `Orbax`, `TensorBoard`, `torchrun`, `allreduce`, and `resharding`. - `General` gains cross-library words and vendor names: `Trainium`, `Backblaze`, `Filestore`, `preemption(s)`, `bottleneck(ed|ing)`, `iterable(s)`, `serializable`, and `colocated`. - Casing-only fixes such as `Jax` and `Tensorboard` come from the accept list driving `Vale.Terms` rather than from a swap, so no token alerts twice. - **RLlib accept list fix:** `[Pp]y[Tt]orch` and `[Tt]ensor[Ff]low` become `PyTorch` and `TensorFlow`. Vocabularies register globally, so those bracket classes accepted `Pytorch` and `Tensorflow` in every library and silently overrode the Train vocabulary's casing. The change adds no alerts under `doc/source/rllib`. It surfaces 15 miscased brand names in prose elsewhere, across Serve, Tune, KubeRay, cluster, getting-started, and Train pages. It also flags the "Not" column of the new guide table, as intended, and one `:link:` false positive, described under Testing. - **`Ray/Brands.yml`:** adds `WandB` → `W&B`. It's case-sensitive, so the lowercase package name `wandb` doesn't match. - **`.vale.ini`:** a `[doc/source/train/**/*.{md,rst}]` section with `Vale, Google, Ray, Train`, which mirrors the Core block. - **`writing-style.md`:** a "Writing Ray Train docs" section with a terms table. Both Train rules link to it through the `ray-train-docs-style` label. The section also places a Train worker relative to a Ray Core worker process. No prose under `doc/source/train/` changes here. The style pass that fixes the alerts follows in separate PRs stacked on this one. ## Duplicate check No open PR adds Ray Train Vale rules. I searched open `ray-project/ray` PRs for `vale train` and for `writing-style.md`. The only hits are #66809, my own CI change with no Vale or style-guide edits, and #65707, a KubeRay docs change. ## Testing Commands, run from the repo root: ```bash vale --output=JSON doc/source/train/ vale --output=line doc/source/ # before and after, diffed pre-commit run --files <changed files> ``` Results with Vale 3.12.0: - **`doc/source/train/`:** total alerts go from 839 to 802. `Train.Terms` raises 5 alerts, all true positives. `Train.Capitalization` raises 29: `Trainer` concept uses, title-cased `Fault Tolerance` and `Local Mode`, and the Lightning and Transformers `Trainer` mentions that the style pass should put in code style. `Vale.Spelling` drops from 77 to 43. The rest is mostly unbackticked code and identifiers for the prose pass. No position alerts twice across `Vale.Terms`, `Vale.Spelling`, `Train.*`, `Ray.Terms`, and `Ray.Brands`. - **Rule check against the new guide table:** linting the table rows under the Train scope fires on every "Not" form except a bare `Trainer`, which the rule deliberately doesn't match. - **Other scopes:** compared alert by alert over `doc/source/rllib`, `doc/source/core`, and `doc/source/kuberay`, the accept-list entries remove 4 false positives (`serializable`, `colocated`, `JAX`, and one `Google.Parens`). The only new alerts are 5 true-positive `WandB` hits in RLlib, from the shared `Ray/Brands.yml`. Across all of `doc/source`, the RLlib accept-list fix is the only other source of new alerts. - **Known false positive:** Vale reads a sphinx-design `:link:` option as prose. `train/more-frameworks.md:43` (`:link: distributed-tensorflow-keras`) alerted on `keras` before this PR and now also alerts on `tensorflow`. A section-scoped `TokenIgnores = (:link: \S+)` didn't suppress it, so it's left as a follow-up. Five `:link:` lines exist across `doc/source`. - **pre-commit:** passed on the changed files. - **Not run locally:** the Sphinx build. The only `doc/source` change is one new section and label in `writing-style.md`. The RtD preview covers it. Prepared with AI assistance (Claude Code). Draft until the submitter has reviewed every changed line. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
dstrodtman
added a commit
that referenced
this pull request
Oct 9, 2026
## Why are these changes needed? This PR applies the Ray writing-style guide and its new "Writing Ray Train docs" terms table (#66885) to the six Ray Train getting-started guides (PyTorch, PyTorch Lightning, Hugging Face Transformers, XGBoost, JAX, LightGBM) and the two shared include fragments under `train/common/`. It's one of three style-pass PRs for Ray Train, split by section. **Stacked on #66885.** Retarget it to `master` once that PR and #66883 merge. ## What changed - **Trainer casing:** "trainer" is lowercase in prose. Class names take code style, including third-party ones: "Lightning `Trainer`" and "Transformers `Trainer`". - **Consistency across the six guides:** one H1 pattern ("Get started with distributed training using X"), comparison tabs titled "X with Ray Train" instead of "X + Ray Train", and "Deprecated `LightningTrainer`" / "Deprecated `TransformersTrainer`" tab titles. Neither class exists in `python/ray` anymore, so "Deprecating" and "New API" were stale. - **Lists:** ordered lists use `1.`, non-sequential lists are bullets, and lead-ins are complete sentences. - **Voice and wording:** removed passive, "will", "allows/enables", filler, and marketing qualifiers such as "enhanced transparency, flexibility, and simplicity". - **Fixes found during the pass:** - `acelerator="auto"` is now `accelerator="auto"` in the Lightning guide. - The XGBoost and LightGBM guides said to add `RayTrainReportCallback` "to your trainer", but the code passes it to `xgboost.train` / `lightgbm.train`. The prose now matches the code. - **Reworded headings keep their old fragments** through labels: `#what-is-jax`, `#jaxtrainer-api`, and the Transformers `#code-comparison-...` heading. The XGBoost and LightGBM "Loading data" headings are now "Load data". The old `#loading-data` fragment is too generic for a site-wide label, and nothing in the repo links to it. ## Questions for maintainers - `getting-started-pytorch-lightning.md`: the note "Note that this is incompatible with AsyncCheckpointIO" didn't name what "this" was. It now says "asynchronous checkpoint uploading", based on the reason given. Does the limitation also apply to asynchronous validation? - `getting-started-pytorch-lightning.md`: the tested versions (`1.6.5`, `2.1.2`) look stale. - `getting-started-jax.md`: "PodSlices" is kept as written. Google's docs usually say "Pod slices" or "TPU slices". ## Duplicate check No open PR restyles these pages. I searched open `ray-project/ray` PRs that touch `doc/source/train/`. The only hits are #66883 (the slug renames this stack builds on) and #66885 (the Train Vale rules). ## Testing ```bash vale --output=line doc/source/train/<changed files> # from the repo root, with #66885's .vale.ini codespell <changed files> pre-commit run --files <changed files> ``` - Vale leaves only intentional alerts: acronym definitions (Google.Parens, Google.Acronyms), passives with no actor to name, "will be removed in a future release", "currently" on a temporary limitation, and spelling false positives such as "nullable", "autoencoder", and "prefetches". - A per-file check against a pre-edit snapshot confirms that code blocks, `{ref}`/`{py:*}` role targets, and URLs are unchanged. The only added `(label)=` anchors keep old heading fragments working. - `pre-commit` passed, but only the master-branch link check applied. No hook lints Markdown under `doc/source/train/`, so the hook run doesn't validate the prose. - A meaning check compared every edited block with its before text and the Ray source. A follow-up commit restores the few edits that changed a claim, and the review comment on this PR lists them. - Prose-only change: no library tests run. The Read the Docs preview is the build check. AI assistance (Claude Code) drafted these edits and ran the meaning check. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
dstrodtman
added a commit
that referenced
this pull request
Oct 9, 2026
…#66888) ## Why are these changes needed? This PR applies the Ray writing-style guide and its new "Writing Ray Train docs" terms table (#66885) to the Ray Train landing page, overview, benchmarks, and the DeepSpeed, Horovod, Hugging Face Accelerate, and TensorFlow and Keras guides. It's one of three style-pass PRs for Ray Train, split by section. The getting-started guides and the user guides follow in their own PRs. **Stacked on #66885.** Retarget it to `master` once that PR and #66883 merge. ## What changed - **Trainer casing:** "trainer" is lowercase in prose for the Ray Train concept, and class names take code style, such as `TorchTrainer` and `TensorflowTrainer`. `overview.md` defines the concept, so it changes to match the terms table. - **Headings and sidebar titles:** sentence case, including the toctree titles on the landing page and "More frameworks". - **Voice and wording:** removed first-person plural, passive constructions, "allows/enables", filler, and marketing qualifiers. Example: the landing page drops "Ray Train is the simplest solution for distributed training", an unmeasured superlative. - **Lists and tables:** non-sequential lists are bullets, the DeepSpeed benefits list is prose, and the DeepSpeed framework table moves the user-guide links into their own column instead of parentheses. - **TensorFlow guide:** the bold "Step 1:" and "Step 2:" labels become H3 headings, and the checkpoint-loading example gets a lead-in. - **One reworded heading keeps its old fragment:** `deepspeed.md#benefits-of-using-ray-train-with-deepspeed` stays valid through a label. ## Questions for maintainers These are pre-existing claims that the pass didn't change: - `benchmarks.md`: the text says PyTorch and Ray Train perform "within 2.5%" of each other, but the 16-worker CPU row shows 430.88 s versus 475.97 s, about 9.5%. The TensorFlow "within 1%" claim is about 4.3% on its 16-worker row. - `huggingface-accelerate.md`: "the plan is to deprecate `AccelerateTrainer` in Ray 2.8" is stale. `AccelerateTrainer` no longer exists in `python/ray`. What should the migration section say? - `distributed-tensorflow-keras.md`: the checkpointing text says Ray Train saves "model weights but not models", but both examples call `model.save(... "model.keras")`. The load example also calls `json.dump` without importing `json`. ## Duplicate check No open PR restyles these pages. I searched open `ray-project/ray` PRs that touch `doc/source/train/`. The only hits are #66883 (the slug renames this stack builds on) and #66885 (the Train Vale rules). ## Testing ```bash vale --output=line doc/source/train/<changed files> # from the repo root, with #66885's .vale.ini codespell <changed files> pre-commit run --files <changed files> ``` - Vale leaves only intentional alerts: acronym definitions (Google.Parens, Google.Acronyms), passives with no actor to name, "will be removed in a future release", "currently" on a temporary limitation, and spelling false positives such as "nullable", "autoencoder", and "prefetches". - A per-file check against a pre-edit snapshot confirms that code blocks, `{ref}`/`{py:*}` role targets, and URLs are unchanged. The only added `(label)=` anchors keep old heading fragments working. - `pre-commit` passed, but only the master-branch link check applied. No hook lints Markdown under `doc/source/train/`, so the hook run doesn't validate the prose. - A meaning check compared every edited block with its before text and the Ray source. A follow-up commit restores the few edits that changed a claim, and the review comment on this PR lists them. - Prose-only change: no library tests run. The Read the Docs preview is the build check. AI assistance (Claude Code) drafted these edits and ran the meaning check. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
dstrodtman
added a commit
that referenced
this pull request
Oct 13, 2026
…#66892) ## Why are these changes needed? A maintainer triage of the Ray Train examples found 10 example pages that duplicate a getting-started guide or a user guide, or that are built on a trainer Train V2 no longer supports. This PR deletes them and redirects each URL to the page that now covers the same ground. Follows #66883 (merged), which renamed the Train pages to hyphenated slugs. Redirect targets use the post-rename paths. | Deleted page (`train/examples/...`) | Redirects to | | --- | --- | | `pytorch/torch-fashion-mnist-example` | `train/getting-started-pytorch` | | `pytorch/torch-regression-example` | `train/user-guides/data-loading-preprocessing` | | `pytorch/convert-existing-pytorch-code-to-ray-train` | the `distributing-pytorch` example | | `transformers/transformers-torch-trainer-basic` | `train/getting-started-transformers` | | `tf/tensorflow-regression-example` | `train/distributed-tensorflow-keras` | | `horovod/horovod-example` | `train/getting-started-pytorch` | | `accelerate/accelerate-example` | `train/huggingface-accelerate` | | `deepspeed/deepspeed-example` | `train/deepspeed` | | `intel-gaudi/bert` | `train/examples/intel-gaudi/resnet` | | `intel-gaudi/llama-pretrain` | `train/examples/intel-gaudi/llama` | ### What changes - **Pages and gallery:** the 10 pages, their 5 gallery cards in `train/examples.yml` (the other 5 pages had no card), and the two `llms.txt` exclusions in `conf.py` for the regression pages. - **Scripts stay.** Every `python/ray/train/examples/*.py` script these pages rendered is kept, because tests and other guides import them (`test_examples.py`, `test_gpu_examples.py`, `test_tensorflow_trainer.py`, `test_local_mode.py`, and the Horovod release tests). - **Bazel:** the CPU notebook target in `examples/pytorch/BUILD.bazel` ran only the deleted conversion notebook, so it's removed along with its `exclude` entry. The untested-notebook comment in `examples/BUILD.bazel` drops `bert` and `llama-pretrain`. - **Inbound links:** the KubeRay Fashion MNIST example now links the PyTorch getting-started guide. The data-loading guide's TorchMetrics example link points at the DeepSpeed guide, whose example scripts use TorchMetrics. The GPT-J notebook's beginner link points at the Transformers getting-started guide. - **Horovod guide:** adds a warning that `HorovodTrainer` is deprecated. Under Train V2, the default, its constructor raises `DeprecationWarning` (`python/ray/train/v2/horovod/horovod_trainer.py`). ### Redirects Each deleted page has two URLs: the old underscore slug and the hyphenated slug from #66883. Both get a rule that points straight at the final page, so no redirect chain forms. The underscore rules from #66883 are repointed in place rather than chained. That's safe here because older releases still serve the underscore pages, so a `force: false` rule never fires there, and every target exists on master. The old Ray AIR URL for the conversion notebook (`/ray-air/examples/convert_existing_pytorch_code_to_ray_air.html`) is repointed to the `distributing-pytorch` example so it doesn't chain into a deleted page. ## Verification - `rtd-redirects validate doc/redirects/current.yaml`: 0 errors, 0 warnings. - `make -C doc rtd-build` (RtD-faithful, `-W`) on the top of this stack: `build succeeded.`, zero Sphinx warnings. This branch alone, without the next PR in the stack, also builds clean. - `grep` over `doc/`, `release/`, `.buildkite/`, and `ci/` finds no remaining reference to a deleted page, its slugs, or its labels (`train-pytorch-fashion-mnist`, `transformers_torch_trainer_basic_example`, `convert-torch-to-train`, `hpu_bert_training`). The only remaining `horovod_example` hits are the kept script's importers. - `pre-commit` passes on the changed files. **Not a duplicate:** an open-PR search for these page names and for Train example deletions finds nothing else touching them. AI assistance (Claude Code) was used to prepare this change. I reviewed every changed line. ## Related issue number N/A ## Checks - [x] I've signed off every commit (DCO). - [x] Docs and doc-test Bazel changes only. No library code changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
dstrodtman
added a commit
that referenced
this pull request
Oct 13, 2026
#66894) ## Why are these changes needed? The Ray Train style-pass PRs, #66886, #66887, and #66888, flagged pre-existing problems in the pages they edited and left them as written, because a style pass shouldn't change claims. This PR fixes the ones that don't change a technical claim. Each fix is settled by the page itself, its own code sample, or its own tables. **Stacked on #66886, #66887, and #66888.** Those three PRs are siblings on `doc-1549-train-vale-style`, #66885's branch, so this PR targets that branch and starts from a merge of all three. Until they merge, the diff here includes their changes. Review only the three commits after the merge commit: - `ea20d30` getting-started guides - `af794c9` overview, framework, and example pages - `67b7b59` user guides Once the style PRs land, I'll rebase onto `master` and retarget there. ### Getting-started guides - Eight numbered lists describe components, parameters, or what a function does, not steps. They're now bullets, as the bot review on #66886 suggested: the three-component lists in the PyTorch, JAX, LightGBM, Transformers, and XGBoost guides, the `prepare_model` and `prepare_data_loader` lists, and the LightGBM `ScalingConfig` parameters. The intro lists that run from "Configure..." to "Launch..." are real sequences and stay numbered. - `getting-started-jax.md`: "PodSlices" is "Pod slices", Google's spelling, in the body and the front-matter description. ### Overview, framework, and example pages - `benchmarks.md`: "perform similarly (within 2.5%)" and "(within 1%)" are false as two-sided bounds. The page's own tables show a 9.5% gap in the PyTorch 16-worker CPU row and 4.3% in the TensorFlow one, both with Ray Train faster. The sentences now say what the tables show: Ray Train is at most 2.5% (PyTorch) and 1% (TensorFlow) slower, and faster in the CPU rows named. - `distributed-tensorflow-keras.md`: "saving model weights but not models" contradicts the sample, which calls `model.save(... "model.keras")` and stores the epoch. The load sample calls `json.dump` without importing `json`, which fails when a reader copies the block alone. - `deepspeed.md`: the `:skipif: True` skeleton used `tokenized_datasets`, `collate_fn`, `num_epochs`, `loss`, and `ray` without defining or importing them, while it defined `train_dataset` and never used it. It now passes `train_dataset` and declares the placeholders the same way it already declares `model = ...`. The runnable versions are literal-included from tested files in `python/ray/train/examples/deepspeed/`. - `examples/lightning/lightning-cola-advanced.ipynb`: "this examples uses" typo, flagged on #66883. The matching "with with" typo in the vicuna notebook isn't fixed here, because #66892 deletes that notebook. ### User guides - `persistent-storage.md`: "In the preceding example, the training loop saves some artifacts to the worker's current working directory." No preceding example does that. - `hyperparameter-optimization.md`: "The next section on fault tolerance describes this further." The next section doesn't cover driver snapshots. The link now points to the driver fault tolerance section of the fault tolerance guide, which does. - `local-mode.md`: the prose said to change only `num_workers`, but the sample's diff also sets `use_gpu=True`. "Master node" stays: the section runs `torchrun` without a Ray cluster, so "head node" would mislead. - `using-accelerators.md`: `get_device` returns one device. - `data-loading-preprocessing.md`: "Ray Data splits all datasets" becomes "Ray Train splits", matching the same page's own statement that Ray Train splits all datasets with `Dataset.streaming_split` by default. Two code comments change to match. Corrections that need Ray Train engineering to confirm are in #66895, stacked on this one. ## Related issue number None. Not a duplicate: I searched open PRs touching `doc/source/train/`. The open PRs there are this stack (#66883, #66885, #66886, #66887, #66888) and the example cleanups (#66892, #66893), which don't touch these lines. ## Checks - Docs-only. The code edits are in a `:skipif: True` skeleton, an untested sample block, and code comments. - `vale` on the changed files from the repo root: alerts only removed, none added. - `codespell` on the changed files: clean. - `doc/.claude/skills/ray-soft-wrap/scripts/softwrap.py --check` on the changed files: clean. - The notebook still parses as JSON. - Full `-W` doc build: relying on the Read the Docs preview. AI assistance (Claude Code) was used to research and draft these edits. Draft until the submitter has reviewed every changed line. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
dstrodtman
added a commit
that referenced
this pull request
Oct 13, 2026
…directs (#66893) ## Why are these changes needed? A maintainer triage of the Ray Train examples marked five examples as outdated: four LLM and detection notebooks that need a replacement, and the DreamBooth example, which needs a rebuild on current diffusers. This PR takes them off the site and points each URL at the closest current page until the replacement ships. **Stacked on #66892**, which is stacked on #66883. Merge those first. | Unpublished page (`train/examples/...`) | Temporarily redirects to | | --- | --- | | `pytorch/torch-detection` | the object detection example (`ray-overview/examples/object-detection`) | | `lightning/dolly-lightning-fsdp-finetuning` | the `pytorch-fsdp` example | | `lightning/vicuna-13b-lightning-deepspeed-finetune` | the `deepspeed_finetune` example | | `deepspeed/gptj-deepspeed-fine-tuning` | the `deepspeed_finetune` example | | `pytorch/dreambooth-finetuning` | the Train examples gallery | The Llama-2 gallery card, which linked to `doc/source/templates/04_finetuning_llms_with_deepspeed` on GitHub, is also removed. It has no docs URL to redirect. The template directory itself isn't touched here. ### What changes - **Pages and gallery:** deletes the four notebooks and removes five gallery cards (the four above with cards, plus Llama-2). - **DreamBooth is excluded, not deleted.** `conf.py` adds the page to `exclude_patterns`, so it stops building while its source, its code under `templates/05_dreambooth_finetuning/`, and its two release tests (`air_example_dreambooth_finetuning`, `air_example_dreambooth_finetuning_lora`) stay in place for the rebuild. Republishing means removing the exclusion and the two temporary redirects. - **Inbound links:** `ray-overview/use-cases.md` now links the object detection example. The Tune Lightning example drops its dolly link. The Accelerate guide drops its Llama-2 `seealso`. The DeepSpeed guide's "Run DeepSpeed with Other Frameworks" table listed only the three removed examples, so it becomes a sentence linking the Accelerate, Transformers, and Lightning guides. - **Bazel:** the two dolly and vicuna `exclude` entries in `examples/lightning/BUILD.bazel`, and the GPT-J note in `examples/BUILD.bazel`. ### Release tests (please review, @ray-project/ray-train) Removes the three manual-frequency release tests that only ran the deleted notebooks, with their `release/air_examples/` working directories and BYOD setup scripts: - `air_example_gptj_deepspeed_fine_tuning` (`byod_gptj_test.sh`) - `air_example_dolly_v2_lightning_fsdp_finetuning` (`byod_dolly_test.sh`) - `air_example_vicuna_13b_lightning_deepspeed_finetuning` (`byod_vicuna_test.sh`) No other release test, BUILD file, or CI config references those directories or scripts. Release tests don't run on premerge, so CI can't confirm this part. ### Redirects Each page gets two rules, one for the old underscore slug and one for the hyphenated slug from #66883, both pointing at the final target, so no chain forms. Every one of the 10 rules carries `description: "Temporary: repoint when the replacement or rebuilt example ships"`, so `grep Temporary doc/redirects/current.yaml` finds them when the new examples land. ## Verification - `rtd-redirects validate doc/redirects/current.yaml`: 0 errors, 0 warnings. - `make -C doc rtd-build` (RtD-faithful, `-W`) on this branch: `build succeeded.`, zero Sphinx warnings. `train/examples/pytorch/` now emits only `pytorch-resnet-finetune.html`, confirming the DreamBooth exclusion. - `grep` over `doc/source/`, `release/`, `.buildkite/`, `ci/`, and `python/ray/train/` finds no remaining link to an unpublished page. Remaining hits are the DreamBooth template code and its kept release tests, plus comments in `.buildkite/test.rules*.txt` that describe the template directories. - `pre-commit` passes on the changed files. **Not a duplicate.** Two older open PRs edit these notebooks: #62580 fixes the dolly and vicuna release-test dependencies, and #63342 swaps dolly for a Pythia example and moves the Train release tests to manual. This PR deletes those notebooks and their tests, so both would need a rebase or would no longer apply. Draft #66880 also edits `release_tests.yaml`, but not these three entries. AI assistance (Claude Code) was used to prepare this change. I reviewed every changed line. ## Related issue number N/A ## Checks - [x] I've signed off every commit (DCO). - [x] Docs, doc-test Bazel, and release-test config changes. No library code changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
dstrodtman
added a commit
that referenced
this pull request
Oct 14, 2026
…page slugs (#67015) ## Description This is the path-only first step of tidying the Ray Tune docs layout, matching the earlier Ray Data, Ray Core, and Ray Train renames (#66352, #66883). It changes paths only, with no content edits. The tutorials hub becomes `index`, the PBT visualization subtree gets its own landing, and underscore slugs become hyphens. Paths below are relative to `doc/source/tune/`: - `tutorials/overview.md` → `tutorials/index.md` - `tutorials/tune_get_data_in_and_out.md` → `tutorials/tune-get-data-in-and-out.md` - `examples/pbt_visualization/` → `examples/pbt-visualization/`, with `pbt_visualization.ipynb` → `index.ipynb` and `pbt_visualization_utils.md` → `pbt-visualization-utils.md` - 13 example notebooks under `examples/`, such as `pbt_guide.ipynb` → `pbt-guide.ipynb` and `tune_analyze_results.ipynb` → `tune-analyze-results.ipynb` - 24 example script pages under `examples/includes/`, such as `tune_basic_example.md` → `tune-basic-example.md` Out of scope: `api/` pages, and absolute `docs.ray.io` URLs in templates and source-tree files, which the redirects keep working. ### What else moves with the files - **Inbound references:** toctrees (including one inside a `pbt-guide.ipynb` Markdown cell), `{doc}`/`:doc:` roles, and relative Markdown links across the Tune pages, `ray-contribute/docs.md`, and the deprecated Train HPO guide. - **Docstrings (please check, @ray-project/ray-tune):** three `:doc:` refs that autodoc renders, in `python/ray/tune/result_grid.py` and `python/ray/tune/schedulers/resource_changing_scheduler.py`. Without them the docs build fails under `-W`. - **`conf.py`:** the llms exclusion for the PBT visualization helper page. - **Bazel:** the notebook `exclude` list in `doc/source/tune/examples/BUILD.bazel` (`pbt-ppo-example`, `pbt-transformers`, `bohb-example`). Missing these would start testing notebooks CI can't run. Target names are unchanged. - **The PBT helper module keeps its name.** `pbt_visualization_utils.py` stays, because the notebook imports it as a sibling module. Only the rendered page and the directory are renamed. ### Redirects `doc/redirects/current.yaml` gets 41 version-less `page` rules, one per renamed URL. They sit ahead of the `/tune/examples/*` catch-all. Existing rules that point at old paths stay as they are, because older releases still serve those paths. - `rtd-redirects validate`: 0 errors, 0 warnings. Chain notes went from 203 to 246, from the expected two-hop paths. - `rtd-redirects simulate --prefix /tune/` against master (local build), latest, releases-2.50.0, and releases-2.40.0: **0 regressions, 0 wrong landings, 0 new loops on every version.** - master hop histogram: `{0: 612, 1: 322, 2: 81, 3: 7, 4: 1}`. No `/tune/` URL needs 2+ hops. - Each of the 41 old URLs reaches its new page on master in one hop. ### Rename detection All 46 files show as git renames. The few with a nonzero delta (at most 6 lines) are pages whose own references to other renamed pages were updated. ## Related issues None. ## Additional information **Verification** - `make -C doc rtd-build` (RtD-faithful, `-W`): `build succeeded.`, zero Sphinx warnings. - No remaining doc-source references to the old paths. What's left: absolute URLs (covered by redirects), Python module and source-file names, in-page anchor IDs, and a CI unit-test fixture that uses `ax_example` as sample data. - Pre-commit passed. **AI assistance.** This change was prepared with Claude Code. I reviewed the diff and ran the checks above. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Why are these changes needed?
This is the path-only first step of tidying the Ray Train docs layout, matching the earlier Ray Data and Ray Core renames. It changes paths only, with no content edits. The Train landing page becomes
index.md, the user-guides hub moves inside its own directory, and underscore slugs become hyphens:train/train.md→train/index.mdtrain/user-guides.md→train/user-guides/index.mdtrain/user-guides/local_mode.md→train/user-guides/local-mode.mdexamples/intel_gaudi/→examples/intel-gaudi/(includingllama_pretrain→llama-pretrain),examples/jax/intro_to_jax_trainer/→intro-to-jax-trainer/,examples/transformers/transformer_reinforcement_learning/→transformer-reinforcement-learning/accelerate/,deepspeed/,horovod/,lightning/,pytorch/,tf/, andtransformers/, with underscores swapped for hyphensWhat else moves with the files
{doc}roles, thebutton-refon the getting-started page, the rootindex.mdtoctree, andnavbar.yml.conf.py: thetrain/trainpage-name check that loadscss/ray-train.css(otherwise the landing page silently loses its styling), and the two llms-full exclusions for the regression examples.train/examples.yml: gallerylink:entries.exclude/includelists inexamples/lightning/BUILD.bazelandexamples/pytorch/BUILD.bazel, the//doc:pytorch_resnet_finetunesource path indoc/BUILD.bazel, and the untested-notebook comment inexamples/BUILD.bazel. Target names are unchanged. Notebook-derived test targets pick up the new filenames.transformers_reinforcement_learningworking_dirinrelease/release_tests.yamlpoints at the renamed directory.release/air_examples/(gptj, vicuna, dolly) now point at the renamed notebooks. The link names stay the same, so thetest_myst_doc.py --pathinvocations inrelease_tests.yamldon't change.Out of scope: absolute
docs.ray.ioURLs in source-tree READMEs, KubeRay pages, and templates. The redirects keep them working.deprecated-user-guides/,api/, and the_collections/Train examples are also out of scope.Redirects
doc/redirects/current.yamlgets 28 version-lesspagerules, one per renamed URL. They sit ahead of the/train/examples/*catch-all. Existing rules that point at old paths stay as they are, because older releases still serve those paths.rtd-redirects validate: 0 errors, 0 warnings. Chain notes went from 183 to 214, from the expected two-hop paths.rtd-redirects simulate --prefix /train/against master (local build), latest, releases-2.50.0, and releases-2.40.0: 0 regressions, 0 wrong landings, 0 new loops on every version.{0: 365, 1: 305, 2: 76, 3: 7, 4: 1}. 7 URLs fixed.moved with no rename mappingentries (/train/user-guides.html,/train/user_guide.html) both land on/train/user-guides/index.htmlas intended.Rename detection
Every page shows as a git rename with zero or near-zero content delta. The exception is
user-guides.md→user-guides/index.md. It's a 28-line toctree hub, and rebasing its 14 entries (user-guides/checkpoints→checkpoints) drops it below git's default 50% similarity, so it shows as delete-plus-add.git log --follow -M30%still traces it.Verification
make -C doc rtd-build(RtD-faithful,-W):build succeeded., zero Sphinx warnings.train/index.htmlloadsray-train.css.Related issue number
N/A
Checks
🤖 Generated with Claude Code