4 December 2026

AI and agents, every day. Straight to it.

ToolsQuick notes

The Transformers v5.25.0 library installs the kernels package and uses it by default

Now bundled, kernels speeds up RMSNorm and RoPE and adds Flash Attention without installing flash-attn.

Lucas Ferraz

· 1 min read

Read in Portuguese

Transformers v5.25.0, published on GitHub on December 1 by vasqu, who authored the kernels change, makes kernels a base dependency. It now ships with pip install transformers and is switched on by default in from_pretrained. According to the v5.25.0 release notes, that speeds up operations such as RMSNorm and RoPE with no extra setup, and the gain is most visible on linear-attention models like Qwen3.5.

The practical payoff is Flash Attention. Pass attn_implementation="flash_attention_2", and if the flash-attn package is missing, the library falls back to the matching Hugging Face Hub kernel on supported hardware.

from transformers import AutoModelForCausalLM

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

The release also adds new models. Amazon's Ergo is a mixture-of-experts model with 1.1 trillion parameters, 55 billion of them active, and a 1M-token context window, aimed at software engineering and agentic workflows. Kolibri 1.1, MiniCPM5-15B-A2.5B, PI0.5, Param2Moe, LLaVA-OneVision-1.5 and Ovis2.5 arrive alongside it.

The new default sits on the list of breaking changes. Layers such as RoPE, RMSNorm, activations and Mamba/FLA may pull Hub kernels automatically, which requires a compatible kernels release. To keep the old behavior, pass use_kernels=False to from_pretrained.

Lucas Ferraz

Code & open source.

Read articles by Lucas FerrazEditorial policy
Report an error

Use 10–1,000 characters; a reply email shares this space.

Next in your reading list