Transformers v5.25.0 enables kernels by default and adds support for new model architectures

Key details Starting with Transformers v5.25.0, kernels is installed as a default dependency and enabled by default in from_pretrained. On supported hardware, Flash Attention can be used through the corresponding Hub kernels even without the flash-attn package. Support has also been added for model architectures including Ergo, Kolibri 1.1, PI0.5, and Ovis2.5. Use cases Specify attn_implementation="flash_attention_2" when loading a model to use the corresponding kernel. Set use_kernels=False if the previous behavior is needed, and regenerate cached results affected by changes to Molmo2 video processing. Costs and limitations The Flash Attention path requires supported hardware and a compatible kernels version. Pricing and the licenses for individual models are unconfirmed.

Visit original source

We remember your site preferences. If you allow analytics, we also measure visits and page activity.

Analytics is off.

Cookie policy