Skip to content

[feat] Allow transformers v5.0, add CI for transformers <v5 and >=v5#3586

Merged
tomaarsen merged 3 commits intohuggingface:mainfrom
tomaarsen:feat/transformers_v5_support
Dec 5, 2025
Merged

[feat] Allow transformers v5.0, add CI for transformers <v5 and >=v5#3586
tomaarsen merged 3 commits intohuggingface:mainfrom
tomaarsen:feat/transformers_v5_support

Conversation

@tomaarsen
Copy link
Member

Hello!

Pull Request overview

  • Allow transformers v5.0 in pyproject.toml
  • Add separate CI for transformers =v5

Details

The new CI tests are temporary and will be removed when Sentence Transformers moves to exclusively transformers>=5.0.0 with its new releases.

  • Tom Aarsen

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enables support for transformers v5.0 by updating the version constraint in pyproject.toml and adding CI matrix testing for both transformers <5.0.0 and >=5.0.0. The dual CI setup is intended to be temporary until Sentence Transformers exclusively adopts transformers >=5.0.0.

Key Changes

  • Updated transformers dependency constraint from <5.0.0 to <6.0.0 to allow v5.x releases
  • Added transformers_version matrix dimension to CI with values <5.0.0 and >=5.0.0
  • Split dependency installation into conditional steps based on transformers version

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
pyproject.toml Updated transformers version constraint upper bound from 5.0.0 to 6.0.0
.github/workflows/tests.yml Added matrix dimension for transformers versions and conditional installation steps

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tomaarsen tomaarsen enabled auto-merge (squash) December 5, 2025 11:07
@tomaarsen tomaarsen disabled auto-merge December 5, 2025 11:07
@tomaarsen tomaarsen merged commit f9724ff into huggingface:main Dec 5, 2025
15 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant