Transformers v5.18.0: streaming speaker diarization, GGUF mixture-of-experts, FSDP2 with expert parallelism
1 month ago
Transformers v5.18.0: Nemotron 3 Diarization, NemotronH Omni, HyperCLOVAX Vision V2 and GTE; GGUF mixture-of-experts; FSDP2 with expert parallelism; huggingface_hub 2.0 support; silent-load fixes and the changes marked breaking. https://github.com/huggingface/transformers/releases/tag/v5.18.0
Ask about this presentation
Chapters
0:00Transformers v5.18.0 learns who spoke when
0:12One checkpoint, streaming or offline
0:23NemotronH Omni
0:36HyperCLOVAX Vision V2
0:46GTE
0:59Running models
1:01GGUF mixture-of-experts
1:16transformers chat opens GGUF files
1:25Attention on more hardware
1:38ExecuTorch export to MLX
1:52Training at scale
1:53FSDP2 with expert parallelism
2:08More ways to split a model
2:17Before you upgrade
2:19huggingface_hub 2.0 allowed
2:30Silent bugs fixed
2:45Marked breaking
3:02use_mamba_kernels deprecated
Show transcriptHide transcript
Transformers 5.18 adds Nemotron 3 Diarization, an open-weight model that works out who spoke when. It tracks up to eight speakers, labeled in the order they first speak.
One checkpoint streams with a buffer as short as 80 milliseconds, or takes about 30 seconds, like an offline run. Chunked inference puts no limit on audio length.
NVIDIA's NemotronH Omni pairs a hybrid Mamba-Transformer language model with a RADIO vision encoder and an optional Parakeet sound encoder, so one model reasons across text, images, video and audio.
NAVER's HyperCLOVAX Vision V2 takes text, images and video, and can reason step by step with built-in thinking tokens before it answers.
GTE is a BERT-style encoder that uses RoPE in place of absolute position embeddings. It's the architecture behind Alibaba's GTE checkpoints and Snowflake's Arctic Embed M version 2.
Running models.
GGUF loading now handles mixture-of-experts models, though only Qwen 3.5 so far. On Apple Silicon, the 35-billion-parameter Qwen 3.5 generated text as fast as it does in llama.cpp.
The transformers chat command can now load a GGUF file from a model repo. The serve command already could; chat took only a plain model name.
When a requested flash kernel won't run, Transformers picks one that runs on your GPU. Apple GPUs get FP8 kernels with PyTorch 2.15. MUSA GPUs get Flash Attention 2.
The ExecuTorch exporter gains an MLX backend, for inference on Apple Silicon GPUs. It exports with static or dynamic shapes, It rejects the static cache and points you to the dynamic cache.
Training at scale.
Expert parallelism shards only the experts, so every GPU still holds the whole dense part. The Trainer can now shard that too, with FSDP2 on a two-dimensional mesh. Before, that combination raised an error.
Inference can now combine pipeline and tensor parallelism in one run. And the PEFT integration now works with DTensor-based tensor parallelism.
Before you upgrade.
Transformers now allows version 2 of huggingface_hub. Its breaking changes don't affect Transformers, and the oldest supported version stays at 1.31.
Loading an RT-DETR or SEW-D base model left every weight random, with only a warning. PEFT adapters loaded through AutoModel dropped extra saved modules like a classifier head. The UMT5 decoder could see future tokens.
DETR-family preprocessing runs up to a third faster on GPU, and RF-DETR resizes without antialiasing. LLaVA-OneVision returns video features ready to merge with text. gpt-oss on ROCm moves to the aiter kernel.
The use_mamba_kernels flag has done nothing since 5.15, and now warns when set to false. Every other change is in the Release 5.18 notes on GitHub.
Up next
3:39Transformers runs Mistral Large 4 and trains LoRA on FP8 checkpoints
@hugging-face
1 week ago
2:43huggingface_hub v2.4.0 copies files into Buckets and flags outdated CLI extensions
@hugging-face
1 week ago
3:05huggingface_hub v2.3.0 lists an 800,000-file dataset in 20 seconds, down from 13 minutes
@hugging-face
3 weeks ago
2:27Transformers adds Reflection AI’s Beam and loads models on PyTorch 2.7 again
@hugging-face
3 weeks 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
1 month ago
2:12What huggingface_hub 2.0 changes, and why transformers keeps you on 1.x for now
@hugging-face
1 month ago
