Transformers v5.20.0 runs Meta's Muse Spark Open, and here is the hardware it needs
1 month ago
Transformers v5.20.0 adds Meta's Muse Spark Open, an open-weight multimodal model trained for agentic coding, plus Ling 3.0 Flash, UnlimitedOcr, MOSS-Transcribe-Diarize, Kolibri 1, UltraBERT and MiniCPM-V 4.7, quantization during export, and the breaking changes to know before upgrading. Release notes: https://github.com/huggingface/transformers/releases/tag/v5.20.0 Muse Spark Open: https://huggingface.co/blog/meta-muse-spark-open Quantizing exports: https://huggingface.co/docs/transformers/exporters_quantization
Ask about this presentation
Chapters
0:00Muse Spark Open runs in Transformers
0:14Trained for agentic coding
0:29The hardware it needs
0:45Fine-tune it with TRL
0:59More new models
1:01Ling 3.0 Flash, native
1:15UnlimitedOcr
1:30MOSS-Transcribe-Diarize
1:45Kolibri 1, UltraBERT, MiniCPM-V 4.7
2:04Exporting and scaling
2:06Quantize while you export
2:24Checkpoints across parallel layouts
2:42Kernel fixes
3:01Before you upgrade
3:03Expert-parallel inference is slower
3:17Changes that can break code
3:34Where to go
Show transcriptHide transcript
Transformers now runs Muse Spark Open, the full-size open-weight model in Meta's Muse series. It takes text, images, audio and video, and answers in text, with up to a million tokens of context.
Meta trained it for agentic coding, which means editing across many files, debugging, and calling tools. It can also watch a screen recording or hear a voice note while it works on your code.
About 42 billion of its 816 billion parameters work on each token, but every expert stays in memory. In Transformers, the 16-bit checkpoint spans 32 H200 GPUs. The four-bit checkpoint fits on one B200 node.
If you train models, you can fine-tune the full checkpoint with TRL. The TRL recipe trains LoRA adapters on the attention layers and keeps the experts frozen, spread across 64 H100 GPUs.
More new models.
InclusionAI's Ling 3.0 Flash is now native in Transformers. It's a hybrid mixture-of-experts model that loads without the trust_remote_code flag, so loading it doesn't run code from the model's repository.
UnlimitedOcr is a 3-billion-parameter OCR model from Baidu. Its attention keeps the KV cache the same size the whole time it decodes, so it can transcribe dozens of pages in a single forward pass.
MOSS-Transcribe-Diarize handles long recordings with several speakers. One pass gives you the transcript, which speaker said each line, and timestamps, in more than 50 languages, from a model under a billion parameters.
Kolibri 1 is Aleph Alpha's reasoning model for German and English. UltraBERT encoders handle classification and retrieval on inputs up to 32 thousand tokens. And MiniCPM-V 4.7 places image tiles and video frames on a 2D canvas, so they keep their layout and order.
Exporting and scaling.
Transformers exporters can now quantize a model during export to Dynamo, ONNX, ExecuTorch and OpenVINO. That covers static and dynamic quantization, plus eight-bit or four-bit weight-only compression, with calibration you can configure.
Model and optimizer checkpoints made with FSDP and tensor parallelism can now be saved under one parallel setup and loaded under a different one. Fixes also landed for expert-parallel dispatch, tensor-parallel plans and static-cache generation.
On AMD's ROCm, Flash Attention 2 now falls back to the AITER kernel when flash attention isn't installed. T5-style models use fused kernels again. And the rotary kernel from the Hub is now limited to CUDA inference, because its backward pass gave incorrect gradients.
Before you upgrade.
Inference with expert parallelism has speed regressions in this release, and a fix is in progress. That hits mixture-of-experts models like Muse Spark Open hardest, since they split their experts across GPUs.
Transformers now needs a newer kernels package, which lets a failed kernel load fall back instead of raising an error. Deprecated cache methods are removed. And the LUKE tokenizers now treat entity tokens as special tokens, so their output can change.
The Transformers release notes on GitHub list every breaking change and what replaces it. The Muse Spark Open post on the Hugging Face blog has the recipes to run and fine-tune it.
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: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
3:12Transformers v5.18.0: streaming speaker diarization, GGUF mixture-of-experts, FSDP2 with expert parallelism
@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