Transformers now runs Flash Attention with no extra install, and loads Amazon's Ergo
1 day ago
Transformers v5.24.1 to v5.25.0: kernels now ship with Transformers and switch on when a model loads, so Flash Attention works without installing flash-attn; Amazon's Ergo, Aleph Alpha's Kolibri 1.1, Physical Intelligence's PI0.5, LLaVA-OneVision-1.5, Ovis2.5, MiniCPM5 and Param2Moe arrive; assisted decoding reaches linear attention models; generate() compiles on Apple silicon; and transformers serve splits into two processes.
Links
Ask about this presentation
Chapters
0:00Kernels on by default
0:11Flash Attention without flash-attn
0:19Kernels caveats
0:26New models
0:28Amazon Ergo
0:38Is Ergo's win luck?
0:48Kolibri 1.1
0:59PI0.5
1:09Vision-language models
1:18Small mixture-of-experts models
1:27Faster generation
1:29Assisted decoding on linear attention
1:38Apple silicon
1:47transformers serve
1:56What changed and what stopped breaking
1:59Wrong answers fixed
2:08Shard paths
2:15Before you upgrade
Show transcriptHide transcript
Transformers now installs the kernels library and switches it on whenever you load a model. Layers like RMSNorm and RoPE get faster, most of all in linear attention models such as Qwen 3.5.
Ask for Flash Attention 2 and it now works even when the flash attention package is missing. Transformers fetches the matching kernel from the Hub instead.
It needs a compatible kernels release, and one loading option turns it off. On AMD ROCm, deformable attention now gets a Hub kernel too.
Part two. New models.
Amazon's Ergo now loads in Transformers. It has 1.1 trillion parameters, 55 billion active, and a million-token context, built for coding and agent work.
Is that just luck? Ergo comes first on four of its five coding tests. On DeepSWE, though, Kimi K 3.1 Pro still solves more tasks, with Ergo a close second.
Aleph Alpha's Kolibri 1.1 arrives. Every fifth layer scans the whole context but keeps only the opening, latest and top-scoring tokens. It runs on eager or SDPA attention only.
PI0.5, from Physical Intelligence, controls robot arms. A PaliGemma backbone takes in the camera images and the instruction, and a small Gemma expert predicts the next chunk of movements.
LLaVA-OneVision-1.5 arrives in 4 and 8 billion parameter sizes. And Ovis2.5 reads images and video, with an optional mode that thinks before answering.
MiniCPM5 runs only 2.5 billion of its 15 billion parameters per token. BharatGen's Param 2 speaks English, Hindi and 21 other Indian languages.
Part three. Faster generation.
Caches holding recurrent states can now roll back a few tokens, so assisted decoding works on linear attention models like recent Qwens. Ernie 4.5 gains multi-token prediction too.
On Apple silicon, generate now compiles itself, as it does on CUDA. Mixture of experts decoding stays on grouped matmuls, and the environment report names the Mac's GPU.
Transformers serve now splits into an API server and a model process, so the GPU stops waiting on requests. More than one API server works only with a single model.
Part four. What changed, and what stopped breaking.
Speculative sampling no longer slips in a token the model ruled out. Falcon stops doubling its ALiBi bias. And batched image prompts get the same answer as single ones.
A local checkpoint's index could point anywhere on disk and load weights from there. Transformers now rejects those shard paths.
The 5.25 release notes cover three more changes. Custom processors load their parts a new way, Molmo2 samples video frames differently, so regenerate cached results, and mixture of experts models move to expert parallelism.
Up next
2:40huggingface_hub v2.5.0 revokes leaked tokens and locks sandboxes offline
@hugging-face
1 week ago
2:46Transformers now exports to ONNX and OpenVINO, and transcribes 1,600 languages
@hugging-face
1 week ago
3:39Transformers runs Mistral Large 4 and trains LoRA on FP8 checkpoints
@hugging-face
1 month ago
2:43huggingface_hub v2.4.0 copies files into Buckets and flags outdated CLI extensions
@hugging-face
1 month ago
3:05huggingface_hub v2.3.0 lists an 800,000-file dataset in 20 seconds, down from 13 minutes
@hugging-face
1 month ago
2:27Transformers adds Reflection AI’s Beam and loads models on PyTorch 2.7 again
@hugging-face
1 month ago
3:46Transformers v5.20.0 runs Meta's Muse Spark Open, and here is the hardware it needs
@hugging-face
1 month ago
3:18huggingface_hub 2.2.0: hf jobs stats prints a snapshot, and parallel downloads always use hf_xet
@hugging-face
1 month ago
3:12Transformers v5.19.0: EmbeddingGemma 2 and token-dispatch expert parallelism
@hugging-face
1 month ago
2:53huggingface_hub's HfFileSystem now downloads a 2 GB bucket file in seconds
@hugging-face
2 months ago
3:12Transformers v5.18.0: streaming speaker diarization, GGUF mixture-of-experts, FSDP2 with expert parallelism
@hugging-face
2 months ago
2:12What huggingface_hub 2.0 changes, and why transformers keeps you on 1.x for now
@hugging-face
2 months ago