Repository navigation
[doc][train] Remove data_ingest_torch_new.py, which duplicates the data-loading page's testcode - #66967
Merged
Conversation
…ta-loading page's testcode Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
Contributor
There was a problem hiding this comment.
Code Review
This pull request deletes the Python file containing various Ray Train and Ray Data integration examples, including basic training loops, custom dataset splitting, materialized datasets, ingestion options, and custom data configurations. There are no review comments, so I have no feedback to provide.
ronny-anyscale
approved these changes
Oct 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why are these changes needed?
doc/source/train/doc_code/data_ingest_torch_new.pycopies code thattrain/user-guides/data-loading-preprocessing.mdalready shows inline astestcode. No pageliteralincludes the script, but thetrain/doc_code/*.pyglob indoc/BUILD.bazelstill runs it. So the same examples live in two places and get tested twice, and the two copies have drifted. A fix to the page doesn't reach the script, and a fix to the script doesn't reach the page.This PR deletes the script. Before deleting it, I compared each of its marked sections with the page:
__basic__: The page's quickstart and the cache block cover reading Iris,normalize_length,map_batches, and passingdatasets=toTorchTrainer. The script's other extras, a commented-outrandomize_block_orderandlocal_shuffle_buffer_size, are covered by the page's links to the Ray Data shuffling guide.__custom_split__: The page's "Split datasets" block is a superset. It splits onlytrainwithdatasets_to_splitand callsfit(). The script built the trainer but never ran it.__materialized__: The page's "Cache the preprocessed dataset" block is a superset of this section.__custom__: Matches the page's "Advanced: Full customization" block line for line, except that the page reads a different dataset.__options__:DataConfig.default_ingest_options()with anobject_store_memoryoverride passed asexecution_options. No page shows this snippet. It only built a trainer and asserted nothing.DataConfig(execution_options=...)is covered by the unit tests inpython/ray/train/v2/tests/test_data_config.py, and the Ray Data performance tips page documentsresource_limits. So I dropped it rather than moving it onto the page.The page needs no changes, and neither does
doc/BUILD.bazel. The glob picks the script up implicitly, so deleting the file removes its test target.git grep data_ingest_torch_newreturns nothing after this change.Reviewers: Is dropping the
__options__snippet right, or should the Train data-loading page document per-trainer ingest resource limits?Duplicate check
gh pr list --state all --search data_ingest_torch_newreturns no PRs. This is one in a series of PRs that remove doc code no page shows, alongside #66966 (Core), #66965 (RLlib), and #66964 (Serve). None of them touch Train.Testing
git grep data_ingest_torch_newshows no remaining references in.buildkite, BUILD files, CODEOWNERS, or docs.doctest[train-gpu]target still runs the blocks that replace the script. This PR doesn't change them.This PR was prepared with AI assistance (Claude Code). I reviewed every changed line.
🤖 Generated with Claude Code