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

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

    Slide text
    Transformers
    01 02 03 04 Muse 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 in Text out Up to 1M tokens of context
  2. 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.

    Slide text
    Transformers
    01 02 03 04 Muse Spark Open
    huggingface/transformers · GitHub release notes

    Muse Spark Open is trained for agentic coding

    Multi-file editing changes that span a codebase
    Debugging long sessions on real code
    Tool use calls tools as it works

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

  3. 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.

    Slide text
    Transformers
    01 02 03 04 Muse Spark Open
    huggingface.co/blog · Welcome Muse Spark Open

    816B parameters, 42B active per token

    16-bit checkpoint 4 nodes × 8 H200 GPUs, tensor parallel across 32
    4-bit NVFP4 checkpoint one B200 node, built for NVIDIA Blackwell
  4. 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.

    Slide text
    Transformers
    01 02 03 04 Muse Spark Open
    huggingface.co/blog · Welcome Muse Spark Open

    Fine-tune the full 816B model with TRL

    LoRA adapters on the attention layers; the experts stay frozen
    64 H100 GPUs 8 nodes of 8, sharded with FSDP and expert parallelism
  5. More new models.

    Slide text
    Transformers
    01 02 03 04 More new models
    02
    More new models
  6. 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.

    Slide text
    Transformers
    01 02 03 04 More 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

  7. 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.

    Slide text
    Transformers
    01 02 03 04 More new models
    huggingface/transformers · GitHub release notes

    UnlimitedOcr transcribes dozens of pages in one pass

    Baidu 3B parameters KV cache stays constant while decoding Bounding boxes
  8. 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.

    Slide text
    Transformers
    01 02 03 04 More 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

  9. 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.

    Slide text
    Transformers
    01 02 03 04 More new models
    huggingface/transformers · GitHub release notes

    Kolibri 1, UltraBERT and MiniCPM-V 4.7 also land

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

    Slide text
    Transformers
    01 02 03 04 Exporting and scaling
    03
    Exporting and scaling
  11. 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.

    Slide text
    Transformers
    01 02 03 04 Exporting and scaling
    Transformers docs · Quantizing exports
    QuantizerDynamoONNXExecuTorchOpenVINO
    PT2Eyesyesyesyes
    NNCF, FX graphyesyesweight-onlyyes
    ONNX Runtime–yes––
    NNCF, ONNX–yes––
    NNCF, OpenVINO–––yes
  12. 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.

    Slide text
    Transformers
    01 02 03 04 Exporting 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()

  13. 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.

    Slide text
    Transformers
    01 02 03 04 Exporting and scaling
    huggingface/transformers · GitHub release notes

    Kernel fixes for ROCm, T5 and training

    flash_attention_2 on ROCm falls back to the AITER kernel when flash-attn isn't installed
    T5-style models use fused SDPA kernels again
    Hub rotary kernel CUDA inference only; its backward pass gave wrong gradients
  14. Before you upgrade.

    Slide text
    Transformers
    01 02 03 04 Before you upgrade
    04
    Before you upgrade
  15. 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.

    Slide text
    Transformers
    01 02 03 04 Before you upgrade
    huggingface/transformers · GitHub release notes

    Expert-parallel inference is slower in this release

    A fix is in progress.

  16. 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.

    Slide text
    Transformers
    01 02 03 04 Before you upgrade
    huggingface/transformers · GitHub release notes

    Three changes that can break code

    Newer kernels required a failed kernel load falls back instead of raising
    Deprecated cache methods removed code still calling them stops working
    LUKE and mLUKE tokenizers entity tokens like <ent> are now special tokens
  17. 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.

    Slide text
    Transformers
    01 02 03 04 Before 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

What happened in AI today, in your inbox

One short email each evening. Read it and you’re caught up.

Built with ❤️ in New York