Skip to content

chore(deps): update transformers requirement from >=4.48.0 to >=5.9.0 - #150

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/transformers-gte-5.6.2
Closed

chore(deps): update transformers requirement from >=4.48.0 to >=5.9.0#150
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/transformers-gte-5.6.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Apr 27, 2026

Copy link
Copy Markdown

Updates the requirements on transformers to permit the latest version.

Release notes

Sourced from transformers's releases.

Release v5.9.0

New Model additions

Cohere2Moe

Command A+ is a Mixture-of-Experts (MoE) language model from Cohere that features a hybrid attention pattern combining sliding window and full attention layers. The model incorporates both shared and routed experts and supports a very large context window for processing extensive text sequences.

Links: Documentation

Parakeet tdt (#44171)

HRM-Text

HRM-Text is an improved autoregressive language-modeling variant of the Hierarchical Reasoning Model (HRM) that uses a hierarchical recurrent forward pass with two transformer stacks - one for slow, abstract planning (H) and one for fast, detailed computation (L) - reused inside a nested recurrence. It features PrefixLM attention where instruction tokens attend bidirectionally while response tokens attend causally, per-head sigmoid output gates, and parameterless RMSNorm. The model is designed as a base language model without instruction tuning or chat templates.

Links: Documentation | Paper

Breaking changes

The text_embeds input for SAM3, EdgeTAM, and SAM3-Lite-Text models now expects full text embeddings instead of just pooler outputs, aligning with other models in the library — users must update their inputs accordingly.

Audio

Audio support was expanded with the addition of AudioFlamingoNext model checkpoints and improved compilability of audio/vision encoders via standalone pure functions. Additional improvements include better error messaging when loading audio from video files and new documentation for audio/video processors.

Generation

Fixed generation issues including inputs_embeds and per_layer_inputs handling for Gemma4, an AttributeError in RAG's generate() caused by missing config fields, and flaky VLM generation tests by blocking special image tokens during sampling.

... (truncated)

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Apr 27, 2026

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2d09871fd2

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread requirements.txt Outdated
# AI & Machine Learning
torch>=2.0.0
transformers>=4.48.0
transformers>=5.6.2

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Align torch minimum with transformers 5.6.2

Bumping transformers to >=5.6.2 without raising torch>=2.0.0 leaves an incompatible dependency set: upstream 5.6.2 docs state Transformers 5.x works with PyTorch 2.4+, but this file still accepts 2.0–2.3. In environments where an older torch is already installed (or constrained), pip install -r requirements.txt can keep that version and then fail at runtime/import time in transformer-backed features.

Useful? React with 👍 / 👎.

@dependabot dependabot Bot changed the title build(deps): update transformers requirement from >=4.48.0 to >=5.6.2 build(deps): update transformers requirement from >=4.48.0 to >=5.8.1 May 19, 2026
@dependabot
dependabot Bot force-pushed the dependabot/pip/transformers-gte-5.6.2 branch from 2d09871 to 8f869de Compare May 19, 2026 16:16

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8f869deacc

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread requirements.txt Outdated
# AI & Machine Learning
torch>=2.0.0
transformers>=4.48.0
transformers>=5.8.1

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Raise torch minimum for Transformers 5.x

Updating transformers to >=5.8.1 while leaving torch>=2.0.0 permits environments to resolve to Torch 2.0–2.3, but Transformers 5.x is documented/tested against PyTorch 2.4+, so this dependency set can install successfully and then fail when transformer-backed paths are imported or executed. This regression is introduced by the version bump because the previous transformers floor did not require the newer Torch baseline.

Useful? React with 👍 / 👎.

Updates the requirements on [transformers](https://github.com/huggingface/transformers) to permit the latest version.
- [Release notes](https://github.com/huggingface/transformers/releases)
- [Commits](huggingface/transformers@v4.48.0...v5.9.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title build(deps): update transformers requirement from >=4.48.0 to >=5.8.1 chore(deps): update transformers requirement from >=4.48.0 to >=5.9.0 May 21, 2026
@dependabot
dependabot Bot force-pushed the dependabot/pip/transformers-gte-5.6.2 branch from 8f869de to de9399e Compare May 21, 2026 09:25

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: de9399eeb0

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread requirements.txt
# AI & Machine Learning
torch>=2.0.0
transformers>=4.48.0
transformers>=5.9.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.

P2 Badge Keep huggingface-hub constraint consistent with Transformers v5

Raising transformers to >=5.9.0 makes the repo incompatible with the existing maintenance flow in tools/maintenance/fix_vllm.sh (lines 4-5), which force-installs huggingface-hub<1.0; the Transformers v5 migration guide states v5 pins huggingface_hub to >=1.0.0, so running that script after this change can downgrade the environment into an invalid state and break subsequent transformers imports/startup.

Useful? React with 👍 / 👎.

@dependabot @github

dependabot Bot commented on behalf of github May 25, 2026

Copy link
Copy Markdown
Author

Superseded by #413.

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 python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants