Migrating to Transformers v5.8.0
Version v5.8.0 introduces 1 breaking change. This guide details how to update your code.
Released: 5/5/2026
1
Breaking Changes
1
Migration Steps
5
Affected Symbols
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
T5RMSNormPreTrainedTokenizer.convert_ids_to_tokenstext_configAutoModelFor*Breaking Changes
●Issue #1
Apex integration has been removed from the library (including RMSNorm usage in T5 and related models). Users relying on Apex for mixed precision or fused ops should migrate to PyTorch's native equivalents instead.
Migration Steps
- 1Migrate from Apex for mixed precision or fused ops to PyTorch's native equivalents.
Release Summary
Version 5.8.0 introduces support for several new models including DeepSeek V4, Gemma 4 Assistant, and various vision/speech models. This release also removes Apex integration, requiring migration to native PyTorch equivalents for related functionality.
Need More Details?
View the full release notes and all changes for Transformers v5.8.0.
View Full Changelog