Skip to content

Compatibility with Transformers v5 - #1999

Merged
jordimas merged 1 commit into
OpenNMT:masterfrom
jordimas:transformers_5_compatibility
Jan 31, 2026
Merged

jordimas merged 1 commit into
OpenNMT:masterfrom
jordimas:transformers_5_compatibility

Conversation

@jordimas

@jordimas jordimas commented Jan 29, 2026 •

Copy link
Copy Markdown
Collaborator

Transformers v5 was released this week and breaks some of Transfomer's model conversions

Changes

  • Replaces deprecated attributes with options which work in v4 and v5
  • Adds logic to read the new rotary parameters

@jordimas
jordimas merged commit 4414cb7 into OpenNMT:master Jan 31, 2026
17 checks passed
@jordimas
jordimas deleted the transformers_5_compatibility branch January 31, 2026 06:25
Lanurence666 pushed a commit to Lanurence666/CTranslate2_backport_py38 that referenced this pull request May 23, 2026
Transformers v5 was released this week and breaks some of Transfomer's model conversions

Changes:

- Replaces deprecated attributes with options which work in v4 and v5
- Adds logic to read the new rotary parameters
veilnetwork pushed a commit to veilnetwork/CTranslate2 that referenced this pull request Aug 27, 2026
Transformers v5 was released this week and breaks some of Transfomer's model conversions

Changes:

- Replaces deprecated attributes with options which work in v4 and v5
- Adds logic to read the new rotary parameters
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