Migrating to Transformers v4.57.2
Version v4.57.2 introduces 1 breaking change. This guide details how to update your code.
Released: 11/24/2025
1
Breaking Changes
1
Migration Steps
3
Affected Symbols
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
AutoTokenizerget_device_and_memory_breakdowntekken.jsonBreaking Changes
●Issue #1
The @staticmethod decorator was removed from the module-level function get_device_and_memory_breakdown, which may cause errors if code was attempting to access it as a static method of a class or via an incorrect namespace.
Migration Steps
- 1Ensure calls to get_device_and_memory_breakdown are treated as standard module-level function calls rather than static methods.
Release Summary
This patch release focuses on fixing Mistral tokenizer mappings and Tekken pattern matching, while also correcting a decorator error in the device memory utility.
Need More Details?
View the full release notes and all changes for Transformers v4.57.2.
View Full Changelog