Verified, then logged.
Wed 2 Dec 2026 · 17:47 KST / 08:47 UTC한국어 | ENSearch /

02 / IT · Analysis

Transformers enables kernels by default at model load

Molmo2 changes how it samples video frames, and Hugging Face says users should regenerate cached results.

Hugging Face enabled compute kernels by default when loading models in Transformers v5.25.0 and said in the release notes that kernels from its Hub can load automatically for supported operations.

Developers who run pip install transformers now get the kernels package automatically. A compatible version of the package lets Transformers load Hub kernels for supported operations. To keep the previous loading behaviour, developers can pass use_kernels=False to from_pretrained.

Hugging Face said the performance gains were particularly noticeable on models that use linear attention, such as Qwen3.5. The release notes show how to load Qwen/Qwen3.5-4B with Flash Attention, but give no figures for processing time or memory use.

On supported hardware, developers can select Flash Attention by setting attn_implementation to flash_attention_2 when loading a model. If the flash-attn package is absent, Transformers loads the corresponding kernel from the Hub.

The Hub’s deformable attention kernel gained ROCm support, and its fla kernel for linear attention moved to v3. Runtimes such as vLLM can now use kernelize to swap out each of three linear-attention operations separately: causal conv1d, Mamba scan and Mamba2 SSD.

Frames sampled from the Molmo2 example video

Molmo2Previous release19
v5.25.021
Source github.com · as of 2026-12-02 · unit: framesChart: made by LOGIT

Molmo2 video input processing

Molmo2 now selects input frames the same way as the Hub’s sample_frames function. In the release notes’ example, the clip runs for 9.72 seconds at 25 frames per second. The new version selects 21 frames from it, up from 19.

A different set of frames can change what the model receives and what it returns, even when the video is the same. Hugging Face told users to regenerate cached results with the new version.

Molmo2’s processors now calculate the positions used to group visual tokens separately for each image or video. The model adjusts those positions to account for earlier items in the same call. Processed items can be cached individually, split apart or combined.

Code that processes multiple images or videos together may rely on positions numbered across the whole batch. That code needs to use the positions supplied for each item.