Transformers v5.20.0 runs Meta's Muse Spark Open, and here is the hardware it needs

1 hour 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

Ask about this presentation

Answers are generated from this presentation.

Chapters

  1. 0:00Muse Spark Open runs in Transformers
  2. 0:14Trained for agentic coding
  3. 0:29The hardware it needs
  4. 0:45Fine-tune it with TRL
  5. 0:59More new models
  6. 1:01Ling 3.0 Flash, native
  7. 1:15UnlimitedOcr
  8. 1:30MOSS-Transcribe-Diarize
  9. 1:45Kolibri 1, UltraBERT, MiniCPM-V 4.7
  10. 2:04Exporting and scaling
  11. 2:06Quantize while you export
  12. 2:24Checkpoints across parallel layouts
  13. 2:42Kernel fixes
  14. 3:01Before you upgrade
  15. 3:03Expert-parallel inference is slower
  16. 3:17Changes that can break code
  17. 3:34Where to go
Show transcript

Muse Spark Open runs in Transformers

Transformers
01020304Muse Spark Open
huggingface/transformers · GitHub release notes · huggingface.co/blog · Welcome Muse Spark Open
Welcome Muse Spark Open: open weights 816B model from Meta
Text, images, audio, video inText outUp to 1M tokens of context

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.

Trained for agentic coding

Transformers
01020304Muse Spark Open
huggingface/transformers · GitHub release notes

Muse Spark Open is trained for agentic coding

Multi-file editingchanges that span a codebase
Debugginglong sessions on real code
Tool usecalls tools as it works

It can also take a screenshot, a voice note or a screen recording as input.

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.

The hardware it needs

Transformers
01020304Muse Spark Open
huggingface.co/blog · Welcome Muse Spark Open

816B parameters, 42B active per token

16-bit checkpoint4 nodes × 8 H200 GPUs, tensor parallel across 32
4-bit NVFP4 checkpointone B200 node, built for NVIDIA Blackwell

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.

Fine-tune it with TRL

Transformers
01020304Muse Spark Open
huggingface.co/blog · Welcome Muse Spark Open

Fine-tune the full 816B model with TRL

LoRA adapterson the attention layers; the experts stay frozen
64 H100 GPUs8 nodes of 8, sharded with FSDP and expert parallelism

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

Transformers
01020304More new models
02
More new models

More new models.

Ling 3.0 Flash, native

Transformers
01020304More new models
huggingface/transformers · GitHub release notes

Ling 3.0 Flash loads without trust_remote_code

InclusionAI's hybrid mixture-of-experts language model, now native as BailingHybridForCausalLM

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

Transformers
01020304More new models
huggingface/transformers · GitHub release notes

UnlimitedOcr transcribes dozens of pages in one pass

Baidu3B parametersKV cache stays constant while decodingBounding boxes

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

Transformers
01020304More new models
huggingface/transformers · GitHub release notes

MOSS-Transcribe-Diarize says who spoke, and when

[start][S01]text[end]

Transcript, speaker and timestamps in one pass · 50+ languages · 0.9B parameters

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, UltraBERT, MiniCPM-V 4.7

Transformers
01020304More new models
huggingface/transformers · GitHub release notes

Kolibri 1, UltraBERT and MiniCPM-V 4.7 also land

Kolibri 1Aleph Alpha's reasoning model for German and English
UltraBERTencoders for classification and retrieval, up to 32,768 tokens
MiniCPM-V 4.7lays image tiles and video frames out on a 2D canvas

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
01020304Exporting and scaling
03
Exporting and scaling

Exporting and scaling.

Quantize while you export

Transformers
01020304Exporting and scaling
Transformers docs · Quantizing exports
QuantizerDynamoONNXExecuTorchOpenVINO
PT2Eyesyesyesyes
NNCF, FX graphyesyesweight-onlyyes
ONNX Runtime–yes––
NNCF, ONNX–yes––
NNCF, OpenVINO–––yes

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.

Checkpoints across parallel layouts

Transformers
01020304Exporting and scaling
huggingface/transformers · GitHub release notes

Save on one parallel layout, load on another

FSDP × tensor-parallel model and optimizer checkpoints now move between parallel configurations.

Also fixed: expert-parallel dispatch, tensor-parallel plans, static-cache generate()

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.

Kernel fixes

Transformers
01020304Exporting and scaling
huggingface/transformers · GitHub release notes

Kernel fixes for ROCm, T5 and training

flash_attention_2 on ROCmfalls back to the AITER kernel when flash-attn isn't installed
T5-style modelsuse fused SDPA kernels again
Hub rotary kernelCUDA inference only; its backward pass gave wrong gradients

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

Transformers
01020304Before you upgrade
04
Before you upgrade

Before you upgrade.

Expert-parallel inference is slower

Transformers
01020304Before you upgrade
huggingface/transformers · GitHub release notes

Expert-parallel inference is slower in this release

A fix is in progress.

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.

Changes that can break code

Transformers
01020304Before you upgrade
huggingface/transformers · GitHub release notes

Three changes that can break code

Newer kernels requireda failed kernel load falls back instead of raising
Deprecated cache methods removedcode still calling them stops working
LUKE and mLUKE tokenizersentity tokens like <ent> are now special tokens

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.

Where to go

Transformers
01020304Before you upgrade
huggingface/transformers · GitHub release notes · huggingface.co/blog · Welcome Muse Spark Open

The release notes list every breaking change

github.com/huggingface/transformers › Releases

Run and fine-tune Muse Spark Open: huggingface.co/blog/meta-muse-spark-open

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.