Skip to content

Bump torch from 2.0.1 to 2.12.0 in /doc/source/templates/05_dreambooth_finetuning/dreambooth - #64002

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/doc/source/templates/05_dreambooth_finetuning/dreambooth/torch-2.12.0
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/doc/source/templates/05_dreambooth_finetuning/dreambooth/torch-2.12.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 10, 2026 •

Copy link
Copy Markdown
Contributor

Bumps torch from 2.0.1 to 2.12.0.

Release notes

Sourced from torch's releases.

PyTorch 2.12.0 Release Notes

Highlights

For more details about these highlighted features, you can look at the release blogpost. Below are the full release notes for this release.

Backwards Incompatible Changes

Build Frontend

  • Strengthened SVE compile checks in FindARM.cmake, which may reject previously accepted but incorrect SVE configurations (#176646)

    Source builds that enable SVE now validate the compiler configuration more strictly. If a build previously passed with an incomplete or mismatched SVE setup, it may now fail during CMake configuration instead of later in compilation. Update the compiler/toolchain flags so they accurately describe the target SVE support, or disable SVE for that build.

  • Updated the minimum CUDA version required to build PyTorch from source to CUDA 12.6 (#178925)

    Building PyTorch from source with CUDA versions older than 12.6 is no longer supported. Users building custom binaries should install CUDA 12.6 or newer and make sure CUDA_HOME points to that installation.

    Version 2.11:

    CUDA_HOME=/usr/local/cuda-12.4 python setup.py develop

    Version 2.12:

    CUDA_HOME=/usr/local/cuda-12.6 python setup.py develop
  • Enforced a C++20 minimum in CMake build files (#178662)

... (truncated)

Commits
  • 0d62256 [release] Dockerfile: skip torchaudio install when CUDA_PATH=cu132 (#183346)
  • 7661cd9 [MPS] Fix SDPA wrong output for permuted q/k/v with B > 1 (#181886)
  • 9da6087 Fix stale PYTORCH_RELEASES_CODE_CC dict (fixes #182250) (#182369)
  • e4c37cc Avoid raw stream name collisions in Inductor (#182178)
  • 822d047 [MPS] Fix bool mask handling in 1-pass SDPA decode kernel (#182285) (#182311)
  • 5c5e523 Add enable_gqa parameter to SDPA MPS meta registration (#181550)
  • eece52e [AOTI] Add BC-safe c_shim v2 for _scaled_dot_product_attention_math_for_mps e...
  • b39330b [Inductor] Call latest c_shim version for versioned fallback ops (#181548)
  • 06f10d0 Revert "[FSDP2] add fqn to communication ops" (#182100) (#182157)
  • 449e339 Revert "[Inductor] Improve materialization heuristic for a chain of computaio...
  • Additional commits viewable in compare view

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jun 10, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner June 10, 2026 19:26
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jun 10, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 62ce3aa. Configure here.

jaxlib==0.4.17
numpy==1.24.4
torch==2.0.1
torch==2.12.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Torchvision version mismatch

High Severity

Bumping torch to 2.12.0 while torchvision remains pinned at 0.15.2 breaks the paired PyTorch stack. That torchvision release targets torch 2.0.x; PyTorch 2.12 expects torchvision 0.27.x. Installs may fail to resolve or the template may crash when dataset.py imports torchvision.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 62ce3aa. Configure here.

@ray-gardener ray-gardener Bot added docs An issue or change related to documentation train Ray Train Related Issue labels Jun 10, 2026
@dependabot
dependabot Bot force-pushed the dependabot/pip/doc/source/templates/05_dreambooth_finetuning/dreambooth/torch-2.12.0 branch from 62ce3aa to 3612172 Compare June 12, 2026 20:23
@dependabot
dependabot Bot force-pushed the dependabot/pip/doc/source/templates/05_dreambooth_finetuning/dreambooth/torch-2.12.0 branch from 3612172 to b398266 Compare June 16, 2026 22:18
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had
any activity for 14 days. It will be closed in another 14 days if no further activity occurs.
Thank you for your contributions.

You can always ask for help on our discussion forum or Ray's public slack channel.

If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@github-actions github-actions Bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Jul 1, 2026
@github-actions github-actions Bot added unstale A PR that has been marked unstale. It will not get marked stale again if this label is on it. and removed stale The issue is stale. It will be closed within 7 days unless there are further conversation labels Jul 11, 2026
edoakes pushed a commit that referenced this pull request Oct 15, 2026
## Why are these changes needed?

`doc/source/templates/` is the Ray 2.6-era "Ray Starter Templates"
directory. The harness that made it a templates mechanism is gone.
`exclude_patterns` in `doc/source/conf.py` drops `templates/*` from the
Sphinx build, and nothing in it backs a bazel test target. What was left
on master:

- `01_batch_inference`, `02_many_model_training`,
`03_serving_stable_diffusion`, `configs/`, `testing/`, and `README.md`
had no references outside the directory. The README documents a
contribution workflow whose scripts (`testing/validate.py`,
`testing/release/`) no longer exist.
- `04_finetuning_llms_with_deepspeed` was referenced only by a doctest
exclusion in `doc/BUILD.bazel`. #66893 repointed its last doc links to
the `deepspeed_finetune` example.
- `05_dreambooth_finetuning` backed
`train/examples/pytorch/dreambooth-finetuning.md`, which #66893
unpublished because the example doesn't run on current libraries. It
also backed two release tests, `air_example_dreambooth_finetuning` and
`air_example_dreambooth_finetuning_lora`, through symlinks in
`release/air_examples/dreambooth/`. Both tests are `frequency: manual`
and were jailed after failing (#49847, #49846). Its `requirements.txt`
pins a July-2023 stack (`torch==2.0.1`, `diffusers==0.19.3`,
`transformers==4.30.2`).

The DreamBooth example is being rebuilt on current diffusers as a new
example, so this PR deletes the old sources rather than moving them. The
rebuilt example lands outside `templates/`.

## What this PR changes

- Deletes `doc/source/templates/` (69 files).
- Deletes the unpublished
`doc/source/train/examples/pytorch/dreambooth-finetuning.md` and its
`exclude_patterns` entry. The temporary redirects in
`doc/redirects/current.yaml` from both old DreamBooth URLs to
`/train/examples.html` stay as they are, to be repointed when the
rebuilt example ships.
- Deletes `release/air_examples/dreambooth/` and the two jailed release
tests in `release/release_tests.yaml` (the whole `AIR examples` group,
which held only these two).
- Removes the dead `templates/*` patterns from `exclude_patterns` and
`llms_txt_exclude` in `conf.py`, and the `04` doctest exclusion from
`doc/BUILD.bazel`.
- `.buildkite/test.rules.txt`: drops
`doc/source/templates/05_dreambooth_finetuning/` from the
literalinclude-sources rule and `doc/source/templates/` from the skip
rule that #65289 added. `_templates/` keeps its skip rule. The comments
are updated to match.
- `.buildkite/test.rules.test.txt`: drops the `templates/` cases. The
assertion that the prose-and-image skip still wins inside a `doc`-routed
directory moves from `05` to `cluster/doc_code/`, so that coverage isn't
lost.
- `.github/CODEOWNERS`: drops `templates` from the catch-all comment's
directory list.

## Questions for reviewers

- **Release tests (ml team):** this removes
`air_example_dreambooth_finetuning` and
`air_example_dreambooth_finetuning_lora`. They're manual-only and
jailed, and their sources go away with this directory. If you'd rather
keep the test definitions as a placeholder for the rebuilt example, say
so and I'll restore them.
- **External links:** these templates were promoted publicly around Ray
2.6, so blog posts or course material might link to
`github.com/ray-project/ray/tree/master/doc/source/templates/...`. This
PR is a clean delete. If maintainers would prefer a tombstone
`README.md` pointing at the Train examples gallery, I can add one.

## Related PRs

Once this merges, the following open Dependabot PRs target manifests
that no longer exist and can be closed: #65851, #65850, #64851, #64850,
#64002, #64001, #62417, #62418, #56096, #54423, #55301.

## Duplicate check

Searched open PRs for `doc/source/templates` and `dreambooth`. The only
matches are the Dependabot bumps listed above, #67006 (my own
in-tree-links sweep, which deliberately leaves this directory alone),
and #66880 (touches `release_tests.yaml` but not the DreamBooth
entries).

## Testing

- `rayci test-rules` (built from `ray-project/rayci`) against the
updated `.buildkite/test.rules.txt` and `test.rules.test.txt`: 177/177
cases pass. Flipping one new case to a wrong expectation makes it fail,
confirming the case is live.
- `git grep` for `doc/source/templates`, each template directory name,
and `air_example_dreambooth` returns no matches outside `_templates/`.
- `conf.py` parses, and `release/release_tests.yaml` loads with
`yaml.safe_load`.
- `pre-commit` passes on the changed files, including buildifier on
`doc/BUILD.bazel` and the master-link resolution check.
- The docs build runs on this PR's Read the Docs preview.

This PR was prepared with AI assistance (Claude Code). 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 branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file docs An issue or change related to documentation python Pull requests that update Python code train Ray Train Related Issue unstale A PR that has been marked unstale. It will not get marked stale again if this label is on it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants