release notes
release notes
Published 1/8/2026
Contains breaking changesThis release candidate is focused on fixing AutoTokenizer, expanding the dynamic weight loading support, and improving performances with MoEs!
The main issue with the tokenization refactor is that tokenizer_class are now "enforced" when in most cases they are wrong. This took a while to properly isolate and now we try to use TokenizersBackend whenever we can. #42894 has a much more detailed description of the big changes!
TokenizersBackend by @ArthurZucker in https://github.com/huggingface/transformers/pull/42894Tokenizers] Change treatment of special tokens by @vasqu in https://github.com/huggingface/transformers/pull/42903Here we focused on boosting the performances of loading weights on device!
post_init and fix all of them by @Cyrilvallez in https://github.com/huggingface/transformers/pull/42873_init_weights for ALL models by @Cyrilvallez in https://github.com/huggingface/transformers/pull/42309Ernie 4.5] Ernie VL models by @vasqu in https://github.com/huggingface/transformers/pull/39585Mostly around processors!
convert_segmentation_map_to_binary_masks to EoMT by @simonreise in https://github.com/huggingface/transformers/pull/43073Thanks again to everyone !
Full Changelog: https://github.com/huggingface/transformers/compare/v5.0.0rc1...v5.0.0rc2
release notes
Published 1/8/2026
Contains breaking changesThis release candidate is focused on fixing AutoTokenizer, expanding the dynamic weight loading support, and improving performances with MoEs!
The main issue with the tokenization refactor is that tokenizer_class are now "enforced" when in most cases they are wrong. This took a while to properly isolate and now we try to use TokenizersBackend whenever we can. #42894 has a much more detailed description of the big changes!
TokenizersBackend by @ArthurZucker in https://github.com/huggingface/transformers/pull/42894Tokenizers] Change treatment of special tokens by @vasqu in https://github.com/huggingface/transformers/pull/42903Here we focused on boosting the performances of loading weights on device!
post_init and fix all of them by @Cyrilvallez in https://github.com/huggingface/transformers/pull/42873_init_weights for ALL models by @Cyrilvallez in https://github.com/huggingface/transformers/pull/42309Ernie 4.5] Ernie VL models by @vasqu in https://github.com/huggingface/transformers/pull/39585Mostly around processors!
convert_segmentation_map_to_binary_masks to EoMT by @simonreise in https://github.com/huggingface/transformers/pull/43073Thanks again to everyone !
Full Changelog: https://github.com/huggingface/transformers/compare/v5.0.0rc1...v5.0.0rc2
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.