Skip to content

[doc][tune] Rename the Tune tutorials landing to index and hyphenate page slugs - #67015

Merged
dstrodtman merged 2 commits into
masterfrom
doc-1727-tune-slugs
Oct 14, 2026
Merged

dstrodtman merged 2 commits into
masterfrom
doc-1727-tune-slugs

Conversation

@dstrodtman

Copy link
Copy Markdown
Contributor

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

…page slugs

Path-only change. Renames tutorials/overview to tutorials/index, moves
examples/pbt_visualization/ to examples/pbt-visualization/ with its
notebook as index.ipynb, and swaps underscores for hyphens in the
tutorial, example notebook, and examples/includes/ page slugs. Updates
inbound references, the BUILD.bazel notebook exclusions, the conf.py
llms exclusion, and three Tune docstring :doc: refs, and adds a
redirect for every renamed URL.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman
dstrodtman requested review from a team as code owners October 14, 2026 17:04

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

Copy link
Copy Markdown
Contributor

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 systematically renames documentation files and directories under the Ray Tune documentation to use hyphens instead of underscores (e.g., converting pbt_visualization to pbt-visualization). It updates all internal references, configuration files, and build files to reflect these path changes, and adds corresponding redirect rules in doc/redirects/current.yaml. Feedback is provided to correct a minor typo ('isnecessary' to 'is necessary') in tune-search-spaces.md.

@dstrodtman dstrodtman added the go add ONLY when ready to merge, run all tests label Oct 14, 2026

@ronny-anyscale ronny-anyscale left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

L_g_t_m

