Welcome Muse Spark Open: open-weight frontier multimodal mixture-of-experts model from Meta

2026年10月15日 00:00
站內 AI 整理稿

Back to Articles Welcome Muse Spark Open: open-weight frontier multimodal mixture-of-experts model from Meta Published October 15, 2026 Update on GitHub Upvote 1 Pedro Cuenca pcuenq Follow merve merve Follow ben burtenshaw burtenshaw Follow Guarin Flück guarin Follow Quentin Gallouédec qgallouedec Follow Alvaro Bartolome alvarobartt Follow Serveurperso Serveurperso Follow Jun Kim Jundot Follow Muse Spark Open is an open-weight model from Meta.

The mixture of experts model brings text, images, audio, and video into a model with approximately 816 billion parameters, around 42 billion active per token, and a context window of up to one million tokens.

It generates text, giving developers a common interface for asking questions about different kinds of input.Following Muse Glimmer, Muse Spark Open introduces a mixture-of-experts architecture at a much larger scale, and the most capable US open-weights model to date.

Meta trained Muse Spark Open for agentic coding: reading a codebase, writing and debugging code, and calling tools.It also takes images, audio, and video as input, so the same model can read a screenshot, listen to a voice note, or watch a screen recording while it works on your code.

This post shows you how to run it, how to fine-tune it, and what we built with it.Overall Capabilities and Architecture Meta describes Muse Spark Open as a coding-optimized model trained on real developer workflows such as multi-file refactors and long debugging sessions.

Muse Spark Open is an agentic focused model that plans, acts, observes, and self-corrects over long tasks, including browsing the web with images.

Feature Muse Spark Open Model size ~816B total parameters; ~42B active per token Expert routing 256 experts per MoE layer; 8 selected per token Inputs Text, images, audio, and video Output Text Context window Up to 1M tokens Checkpoint formats BF16 and NVFP4 The checkpoint repositories are Muse-Spark-Open-816B-A42B and Muse-Spark-Open-816B-A42B-NVFP4.

Muse Spark Open is the full-size model of the Muse series of models.Muse Glimmer, which Meta released in August, is a small dense model from the same series, ideal for running locally.Both models use the same tokenizer and vocabulary.

The chat template follows the Muse Glimmer template, with additions for the new modalities.In Muse Spark Open the input embedding and the output layer are separate matrices of about 1.66B parameters each.Mixture of Experts The language model has 62 layers and a hidden dimension of 8192.

Each layer has 128 query heads and 16 key-value heads (grouped-query attention).Each head has 64 dimensions.The attention block has an output gate and an output normalization layer.The model also applies normalization to the queries and the keys (QK-norm).

Each block combines its input and its output through a learned residual gate, not through a plain sum.Muse Glimmer uses one dense feed-forward network in each layer.Muse Spark Open replaces this dense network with a Mixture-of-Experts (MoE) block.

Each MoE block has 256 experts, and a router selects 8 experts for each token.Each expert is a feed-forward network that projects from 8192 to 4096 dimensions and back to 8192, then applies its own normalization to its output.The experts hold ~97% of the total model parameters.

Only 8 experts run per token, so the model computes each token with about 42B parameters.All 256 experts stay in memory, so deployment needs the memory of an 816B-parameter model, but runs at the much faster speed of a 42B model.The BF16 checkpoint is about 1.5 TB in safetensors format.

The NVFP4 checkpoint stores the parameters in 4-bit precision with negligible loss in accuracy, specifically for NVIDIA Blackwell GPUs.In transformers, the BF16 checkpoint runs across 4 nodes of 8 H200 GPUs with tensor parallelism (TP=32) and the NVFP4 runs on a single B200 node.

If you want to deploy Muse Spark Open, check out the llama.cpp, vLLM, and SGLang recipes below.Perception Encoder A perception encoder converts images and video frames into tokens for the language model, just like Muse Glimmer.The encoder has 1.

8B parameters, 50 layers, a hidden dimension of 1536, and 16 attention heads.It splits each image into 14×14 patches and produces features with 4096 dimensions.Position information comes from learned absolute embeddings and 2D RoPE.The feed-forward network in each layer uses LayerNorm and GELU.

Every fourth layer and the last layer use full attention, and the other layers use sparse attention.Muse Glimmer 30B uses an encoder with the same architecture.The design follows the Perception Encoder work from Meta.Video input goes through the same encoder as images.

