pypi transformers 5.26.0
Release v5.26.0

48 minutes ago

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

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

  • 🚨 [PR3] [Modular Cleanup] *RotaryEmbedding canonical parents and renaming (#50537) by @itazap
  • 🚨 [Indexer] Refactor Indexers (#51202) by @vasqu

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:

  • @vasqu
    • Add mtp (#51701)
    • 🚨 [Indexer] Refactor Indexers (#51202)
    • Add qwen4 (#51678)
    • [kernels] fix sonicmoe revision/version (#51647)
    • [Kernels] Adjust kernels compat (#51621)
    • Update dev (#51586)
  • @itazap
    • 🚨 [PR3] [Modular Cleanup] *RotaryEmbedding canonical parents and renaming (#50537)
  • @kashif
    • Add WeatherNext 2 weather forecasting model (#47874)
    • [kernels] Use mamba-ssm v6 and flash-attn4 v2 (#51587)
  • @eustlb
    • Add Liquid Codec (#50987)
    • [ALM] allow inputs_embeds + input_features (#51492)

Don't miss a new transformers release

NewReleases is sending notifications on new releases.