Skip to content

Bump transformers from 4.30.1 to 4.52.1 in /doc/source/templates/testing/docker/03_serving_stable_diffusion - #54423

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/doc/source/templates/testing/docker/03_serving_stable_diffusion/transformers-4.52.1
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/doc/source/templates/testing/docker/03_serving_stable_diffusion/transformers-4.52.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 8, 2025 •

Copy link
Copy Markdown
Contributor

⚠️ Dependabot is rebasing this PR ⚠️

Rebasing might not happen immediately, so don't worry if this takes some time.

Note: if you make any changes to this PR yourself, they will take precedence over the rebase.


Bumps transformers from 4.30.1 to 4.52.1.

Release notes

Sourced from transformers's releases.

Patch release v4.51.3

A mix of bugs were fixed in this patch; very exceptionally, we diverge from semantic versioning to merge GLM-4 in this patch release.

  • Handle torch ver in flexattn (#37400)
  • handle torch version edge cases (#37399)
  • Add glm4 (#37388)

Patch Release 4.51.2

This is another round of bug fixes, but they are a lot more minor and outputs were not really affected!

Patch release v4.51.1

Since the release of Llama 4, we have fixed a few issues that we are now releasing in patch v4.51.1

  • Fixing flex attention for torch=2.6.0 (#37285)
  • more fixes for post-training llama4 (#37329)
  • Remove HQQ from caching allocator warmup (#37347)
  • fix derived berts _init_weights (#37341)
  • Fix init empty weights without accelerate (#37337)
  • Fix deepspeed with quantization (#37324)
  • fix llama4 training (#37319)
  • fix flex attn when optional args aren't passed (#37327)
  • Multiple llama4 fixe (#37353)

Thanks all for your patience

v4.51.0: Llama 4, Phi4-Multimodal, DeepSeek-v3, Qwen3

New Model Additions

Llama 4

image

Llama 4, developed by Meta, introduces a new auto-regressive Mixture-of-Experts (MoE) architecture.This generation includes two models:

  • The highly capable Llama 4 Maverick with 17B active parameters out of ~400B total, with 128 experts.
  • The efficient Llama 4 Scout also has 17B active parameters out of ~109B total, using just 16 experts.

Both models leverage early fusion for native multimodality, enabling them to process text and image inputs. Maverick and Scout are both trained on up to 40 trillion tokens on data encompassing 200 languages (with specific fine-tuning support for 12 languages including Arabic, Spanish, German, and Hindi).

For deployment, Llama 4 Scout is designed for accessibility, fitting on a single server-grade GPU via on-the-fly 4-bit or 8-bit quantization, while Maverick is available in BF16 and FP8 formats. These models are released under the custom Llama 4 Community License Agreement, available on the model repositories

Getting started with Llama 4 using transformers is straightforward. Make sure you have transformers v4.51.0 or later installed:

pip install -U transformers[hf_xet]
</tr></table> 

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jul 8, 2025
@dependabot
dependabot Bot requested a review from a team as a code owner July 8, 2025 17:01
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jul 8, 2025
Bumps [transformers](https://github.com/huggingface/transformers) from 4.30.1 to 4.52.1.
- [Release notes](https://github.com/huggingface/transformers/releases)
- [Commits](huggingface/transformers@v4.30.1...v4.52.1)

---
updated-dependencies:
- dependency-name: transformers
  dependency-version: 4.52.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot
dependabot Bot force-pushed the dependabot/pip/doc/source/templates/testing/docker/03_serving_stable_diffusion/transformers-4.52.1 branch from a93cea5 to adacc14 Compare July 9, 2025 05:52
@github-actions

github-actions Bot commented Aug 5, 2025

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 Aug 5, 2025
@ray-gardener ray-gardener Bot added serve Ray Serve Related Issue docs An issue or change related to documentation labels Aug 15, 2025
@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 Aug 15, 2025
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 serve Ray Serve 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