Audio Encoder Muse Spark Open accepts audio as input through its audio encoder.An audio tokenizer converts the audio into tokens, and the chat template marks the audio position with <|audio|> tokens.The encoder emits one audio token every 80 ms, which yields 12.5 tokens per second.

So let’s say, you have an audio of 10 seconds, the number of input audio tokens would be 125.The encoder itself is a convolutional pyramid where each stage consists of a patch embedder of different patch sizes and 2 convolutional blocks of 1d kernels of size 7 with stride of 1.

These stages are repeated for patch sizes of [16, 6, 5, 4].At the end of the final stage, the temporal frames are fed to a final block of RMSNorm → linear projection → RMSNorm.Long Context The context window is 1M tokens at inference.The configuration sets maxpositionembeddings to 1,048,576.

This includes image, video, and audio tokens in the same window as text.Grouped-query attention keeps the KV cache small for a model of this size.Each token adds 2 × 16 heads × 64 dimensions × 62 layers = 126,976 values to the cache.

In BF16, this is about 250 KB per token and about 266 GB for a full 1M-token context.Inference Support Transformers The Muse Spark Open implementation provides MuseSparkForConditionalGeneration for text generation from multimodal inputs and MuseSparkProcessor for preparing conversations.

The processor combines the tokenizer, image and video processors, audio feature extractor, and chat template.Use a DistributedConfig to configure the parallelism settings.

tpsize is the number of devices across which the dense layers are sharded, and epsize is the number of devices across which the experts are distributed.You can initialize the model and processor as follows.

import os from transformers import AutoModelForMultimodalLM, AutoTokenizer, DistributedConfig distributedconfig = DistributedConfig( tpsize=int(os.environ["WORLDSIZE"]), epsize=int(os.environ["WORLDSIZE"]), ) tokenizer = AutoTokenizer.