@dstrodtman
dstrodtman merged commit 00a3adb into master Oct 14, 2026
6 checks passed
@dstrodtman
dstrodtman deleted the doc-1727-tune-slugs branch October 14, 2026 18:23
dstrodtman added a commit that referenced this pull request Oct 23, 2026
…enforced) (#67017)

## Why are these changes needed?

This PR adds Vale terminology rules for Ray Tune docs ahead of a style
pass over those pages. It follows the pattern from #65239 (KubeRay),
#66236 (RLlib), #66640 (Ray Core), and #66885 (Ray Train). Every rule is
warn-level and **doesn't run in CI yet**. Registering the config lets
contributors run `vale doc/source/tune/` by hand during the style pass.

Builds on #67015 (merged), which renamed the Tune tutorials landing and
hyphenated page slugs. The style pass PRs stacked on this one edit pages
under those final names.

## What's here

- **`.vale/styles/Tune/Terms.yml`:** case-sensitive `substitution` swaps
at `level: warning`, each safe to apply without judgment, so the file
sets `action: replace`. It spells out abbreviations in prose: `search
alg`, `config dict`, `trial dir`, and `experiment dir`. The arguments
and attributes keep code style.
- **`.vale/styles/Tune/Capitalization.yml`:** title-cased generic nouns,
such as `Search Algorithm`, `Trial Scheduler`, `Function API`, and
`Bayesian Optimization`, plus `Trainable` written as the 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 "Trainable" in prose is often the class, which needs code style
rather than lowercase. The rule's keys carry a preceding word, such as
`the Trainable` and `your Trainable`, and leave the decision to a
person.
- "Bayesian Optimization" sometimes names the `bayesian-optimization`
package rather than the technique.
- **"Scheduler" is deliberately not a rule.** Ray Core and Kubernetes
both have schedulers. The guide asks for "trial scheduler" where a page
discusses more than one kind, and the rule flags only the title-cased
`Trial Scheduler`.
- **Accept lists:**
- New `Tune` vocabulary: `trainable(s)`, `syncer(s)`, the search
libraries `Hyperopt`, `Optuna`, `Nevergrad`, `BayesOpt`, `ZOOpt`,
`HEBO`, and `Ax`, and the algorithm names `Hyperband`, `ASHA`, `BOHB`,
`PBT`, `PB2`, and `TPE`.
- `General` gains cross-library words: `docstring(s)`, `traceback(s)`,
`runtimes`, `errored`, and `underperforming`.
- Casing-only fixes such as `HyperOpt` and `HyperBand` come from the
accept list driving `Vale.Terms` rather than from a swap, so no token
alerts twice.
- **`.vale.ini`:** registers `Tune` on the `Vocab` line and adds a
`[doc/source/tune/**/*.{md,rst}]` section with `Vale, Google, Ray,
Tune`, which mirrors the Train block.
- **`writing-style.md`:** a "Writing Ray Tune docs" section with a terms
table. Both Tune rules link to it through the `ray-tune-docs-style`
label. The section also separates "trial" from "experiment," which the
current prose uses loosely. An experiment is one `Tuner.fit()` call, and
a trial is one run of the trainable with one hyperparameter
configuration.

No prose under `doc/source/tune/` changes here. The style pass that
fixes the alerts follows in separate PRs stacked on this one.

## Duplicate check

No open PR adds Ray Tune Vale rules. I searched open `ray-project/ray`
PRs for `vale tune`, `writing-style.md`, and Tune docs titles. The hits
are #66809, my own CI change with no Vale or style-guide edits, #65707,
a KubeRay docs change, #64137, a Ray Core NIXL guide, and #67015, the
rename this work builds on (now merged).

## Testing

Commands, run from the repo root:

```bash
vale --output=JSON doc/source/tune/
vale --output=line doc/source/   # on the base branch and on this branch, diffed
pre-commit run --files <changed files>
```

Results with Vale 3.12.0:

- **`doc/source/tune/`:** total alerts go from 1,239 to 1,437. Most of
the increase is the shared `Ray` style now applying to Tune.
`Tune.Capitalization` raises 118 alerts and `Tune.Terms` raises 1, all
in title-cased concept nouns or spelled-out abbreviations.
`Vale.Spelling` drops from 88 to 50. No position alerts twice across
`Vale.Terms`, `Vale.Spelling`, and `Tune.*`.
- **Two alert sources the style pass should handle rather than
suppress:**
- Library names in `api/suggestion.rst` headings, such as `Optuna
(tune.search.optuna.OptunaSearch)`, now alert under `Vale.Terms` on the
lowercase module segment. The module path belongs in code style.
- `tutorials/tune-lifecycle.md` alerts on `ERRORED`, which it lists as a
trial status. The source defines the status as `ERROR` (`Trial.ERROR` in
`python/ray/tune/experiment/trial.py`), so that's a doc correction.
- **Rule check against the new guide table:** linting the table rows
fires `Vale.Terms` on `HyperBand`, `HyperOpt`, `hyperopt`, and `AX` in
the "Not" column, as intended, the same as the Train table.
- **Other scopes:** compared alert by alert across all of `doc/source`
outside `tune/`, the only change is 17 removed alerts. They're false
positives on `runtimes`, `errored`, `docstring`, `traceback`, and
`Hyperopt` in Core, KubeRay, Serve, Train, observability, and
contributor pages, plus one `Google.Parens` alert in
`kuberay/user-guides/configuring-ippr.md:281` that the accept list now
shadows. No new alerts.
- **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 23, 2026
## Why are these changes needed?

This PR runs a style pass over the four Ray Tune overview pages:
`tune/index.md`, `getting-started.md`, `key-concepts.md`, and `faq.md`.
It applies Ray's writing-style guide and the Tune terms that #67017 adds
to it.

**Stacked on #67017**, which adds the Tune Vale term library and the
"Writing Ray Tune docs" section that these edits follow. Retarget this
one to `master` once #67017 merges. The Tune slug renames it builds on
(#67015) have merged.

## What changed

Most of the diff is prose:

- Second person, active voice, and present tense, with no "we", "our",
or "let's".
- Filler cut, such as "simply", "just", "Note that", and "so-called".
- Sentence-case headings and directive titles.
- Contractions, "such as" in place of "like", and complete lead-in
sentences before code blocks.
- Descriptive link text in place of "here" and "Link".

Tune terms follow the new guide section:

- Lowercase "trainable", "search space", "search algorithm",
"scheduler", and "trial scheduler" for the concepts. Class names stay in
code style.
- "function API" and "class API".
- "Bayesian optimization" for the technique.
- Project casing for "Hyperopt", "Hyperband", "MLflow", "TensorFlow",
"NumPy", and "torchvision".

`key-concepts.md` also stops putting concept names such as `trial` and
`scheduler` in code style. Those aren't identifiers.

This PR changes prose only. Every technical claim reads as it did
before, including claims that look wrong. An earlier revision corrected
several of them here. Those corrections now live in #67338, for the ones
the page itself settles, and #67339, for the ones the Tune source
settles, so this PR can merge on a docs review alone.

`ray-overview/use-cases.md`: its link text quoted the old Getting
Started title, so it now matches the new H1.

Headings changed by more than case, with no inbound slug links found in
`doc/source`:

- `getting-started.md`: every H2 is now imperative, such as "Set up a
PyTorch model to tune". `### Next steps` becomes an H2.
- `index.md`: "Citing Tune" becomes "Cite Tune".
- `faq.md`: the "(multi-tenancy)" and "(iterative experimentation)"
glosses move from the headings into the body text. Both sections keep
their labels.

Every heading with an inbound `{ref}` keeps its `(label)=` anchor. No
code block, literalinclude, label, or URL changed.

## Pre-existing claims, tracked separately

The pass kept these claims as written. They don't block this PR. #67338
and #67339 fix the ones that the page or the source settles, including
`f(x)` in the `index.md` quickstart, "remote tasks" in `faq.md`, and
"increase the search space by 5x" in `getting-started.md`. #67339 lists
the rest for a Tune engineer:

1. **`index.md`:** "scale up … by 100x while reducing costs by up to
10x" has no source on the page. "Hyperopt or Bayesian Optimization"
names a technique beside a tool.
1. **`key-concepts.md`:** the `OptunaSearch` table row summarizes it as
"Optuna search algorithms", and the median stopping rule's "Example"
cell links to its API reference rather than an example.

## Duplicate check

No open PR edits these pages. I searched open `ray-project/ray` PRs for
`tune` in the title and for each file path. The only hits are this
stack: #67017, and #67015, which has merged.

## Testing

```bash
vale --output=line doc/source/tune/{index,getting-started,key-concepts,faq}.md
pre-commit run --files <changed files>
```

- **Vale 3.12.0 with the Tune config from #67017:** alerts on the four
pages go from 436 to 62. What's left is deliberate:
- Project names that Vale doesn't recognize, such as Softlearning,
Kakao, and Allentune.
  - First-use acronym definitions such as GBDTs, TPE, and FIFO.
  - Passives with no nameable actor.
  - Question headings in the FAQ.
- Two `Tune.Capitalization` alerts on the "Function API" and "Class API"
tab titles. These are correct as written: the rule can't tell when a
phrase starts a title.
- **Structure check:** a script compared each page before and after.
Code fences, `(label)=` anchors, and URLs are unchanged. Role targets
are unchanged apart from two duplicate links removed in
`key-concepts.md`.
- **Inbound links:** I grepped `doc/source` for every reworded heading's
old slug and for link text that quotes an old title. The only hit was
`use-cases.md`, fixed here.
- **Meaning review:** every changed block was checked for drift, meaning
an edit that changes what the text asserts rather than how it reads. Of
257 changed blocks, 37 were provably cosmetic. A per-file reviewer
checked the other 220 against the pre-PR text and the Tune source. None
drifted. A second, independent review on 2026-10-23 found the same
result, and also found the deliberate claim corrections that the first
revision made. A follow-up commit put those claims back as written. They
now land in #67338 and #67339.
- **Style review:** a fresh review of the final text against Ray's
writing-style guide. Commit c601605 applies the confirmed findings: alt
text, numbers spelled out, duplicate links dropped within a section,
descriptive link text, non-sequential lists as bullets, and role targets
and symbols checked against source. Findings that touch code samples, or
that need a maintainer decision, are left for a follow-up.
- **Gemini review:** commit b926fd3 applies three wording fixes from the
bot review. The descriptive reference to the custom-resources list item
replaces "item 3", which the `1.`-numbered source made fragile. The
repeated "with" is dropped, and the `ResourceChangingScheduler` ref gets
a space before its target.
- **pre-commit:** passed on the changed files.
- **Not run locally:** the Sphinx build. 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 26, 2026
## Why are these changes needed?

This PR runs a style pass over the 14 Ray Tune user guides under
`doc/source/tune/tutorials/`. It applies Ray's writing-style guide and
the Tune terms that #67017 adds to it.

**Stacked on #67019**, the style pass on the Tune overview pages. That
one is stacked on #67017, the Tune Vale term library. The Tune slug
renames (#67015) have merged. The file sets don't overlap. Retarget this
PR to `master` once the stack below merges.

## What changed

Most of the diff is prose:

- Second person, active voice, and present tense, with no "we", "our",
or "let's".
- Filler cut.
- Contractions, and "such as" in place of "like".
- Complete lead-in sentences before code blocks.
- Descriptive link text in place of "here".
- Spelled-out abbreviations: "configuration dictionary", "trial
directory", "for example".

Tune terms follow the new guide section. The concepts are lowercase:
"trainable", "search algorithm", "trial scheduler", "function API", and
"class API". Class names stay in code style. Where a page uses "trial"
and "experiment" loosely, the pass changed one to the other only where
the page itself makes clear which it means.

Structure:

- Headings are in sentence case. Task headings are imperative, such as
"Use GPUs in Tune" and "Checkpoint periodically". Concept headings are
questions, such as "How does Tune handle failures?".
- Ordered lists number every item `1.`.
- Bold asides such as `**Troubleshooting**:` and `**Main insight**:`
become `tip` admonitions.
- Lists are made consistent, and duplicate blank lines are collapsed
outside code blocks.
- In `tune-distributed.md`, the spot-instance procedure's code blocks
are now indented under their list items, so the ordered list no longer
splits in two.
- The `tutorials/index.md` toctree title overrides are now in sentence
case.

The garbled "To specifies the max number of trials" in
`tune-resources.md` becomes "To limit the number of trials that run
concurrently".

This PR changes prose only. Every technical claim reads as it did
before, including claims that look wrong. An earlier revision corrected
several of them here. Those corrections now live in #67338, for the ones
the page itself settles, and #67339, for the ones the Tune source
settles, so this PR can merge on a docs review alone.

Every heading that other pages reference keeps its `(label)=` anchor,
and no reworded heading had an inbound slug link in `doc/source`. In
`tune-distributed.md`, the link text that quoted the old fault-tolerance
heading now matches the new one. One link outside these files still
quotes an old H1, in `examples/batch-tuning.ipynb`. It still resolves,
and the examples pass will update it.

No code block, literalinclude, label, or URL changed.

## Pre-existing claims, tracked separately

The pass kept these claims as written, and they don't block this PR.
#67338 fixes the code-sample and link problems that the page settles.
#67339 corrects the claims that the source settles, such as `ERRORED`,
`max_retries`, `checkpoint_freq`, `TrialRunner`, `experiment_tag`, and
`_train()`, and lists the rest for a Tune engineer:

1. **`tune-scalability.md`:** the trial executor, SSH-based syncing, and
"syncing to the driver" look like they predate the `storage_path` model,
and the benchmark numbers carry no Ray version.
1. **`tune-distributed.md`:** "Tune automatically pushes the previous
checkpoint file to that node" may also predate `storage_path`.
1. **`tune-run.md`:** "Tune can automatically retry failed trials as
well as entire experiments" links to the stopping guide. The
fault-tolerance guide looks like the intended target.

## Duplicate check

No open PR edits these pages, apart from the renames in #67015, which
have merged. I searched open `ray-project/ray` PRs for `tune` in the
title and for the tutorial paths.

## Testing

```bash
vale --output=line doc/source/tune/tutorials/
pre-commit run --files <changed files>
```

- **Vale 3.12.0 with the Tune config from #67017:** alerts under
`tune/tutorials/` go from 686 to 64. What's left is deliberate:
- Passives where the actor is external or unnamed, such as a preempted
node.
  - Column names in a rendered DataFrame table.
  - Product names such as `awless` and `HParams`.
  - `Google.LyHyphens` false positives on "early-stopping".
- `Tune.Capitalization` on two "Function API" and "Class API" tab
titles, which are correct as written.
- **Structure check:** a script compared each page before and after.
Code fences, `(label)=` anchors, and URLs are unchanged. The only
role-target change is one duplicate `actor-guide` link removed from
`tune-lifecycle.md`.
- **Inbound links:** I grepped `doc/source` for every reworded heading's
old slug and for link text that quotes an old title.
- **Meaning review:** every changed block was checked for drift, meaning
an edit that changes what the text asserts rather than how it reads. Of
420 changed blocks, 43 were provably cosmetic. A per-file reviewer
checked the other 377 against the pre-PR text and the Tune source. Two
had drifted, and a follow-up commit restores both:
- `tune-resources.md` had narrowed the placement-group advice from any
trainable to function trainables only. `api/trainable.rst` gives it for
both.
- `tune-scalability.md` had turned "some insights on results" into "the
results that showed high overhead", which implied a complete list. Two
high-overhead rows in the overview table get no section.

A second, independent review on 2026-10-23 found no other drift. It
found the deliberate claim corrections that the first revision made,
plus two cross-reference role targets in `tune-trial-checkpoints.md` and
a link-text change in `tune-resources.md`. It also found a dropped "can"
hedge in `tune-fault-tolerance.md` and a dropped deprecation marker on a
`tune-storage.md` heading. A follow-up commit restores all of these as
written. The corrections now land in #67338 and #67339.
- **Style review:** a fresh review of the final text against Ray's
writing-style guide. Commit 832b9c2 applies the confirmed findings: alt
text, numbers spelled out, duplicate links dropped within a section,
descriptive link text, non-sequential lists as bullets, and role targets
and symbols checked against source. Findings that touch code samples, or
that need a maintainer decision, are left for a follow-up.
- **pre-commit:** passed.
- **Not run locally:** the Sphinx build. 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]>
justinyeh1995 pushed a commit to justinyeh1995/ray that referenced this pull request Oct 28, 2026
## Why are these changes needed?

This PR runs a style pass over the 14 Ray Tune user guides under
`doc/source/tune/tutorials/`. It applies Ray's writing-style guide and
the Tune terms that ray-project#67017 adds to it.

**Stacked on ray-project#67019**, the style pass on the Tune overview pages. That
one is stacked on ray-project#67017, the Tune Vale term library. The Tune slug
renames (ray-project#67015) have merged. The file sets don't overlap. Retarget this
PR to `master` once the stack below merges.

## What changed

Most of the diff is prose:

- Second person, active voice, and present tense, with no "we", "our",
or "let's".
- Filler cut.
- Contractions, and "such as" in place of "like".
- Complete lead-in sentences before code blocks.
- Descriptive link text in place of "here".
- Spelled-out abbreviations: "configuration dictionary", "trial
directory", "for example".

Tune terms follow the new guide section. The concepts are lowercase:
"trainable", "search algorithm", "trial scheduler", "function API", and
"class API". Class names stay in code style. Where a page uses "trial"
and "experiment" loosely, the pass changed one to the other only where
the page itself makes clear which it means.

Structure:

- Headings are in sentence case. Task headings are imperative, such as
"Use GPUs in Tune" and "Checkpoint periodically". Concept headings are
questions, such as "How does Tune handle failures?".
- Ordered lists number every item `1.`.
- Bold asides such as `**Troubleshooting**:` and `**Main insight**:`
become `tip` admonitions.
- Lists are made consistent, and duplicate blank lines are collapsed
outside code blocks.
- In `tune-distributed.md`, the spot-instance procedure's code blocks
are now indented under their list items, so the ordered list no longer
splits in two.
- The `tutorials/index.md` toctree title overrides are now in sentence
case.

The garbled "To specifies the max number of trials" in
`tune-resources.md` becomes "To limit the number of trials that run
concurrently".

This PR changes prose only. Every technical claim reads as it did
before, including claims that look wrong. An earlier revision corrected
several of them here. Those corrections now live in ray-project#67338, for the ones
the page itself settles, and ray-project#67339, for the ones the Tune source
settles, so this PR can merge on a docs review alone.

Every heading that other pages reference keeps its `(label)=` anchor,
and no reworded heading had an inbound slug link in `doc/source`. In
`tune-distributed.md`, the link text that quoted the old fault-tolerance
heading now matches the new one. One link outside these files still
quotes an old H1, in `examples/batch-tuning.ipynb`. It still resolves,
and the examples pass will update it.

No code block, literalinclude, label, or URL changed.

## Pre-existing claims, tracked separately

The pass kept these claims as written, and they don't block this PR.
ray-project#67338 fixes the code-sample and link problems that the page settles.
ray-project#67339 corrects the claims that the source settles, such as `ERRORED`,
`max_retries`, `checkpoint_freq`, `TrialRunner`, `experiment_tag`, and
`_train()`, and lists the rest for a Tune engineer:

1. **`tune-scalability.md`:** the trial executor, SSH-based syncing, and
"syncing to the driver" look like they predate the `storage_path` model,
and the benchmark numbers carry no Ray version.
1. **`tune-distributed.md`:** "Tune automatically pushes the previous
checkpoint file to that node" may also predate `storage_path`.
1. **`tune-run.md`:** "Tune can automatically retry failed trials as
well as entire experiments" links to the stopping guide. The
fault-tolerance guide looks like the intended target.

## Duplicate check

No open PR edits these pages, apart from the renames in ray-project#67015, which
have merged. I searched open `ray-project/ray` PRs for `tune` in the
title and for the tutorial paths.

## Testing

```bash
vale --output=line doc/source/tune/tutorials/
pre-commit run --files <changed files>
```

- **Vale 3.12.0 with the Tune config from ray-project#67017:** alerts under
`tune/tutorials/` go from 686 to 64. What's left is deliberate:
- Passives where the actor is external or unnamed, such as a preempted
node.
  - Column names in a rendered DataFrame table.
  - Product names such as `awless` and `HParams`.
  - `Google.LyHyphens` false positives on "early-stopping".
- `Tune.Capitalization` on two "Function API" and "Class API" tab
titles, which are correct as written.
- **Structure check:** a script compared each page before and after.
Code fences, `(label)=` anchors, and URLs are unchanged. The only
role-target change is one duplicate `actor-guide` link removed from
`tune-lifecycle.md`.
- **Inbound links:** I grepped `doc/source` for every reworded heading's
old slug and for link text that quotes an old title.
- **Meaning review:** every changed block was checked for drift, meaning
an edit that changes what the text asserts rather than how it reads. Of
420 changed blocks, 43 were provably cosmetic. A per-file reviewer
checked the other 377 against the pre-PR text and the Tune source. Two
had drifted, and a follow-up commit restores both:
- `tune-resources.md` had narrowed the placement-group advice from any
trainable to function trainables only. `api/trainable.rst` gives it for
both.
- `tune-scalability.md` had turned "some insights on results" into "the
results that showed high overhead", which implied a complete list. Two
high-overhead rows in the overview table get no section.

A second, independent review on 2026-10-23 found no other drift. It
found the deliberate claim corrections that the first revision made,
plus two cross-reference role targets in `tune-trial-checkpoints.md` and
a link-text change in `tune-resources.md`. It also found a dropped "can"
hedge in `tune-fault-tolerance.md` and a dropped deprecation marker on a
`tune-storage.md` heading. A follow-up commit restores all of these as
written. The corrections now land in ray-project#67338 and ray-project#67339.
- **Style review:** a fresh review of the final text against Ray's
writing-style guide. Commit 832b9c2 applies the confirmed findings: alt
text, numbers spelled out, duplicate links dropped within a section,
descriptive link text, non-sequential lists as bullets, and role targets
and symbols checked against source. Findings that touch code samples, or
that need a maintainer decision, are left for a follow-up.
- **pre-commit:** passed.
- **Not run locally:** the Sphinx build. 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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