Hugging Face has released Transformers v5.25.0, enabling kernels that accelerate model computations by default and adding seven model architectures. Developers need fewer separate installations for acceleration on supported hardware. They can also handle new language, vision and robotics models in the same library.
1. Less need to install acceleration features separately
Starting with this version, kernels is a default dependency installed with pip install transformers. Kernels are enabled by default when loading models. The release notes say they improve operations such as normalization, value range adjustment and positional processing without extra configuration.
On supported hardware, users can select Flash Attention to accelerate attention, which computes relationships between input elements. If the relevant package is missing, it automatically falls back to a matching kernel on the Hugging Face Hub. The release notes provide this example:
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen3.5-4B",
device_map="auto",
attn_implementation="flash_attention_2",
)Fewer installation and configuration steps come with an added kernel package in the runtime environment. Some work previously needed to prepare acceleration now happens during the library's default installation and model loading.
2. Broader support from language models to robot manipulation
Among the seven newly supported models, Amazon's Ergo targets software development and agent tasks. Of its 1.1 trillion total parameters, 55 billion are active during processing. Its context window is 1 million tokens.
MiniCPM5-15B-A2.5B and Param-2-17B-MoE-A2.4B are mixture-of-experts language models that select subsets of their networks based on the input.
Table: Parameter specifications for MiniCPM5 and Param2Moe
Conditions: Total parameters and active parameters per token as specified in the release notes, not performance measurements.
Unit: billion / B (1 billion parameters)
| Model | Total parameters | Active parameters per token |
|---|---|---|
| MiniCPM5-15B-A2.5B | 15 billion | 2.5 billion |
| Param-2-17B-MoE-A2.4B (Param2Moe) | 17B | 2.4B |
Param2Moe has more total parameters than MiniCPM5 but fewer active parameters per token. Overall model size differs from the size used to process one token. These specifications alone cannot establish actual speed or memory usage.
Aleph Alpha's Kolibri 1.1 places a layer that sparsely attends across the full context at every fifth layer. Each query attends to the first 8 tokens, the most recent 128 tokens and the 2048 highest-scoring remaining keys. This preserves the start of the context and recent inputs while selecting the rest by score.
Physical Intelligence's PI0.5 is a vision-language-action model that reads camera images and instructions to predict robot actions. It divides the robot state into 256 bins and includes it in the text prompt.
3. Vision models added with paper-reported comparisons
LLaVA-OneVision-1.5 combines a vision encoder that converts images at their native resolution into numerical representations with the Qwen3 language model. This release supports instruction-tuned 4 billion- and 8 billion-parameter models.
The paper cited in the release notes reports the following comparisons.
Table: LLaVA-OneVision-1.5 benchmark results by comparison model
Conditions: Based on the paper cited in the release notes. Each row uses a different comparison model.
Unit: benchmarks (number of wins out of 27 total benchmarks)
| Model | Comparison model | Benchmarks won | Total benchmarks |
|---|---|---|---|
| LLaVA-OneVision-1.5 8B | Qwen2.5-VL-7B | 18 | 27 |
| LLaVA-OneVision-1.5 4B | Qwen2.5-VL-3B | 27 | 27 |
Chart: Number of benchmarks outperforming each comparison model (each bar segment represents 1 benchmark)
8B → Qwen2.5-VL-7B ██████████████████ 18/27
4B → Qwen2.5-VL-3B ███████████████████████████ 27/27Ovis2.5 processes variable-resolution images, whose dimensions vary with the input size, as groups of patches rather than fixed-resolution tiles. It supports image, video and text understanding. Users can also choose a prompt format that encourages longer reasoning, deriving answers step by step.
4. Check the runtime environment and video processing when upgrading
Molmo2 video processing now samples frames in the same way as the Hub processor. In the release notes' example of a 9.72-second video at 25 frames per second, the extracted frame count changes from 19 to 21.
Indices grouping image and video tokens are now computed per item rather than across an entire batch of inputs. This makes individual items easier to cache for reuse or combine.
Kernels enabled by default require compatible package versions. Set use_kernels=False to retain the previous behavior.
Molmo2 users should rebuild existing video caches and update any code that calculates index positions across an entire batch.
Generation can now roll back caches of intermediate computation states. This enables assisted generation, which proposes and verifies draft tokens, for models using linear attention, such as recent Qwen models. Models using only linear attention can also resume generation from an existing cache.
Transformers v5.25.0 makes acceleration part of the default workflow and expands the tasks supported by the same library across language, vision and robotics.