frompretrained("meta-models/Muse-Spark-Open-816B-A42B ") model = AutoModelForMultimodalLM.frompretrained( "meta-models/Muse-Spark-Open-816B-A42B", distributedconfig=distributedconfig, ) messages = [ {"role": "user", "content": "Explain in one sentence why the sky is usually blue.

"}, ] inputs = tokenizer.applychattemplate( messages, reasoningeffort="medium", # default: xhigh, options: low/medium/high/xhigh addgenerationprompt=True, tokenize=True, returndict=True, returntensors="pt", ).to(model.device).to(model.dtype) inputlen = inputs["inputids"].shape[-1] outputs = model.

generate(inputs, maxnewtokens=2000) Text-only Inference Prepare the conversation, then pass the messages to processor.applychattemplate, enabling addgenerationprompt=True, tokenize=True, returndict=True, and returntensors="pt".Pass the processor output to model.

generate and decode the newly generated tokens, excluding the input prefix.The processor has a lever for the reasoning effort, mapping symbolic levels (low/medium/high/xhigh) to the integers the model itself accepts (16, 64, 256, 512).

Note that turning off reasoning is not possible with Muse Spark Open, so keep the model reasoning at “low” if you want to consume less tokens to solve an easier task.You can also set a numeric effort by including a line like Reasoning strength: 1 in the system prompt.

messages = [ {"role": "system", "content": "You should only answer with a number."}, {"role": "user", "content": "What is 17 * 23?"}, ] inputs = processor.

applychattemplate( messages, addgenerationprompt=True, tokenize=True, returndict=True, returntensors="pt", reasoningeffort="high", # options:low/medium/high/xhigh ).to(model.device).to(model.dtype) output = model.generate(inputs, maxnewtokens=2000) generatedtokens = output[0][inputs["inputids"].

shape[1] :] print(processor.decode(generatedtokens, skipspecialtokens=False)) Images and Text The Muse Spark Open processor expands each image marker into the number of patch tokens required by the processed image, surrounded by image boundary tokens.

This expansion keeps the text positions aligned with the visual features passed to the model.The processor also handles multiple images within a single prompt.imageurl = ( "https://huggingface.co/datasets/merve/vl-test-suite/" "resolve/main/pills.

jpg" ) messages = [ { "role": "user", "content": [ { "type": "image", "image": imageurl, }, { "type": "text", "text": "Do any of the components in this supplement interact?", }, ], }, ] inputs = processor.

applychattemplate( messages, tokenize=True, addgenerationprompt=True, reasoningeffort="medium", returndict=True, returntensors="pt", ).to(model.device).to(model.dtype) inputlen = inputs["inputids"].shape[-1] outputs = model.generate(inputs, maxnewtokens=2000) response = processor.

decode(outputs[0][inputlen:], skipspecialtokens=False) processor.parseresponse(response) Video Inference Video prompts include frame timing as well as visual content.The processor handles videos with audios in them (which is an upgrade from Muse Glimmer thanks to the audio encoder).

The processor downsamples video frames and audio to align frames together.By default, videos are sampled to 2 FPS, capped at 96 frames.You can modify this by setting the fps of the video processor: processor.videoprocessor.fps = 4.

0 As a general rule of thumb, videos are frames in temporal sequence, and the more you downsample, the more you will lose frames in between specific events, so you need to keep fps high if you want more accurate generations.

However, there’s a trade-off because you will require more memory and increase latency for prefill.The frames are interleaved with text input that states timestamps (e.g.“Time: 3.5s”).To enable passing in videos with audio, pass loadaudiofromvideo=True to applychattemplate.

Preserve the video's metadata when preparing inputs with returnmetadata=True so the processor can assign the correct framerate.import torch messages = [ { "role": "user", "content": [ { "type": "text", "text": ( "Describe what happens in this video.

" "Use timestamps and include relevant speech or sounds." ), } {"type": "video", "url": "https://huggingface.co/datasets/merve/vlmtestimages/resolve/main/ramen.mp4"}, , ], } ] inputs = processor.

applychattemplate( messages, addgenerationprompt=True, tokenize=True, returndict=True, returntensors="pt", loadaudiofromvideo=True, returnmetadata=True, ).to(model.device).to(model.dtype) with torch.inferencemode(): outputids = model.

generate( inputs, maxnewtokens=256, dosample=False, ) generatedids = outputids[:, inputs["inputids"].shape[1] :] response = processor.batchdecode( generatedids, skipspecialtokens=True, )[0] print(response) Audio Inference The Muse Spark Open audio tower consumes a raw waveform.

The processor expects mono audio at 24 kHz and pads the waveform to a multiple of 1,920 samples, corresponding to one audio embedding per 80 milliseconds.Audio supplied directly to the processor at another sample rate must first be resampled.

You can do this by using the loadaudio util of transformers.loadaudio uses torchcodec, librosa or torchaudio backends, so make sure to have one of these installed locally before running

Related

相關文章

抖省省誕生7個月:引流灌溉、重金猛推,日活2000萬後急速降溫

進入9月,抖音本地生活服務(簡稱:抖音生服)開始提速盈利節奏,繼續降補,並大幅提升廣告考核佔比。服務零售部分類目廣告考核佔比提升到80%,GMV考核佔比變小。Ka餐飲類目廣告考核佔比保持20%,商圈廣告考核佔比保持10%。4月調整架構之前,廣告考核還不是硬性指標。過去半年,抖音生服推出獨立APP抖省省,猛砸補貼和引流灌溉,使得抖省省日活快速拉昇,一度被外界視作對美團的又一場奇襲。從QuestMobile獲取的數據顯示,3月到6月抖省省日活從400萬拉昇到2000萬,7月維持在2200萬。

2 天前

OpenAI、Anthropic罕見聯手:砸下1個億,給數學家送錢、送算力

編譯 | 黃菲 編輯 | 江宇 10月16日報道,昨日,OpenAI、Anthropic聯合美國西蒙斯基金會(Simons Foundation),共同投入1500萬美元(約合人民幣1.01億元),支持數學家評估AI輔助產生的研究成果,並幫助研究人員學習和使用AI工具。 其中,OpenAI出資500萬美元(約合人民幣3360萬元),Anthropic的具體出資金額尚未披露。 根據基金會公告,兩家公司還將為獲得資助的研究人員提供AI工具和計算資源,相關資金將由西蒙斯基金會管理和分配。

2 天前

“圳”啟“芯”程 智創未來!2026灣芯展盛大啟幕

10月14日,2026灣區半導體產業生態博覽會(灣芯展WESEMiBAY)在深圳會展中心(福田)盛大啟幕。本屆灣芯展由中國國際工程諮詢有限公司指導,深圳市半導體與集成電路產業聯盟、深圳市重大產業投資集團有限公司主辦。深圳市有關領導同志,市政府有關部門和集成電路發展集聚區有關負責同志,以及國內外半導體與集成電路產業龍頭企業、高校、科研院所及媒體代表等蒞臨現場參觀交流。開展首日,近8萬平方米展館人流如織,深圳再度成為全球半導體產業目光的交匯點。

3 天前