Change8

Migrating to Transformers v5.6.0

Version v5.6.0 introduces 1 breaking change. This guide details how to update your code.

Released: 4/22/2026

1
Breaking Changes
1
Migration Steps
12
Affected Symbols

⚠️ Check Your Code

If you use any of these symbols, you need to read this guide:

Attention module (internal rotary_fn)Qwen2.5-VLEmu3 image processorBLIP image processorPeVideo model encoderPeAudioVideo model encoderRouterParallel (Expert Parallelism)FSDP processesPP-DocLayoutV3streamer classesKimi-K2.5 tokenizerQwen3VLProcessor

Breaking Changes

Issue #1

The internal `rotary_fn` is no longer registered as a hidden kernel function. Code referencing `self.rotary_fn(...)` within an Attention module must be updated to call the function directly instead.

Migration Steps

  1. 1
    Update any code referencing `self.rotary_fn(...)` within an Attention module to call the function directly instead of through `self.rotary_fn`.

Release Summary

Version 5.6.0 introduces four new models: OpenAI Privacy Filter, Qianfan-OCR, SAM3-LiteText, and SLANet. This release also significantly enhances `transformers serve` with new endpoints and multimodal support, alongside several critical fixes in vision, parallelization, and tokenization.

Need More Details?

View the full release notes and all changes for Transformers v5.6.0.

View Full Changelog