Skip to content

Update dependency transformers to v5.26.0 - #109

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/transformers-5.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/transformers-5.x

Conversation

@renovate

@renovate renovate Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
transformers ==5.24.1 → ==5.26.0 age adoption passing confidence

Release Notes

huggingface/transformers (transformers)

v5.26.0

Compare Source

New Model additions

Qwen4
image

Qwen4 is a model that combines Gated DeltaNet and Qwen Sparse Attention with GatedResidual connections and a dense SwiGLU feed-forward network. In Hugging Face Transformers, Qwen4ForCausalLM handles text generation, and Qwen4ForConditionalGeneration handles image and video inputs. The documentation shows usage with the Qwen/Qwen4-27B checkpoint.

Links: Documentation

Qwen4 MoE

Qwen4 MoE uses the mixture-of-experts and per-layer embedding architecture described in Qwen4-Exp. Qwen4MoeForCausalLM handles text generation, and Qwen4MoeForConditionalGeneration handles image and video inputs. The documentation gives no further detail on the model's capabilities, training, or sizes.

Links: Documentation

Molmo3
image

Molmo3 is a family of open vision-language models from the Allen Institute for AI (Ai2), focused on spatial and 3D understanding and grounding. It accepts single images, multiple images and videos. It uses the Molmo2 architecture: a SigLIP 2-initialized vision transformer, an adapter that pools patch features into image tokens, and a Qwen3-initialized text decoder. A grounding head, introduced by MolmoPoint, generates grounding tokens instead of text coordinates. With it, the model can point to objects in images and videos, track objects in videos, segment objects, estimate depth or surface normals at a point, and predict 3D boxes.

Links: Documentation | Paper

WeatherNext 2
image

WeatherNext 2 is a global weather forecasting model from Google DeepMind and Google Research. It generates ensemble forecasts in six-hour steps and predicts atmospheric conditions and tropical cyclone diagnostics. Transformers now supports the full-resolution 0.25° checkpoints and a lighter 1° Mini model, with community-converted weights available in the WeatherNext2 collection.

Links: Documentation

Liquid Codec
image

Liquid Codec is the speech codec of LFM3-Audio by Liquid AI. It converts 24 kHz audio into 12 codebooks of 2016 codes at 12.5 Hz and decodes the codes back to audio. It consists of a causal LFM3 encoder, a finite scalar quantizer, and a causal LFM3 decoder followed by an inverse STFT head that synthesizes the waveform. It supports batched processing with right padding and streaming decoding.

Links: Documentation

Breaking changes

Kernels

This release updates Hub kernel integrations and compatibility: it moves to mamba-ssm v6 and flash-attn4 v2 (which no longer need pip-installed einops), fixes the sonic-moe revision/version, and adjusts kernels that didn't meet Transformers' standards. It also re-enables the Atlas Gated DeltaNet kernels for Qwen3.5/3.6/3.8 on GB10 and Strix Halo, now that

Attention

This release fixes several attention-related issues. The deferred generate check is now handled correctly for linear attention and encoder-decoder models, which keeps them compatible with the default cudagraphs compile config. Flash Attention is re-enabled for Gemma 4 checkpoints that don't use bidirectional attention over images (E2B and E4B), and still raises an error for those that do. Flash Attention also no longer drops queries in non-causal cross-attention when the keys are

Bugfixes and improvements

Significant community contributions

The following contributors have made significant changes to the library over the last release:

v5.25.1: Patch release v5.25.1

Compare Source

Patch release v5.25.1

A mix of very different issues, some tokenizers, modeling, and kernels. See the full list below:

Full Changelog: huggingface/transformers@v5.25.0...v5.25.1

v5.25.0

Compare Source

Release v5.25.0

New Model additions

Ergo
image

Amazon Ergo is a frontier open-weights model for software engineering and agentic workflows. Ergo is designed to tackle complex, long-running tasks while being fast and cost efficient. Ergo is a 1.1 trillion parameter mixture-of-experts model with 55 billion active parameters and a 1M-token context window.

Links: Documentation | Model weights | Official Post

Kolibri1_1
image

Kolibri 1.1 is Aleph Alpha's successor to Kolibri 1. It is a causal language model that keeps the mixture-of-experts layers and sliding-window attention layers of Kolibri 1, and uses dense MLPs in its first two layers. Every fifth layer is an "indexed_attention" layer that sparsely attends to the whole context. Each query sees the first 8 tokens, the 128 most recent tokens, and the 2048 highest-scoring other keys. Keys and values are rounded to NVFP4. The Transformers version is a reference implementation that supports only the eager and SDPA attention implementations.

Links: Documentation

MiniCPM5-15B-A2.5B

MiniCPM5-15B-A2.5B is a decoder-only mixture-of-experts language model with 15 billion total parameters and 2.5 billion active parameters per token. It uses gated grouped-query attention. The first decoder layer has a dense feed-forward network, and each later layer combines a shared expert with 16 routed experts selected from 160 per token.

Links: Documentation

PI0.5

PI0.5 is a vision-language-action model for robot manipulation from Physical Intelligence. It keeps the PI0 layout: a PaliGemma backbone reads the camera images and the prompt, and a smaller Gemma action expert predicts a chunk of actions with flow matching. Compared to PI0, the robot state is discretized into 256 bins and written into the text prompt rather than projected into the action expert, and the action expert receives the denoising timestep through adaptive RMS norms.

Links: Documentation | Paper

Param2Moe

