Repository navigation
Update dependency transformers to v5.26.0 - #110
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/hugging-face-training-stack
branch
from
December 2, 2026 23:53
31bbde6 to
17fdde1
Compare
renovate
Bot
force-pushed
the
renovate/hugging-face-training-stack
branch
from
December 4, 2026 05:59
17fdde1 to
e27308e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
==5.24.1→==5.26.0Release Notes
huggingface/transformers (transformers)
v5.26.0Compare Source
New Model additions
Qwen4
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,
Qwen4ForCausalLMhandles text generation, andQwen4ForConditionalGenerationhandles image and video inputs. The documentation shows usage with theQwen/Qwen4-27Bcheckpoint.Links: Documentation
Qwen4 MoE
Qwen4 MoE uses the mixture-of-experts and per-layer embedding architecture described in Qwen4-Exp.
Qwen4MoeForCausalLMhandles text generation, andQwen4MoeForConditionalGenerationhandles image and video inputs. The documentation gives no further detail on the model's capabilities, training, or sizes.Links: Documentation
Molmo3
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
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
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
Indexer] Refactor Indexers (#51202) by @vasquKernels
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
kernels] fix sonicmoe revision/version (#51647) by @vasqu in [#51647]Kernels] Adjust kernels compat (#51621) by @vasqu in [#51621]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
_apply_post_expert_norm, Ergo on the stock experts backends (#51615) by @IlyasMoutawwakil in [#51615]52bac5d(PR #50897) (#51660) by @sergereview[bot] in [#51660]smart_resizeto compute the pixel budget with padded frame counts (#51155) by @11098489 in [#51155]Significant community contributions
The following contributors have made significant changes to the library over the last release:
Indexer] Refactor Indexers (#51202)kernels] fix sonicmoe revision/version (#51647)Kernels] Adjust kernels compat (#51621)v5.25.1: Patch release v5.25.1Compare 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.0Compare Source
Release v5.25.0
New Model additions
Ergo
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
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,
kernelsis a base dependency of Transformers and is automatically installed withpip install transformers. Kernels are now enabled by default when loading models withfrom_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.No separate installation of
flash-attnorkernelsis required.To restore the previous behavior, pass
use_kernels=Falsetofrom_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.sample_frames(#51325) by @lucamotzMolmo2's image and video processors now compute
image_token_poolingandvideo_token_poolingindices 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_kernelsdefaults toTrueinfrom_pretrained), so supported layers such as RoPE, RMSNorm, activations, and Mamba/FLA may load Hub kernels automatically; this requires a compatiblekernelsrelease, and you should passuse_kernels=Falseto keep the previous behavior.Sub-processor loading was reworked to resolve from the nested processor dict, which adds a public
ProcessorMixin.from_dictclassmethod 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;🚨 Make the causal conv1d, Mamba scan and Mamba2 SSD of linear attention layers kernelizable (#49186) by @hmellor
🚨 [modular fix] remove failing freeze_encoder (#51252) by @ebezzam
🚨 [PR2] [Modular Cleanup] *Norm canonicals and renaming (#50523) by @itazap
🚨 [
EP/TP] Deprecate TP on MoE (#50897) by @vasquKernels
This release updates the kernels integration: it removes the legacy megablocksmoe kernel and the incorrect FalconMamba
mamba_inner_fnkernel, bumps the minimumkernelsversion, and moves theflahub kernel to v3. It also adds ROCm support for the deformable attention kernel, loads Hub kernels set on sub-configs inset_attn_implementation, and keeps the tensor-parallel gradient all-Kernels] Remove last remains of megablocksmoe (#51541) by @vasqu in [#51541]test_model_parallelism(#51439) by @ydshieh in [#51439]Kernels] Fix logger location after version bump (#51344) by @vasqu in [#51344]Kernels] Bump min version (#51258) by @vasqu in [#51258]Vision
This release fixes a range of vision and multimodal bugs. The fixes cover multi-GPU
device_map="auto"splits for nine vision models,AutoProcessorand 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_merge_and_standardize_kwargsto image and video processors (#50706) by @hmellor in [#50706]Glm5NextProcessor.apply_chat_template(#50749) by @HuayuSha in [#50749]AutoProcessorwith a remote-code image processor (#51323) by @lucamotz in [#51323]images=andaudio=pipeline calls in the pipeline tutorial (#51192) by @AlexxRussell in [#51192]_get_num_multimodal_tokensto more image/video processors (#50671) by @hmellor in [#50671]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
input_idstogether with the attention mask (#51107) by @ydshieh in [#51107]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=Trueis 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 guidepost_process_maskscalls in the mask generation guide (#51256) by @AlexxRussell in [#51256]Configuration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.