Repository navigation
[doc] Style and grammar pass on Ray Data docs - #66413
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request refactors and improves the documentation comparing Ray Data to other systems, such as batch services, online inference tools, and distributed frameworks. The updates enhance readability, correct terminology (such as 'BentoML' and 'SageMaker'), and standardize the list formats for various comparisons. As there are no review comments, I have no feedback to provide.
dstrodtman
commented
Sep 23, 2026
dstrodtman
force-pushed
the
doc-1524-data-style-pilot
branch
from
September 23, 2026 13:42
62c780c to
8d594f4
Compare
dstrodtman
force-pushed
the
doc-1524-data-style-pilot
branch
from
September 23, 2026 17:10
a127ab5 to
baf6a4a
Compare
dstrodtman
force-pushed
the
doc-1524-data-style-pilot
branch
from
September 23, 2026 20:36
baf6a4a to
80e909b
Compare
dstrodtman
added a commit
that referenced
this pull request
Sep 23, 2026
… for Ray Data docs (#66412) ## Why This PR collects the Vale configuration changes for the Ray Data docs into one review: - It prepares the Ray Data docs for a style and grammar pass. Vale can then flag real problems, such as future tense, without noise from valid terms it doesn't know. - It adds Vale rules to the shared `Ray` style for patterns that the Ray Data style pass fixed by hand, over and over, across the style-pass PRs stacked above this one. The rules were written after the style pass, so they sit lower in the stack than the work that motivated them. They touch the same Vale configuration for the same reason, so they're reviewed and landed together here. The rule changes were previously in #66424, now closed. Stacked on #66381, which is stacked on #66375 and #66352. Review and merge those first. This branch targets `doc-1524-data-prose-softwrap`. ## What ### Vocabulary and suppressions - Removes the two `<!-- vale off -->` / `<!-- vale on -->` blocks from `custom-datasource-example.md`. This was the only Ray Data page that disabled Vale. Both blocks suppressed the future-tense check, and the style pass should fix that prose rather than hide it. - Updates `.vale/styles/config/vocabularies/Data/accept.txt`: - Adds `BentoML`, `CIFAR`, `[Dd]ownscal(e|es|ed|ing)`, `JPEG`, `Kinetica`, `NVTabular`, `Petastorm`, `Psycopg`, `PyArrow`, `Tekken`, `torchtext`, and `torchvision`. - Changes `Datasinks?` to `[Dd]atasinks?` so lowercase "datasink" is accepted, matching `[Dd]atasource(s)?`. - Removes entries that duplicate other vocabularies: `docstrings`, `NLP`, `PIL`, and `TPU(s)?` are in General, and `XGBoost` is in Train. - Removes entries that don't appear in the prose of any `.md` or `.rst` page under `doc/source/`: `assess_quality`, `process_file`, `[Mm]ultiget(s)?`, `PDFs`, `Predibase('s)?`, `[Rr]eformat(s)?`, and `[Pp]ostprocessor(s)?`. - Renames the `ABS` tab to `Azure Blob Storage` in `loading-data.md` and `saving-data.md`, because the acronym isn't widely known. The remaining spelling and terms alerts are intentional. They point at text the style pass fixes: `Bento ML`, `Sagemaker`, `Numpy`, `pyarrow`, `underly`, `undersaturated`, and the unformatted `map_batches` and `smart_resize` identifiers. ### New rules These are rule files only. The `Ray` style is still registered for RLlib pages only, in `.vale.ini`, and nothing changes what Vale runs in CI. Vale on the Ray Data docs is disabled on purpose for now. | Rule | Type | Catches | Why this type | |---|---|---|---| | `Ray.SuchAs` | existence, warning | "like" after a plural noun that introduces examples, such as "formats like", "methods like", and "APIs like" | "like" is also a comparison ("works like a queue") and a verb ("if you'd like"), so a substitution would corrupt that prose. The rule only flags, and only after these nouns. | | `Ray.Brands` | substitution, case-sensitive | `HuggingFace` becomes `Hugging Face` | The literal has no other sense. The match is case-sensitive so lowercase identifiers such as `huggingface_hub` never match, and inline code is skipped anyway. | | `Ray.Capitalization` | existence, case-sensitive | `Ray Tasks`, `Ray Actors`, `Ray Objects`, `Ray Workers`, `Ray Nodes`, `Ray Placement Groups` | The style guide lowercases generic nouns that name a Ray concept. Flag only, because link text that quotes a page title can keep the title's capitals. | | `Ray.LeadIns` | existence, warning | `For example:`, `For instance:`, and `Here's an example` fragments used as lead-ins | The guide wants complete-sentence lead-ins. The right rewrite depends on the example, so the rule only flags. | | `Ray.Filler` additions | existence | "under the hood", "seamlessly" | Both came up repeatedly in the pass. | Each rule links to the matching section of `writing-style.md`. Left out on purpose: - **Slashes between words:** `I/O`, `TCP/IP`, and `and/or` are legitimate, and a pattern can't tell them apart. - **Gerund task headings:** some gerund H1s, such as "Loading data", are kept on purpose to match the nav titles. - **"Ray Cluster" in `Ray.Capitalization`:** it appears mostly in page and section titles ("Ray Clusters Overview") and in the "Ray Cluster Launcher" component name. - **"Pandas" to "pandas":** a case-sensitive swap misfires at the start of a sentence. ## Verification Vocabulary: `vale doc/source/data` with Vale 3.12: `Vale.Spelling` drops from 26 to 10 alerts, `Google.Acronyms` from 4 to 0, and the remaining `Vale.Spelling` and `Vale.Terms` alerts are all in the list above. `custom-datasource-example.md` now reports its three `Google.Will` alerts. Rules: - A test file with positive and negative cases, run with the real vocabularies loaded, so accept-list shadowing would show up. That check caught the `APIs` accept-list entry shadowing `Ray.SuchAs`, so the rule sets `vocab: false`. Every positive case fires. None of these fire: - "works like a queue" and "if you'd like" - `huggingface_hub` in inline code - "Ray Tasks" as `{ref}` link text - lowercase "Ray tasks" - The full `Ray` style, run by hand against all 25 top-level `doc/source/data/*.md` pages at the head of the style-pass stack, reports five warnings and none from the new rules: - "For now" in `mixing-data.md` and "Currently" in `performance-tips.md` are temporary-limitation signals that the stack keeps on purpose. - "seamlessly" in `comparisons.md` and "very" twice in `shuffling-data.md` were filler that the pass missed. They're now fixed in #66413 and #66420, the style PRs for those pages. - That run was at the head of the style-pass stack, not at this branch. Running the `Ray` style by hand against the Data pages here might report matches that the stack above fixes. That doesn't affect CI, since the `Ray` style isn't registered for Data pages. The Vale pre-commit hook is still commented out, so this doesn't change CI. ## AI assistance I made these changes with AI assistance (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Apply Ray's writing-style guide to doc/source/data/comparisons.md: rename the legacy "Datasets" product name to Ray Data, fix SageMaker and BentoML casing, use contractions, active voice, and second person, replace "like" with "such as", sentence-case the dropdown titles, add list lead-ins, and use the **Term**: definition-list form. Vale reports no alerts. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
Keep the shared-model idea attached to the explanation it introduces, and say the services are similar rather than the same. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
Apply Ray's writing-style guide to doc/source/data/custom-datasource-example.md: fix the future-tense prose that Vale suppressions used to hide, name Ray Data as the actor, replace "functionality" and the parenthetical, and sentence-case the title. Update the link text in loading-data.md that quotes the old title. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
Replace "scaling seamlessly" with "scaling ... without changes", which keeps the claim that TensorFlow datasets need code changes to scale out. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
dstrodtman
force-pushed
the
doc-1524-data-style-pilot
branch
from
September 24, 2026 11:36
80e909b to
11b7d62
Compare
Block is a union of pyarrow.Table and pandas.DataFrame in block.py, including at the commit the page links to. Dictionaries of NumPy arrays are a DataBatch format, not a block format. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
matthewdeng
approved these changes
Sep 24, 2026
dstrodtman
added a commit
that referenced
this pull request
Sep 30, 2026
## Description Style and grammar pass on five Ray Data overview pages against Ray's [writing-style guide](https://docs.ray.io/en/master/ray-contribute/writing-style.html): `index.md`, `quickstart.md`, `key-concepts.md`, `user-guide.md`, and `benchmark.md`. Prose only: no code, testcode, URLs, anchors, or role targets changed. Stacked on #66413. Review and merge that stack first. This branch targets `doc-1524-data-style-pilot`. It's the first of several PRs that apply the same pass to the rest of the top-level Ray Data pages. ### All five pages - Sentence-cases headings, card titles, and button labels. - Rewords headings to the style guide: imperatives for the quickstart task sections ("Load data", "Consume data"), questions for conceptual sections ("What is a dataset?", "How does streaming execution work?"), and "Case studies" and "Quickstart" on the landing page. Each reworded heading gets an explicit label named after its old slug, such as `(consuming-data)=`, so existing URL fragments keep resolving. Two can't: `quickstart#saving-data` and `index#quick-start`, because `saving-data.md` and `serve/llm/quick-start.md` already define those label names. Nothing in the repo links to either fragment. The `quickstart#datasets` fragment is also dropped on purpose: Sphinx labels are global, so a label with a single-word name such as `datasets` would claim that name for the whole site and break the build of any later page that defines it. - Uses second person, active voice, present tense, and "such as" for examples. Recasts "lets", "allows", and "enables". - Removes dashes, parentheticals, filler, and marketing qualifiers such as "seamlessly", "performant", and "simple". - Adds list lead-ins, fixes list punctuation, and uses `1.` for ordered lists. ### Page-specific changes - `index.md`: Fixes "Hugging Face" and "pandas" spellings, fixes the "how to do perform" typo, and replaces the two bold pseudo-headings in the case studies with lead-in sentences. The advantages list is now a tight list. - `quickstart.md`: Keeps the opening list of section links with a new lead-in. - `key-concepts.md`: Converts the shuffle caveat into a `note` admonition and turns the non-sequential "during this translation" list into bullets. Names the operator classes as the source does: the logical read operator is `Read`, not `ReadOp`, and the fusion rule is `FuseOperators`, which replaced `OperatorFusionRule`. Keeps "Physical operators" plural in the list of what they do, because `InputDataBuffer` takes no input stream. - `benchmark.md`: Adds descriptive alt text to the results chart, taken from the chart's own axis and legend. Replaces bold header and row-label cells in the tables with `:stub-columns: 1`, and replaces "Link" link text with "Benchmark code". Every number, version, instance type, and S3 path is unchanged. - `user-guide.md`: Updates the quickstart link text to the new title casing. ## Questions for reviewers Apart from the two class names, this pass kept the scope of every claim. These points need a Ray Data maintainer: - **`benchmark.md` data size:** the page says "4TiB" and "4 TiB", but the S3 path says `10TiB-b64encoded-images-in-parquet-v3`. Is 4 TiB a subset? - **`benchmark.md` video workload:** the workload list says "10k video frames" and the configuration table says "1,000 videos". The dataset is also "Hollywood2" in one place and "Hollywood-2" in the other. - **`benchmark.md` run counts:** the image-classification instance-type experiment averages three runs, but the summary says four, and its g6.8xlarge values match the summary table exactly. - **`benchmark.md` bold results:** the faster result in each column is bold, but nothing on the page says so. - **`key-concepts.md` code:** the streaming example is a plain `python` block with undefined names, so it isn't tested. Its comment "Create a dataset with 1K rows" doesn't match `read_parquet(...)`. Two logical-plan output blocks have no language tag. - **`key-concepts.md` alt text:** the three `{image}` directives have no `:alt:` text. The first could reuse the surrounding prose, but the other two need someone who knows the diagrams. - **`benchmark.md` warmup:** the page says the warmup run "downloads the model". This wording predates this PR. In `release/nightly_tests/multimodal_inference_benchmarks/`, the `image_classification`, `audio_transcription`, and `document_embedding` scripts warm up by launching 64 no-op tasks to absorb cluster startup overhead, and `video_object_detection` has no warmup step. Should the sentence describe the task warmup instead? - **`key-concepts.md` optimization order:** the paragraph says Ray Data optimizes the logical plan and then translates it, but the list under it says both plans go through optimization passes during translation. This predates this PR. Which order is accurate? - **`index.md` terms:** the Key concepts card says "what Datasets are". Should that be the `Dataset` class or plain "datasets"? The page also uses "multi-modal" where Google style uses "multimodal". - **`index.md` install block:** the `console` block shows a `$` prompt, which the style guide discourages. - **`quickstart.md` opening list:** the style guide says to skip opening lists that restate the headings below. I kept this one because removing it drops the page's only links to its section labels. - **Link text elsewhere:** five links in Train pages and notebooks still say "Ray Data Quickstart". They resolve and differ only in case, so they're out of scope here. ## Verification - A meaning-diff review compared every before-and-after pair. It cleared 59 edits as cosmetic and found that 37 of the remaining 38 kept their meaning. It found one drift, a lead-in that made an example list exhaustive, fixed in a follow-up commit. - A second scan of the full diff found that the translation-list rewrite had changed "Physical operators work by" to "Each physical operator", which overstates the list. A follow-up commit restores the plural. - `vale` with Vale 3.12, run from the repo root: no warning- or error-level alerts on the five pages. - `codespell`: no hits. - The pre-commit hooks passed. - A structural check against each pre-edit file confirmed the code-fence count, role targets, anchors, and URLs are unchanged. - A grep for inbound links to every reworded heading found only the quickstart link text updated here and the Train links listed above. - `benchmark.md` is the only Ray page that uses `:stub-columns:`. Check the Read the Docs preview to confirm the first table column still renders as headers. ## AI assistance I made these edits with AI assistance (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This was referenced Sep 30, 2026
dstrodtman
added a commit
that referenced
this pull request
Sep 30, 2026
) ## Why are these changes needed? The Ray Data style pass (#66413, #66418, #66419, #66420, #66422, #66423) kept the scope of every technical claim. That round flagged statements that disagree with the current source, or with other statements on the same page. This PR fixes the ones the source settles. Each edit below names the source it follows and, where one exists, the PR that caused the drift. Ray Data reviewers: please confirm each item. LLM owners: please check the `working-with-llms.md` edits. ### Performance, monitoring, and configuration - `performance-tips.md`: The default object store limit is 0.5, not 1/4. `ResourceManager.DEFAULT_OBJECT_STORE_MEMORY_LIMIT_FRACTION` is 0.5 when the resource allocator is on, and `op_resource_reservation_enabled` defaults to `True`. Docs lag since #43171 (2.10). - `performance-tips.md`: `select_columns` after `read_parquet` prunes at read time. `ProjectionPushdown` is in `_LOGICAL_RULESET`, and `ParquetDatasource.supports_projection_pushdown` returns true. Docs lag since #56500 (2.50). The page now recommends the pattern its own example uses. - `performance-tips.md`: The "following procedure" lead-in introduced bullets that don't describe a procedure. It now introduces them as rules. - `monitoring-your-workload.md`: Dropped `RAY_DATA_TRACE_SCHEDULING`, which nothing under `python/` references anymore. It was removed in #44399 (2.11). - `monitoring-your-workload.md`: Dropped the `ray.data._internal.progress_bar.ProgressBar.MAX_NAME_LENGTH` knob. The module moved to `_internal/progress/progress_bar.py`, and the tqdm, logging, and rich progress implementations read a separate copy in `base_progress.py` (#59629, 2.54). The documented public setting, `enable_progress_bar_name_truncation`, stays. - `monitoring-your-workload.md`: The lead-in no longer says all three settings reduce output. `use_ray_tqdm = False` changes the implementation, not the amount of output. - `execution-configurations.md`: Documents `retried_io_errors` in place of `write_file_retry_on_errors`. `DataContext.__setattr__` warns that the old option is deprecated. It was deprecated in #46685 (2.33). The substring-then-regex matching comes from the `retried_io_errors` docstring. - `execution-configurations.md`: The example set `verbose_progress = True`, which is already the default (#43360). It now sets `preserve_order = True`. - `how-to-avoid-ooms.md`: "Eliminates kernel OOMs" contradicted the page's own later statement that kernel OOMs can still happen with isolation enabled. It now uses the conditional wording of the page's summary. For "older versions", the object store proportion warning was removed in #62387, first released in 2.56. The node-death line no longer cites a version. ### Shuffle, aggregation, joins, and mixing - `internals.md`: The range-partitioning sampler takes `num_reducers * 10 / len(blocks)` samples per block (`SortTaskSpec.sample_boundaries`), not 10. The docs were wrong from the start, #52987. - `internals.md`: `random_shuffle` builds on `ShuffleTaskSpec`, with the push-based scheduler under `SORT_SHUFFLE_PUSH_BASED` and the pull-based scheduler otherwise (`planner/random_shuffle.py`). It doesn't use the range-partitioning shuffle. The docs were wrong from the start, #65372. - **Note:** #64875 now plans `sort()` on shuffle v2 by default. This PR removes the stale "shuffle v2 doesn't support sort" claim from the sentence it edits. It leaves documenting sort on shuffle v2, including the "doesn't yet replace the range-partitioning shuffle" sentence, to the Ray Data docs update for that change. - `shuffling-data.md`: The push-based shuffle section now uses `DataContext.shuffle_strategy` and `RAY_DATA_DEFAULT_SHUFFLE_STRATEGY` instead of the deprecated `use_push_based_shuffle` and `RAY_DATA_PUSH_BASED_SHUFFLE` (#50215, 2.43). The section also drops the 2022 log output: the "Using experimental push-based shuffle" line now logs at debug level. - `shuffling-data.md` and `joining-data.md`: Key-based repartitioning and joins no longer link "hash-shuffle" to the legacy `HASH_SHUFFLE` section. Shuffle v2 is the default for both. - `shuffling-data.md`: Dropped "in increasing order of resource consumption and runtime". The page's own benchmark shows `map_batches` shuffle keeping more throughput than local buffer shuffle. - `aggregating-data.md`: `AggregateFnV2` has two abstract methods, `aggregate_block` and `combine`. `finalize` is optional and defaults to returning the accumulator. The docs were wrong from the start, reworded in #59311. - `joining-data.md`: `_derive_max_shuffle_aggregators` caps the aggregator count at the CPU count. One partition per aggregator also needs at least `num_partitions` CPUs. - `joining-data.md`: The lead-in offered `partition_size_hint` as a tuning parameter, but the page says Ray Data ignores it. - `mixing-data.md`: `MixOperator` interleaves whole blocks, but batches can span blocks, as the page's note says. "Each local batch drawn from a single dataset" now holds only when block sizes match the batch size. - `saving-data.md`: `to_pandas()` builds the DataFrame in the calling process by iterating batches. It doesn't build it on the head node. ### Overview, loading, and modality pages - `key-concepts.md`: `get_execution_plan` runs the logical optimizer, then the planner, then the physical optimizer. `FuseOperators` is a physical rule. The paragraph no longer puts both passes "during this translation". - `key-concepts.md`: `Read` plans to `InputDataBuffer` plus a map operator (`plan_read_op.py`), matching line 74 and `internals.md`. The example also switches from `read_parquet` to `read_csv`, because `read_parquet` goes through `ListFiles` and `ReadFiles` when `use_datasource_v2` is on. That's the default since #64821 (2.57). - `custom-datasource-example.md`: "Unstable internal APIs" is now "developer APIs". `FileBasedDatasource` and `RowBasedFileDatasink` are `@DeveloperAPI`, and `Datasource` is `@PublicAPI`. - `loading-data.md`: `read_kafka` also accepts per-partition offsets. `"earliest"` is valid only as a start offset and `"latest"` only as an end offset (`kafka_datasource.py` raises otherwise). - `working-with-llms.md`: Hosted OpenAI-compatible endpoints use `HttpRequestProcessorConfig`, and `ServeDeploymentProcessorConfig` addresses Ray Serve deployments. The intro was wrong from the start, #59214. - `working-with-llms.md`: `size` is a whole-input budget. For video, Qwen3-VL's `smart_resize` compares `t * h * w` against it. The docs were wrong from the start, #63593. - `working-with-tensors.md`: `map_batches` raises `ValueError` for `batch_size="auto"` when `num_gpus` is set (#62648). ## Duplicate check This isn't duplicating an existing PR. I searched open `ray-project/ray` PRs for Ray Data docs and shuffle docs work, and none edits these statements. The one related open item is a planned Ray Data docs update for #64875. This PR deliberately leaves that change's sort-on-shuffle-v2 content alone. ## Testing - Ran the changed `testcode` snippets from `execution-configurations.md` and `shuffling-data.md` against a Ray nightly wheel. `random_shuffle` under `SORT_SHUFFLE_PUSH_BASED` returned all 1,000 rows, and `RAY_DATA_DEFAULT_SHUFFLE_STRATEGY=sort_shuffle_push_based` resolves to that strategy. - `vale` on the 15 changed files shows no new findings compared to `master`. - `pre-commit` hooks passed on commit. - I didn't run a local Sphinx build. The new cross-references target existing API entries, and the Read the Docs preview covers the build. ## AI assistance I used AI assistance (Claude Code) to trace each claim to the source and draft the edits. I 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 1, 2026
#66615) ## Why are these changes needed? The Ray Data style-pass PRs (#66413, #66418, #66419, #66420, #66422, #66423) left a set of mechanical and structural items open. This PR clears them. None of the edits changes a technical claim, so it needs a style review rather than an SME review. **Markup and links** - `key-concepts.md`: tags the two logical-plan output blocks as `text`, and adds alt text to the three diagrams. - `index.md`, `shuffling-data.md`: removes `$` prompts from shell blocks. - `aggregating-data.md`, `iterating-over-data.md`: uses `{meth}` instead of `{class}` for `Dataset.max`, `min`, `sum`, and `random_shuffle`. - `aggregating-data.md`: drops the trailing slash from the blog link fragment `#performance-benchmarks/`. - `train/getting-started-lightgbm.rst`, `train/getting-started-xgboost.rst`, and two Lightning example notebooks: replaces the hard-coded "Ray Data Quickstart" link text with a bare reference, so the link renders the page title. - `loading-data.md`: moves the `(reading_kafka)=` label above the Kafka heading, stacked with `(reading-from-kafka)=`. **Structure and wording** - `quickstart.md`: replaces the opening bullet list, which restated the section headings, with one sentence that keeps the section links. - `custom-datasource-example.md`: renames the two "Implement the constructor" headings to "Implement the datasource constructor" and "Implement the datasink constructor". Nothing links to the old anchors. - `loading-data.md`: moves the Iceberg tab from the distributed DataFrame libraries tab set to the "Read files" tab set, since Iceberg is a data format rather than a DataFrame library. The tab content is unchanged. - `loading-data.md`: drops the unsourced "most popular PostgreSQL database connector" claim. - `loading-data.md`: the Hugging Face paragraph now leads with the token, which the example uses, and presents `HfFileSystem()` without a token as the fallback for public datasets. See the [#66419 review thread](#66419 (comment)). - `working-with-llms.md`: moves the usage-data note out from under the NIXL troubleshooting heading into its own closing section. - `working-with-pytorch.md`: drops the `torchaudio` mention, since the section has no `torchaudio` example. - `index.md`: "what Datasets are" becomes "what a `Dataset` is", matching the class that the linked key-concepts page defines. **For reviewers** - Please confirm the diagram alt text in `key-concepts.md`. I wrote it from what each diagram shows. - #66192 adds a REST-catalog example inside the Iceberg tab that this PR moves. Whichever PR merges second needs a small rebase: the added content moves with the tab, and its `:::` fences become `::::`. ## Related issue number None. This isn't a duplicate: the items come from reviewing the merged style-pass PRs above, and I searched open PRs touching `doc/source/data/` for overlap. The only overlap is #66192, noted above. ## Checks - [x] I've signed off every commit (DCO). - [x] `pre-commit run --files <changed files>` passes. No hook covers `doc/source` Markdown or notebooks, so every content hook skipped. - [x] Checked that both edited notebooks still parse as JSON. - [ ] Sphinx build: not run locally. Relying on the Read the Docs preview for directive nesting and cross-reference resolution. AI assistance (Claude Code) was used to make these edits. I 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]>
nadongjun
pushed a commit
to nadongjun/ray
that referenced
this pull request
Oct 6, 2026
… for Ray Data docs (ray-project#66412) ## Why This PR collects the Vale configuration changes for the Ray Data docs into one review: - It prepares the Ray Data docs for a style and grammar pass. Vale can then flag real problems, such as future tense, without noise from valid terms it doesn't know. - It adds Vale rules to the shared `Ray` style for patterns that the Ray Data style pass fixed by hand, over and over, across the style-pass PRs stacked above this one. The rules were written after the style pass, so they sit lower in the stack than the work that motivated them. They touch the same Vale configuration for the same reason, so they're reviewed and landed together here. The rule changes were previously in ray-project#66424, now closed. Stacked on ray-project#66381, which is stacked on ray-project#66375 and ray-project#66352. Review and merge those first. This branch targets `doc-1524-data-prose-softwrap`. ## What ### Vocabulary and suppressions - Removes the two `<!-- vale off -->` / `<!-- vale on -->` blocks from `custom-datasource-example.md`. This was the only Ray Data page that disabled Vale. Both blocks suppressed the future-tense check, and the style pass should fix that prose rather than hide it. - Updates `.vale/styles/config/vocabularies/Data/accept.txt`: - Adds `BentoML`, `CIFAR`, `[Dd]ownscal(e|es|ed|ing)`, `JPEG`, `Kinetica`, `NVTabular`, `Petastorm`, `Psycopg`, `PyArrow`, `Tekken`, `torchtext`, and `torchvision`. - Changes `Datasinks?` to `[Dd]atasinks?` so lowercase "datasink" is accepted, matching `[Dd]atasource(s)?`. - Removes entries that duplicate other vocabularies: `docstrings`, `NLP`, `PIL`, and `TPU(s)?` are in General, and `XGBoost` is in Train. - Removes entries that don't appear in the prose of any `.md` or `.rst` page under `doc/source/`: `assess_quality`, `process_file`, `[Mm]ultiget(s)?`, `PDFs`, `Predibase('s)?`, `[Rr]eformat(s)?`, and `[Pp]ostprocessor(s)?`. - Renames the `ABS` tab to `Azure Blob Storage` in `loading-data.md` and `saving-data.md`, because the acronym isn't widely known. The remaining spelling and terms alerts are intentional. They point at text the style pass fixes: `Bento ML`, `Sagemaker`, `Numpy`, `pyarrow`, `underly`, `undersaturated`, and the unformatted `map_batches` and `smart_resize` identifiers. ### New rules These are rule files only. The `Ray` style is still registered for RLlib pages only, in `.vale.ini`, and nothing changes what Vale runs in CI. Vale on the Ray Data docs is disabled on purpose for now. | Rule | Type | Catches | Why this type | |---|---|---|---| | `Ray.SuchAs` | existence, warning | "like" after a plural noun that introduces examples, such as "formats like", "methods like", and "APIs like" | "like" is also a comparison ("works like a queue") and a verb ("if you'd like"), so a substitution would corrupt that prose. The rule only flags, and only after these nouns. | | `Ray.Brands` | substitution, case-sensitive | `HuggingFace` becomes `Hugging Face` | The literal has no other sense. The match is case-sensitive so lowercase identifiers such as `huggingface_hub` never match, and inline code is skipped anyway. | | `Ray.Capitalization` | existence, case-sensitive | `Ray Tasks`, `Ray Actors`, `Ray Objects`, `Ray Workers`, `Ray Nodes`, `Ray Placement Groups` | The style guide lowercases generic nouns that name a Ray concept. Flag only, because link text that quotes a page title can keep the title's capitals. | | `Ray.LeadIns` | existence, warning | `For example:`, `For instance:`, and `Here's an example` fragments used as lead-ins | The guide wants complete-sentence lead-ins. The right rewrite depends on the example, so the rule only flags. | | `Ray.Filler` additions | existence | "under the hood", "seamlessly" | Both came up repeatedly in the pass. | Each rule links to the matching section of `writing-style.md`. Left out on purpose: - **Slashes between words:** `I/O`, `TCP/IP`, and `and/or` are legitimate, and a pattern can't tell them apart. - **Gerund task headings:** some gerund H1s, such as "Loading data", are kept on purpose to match the nav titles. - **"Ray Cluster" in `Ray.Capitalization`:** it appears mostly in page and section titles ("Ray Clusters Overview") and in the "Ray Cluster Launcher" component name. - **"Pandas" to "pandas":** a case-sensitive swap misfires at the start of a sentence. ## Verification Vocabulary: `vale doc/source/data` with Vale 3.12: `Vale.Spelling` drops from 26 to 10 alerts, `Google.Acronyms` from 4 to 0, and the remaining `Vale.Spelling` and `Vale.Terms` alerts are all in the list above. `custom-datasource-example.md` now reports its three `Google.Will` alerts. Rules: - A test file with positive and negative cases, run with the real vocabularies loaded, so accept-list shadowing would show up. That check caught the `APIs` accept-list entry shadowing `Ray.SuchAs`, so the rule sets `vocab: false`. Every positive case fires. None of these fire: - "works like a queue" and "if you'd like" - `huggingface_hub` in inline code - "Ray Tasks" as `{ref}` link text - lowercase "Ray tasks" - The full `Ray` style, run by hand against all 25 top-level `doc/source/data/*.md` pages at the head of the style-pass stack, reports five warnings and none from the new rules: - "For now" in `mixing-data.md` and "Currently" in `performance-tips.md` are temporary-limitation signals that the stack keeps on purpose. - "seamlessly" in `comparisons.md` and "very" twice in `shuffling-data.md` were filler that the pass missed. They're now fixed in ray-project#66413 and ray-project#66420, the style PRs for those pages. - That run was at the head of the style-pass stack, not at this branch. Running the `Ray` style by hand against the Data pages here might report matches that the stack above fixes. That doesn't affect CI, since the `Ray` style isn't registered for Data pages. The Vale pre-commit hook is still commented out, so this doesn't change CI. ## AI assistance I made these changes with AI assistance (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
nadongjun
pushed a commit
to nadongjun/ray
that referenced
this pull request
Oct 6, 2026
## Description Style and grammar pass on Ray Data docs against Ray's [writing-style guide](https://docs.ray.io/en/master/ray-contribute/writing-style.html). Prose only: no code, `literalinclude` blocks, URLs, anchors, or role targets changed. Stacked on ray-project#66412, which is stacked on ray-project#66381, ray-project#66375, and ray-project#66352. Review and merge those first. This branch targets `doc-1524-data-vale-cleanup`. It combines this PR's original comparisons-page pass with the custom datasource pass first opened as ray-project#66416. ### `comparisons.md` - Renames the legacy "Datasets" product name to "Ray Data". The page already used "Ray Data" for the same subject in the same lists. Third-party "Torch datasets" and "TensorFlow datasets" are unchanged. - Fixes `SageMaker` and `BentoML` casing, which ray-project#66412 left as intentional alerts for this pass. - Uses contractions, active voice, second person, and "such as" for examples. - Removes "our blog post", "3rd", "e.g.", mid-sentence colons, and semicolons. - Fixes the grammar of the BentoML-and-Spark sentence and subject-verb agreement for "TensorFlow datasets". - Sentence-cases the dropdown titles and makes them parallel. - Adds a lead-in sentence to each comparison list and uses the `**Term**: explanation` definition-list form from the style guide. - Collapses runs of blank lines between dropdowns to one. ### `custom-datasource-example.md` This is the page whose `<!-- vale off -->` blocks ray-project#66412 removed so the future-tense prose they hid could be fixed. - Replaces the three "you'll" future-tense sentences with present tense. - Names Ray Data as the actor in "file types that aren't natively supported" and "Images are already supported". - Replaces "functionality" with "behavior", "Once you've implemented" with "After you implement", and the "(for example, `"png"`)" parenthetical with "such as". - Cuts the time-relative "in the future" from the write-interface note but keeps "is under active development and might change", which is the stability warning. - Corrects the block types. The page said blocks can be dictionaries of NumPy arrays, but `Block` in `block.py` is only a PyArrow table or a pandas DataFrame, including at the commit the page links to. NumPy dictionaries are a batch format. This is a factual correction. - Sentence-cases the title: "Advanced: Read and write custom file types". - Updates the one link in `loading-data.md` whose text quotes the old title. ## Why this isn't a duplicate No other open PR edits `comparisons.md`, `custom-datasource-example.md`, or `doc_code/custom_datasource_example.py`. ray-project#55038 adds an experimental SQL API and SQL docs but doesn't edit these pages. See the related question below. I also checked the open Data PRs that mention datasources, including ray-project#65760, ray-project#57239, and ray-project#55467. ## Questions for reviewers Apart from the block-types correction, this pass kept the scope of every claim. These existing claims might be stale, and a Ray Data maintainer is better placed to judge them: - **Third-party feature claims on `comparisons.md`:** Petastorm supports only Parquet, NVTabular supports only Parquet, CSV, and Avro, TensorFlow datasets support only file interleaving across worker shards, and Torch datasets have no I/O layer. - **SQL interface:** "Ray Data doesn't have a SQL interface" would go stale if ray-project#55038 lands. - **Comparisons with no measure:** "a streaming paradigm that's better suited to GPU workloads" and "can't effectively handle large datasets". The style guide's "Keep comparisons precise" section applies, but no source for a measure is on the page. - **Repeated comparison points:** the training-ingest dropdowns repeat three points almost word for word. A single comparison table might read better. That moves content, so it isn't in this PR. - **Duplicate headings:** `custom-datasource-example.md` has two H3s named "Implement the constructor", one under reading and one under writing. "Implement the datasource constructor" and "Implement the datasink constructor" would make the right-side TOC clearer. I left them as they are. ## Verification - `vale` with Vale 3.12, run from the repo root: 0 alerts on `comparisons.md`, down from 24, and 0 on `custom-datasource-example.md`, down from 6. `loading-data.md` has no alerts on the edited line. - `codespell`: no hits. - The pre-commit hooks passed on each commit. - A structural check against each pre-edit file confirmed the code-fence count, role targets, anchors, and URLs are unchanged. - For the reworded title, a grep for inbound links found the `{ref}` in `loading-data.md`, updated here, and a toctree entry in `user-guide.md`, which doesn't depend on the title. No links use the heading's implicit slug. - I didn't run a local Sphinx build. The Read the Docs preview covers rendering. ## AI assistance I made these edits with AI assistance (Claude Code) and reviewed the full diff by hand. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
nadongjun
pushed a commit
to nadongjun/ray
that referenced
this pull request
Oct 6, 2026
## Description Style and grammar pass on five Ray Data overview pages against Ray's [writing-style guide](https://docs.ray.io/en/master/ray-contribute/writing-style.html): `index.md`, `quickstart.md`, `key-concepts.md`, `user-guide.md`, and `benchmark.md`. Prose only: no code, testcode, URLs, anchors, or role targets changed. Stacked on ray-project#66413. Review and merge that stack first. This branch targets `doc-1524-data-style-pilot`. It's the first of several PRs that apply the same pass to the rest of the top-level Ray Data pages. ### All five pages - Sentence-cases headings, card titles, and button labels. - Rewords headings to the style guide: imperatives for the quickstart task sections ("Load data", "Consume data"), questions for conceptual sections ("What is a dataset?", "How does streaming execution work?"), and "Case studies" and "Quickstart" on the landing page. Each reworded heading gets an explicit label named after its old slug, such as `(consuming-data)=`, so existing URL fragments keep resolving. Two can't: `quickstart#saving-data` and `index#quick-start`, because `saving-data.md` and `serve/llm/quick-start.md` already define those label names. Nothing in the repo links to either fragment. The `quickstart#datasets` fragment is also dropped on purpose: Sphinx labels are global, so a label with a single-word name such as `datasets` would claim that name for the whole site and break the build of any later page that defines it. - Uses second person, active voice, present tense, and "such as" for examples. Recasts "lets", "allows", and "enables". - Removes dashes, parentheticals, filler, and marketing qualifiers such as "seamlessly", "performant", and "simple". - Adds list lead-ins, fixes list punctuation, and uses `1.` for ordered lists. ### Page-specific changes - `index.md`: Fixes "Hugging Face" and "pandas" spellings, fixes the "how to do perform" typo, and replaces the two bold pseudo-headings in the case studies with lead-in sentences. The advantages list is now a tight list. - `quickstart.md`: Keeps the opening list of section links with a new lead-in. - `key-concepts.md`: Converts the shuffle caveat into a `note` admonition and turns the non-sequential "during this translation" list into bullets. Names the operator classes as the source does: the logical read operator is `Read`, not `ReadOp`, and the fusion rule is `FuseOperators`, which replaced `OperatorFusionRule`. Keeps "Physical operators" plural in the list of what they do, because `InputDataBuffer` takes no input stream. - `benchmark.md`: Adds descriptive alt text to the results chart, taken from the chart's own axis and legend. Replaces bold header and row-label cells in the tables with `:stub-columns: 1`, and replaces "Link" link text with "Benchmark code". Every number, version, instance type, and S3 path is unchanged. - `user-guide.md`: Updates the quickstart link text to the new title casing. ## Questions for reviewers Apart from the two class names, this pass kept the scope of every claim. These points need a Ray Data maintainer: - **`benchmark.md` data size:** the page says "4TiB" and "4 TiB", but the S3 path says `10TiB-b64encoded-images-in-parquet-v3`. Is 4 TiB a subset? - **`benchmark.md` video workload:** the workload list says "10k video frames" and the configuration table says "1,000 videos". The dataset is also "Hollywood2" in one place and "Hollywood-2" in the other. - **`benchmark.md` run counts:** the image-classification instance-type experiment averages three runs, but the summary says four, and its g6.8xlarge values match the summary table exactly. - **`benchmark.md` bold results:** the faster result in each column is bold, but nothing on the page says so. - **`key-concepts.md` code:** the streaming example is a plain `python` block with undefined names, so it isn't tested. Its comment "Create a dataset with 1K rows" doesn't match `read_parquet(...)`. Two logical-plan output blocks have no language tag. - **`key-concepts.md` alt text:** the three `{image}` directives have no `:alt:` text. The first could reuse the surrounding prose, but the other two need someone who knows the diagrams. - **`benchmark.md` warmup:** the page says the warmup run "downloads the model". This wording predates this PR. In `release/nightly_tests/multimodal_inference_benchmarks/`, the `image_classification`, `audio_transcription`, and `document_embedding` scripts warm up by launching 64 no-op tasks to absorb cluster startup overhead, and `video_object_detection` has no warmup step. Should the sentence describe the task warmup instead? - **`key-concepts.md` optimization order:** the paragraph says Ray Data optimizes the logical plan and then translates it, but the list under it says both plans go through optimization passes during translation. This predates this PR. Which order is accurate? - **`index.md` terms:** the Key concepts card says "what Datasets are". Should that be the `Dataset` class or plain "datasets"? The page also uses "multi-modal" where Google style uses "multimodal". - **`index.md` install block:** the `console` block shows a `$` prompt, which the style guide discourages. - **`quickstart.md` opening list:** the style guide says to skip opening lists that restate the headings below. I kept this one because removing it drops the page's only links to its section labels. - **Link text elsewhere:** five links in Train pages and notebooks still say "Ray Data Quickstart". They resolve and differ only in case, so they're out of scope here. ## Verification - A meaning-diff review compared every before-and-after pair. It cleared 59 edits as cosmetic and found that 37 of the remaining 38 kept their meaning. It found one drift, a lead-in that made an example list exhaustive, fixed in a follow-up commit. - A second scan of the full diff found that the translation-list rewrite had changed "Physical operators work by" to "Each physical operator", which overstates the list. A follow-up commit restores the plural. - `vale` with Vale 3.12, run from the repo root: no warning- or error-level alerts on the five pages. - `codespell`: no hits. - The pre-commit hooks passed. - A structural check against each pre-edit file confirmed the code-fence count, role targets, anchors, and URLs are unchanged. - A grep for inbound links to every reworded heading found only the quickstart link text updated here and the Train links listed above. - `benchmark.md` is the only Ray page that uses `:stub-columns:`. Check the Read the Docs preview to confirm the first table column still renders as headers. ## AI assistance I made these edits with AI assistance (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
nadongjun
pushed a commit
to nadongjun/ray
that referenced
this pull request
Oct 6, 2026
…-project#66614) ## Why are these changes needed? The Ray Data style pass (ray-project#66413, ray-project#66418, ray-project#66419, ray-project#66420, ray-project#66422, ray-project#66423) kept the scope of every technical claim. That round flagged statements that disagree with the current source, or with other statements on the same page. This PR fixes the ones the source settles. Each edit below names the source it follows and, where one exists, the PR that caused the drift. Ray Data reviewers: please confirm each item. LLM owners: please check the `working-with-llms.md` edits. ### Performance, monitoring, and configuration - `performance-tips.md`: The default object store limit is 0.5, not 1/4. `ResourceManager.DEFAULT_OBJECT_STORE_MEMORY_LIMIT_FRACTION` is 0.5 when the resource allocator is on, and `op_resource_reservation_enabled` defaults to `True`. Docs lag since ray-project#43171 (2.10). - `performance-tips.md`: `select_columns` after `read_parquet` prunes at read time. `ProjectionPushdown` is in `_LOGICAL_RULESET`, and `ParquetDatasource.supports_projection_pushdown` returns true. Docs lag since ray-project#56500 (2.50). The page now recommends the pattern its own example uses. - `performance-tips.md`: The "following procedure" lead-in introduced bullets that don't describe a procedure. It now introduces them as rules. - `monitoring-your-workload.md`: Dropped `RAY_DATA_TRACE_SCHEDULING`, which nothing under `python/` references anymore. It was removed in ray-project#44399 (2.11). - `monitoring-your-workload.md`: Dropped the `ray.data._internal.progress_bar.ProgressBar.MAX_NAME_LENGTH` knob. The module moved to `_internal/progress/progress_bar.py`, and the tqdm, logging, and rich progress implementations read a separate copy in `base_progress.py` (ray-project#59629, 2.54). The documented public setting, `enable_progress_bar_name_truncation`, stays. - `monitoring-your-workload.md`: The lead-in no longer says all three settings reduce output. `use_ray_tqdm = False` changes the implementation, not the amount of output. - `execution-configurations.md`: Documents `retried_io_errors` in place of `write_file_retry_on_errors`. `DataContext.__setattr__` warns that the old option is deprecated. It was deprecated in ray-project#46685 (2.33). The substring-then-regex matching comes from the `retried_io_errors` docstring. - `execution-configurations.md`: The example set `verbose_progress = True`, which is already the default (ray-project#43360). It now sets `preserve_order = True`. - `how-to-avoid-ooms.md`: "Eliminates kernel OOMs" contradicted the page's own later statement that kernel OOMs can still happen with isolation enabled. It now uses the conditional wording of the page's summary. For "older versions", the object store proportion warning was removed in ray-project#62387, first released in 2.56. The node-death line no longer cites a version. ### Shuffle, aggregation, joins, and mixing - `internals.md`: The range-partitioning sampler takes `num_reducers * 10 / len(blocks)` samples per block (`SortTaskSpec.sample_boundaries`), not 10. The docs were wrong from the start, ray-project#52987. - `internals.md`: `random_shuffle` builds on `ShuffleTaskSpec`, with the push-based scheduler under `SORT_SHUFFLE_PUSH_BASED` and the pull-based scheduler otherwise (`planner/random_shuffle.py`). It doesn't use the range-partitioning shuffle. The docs were wrong from the start, ray-project#65372. - **Note:** ray-project#64875 now plans `sort()` on shuffle v2 by default. This PR removes the stale "shuffle v2 doesn't support sort" claim from the sentence it edits. It leaves documenting sort on shuffle v2, including the "doesn't yet replace the range-partitioning shuffle" sentence, to the Ray Data docs update for that change. - `shuffling-data.md`: The push-based shuffle section now uses `DataContext.shuffle_strategy` and `RAY_DATA_DEFAULT_SHUFFLE_STRATEGY` instead of the deprecated `use_push_based_shuffle` and `RAY_DATA_PUSH_BASED_SHUFFLE` (ray-project#50215, 2.43). The section also drops the 2022 log output: the "Using experimental push-based shuffle" line now logs at debug level. - `shuffling-data.md` and `joining-data.md`: Key-based repartitioning and joins no longer link "hash-shuffle" to the legacy `HASH_SHUFFLE` section. Shuffle v2 is the default for both. - `shuffling-data.md`: Dropped "in increasing order of resource consumption and runtime". The page's own benchmark shows `map_batches` shuffle keeping more throughput than local buffer shuffle. - `aggregating-data.md`: `AggregateFnV2` has two abstract methods, `aggregate_block` and `combine`. `finalize` is optional and defaults to returning the accumulator. The docs were wrong from the start, reworded in ray-project#59311. - `joining-data.md`: `_derive_max_shuffle_aggregators` caps the aggregator count at the CPU count. One partition per aggregator also needs at least `num_partitions` CPUs. - `joining-data.md`: The lead-in offered `partition_size_hint` as a tuning parameter, but the page says Ray Data ignores it. - `mixing-data.md`: `MixOperator` interleaves whole blocks, but batches can span blocks, as the page's note says. "Each local batch drawn from a single dataset" now holds only when block sizes match the batch size. - `saving-data.md`: `to_pandas()` builds the DataFrame in the calling process by iterating batches. It doesn't build it on the head node. ### Overview, loading, and modality pages - `key-concepts.md`: `get_execution_plan` runs the logical optimizer, then the planner, then the physical optimizer. `FuseOperators` is a physical rule. The paragraph no longer puts both passes "during this translation". - `key-concepts.md`: `Read` plans to `InputDataBuffer` plus a map operator (`plan_read_op.py`), matching line 74 and `internals.md`. The example also switches from `read_parquet` to `read_csv`, because `read_parquet` goes through `ListFiles` and `ReadFiles` when `use_datasource_v2` is on. That's the default since ray-project#64821 (2.57). - `custom-datasource-example.md`: "Unstable internal APIs" is now "developer APIs". `FileBasedDatasource` and `RowBasedFileDatasink` are `@DeveloperAPI`, and `Datasource` is `@PublicAPI`. - `loading-data.md`: `read_kafka` also accepts per-partition offsets. `"earliest"` is valid only as a start offset and `"latest"` only as an end offset (`kafka_datasource.py` raises otherwise). - `working-with-llms.md`: Hosted OpenAI-compatible endpoints use `HttpRequestProcessorConfig`, and `ServeDeploymentProcessorConfig` addresses Ray Serve deployments. The intro was wrong from the start, ray-project#59214. - `working-with-llms.md`: `size` is a whole-input budget. For video, Qwen3-VL's `smart_resize` compares `t * h * w` against it. The docs were wrong from the start, ray-project#63593. - `working-with-tensors.md`: `map_batches` raises `ValueError` for `batch_size="auto"` when `num_gpus` is set (ray-project#62648). ## Duplicate check This isn't duplicating an existing PR. I searched open `ray-project/ray` PRs for Ray Data docs and shuffle docs work, and none edits these statements. The one related open item is a planned Ray Data docs update for ray-project#64875. This PR deliberately leaves that change's sort-on-shuffle-v2 content alone. ## Testing - Ran the changed `testcode` snippets from `execution-configurations.md` and `shuffling-data.md` against a Ray nightly wheel. `random_shuffle` under `SORT_SHUFFLE_PUSH_BASED` returned all 1,000 rows, and `RAY_DATA_DEFAULT_SHUFFLE_STRATEGY=sort_shuffle_push_based` resolves to that strategy. - `vale` on the 15 changed files shows no new findings compared to `master`. - `pre-commit` hooks passed on commit. - I didn't run a local Sphinx build. The new cross-references target existing API entries, and the Read the Docs preview covers the build. ## AI assistance I used AI assistance (Claude Code) to trace each claim to the source and draft the edits. I 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]>
nadongjun
pushed a commit
to nadongjun/ray
that referenced
this pull request
Oct 6, 2026
ray-project#66615) ## Why are these changes needed? The Ray Data style-pass PRs (ray-project#66413, ray-project#66418, ray-project#66419, ray-project#66420, ray-project#66422, ray-project#66423) left a set of mechanical and structural items open. This PR clears them. None of the edits changes a technical claim, so it needs a style review rather than an SME review. **Markup and links** - `key-concepts.md`: tags the two logical-plan output blocks as `text`, and adds alt text to the three diagrams. - `index.md`, `shuffling-data.md`: removes `$` prompts from shell blocks. - `aggregating-data.md`, `iterating-over-data.md`: uses `{meth}` instead of `{class}` for `Dataset.max`, `min`, `sum`, and `random_shuffle`. - `aggregating-data.md`: drops the trailing slash from the blog link fragment `#performance-benchmarks/`. - `train/getting-started-lightgbm.rst`, `train/getting-started-xgboost.rst`, and two Lightning example notebooks: replaces the hard-coded "Ray Data Quickstart" link text with a bare reference, so the link renders the page title. - `loading-data.md`: moves the `(reading_kafka)=` label above the Kafka heading, stacked with `(reading-from-kafka)=`. **Structure and wording** - `quickstart.md`: replaces the opening bullet list, which restated the section headings, with one sentence that keeps the section links. - `custom-datasource-example.md`: renames the two "Implement the constructor" headings to "Implement the datasource constructor" and "Implement the datasink constructor". Nothing links to the old anchors. - `loading-data.md`: moves the Iceberg tab from the distributed DataFrame libraries tab set to the "Read files" tab set, since Iceberg is a data format rather than a DataFrame library. The tab content is unchanged. - `loading-data.md`: drops the unsourced "most popular PostgreSQL database connector" claim. - `loading-data.md`: the Hugging Face paragraph now leads with the token, which the example uses, and presents `HfFileSystem()` without a token as the fallback for public datasets. See the [ray-project#66419 review thread](ray-project#66419 (comment)). - `working-with-llms.md`: moves the usage-data note out from under the NIXL troubleshooting heading into its own closing section. - `working-with-pytorch.md`: drops the `torchaudio` mention, since the section has no `torchaudio` example. - `index.md`: "what Datasets are" becomes "what a `Dataset` is", matching the class that the linked key-concepts page defines. **For reviewers** - Please confirm the diagram alt text in `key-concepts.md`. I wrote it from what each diagram shows. - ray-project#66192 adds a REST-catalog example inside the Iceberg tab that this PR moves. Whichever PR merges second needs a small rebase: the added content moves with the tab, and its `:::` fences become `::::`. ## Related issue number None. This isn't a duplicate: the items come from reviewing the merged style-pass PRs above, and I searched open PRs touching `doc/source/data/` for overlap. The only overlap is ray-project#66192, noted above. ## Checks - [x] I've signed off every commit (DCO). - [x] `pre-commit run --files <changed files>` passes. No hook covers `doc/source` Markdown or notebooks, so every content hook skipped. - [x] Checked that both edited notebooks still parse as JSON. - [ ] Sphinx build: not run locally. Relying on the Read the Docs preview for directive nesting and cross-reference resolution. AI assistance (Claude Code) was used to make these edits. I 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]>
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.
Description
Style and grammar pass on Ray Data docs against Ray's writing-style guide. Prose only: no code,
literalincludeblocks, URLs, anchors, or role targets changed.Stacked on #66412, which is stacked on #66381, #66375, and #66352. Review and merge those first. This branch targets
doc-1524-data-vale-cleanup. It combines this PR's original comparisons-page pass with the custom datasource pass first opened as #66416.comparisons.mdSageMakerandBentoMLcasing, which [doc] Update Vale vocabulary, remove suppressions, and add Vale rules for Ray Data docs #66412 left as intentional alerts for this pass.**Term**: explanationdefinition-list form from the style guide.custom-datasource-example.mdThis is the page whose
<!-- vale off -->blocks #66412 removed so the future-tense prose they hid could be fixed."png")" parenthetical with "such as".Blockinblock.pyis only a PyArrow table or a pandas DataFrame, including at the commit the page links to. NumPy dictionaries are a batch format. This is a factual correction.loading-data.mdwhose text quotes the old title.Why this isn't a duplicate
No other open PR edits
comparisons.md,custom-datasource-example.md, ordoc_code/custom_datasource_example.py. #55038 adds an experimental SQL API and SQL docs but doesn't edit these pages. See the related question below. I also checked the open Data PRs that mention datasources, including #65760, #57239, and #55467.Questions for reviewers
Apart from the block-types correction, this pass kept the scope of every claim. These existing claims might be stale, and a Ray Data maintainer is better placed to judge them:
comparisons.md: Petastorm supports only Parquet, NVTabular supports only Parquet, CSV, and Avro, TensorFlow datasets support only file interleaving across worker shards, and Torch datasets have no I/O layer.custom-datasource-example.mdhas two H3s named "Implement the constructor", one under reading and one under writing. "Implement the datasource constructor" and "Implement the datasink constructor" would make the right-side TOC clearer. I left them as they are.Verification
valewith Vale 3.12, run from the repo root: 0 alerts oncomparisons.md, down from 24, and 0 oncustom-datasource-example.md, down from 6.loading-data.mdhas no alerts on the edited line.codespell: no hits.{ref}inloading-data.md, updated here, and a toctree entry inuser-guide.md, which doesn't depend on the title. No links use the heading's implicit slug.AI assistance
I made these edits with AI assistance (Claude Code) and reviewed the full diff by hand.
🤖 Generated with Claude Code