Param2Moe is the architecture behind Param-2-17B-MoE-A2.4B, a Mixture of Experts language model from BharatGen AI. It has 17B total parameters, with 2.4B active per token, and supports English, Hindi, and 21 Indian languages. It uses grouped-query attention with QK normalization and full rotary position embeddings. Its hybrid MoE design has a dense first layer, then routes each token to 6 of 64 experts plus 2 always-active shared experts, using sigmoid routing with expert bias correction. The architecture is the same as GLM-4-MoE, so the auto classes load it with the GLM-4-MoE implementation and only the config is specific to Param2Moe.

Links: Documentation

LLaVA-OneVision-1.5

LLaVA-OneVision-1.5 is a vision-language model that pairs a native-resolution vision encoder with a Qwen3 language backbone. The vision encoder adds a learned class token to each image, applies full attention, removes the class token, and merges spatial patches into visual features for the language model, which uses standard one-dimensional rotary positions over the combined image and text sequence. The accompanying paper presents an open framework for training vision-language models from scratch at reduced cost. It reports that the 8B model exceeds Qwen2.5-VL-7B on 18 of 27 benchmarks and the 4B model exceeds Qwen2.5-VL-3B on all 27. Transformers supports the 4B and 8B Instruct checkpoints.

Links: Documentation | Paper

Ovis2.5

Ovis2.5, from AIDC-AI, is a multimodal model for image, video, and text understanding. It combines a native-resolution vision encoder, which keeps variable-resolution visual inputs as a sequence of patches rather than fixed-resolution tiles, with a visual tokenizer and a Qwen3 language backbone. It also offers an optional thinking prompt format for tasks that benefit from a longer reasoning response.

Links: Documentation | Paper

Kernels becomes a default dependency

Starting with this release, kernels is a base dependency of Transformers and is automatically installed with pip install transformers. Kernels are now enabled by default when loading models with from_pretrained, bringing out-of-the-box performance improvements to operations such as RMSNorm and RoPE, with particularly noticeable benefits for models using linear attention, such as Qwen3.5.

Another benefit is that Flash Attention is now available out of the box on supported hardware. Simply pass attn_implementation="flash_attention_2" when loading a model, and Transformers will automatically fall back to the corresponding Hub kernel if the Flash Attention package is not installed.

from transformers import AutoModelForCausalLM

model = AutoModelForCausalLM.from_pretrained(
    "Qwen/Qwen3.5-4B",
    device_map="auto",
    attn_implementation="flash_attention_2",
)

No separate installation of flash-attn or kernels is required.

To restore the previous behavior, pass use_kernels=False to from_pretrained.

Breaking changes

Molmo2VideoProcessor now samples frames the same way as the Hub processor's sample_frames (e.g. 21 instead of 19 frames for a 9.72 s video at 25 fps), so video inputs and outputs may differ from earlier releases; no code changes are required, but cached results should be regenerated.

Molmo2's image and video processors now compute image_token_pooling and video_token_pooling indices per item, with no offset from earlier items in the same call, so items can be cached, split, or concatenated safely. Code that relied on batch-global offsets must be updated, because the model now applies them.

Kernels are now enabled by default (use_kernels defaults to True in from_pretrained), so supported layers such as RoPE, RMSNorm, activations, and Mamba/FLA may load Hub kernels automatically; this requires a compatible kernels release, and you should pass use_kernels=False to keep the previous behavior.

Sub-processor loading was reworked to resolve from the nested processor dict, which adds a public ProcessorMixin.from_dict classmethod and deprecates the old non-keyword argument passing; custom processors or remote code that relied on the old arguments should migrate to the new keyword-based flow.

The causal conv1d, Mamba scan, and Mamba2 SSD steps in linear attention layers are now exposed as three kernelizable seams, so runtimes such as vLLM can replace them with kernelize;

Kernels

This release updates the kernels integration: it removes the legacy megablocksmoe kernel and the incorrect FalconMamba mamba_inner_fn kernel, bumps the minimum kernels version, and moves the fla hub kernel to v3. It also adds ROCm support for the deformable attention kernel, loads Hub kernels set on sub-configs in set_attn_implementation, and keeps the tensor-parallel gradient all-

Vision

This release fixes a range of vision and multimodal bugs. The fixes cover multi-GPU device_map="auto" splits for nine vision models, AutoProcessor and dynamic processor lookup with remote-code or per-backend image processors, Qwen3-VL video token expansion, Glm5Next tool-result image placeholders, Inkling vision tower dtype casting, and batch-dependent output in image-text-to-text and any-to-any pip

Attention

This release improves attention across several models and backends. Linear-attention-only models can now restart generation from an existing cache, Falcon no longer adds the ALiBi bias twice in eager attention, and the SDPA position bias mask no longer overflows under autocast. Continuous batching now auto-switches to flash attention only for half-precision models. SigLIP2 gains Flash Attention support, DeepSeek-V3 attention is sharded under tensor parallelism, and

Generation

Assisted decoding is more robust: caches with recurrent states can now be rolled back, which enables assisted generation for linear-attention models such as recent Qwen variants. Cropping in older assisted decoding methods is fixed, as are a crash when output_attentions=True is used with a model that returns no attentions and a speculative-sampling bug that could accept zero-probability draft tokens. generate() now auto-compiles on MPS, the mask generation guide

[!IMPORTANT]
✂ PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • "before 6am"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/transformers-5.x branch from cacd729 to 53d6e6b Compare December 2, 2026 23:52
@renovate renovate Bot changed the title Update dependency transformers to v5.25.0 Update dependency transformers to v5.25.1 Dec 2, 2026
@renovate
renovate Bot force-pushed the renovate/transformers-5.x branch from 53d6e6b to bbc951d Compare December 4, 2026 05:59
@renovate renovate Bot changed the title Update dependency transformers to v5.25.1 Update dependency transformers to v5.26.0 Dec 4, 2026
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.

0 participants