[Doc] Host model recipes in recipes/ (#61302)

Signed-off-by: esmeetu <jasonailu87@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Roy Wang
2026-10-17 09:14:36 +00:00
committed by GitHub
co-authored by Claude Opus 5.5
parent f98ae6a9fd
commit b515648641
193 changed files with 44859 additions and 6 deletions
@@ -0,0 +1,380 @@
meta:
title: "Muse Glimmer 30B"
slug: "muse-glimmer-30b"
provider: "Muse (Meta)"
description: "Dense 29.6B vision-language model with a ViT-G/14 perception encoder and 128K context, distilled from Muse Spark for local agentic use. Emits channel-scoped reasoning and XML-style ATEM tool calls rather than JSON, so it needs the dedicated `muse_glimmer` tool-call and reasoning parsers."
date_added: 2026-08-09
date_updated: 2026-09-09
tasks:
- text
- multimodal
performance_headline: ""
related_recipes: []
# Open the builder on GB10: this model is built for local deployment, so the
# single-card DGX Spark is the interesting configuration, not the 8-GPU H200
# node pickDefaultHardware would otherwise choose.
default_hardware: dgx_spark_gb10
hardware:
gb300: verified
# Single GB10 with 128 GB unified memory. gpu_count is 1, so autoFitTp caps
# TP at 1 — this is a plain single-card deployment, no sharding.
dgx_spark_gb10: verified
mi300x: verified
mi325x: verified
mi355x: verified
arc_pro_b60: verified
arc_pro_b70: verified
rtx_5090: verified
rtx_5090_2x: verified
model:
model_id: "meta-models/Muse-Glimmer-30B"
# Muse Glimmer support merged in vllm-project/vllm#51655 and shipped in v0.28.0.
min_vllm_version: "0.28.0"
docker_image: "vllm/vllm-openai:v0.28.0"
install:
docker:
note: "Recommended: the pinned image ships all dependencies"
architecture: dense
# Model card states ~29.6B total including the perception encoder. Measured from
# safetensors metadata: total_size 59,553,253,376 bytes at BF16 = 29.78B. No expert
# tensors in the index — dense, not MoE. 52 text layers (hidden 6656, SwiGLU FFN
# intermediate 19,968, RoPE theta 500,000 on local layers only, gated attention,
# [Local, Local, Local, Global] repeating with a 2048 sliding window) plus a
# ~1.8B ViT-G/14 perception encoder (50 layers, width 1536, patch 14).
parameter_count: "29.6B"
active_parameters: "29.6B"
context_length: 131072
base_args:
# Picks up generation_config.json: stop tokens [200001, 200008]. Do NOT add
# 200007 (<|eom|>) as an eos — it terminates the turn at the end of the
# reasoning channel and collapses tool calling.
- "--generation-config"
- "auto"
base_env: {}
features:
tool_calling:
description: "ATEM (XML-style) tool calls with automatic tool choice. Calls arrive in `message.tool_calls`; do not enable guided JSON — this model does not emit JSON tool calls. It emits one tool call per message: several calls arrive as consecutive assistant messages, not a single multi-element `tool_calls` array."
args:
- "--enable-auto-tool-choice"
- "--tool-call-parser"
- "muse_glimmer"
reasoning:
description: "Channel-scoped chain-of-thought. Surfaces as `message.reasoning` (non-streaming) and `delta.reasoning` (streaming). Effort is controlled by a `Reasoning strength: <low|medium|high|xhigh>` line in the system prompt."
args:
- "--reasoning-parser"
- "muse_glimmer"
spec_decoding:
# The 5.11 GB draft head does not fit beside the 25.42 GB nvfp4 weights on a
# single 32 GB RTX 5090: vLLM OOMs during init with ~400 MiB free. Verified,
# not inferred. On 2x RTX 5090 it works and is verified — see the guide's
# RTX 5090 section for measurements.
hardware:
rtx_5090: unsupported
description: "DFlash block-diffusion draft head — predicts a whole block in one forward, verified in parallel by the target. `num_speculative_tokens: 15` is not a tuning knob: the head has `block_size: 16` and slot 0 re-presents the last accepted token, so 15 is what remains."
args:
- "--max-num-seqs"
- "32"
- "--speculative-config"
- '{"method": "dflash", "model": "meta-models/Muse-Glimmer-30B-assistant", "num_speculative_tokens": 15}'
opt_in_features:
- spec_decoding
variants:
default:
precision: bf16
# 29.78B x 2 bytes x 1.2
vram_minimum_gb: 72
description: "BF16 weights, the reference precision."
hardware_overrides:
mi300x:
extra_args:
- "--attention-backend"
- "ROCM_AITER_FA"
mi325x:
extra_args:
- "--attention-backend"
- "ROCM_AITER_FA"
mi355x:
extra_args:
- "--attention-backend"
- "ROCM_AITER_FA"
fp8_block:
precision: fp8
model_id: "RedHatAI/Muse-Glimmer-30B-FP8-block"
# 33 GB on disk x 1.2 overhead
vram_minimum_gb: 40
description: "FP8_BLOCK (E4M3) weights with 128x128 block scaling, dynamic activations. 33 GB on disk, fits one GPU."
nvfp4:
precision: nvfp4
model_id: "Inferact/Muse-Glimmer-30B-NVFP4-W4A4"
# NOT the params x 0.5 x 1.2 = 18 GB the table would give: the checkpoint is
# only partially quantized (364 language-model projections over 52 layers),
# while embeddings, lm_head and the whole vision tower stay unquantized. Sized
# from the real files instead — 12.06 GB + 13.36 GB = 25.42 GB x 1.2.
vram_minimum_gb: 31
description: "ModelOpt NVFP4 W4A4 — weights and activations at 4 bits, group size 16. 25.42 GB on disk, fits one GPU."
compatible_strategies:
- single_node_tp
hardware_overrides:
amd:
extra_args: []
extra_env:
VLLM_ROCM_USE_AITER: "1"
xpu:
extra_args:
- "--enforce-eager"
guide: |
## Overview
Muse Glimmer 30B is a dense vision-language model built for agentic work on
consumer hardware: a 52-layer text decoder (hidden 6656) plus a ~1.8B ViT-G/14
perception encoder, 128K trained context, BF16. Apache 2.0, knowledge cutoff
January 4 2026, trained on 100+ languages.
What makes it unlike most recipes here is its output format. It does not emit
JSON tool calls and it does not wrap reasoning in `<think>` tags. Every turn is
written as a sequence of channel-scoped messages:
```
to=self<|message|>...chain of thought...<|eom|>
<|start|>assistant to=<tool><|message|><atem:function_calls>
<atem:invoke name="<tool>">
<atem:parameter name="<arg>">value</atem:parameter>
</atem:invoke>
</atem:function_calls><|eom|>
<|start|>assistant to=user<|message|>...final answer...<|eot|>
```
Both `--tool-call-parser muse_glimmer` and `--reasoning-parser muse_glimmer` key off that
framing, so run them together. The reasoning parser also forces
`skip_special_tokens=False` — without it the markers are stripped before
parsing and both channels collapse into content.
## Prerequisites
- **Hardware**: DGX Spark. FP4 weights might also run on 5090.
- **Image**: `vllm/vllm-openai:v0.28.0`.
## Checkpoints
| variant | repo | size | notes |
|---|---|---|---|
| BF16 | [`meta-models/Muse-Glimmer-30B`](https://huggingface.co/meta-models/Muse-Glimmer-30B) | 59.58 GB | reference precision |
| FP8 | [`RedHatAI/Muse-Glimmer-30B-FP8-block`](https://huggingface.co/RedHatAI/Muse-Glimmer-30B-FP8-block) | 32.78 GB | FP8 block-scaled weights, dynamic activations (vision tower + embeddings BF16) |
| NVFP4 | [`Inferact/Muse-Glimmer-30B-NVFP4-W4A4`](https://huggingface.co/Inferact/Muse-Glimmer-30B-NVFP4-W4A4) | 25.42 GB | ModelOpt NVFP4, **W4A4**, group size 16 |
| draft | [`meta-models/Muse-Glimmer-30B-assistant`](https://huggingface.co/meta-models/Muse-Glimmer-30B-assistant) | 5.11 GB | DFlash draft head for speculative decoding |
The NVFP4 build quantizes **both weights and activations** to 4 bits across 364
language-model projections (52 layers x 7); embeddings, `lm_head` and the vision
tower stay unquantized, which is why it is 25 GB rather than the ~15 GB a
uniform 4-bit quant would give. vLLM detects it from `config.json`
(`quant_method: modelopt`, `quant_algo: NVFP4`) and selects `modelopt_fp4` with
fused activation quantization — no extra flags, the launch command below is
unchanged apart from the model path. NVFP4 kernels are Blackwell-only.
## Launching the Server
```bash
vllm serve /model \
--served-model-name muse-glimmer \
--tensor-parallel-size 4 \
--gpu-memory-utilization 0.92 \
--max-model-len 131072 \
--max-num-seqs 64 \
--enable-auto-tool-choice --tool-call-parser muse_glimmer \
--reasoning-parser muse_glimmer \
--generation-config auto
```
At TP=4 on GB300 this reports a 26.8M-token KV pool and ~204x max concurrency
at the full 128K context.
## Running on DGX Spark (GB10)
Muse Glimmer was built for local deployment and runs on a DGX Spark as an
ordinary single-card deployment — **no special configuration**. GB10 is aarch64
like GB300 so the same image applies, and the launch command above is unchanged
apart from having one GPU to run on:
```bash
vllm serve /model \
--served-model-name muse-glimmer \
--tensor-parallel-size 1 \
--enable-auto-tool-choice --tool-call-parser muse_glimmer \
--reasoning-parser muse_glimmer \
--generation-config auto
```
There is no tensor parallelism to configure: GB10 is a single GPU, so TP is 1.
BF16 weights are ~55 GiB against 128 GB of unified memory, leaving the rest for
the KV cache and the perception encoder. The **NVFP4** checkpoint is 25.42 GB,
which leaves considerably more of that shared pool for KV and the host — the
better fit of the two on this hardware.
## Running on MI300X/MI325X/MI355X
Use the official `vllm/vllm-openai-rocm:nightly` image.
```bash
export VLLM_ROCM_USE_AITER=1
vllm serve /model \
--served-model-name muse-glimmer \
--tensor-parallel-size 4 \
--max-model-len 131072 \
--enable-auto-tool-choice \
--tool-call-parser muse_glimmer \
--reasoning-parser muse_glimmer \
--generation-config auto \
--attention-backend ROCM_AITER_FA
```
At TP=1 on MI300X this reports an 6.66M-token KV pool and ~50.82x max concurrency
at the full 128K context.
At TP=4 on MI300X this reports an 17.79M-token KV pool and ~135.73x max concurrency
at the full 128K context.
At TP=1 on MI355X this reports an 11.64M-token KV pool and ~88.86x max concurrency
at the full 128K context.
At TP=4 on MI355X this reports an 27.68M-token KV pool and ~211.22x max concurrency
at the full 128K context.
## Running on Intel Arc Pro (XPU) and Xeon (CPU)
validated on Intel Arc Pro B70, Arc Pro B60, and Xeon 6.
**Intel GPU (XPU):**
```bash
docker run -it --rm --network=host --ipc=host --privileged \
--device /dev/dri:/dev/dri \
-v /dev/dri/by-path:/dev/dri/by-path \
--entrypoint bash \
vllm/vllm-openai-xpu:latest
```
Serve inside the container — `--enforce-eager` is required on the XPU backend:
```bash
vllm serve meta-models/Muse-Glimmer-30B \
--tensor-parallel-size 4 \
--reasoning-parser muse_glimmer \
--enforce-eager
```
## Sampling
Use the published settings:
```
temperature = 1.0
top_p = 0.95
top_k = 64
```
Do not run it greedy — it is a reasoning model, and greedy is not reproducible
here either: identical requests at `temperature: 0` with a fixed `seed` returned
70, 80, and 86 completion tokens across runs.
**Reasoning strength.** Effort is set with a `Reasoning strength: <value>` line
in the system prompt, one of `low` / `medium` / `high` / `xhigh`. Use `high` or
`xhigh` for coding and agentic tasks.
## RTX 5090 (32 GB, consumer Blackwell)
The `nvfp4` variant runs on a **single** RTX 5090 with no overrides: 131,072
context, a 179,647-token KV cache (1.37x concurrency at full length), 28.8 GB
of 32.6 GB used, and 68.8 tok/s on a 600-token greedy generation. Tool calling
and vision both work. `vram_minimum_gb: 31` is accurate — the margin is real
but thin.
**Speculative decoding needs a second card.** The draft head is 5.11 GB and the
nvfp4 weights are 25.42 GB, so on one 32 GB card vLLM OOMs during init with
roughly 400 MiB free. On 2x 5090 with `--tensor-parallel-size 2` it is well
worth the second card — decode roughly triples.
### 2x RTX 5090
Verified with the drafter enabled, and worth the second card: decode goes from
68.8 tok/s to ~240 tok/s.
`--gpu-memory-utilization` only sizes the KV cache; it does not gate
initialisation. Measured across the range on the base recipe (131,072 ctx,
bf16 KV) plus DFlash:
| `--gpu-memory-utilization` | KV cache | concurrency @131K |
|---|---|---|
| 0.92 | 1,202,076 | 9.17x |
| 0.88 | 1,054,407 | 8.04x |
| 0.84 | 906,720 | 6.92x |
| 0.80 | 759,051 | 5.79x |
All seven steps from 0.92 down to 0.80 initialised cleanly, including the
default 0.92. Decode was 212-261 tok/s with no trend attributable to
utilisation — the spread is run-to-run noise (another model shared the host
during the early steps) — so treat ~240 tok/s as the figure and pick
utilisation purely for the cache size you want.
If you *extend* beyond the recipe — a longer `--max-model-len` via rope
scaling, or `--kv-cache-dtype fp8` — the arithmetic changes and 0.92 can OOM:
at 262,144 with fp8 KV, vLLM sized a 2,594,229-token cache and then failed to
allocate 396 MiB for the speculator. Lowering to 0.80 fixed it. That is a
consequence of the extension, not of the recipe as written.
Not tested at 2x: vision, and concurrent load at `--max-num-seqs 64`.
### fp8_block on sm120 needs DeepGEMM off
The `fp8_block` variant does not load on RTX 5090 with DeepGEMM enabled. It
fails in `process_weights_after_loading`, before the engine starts:
```
RuntimeError: Assertion error (deepgemm/csrc/apis/layout.hpp:60): Unknown SF transformation
```
vLLM treats capability family 120 as a supported DeepGEMM target, so the path
is selected and then DeepGEMM rejects the scale-factor layout. Filed as
vllm-project/vllm#51884. Set both to work around it:
```bash
VLLM_USE_DEEP_GEMM=0 VLLM_MOE_USE_DEEP_GEMM=0
```
With that, fp8_block serves fine on 2x 5090 and is the better choice than
nvfp4 if you have the second card — 8-bit weights instead of W4A4, and faster:
177.6 tok/s with the drafter at 262,144 context (rope-extended, so outside the
recipe as written). nvfp4 is unaffected and loads with DeepGEMM at its default.
A note on `max_tokens`: the channel-scoped output means a tight budget can
truncate before the final channel closes, returning empty `content` with
`finish_reason: stop`. Give it room.
## Speculative decoding
Muse Glimmer ships a DFlash block-diffusion draft head. Rather than proposing
one token at a time, it predicts a whole block in a single forward — the slots
attend to each other bidirectionally — and the target verifies them in parallel.
DFlash uses 16 query positions per active request during warmup. To keep the
expanded batch within vLLM's token budget, replace the earlier sequence limit with:
```bash
--max-num-seqs 32 \
--speculative-config '{"method": "dflash", "model": "meta-models/Muse-Glimmer-30B-assistant", "num_speculative_tokens": 15}'
```
**`num_speculative_tokens: 15` is fixed, not tuned.** The head has
`block_size: 16` and slot 0 re-presents the last accepted token, so 15 slots
remain to predict.
The head is 5 layers / 5.11 GB, reads the target's residual stream at layers
`[1, 13, 25, 37, 49]`, and ties its embedding and output projection to the
target — so it stores neither and is useless on its own. It must be paired with
the specific target it was distilled against, not merely a compatible one.
@@ -0,0 +1,432 @@
meta:
title: "Muse Spark Open"
slug: "muse-spark-open-816b-a42b"
provider: "Muse (Meta)"
description: "Sparse MoE reasoning model with 816B total / 42B active parameters and a 1M-token context, built for long-horizon agentic coding. Native image and video perception, channel-scoped reasoning and tool calls via the `muse` parsers, and an optional DSpark draft model for speculative decoding."
date_added: 2026-10-15
date_updated: 2026-10-16
tasks:
- text
- multimodal
performance_headline: "MXFP4 and BF16 on one 8-GPU node: TP + expert parallel with DSpark for interactive serving, TP + expert parallel alone for peak MXFP4 throughput"
related_recipes: ["meta-models/Muse-Glimmer-30B"]
default_hardware: mi355x
default_variant:
amd: mxfp4
hardware:
h200: verified
gb200: verified
gb300: verified
mi350x: verified
mi355x: verified
model:
model_id: "meta-models/Muse-Spark-Open-816B-A42B"
# Support is not upstream yet: vllm-project/vllm#61879 lands it in the nightly
# wheel. Revise to the release that actually carries the merge.
min_vllm_version: "0.33.0"
nightly_required: true
docker_image:
nvidia: "vllm/vllm-openai:muse-spark-open"
amd: "vllm/vllm-openai-rocm:muse-spark-open"
install:
docker:
note: "Serve from the image of your GPU vendor — no pip wheel is available now."
pip: false
# The CPU-side Rust frontend works with both CUDA and ROCm engine cores.
default_frontend: rust
architecture: moe
# Derived from the checkpoint config, not just the name. 62 layers, hidden
# 8192, 256 experts at top-8, experts running at the compressed width 4096
# with SwiGLU intermediate 4096:
# experts 62 x 256 x 3 x 4096 x 4096 = 798.9 B
# attention 62 x (128+16+16+128)x64x8192 = 13.5 B
# squeeze/expand 62 x 2 x 8192 x 4096 = 4.2 B
# router + embed + untied lm_head = 3.4 B -> 820.0 B
# Active excludes embeddings: 62 x 690.0 M = 42.8 B.
parameter_count: "816B"
active_parameters: "42B"
# max_position_embeddings: 1048576 in the checkpoint config, matching
# tokenizer_config.json. Serving the full window needs --max-model-len.
context_length: 1048576
# No --trust-remote-code: all six Muse Spark configs are registered in-tree
# (vllm/transformers_utils/config.py).
base_args: []
base_env: {}
features:
reasoning:
description: "Channel-scoped chain-of-thought. Strength is set per request with the top-level `reasoning_effort` field — low/medium/high/xhigh map to strength hints 8/32/256/512, defaulting to xhigh when the field is omitted. Legacy `disable_reasoning` and `enable_thinking` kwargs are ignored."
args:
- "--reasoning-parser"
- "muse"
tool_calling:
description: "Channel-scoped tool calls. The parser is scoped to the tool channel, so an invocation echoed back inside ordinary assistant text is not re-parsed as a call. The template always offers `self` as a valid recipient."
args:
- "--enable-auto-tool-choice"
- "--tool-call-parser"
- "muse"
spec_decoding:
# The standalone draft checkpoint and its MuseSparkDSparkModel architecture
# are validated on NVIDIA Blackwell (NVFP4, on by default there via the
# variant's default_modes) and ROCm gfx950 (MI350X/MI355X).
description: "DSpark speculative decoding, drafting up to seven tokens per pass. On NVIDIA, adaptive verification keeps only the draft slots worth verifying, so it stays on at large batch sizes; on AMD it is a fixed seven-token profile, best for latency-bound serving."
default_mode: dspark
modes:
dspark:
label: "DSpark"
description: "Seven-token DSpark profile used for BF16, MXFP4, and NVFP4."
variants: [bf16, bf16_online_mxfp4, mxfp4, default]
args:
- "--speculative-config"
- '{"method":"dspark","model":"Inferact/Muse-Spark-Open-DSpark","num_speculative_tokens":7,"draft_sample_method":"probabilistic","rejection_sample_method":"block","enable_adaptive_verification":true}'
hardware_overrides:
amd:
args:
- "--speculative-config"
- '{"method":"dspark","model":"Inferact/Muse-Spark-Open-DSpark","num_speculative_tokens":7,"draft_sample_method":"probabilistic","rejection_sample_method":"block","enable_adaptive_verification":false,"attention_backend":"ROCM_AITER_FA"}'
env:
AITER_UNIFIED_ATTN_SHORT_QUERY_3D: "1"
VLLM_KV_CACHE_LAYOUT: "LBHNC"
opt_in_features:
- spec_decoding
variants:
bf16:
model_id: "meta-models/Muse-Spark-Open-816B-A42B"
precision: bf16
# 816B x 2 bytes x 1.2
vram_minimum_gb: 1959
description: "BF16 reference weights for NVIDIA and AMD; the ROCm path is validated on gfx950 (MI350X/MI355X)."
hardware_overrides:
amd:
extra_args:
- "--moe-backend"
- "triton"
- "--attention-backend"
- "ROCM_AITER_FA"
- "--max-model-len"
- "32768"
- "--max-num-seqs"
- "32"
- "--max-num-batched-tokens"
- "4096"
- "--gpu-memory-utilization"
- "0.95"
bf16_online_mxfp4:
model_id: "meta-models/Muse-Spark-Open-816B-A42B"
precision: mxfp4
label: "BF16 → MXFP4"
# Experts of layers 1-60 are rounded to MXFP4 at load; attention, dense
# projections, first/last-layer experts and lm_head stay BF16:
# (773B x 0.5 + 43B x 2) x 1.2
vram_minimum_gb: 567
supported_hardware: [mi350x, mi355x]
description: "The BF16 checkpoint with the routed experts of layers 1-60 quantized to OCP MXFP4 at load time (gfx950), running on the AITER MXFP4 MoE kernels. Avoids a second download."
hardware_overrides:
amd:
extra_args:
- "--attention-backend"
- "ROCM_AITER_FA"
- "--max-model-len"
- "32768"
- "--max-num-seqs"
- "128"
- "--max-num-batched-tokens"
- "8192"
- "--gpu-memory-utilization"
- "0.90"
extra_env:
VLLM_ROCM_MUSE_MOE_ONLINE_QUANT: "mxfp4"
mxfp4:
model_id: "amd/Muse-Spark-Open-816B-A42B-Quark-MXFP4"
precision: mxfp4
# Checkpoint total_size 508,864,619,120 bytes, plus 20% serving headroom.
vram_minimum_gb: 611
supported_hardware: [mi350x, mi355x]
description: "AMD Quark OCP MXFP4 W4A4 weights for gfx950 on the AITER MXFP4 MoE kernels."
hardware_overrides:
amd:
extra_args:
- "--attention-backend"
- "ROCM_AITER_FA"
- "--max-model-len"
- "32768"
- "--max-num-seqs"
- "128"
- "--max-num-batched-tokens"
- "8192"
- "--gpu-memory-utilization"
- "0.90"
default:
model_id: "meta-models/Muse-Spark-Open-816B-A42B-NVFP4"
precision: nvfp4
# Checkpoint total_size 533,010,718,720 bytes, plus 20% serving headroom.
vram_minimum_gb: 640
description: "NVFP4 weights for Blackwell. The primary NVIDIA serving path."
# The launch blog's NVIDIA command runs DSpark on this checkpoint.
default_modes:
spec_decoding: dspark
compatible_strategies:
- single_node_tp
- single_node_tep
- single_node_dep
- multi_node_tp
- multi_node_tp_pp
- multi_node_tep
- multi_node_dep
- pd_cluster
# The vLLM launch blog serves NVFP4 as TP8 + --enable-expert-parallel (TEP);
# TEP is also the MXFP4 throughput path on AMD (see the guide).
default_strategy: single_node_tep
# The ROCm MoE path requires DP1 (muse_moe_runner._validate_tp_post_norm_deployment).
strategy_hardware:
single_node_dep:
amd: unsupported
multi_node_dep:
amd: unsupported
hardware_overrides:
amd:
extra_args:
- "--dtype"
- "bfloat16"
- "--distributed-executor-backend"
- "mp"
- "--language-model-only"
- "--compilation-config"
- '{"cudagraph_mode":"FULL_AND_PIECEWISE"}'
- "--no-enable-prefix-caching"
- "--enable-chunked-prefill"
extra_env:
VLLM_ROCM_USE_AITER: "1"
VLLM_ROCM_MUSE_MOE_REDUCE_DTYPE: "bf16"
VLLM_USE_BREAKABLE_CUDAGRAPH: "1"
strategy_overrides: {}
guide: |
## Overview
Muse Spark Open is a sparse-MoE reasoning model — 816B total parameters, 42B
active — with a 1M-token context window, aimed at long-horizon agentic coding.
It is the model Muse Glimmer 30B was distilled from.
## Architecture
62 layers, hidden size 8192, and **every layer is a mixture-of-experts layer** —
there are no dense layers. Each holds 256 experts and uses 8 per token. The
experts are 799B of the 816B; everything else is small.
**The experts work narrow.** A learned matrix squeezes each token from 8192 to
4096, all 256 experts run at that width, and a second matrix widens the result
back. Both stay in full precision even when the experts are 4-bit. The router
reads the token *before* the squeeze, and in fp32 — picking the wrong expert
costs more than running a smaller one. There is no shared expert.
**Attention is 128 query heads sharing 16 key-value heads**, head dim 64, so the
KV cache is eight times smaller than with one key-value head per query head.
**Layers alternate between a narrow and a wide view**, on a cycle of four:
```
sliding_window: 2048
layer_types: [sliding_attention, full_attention, sliding_attention, sliding_attention, ...]
```
Three layers in each cycle look back 2048 tokens; the other (layers 1, 5, …,
61) sees the whole context and drops rotary position (`layer_rope_theta: 0`),
because rotary becomes unreliable over very long distances.
Across 62 layers that is **46 narrow layers and 16 wide ones**, and it is what
makes a 1M-token context affordable — only the 16 wide layers hold KV for the
whole sequence.
**Normalization appears in more places than usual**, each doing a job: a norm
before *and* after each block (the ones after carry no learnable weight), on
queries and keys before rotary position, on each attention head before its
sigmoid gate, and on every expert's output before the weighted blend. The
residual stream is carried in fp32.
Logits are scaled and then squashed through tanh (`final_logit_softcapping: 20.0`)
before the softmax.
## Prerequisites
- **vLLM**: Use Docker image for now until the code is in vLLM main repo.
- **Hardware**: the checkpoints hold ~1.64 TB of weights in BF16 and
~509 GB in Quark MXFP4, before KV cache. NVFP4 (~533 GB) is the primary
NVIDIA Blackwell path and fits one 8-GPU node. On AMD, all three AMD
variants are validated on gfx950 (MI350X/MI355X).
## NVIDIA
Meta ships BF16 and NVFP4 checkpoints. On Blackwell, serve
`meta-models/Muse-Spark-Open-816B-A42B-NVFP4` on one 8-GPU node with
**Tensor + Expert Parallel** (TP8 + `--enable-expert-parallel`), the default
strategy here. The command builder turns DSpark on by default for NVFP4; see
[Speculative decoding](#speculative-decoding-dspark).
NVIDIA supports every parallelism this recipe offers: TP, TP + PP, TP + expert
parallel, data + expert parallel, and prefill/decode disaggregation. AMD
supports only TP and TP + expert parallel.
## AMD ROCm variants
Quark MXFP4 is the default AMD variant.
| Variant | Checkpoint | AMD hardware | Experts / attention |
| --- | --- | --- | --- |
| MXFP4 | `amd/Muse-Spark-Open-816B-A42B-Quark-MXFP4` | MI350X, MI355X | AITER MXFP4 MoE / AITER FA |
| BF16 → MXFP4 | `meta-models/Muse-Spark-Open-816B-A42B` | MI350X, MI355X | experts of layers 1-60 rounded to MXFP4 at load, AITER MXFP4 MoE / AITER FA |
| BF16 | `meta-models/Muse-Spark-Open-816B-A42B` | MI350X, MI355X | Triton BF16 MoE / AITER FA |
In both MXFP4 variants the experts of the first and last layers stay BF16 and
run on Triton BF16 MoE.
On AMD, the recipe's commands are text-only (`--language-model-only`), use the
V2 model runner, disable prefix caching, enable chunked prefill, and request
breakable `FULL_AND_PIECEWISE` graphs. The ROCm MoE path supports the Tensor
Parallel and Tensor + Expert Parallel strategies; data-parallel strategies
are not available on AMD.
### Choosing TP or TP + expert parallel (MXFP4 variants)
Use plain **TP** for latency-bound serving (a handful of concurrent requests)
and the **Tensor + Expert Parallel** strategy (TP8 + `--enable-expert-parallel`,
32 of 256 experts per GPU) for throughput at 32 or more concurrent requests,
where it also lowers TTFT. Accuracy is the same under both. Keep **TP** for
BF16: its Triton experts are slower with expert parallelism. With DSpark on,
expert parallelism pays off from a few concurrent requests; see the DSpark
section.
The AMD commands use `--max-model-len 32768`. For the full
1M-token context, the MXFP4 variant is validated on TP with
`--max-model-len 1048576` and `--max-num-seqs 8`, with either the default or
`--kv-cache-dtype fp8` KV cache.
## Launching the Server
NVIDIA Blackwell, NVFP4, TP8 + expert parallel, with DSpark:
```bash
export VLLM_USE_RUST_FRONTEND=1
vllm serve meta-models/Muse-Spark-Open-816B-A42B-NVFP4 \
--tensor-parallel-size 8 \
--enable-expert-parallel \
--max-model-len 1048576 \
--reasoning-parser muse \
--tool-call-parser muse \
--enable-auto-tool-choice \
--speculative-config '{"method":"dspark","model":"Inferact/Muse-Spark-Open-DSpark","num_speculative_tokens":7,"draft_sample_method":"probabilistic","rejection_sample_method":"block","enable_adaptive_verification":true}'
```
## Frontends
Commands use the Rust frontend by default on NVIDIA and AMD ROCm.
To use the Python frontend, select Python in the command builder or replace
`VLLM_USE_RUST_FRONTEND=1` with `VLLM_USE_RUST_FRONTEND=0` in the generated
command.
## Reasoning effort
Set the strength per request with the top-level `reasoning_effort` field:
| `reasoning_effort` | Strength hint |
| --- | --- |
| `low` | 8 |
| `medium` | 32 |
| `high` | 256 |
| `xhigh` | 512 (default) |
```bash
curl http://localhost:8000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{
"model": "meta-models/Muse-Spark-Open-816B-A42B-NVFP4",
"messages": [{"role": "user", "content": "Refactor this module."}],
"reasoning_effort": "xhigh"
}'
```
### Multimodal
Muse Spark is a native multimodal model that understands image, audio and video. Video is
processed through a series of sampled video frames at load time. On AMD,
the recipe serves text only.
```bash
curl http://localhost:8000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{
"model": "meta-models/Muse-Spark-Open-816B-A42B-NVFP4",
"messages": [{"role": "user", "content": [
{"type": "video_url", "video_url": {"url": "https://example.com/demo.mp4"}},
{"type": "text", "text": "What happens, and when?"}
]}]
}'
```
The audio track of a video is not processed. To include it, extract the
audio and send it as a separate audio part in the same request.
Video sampling rate can be changed when starting the server.
```bash
--media-io-kwargs '{"video": {"fps": 1}}'
```
## Speculative decoding (DSpark)
Inferact trained a DSpark speculator for this model. The draft is a
small sliding-window model that reads the target's residual stream at selected
layers (`target_layer_ids`) and proposes a block per forward.
On NVIDIA, DSpark is on by default for NVFP4. It drafts up to seven tokens and
uses **adaptive verification** (`enable_adaptive_verification: true`), which
uses draft confidence to verify only the slots likely to be accepted. Because
of that it keeps paying off at large batch sizes, not just for single-request
latency. Turn off **Spec Decoding** in the builder to serve without the
draft.
On AMD, selecting **DSpark** emits the fixed seven-token profile with AITER FA
attention on every variant. Its causal multi-token decode is handled by
AITER unified attention, with the gfx950 short-query 3D schedule enabled.
DSpark gains the most when only a few requests are in flight, and still
stays ahead of plain TP at 32 concurrent requests. It also runs under the
**Tensor + Expert Parallel** strategy on the MXFP4 variants (TP8 +
`--enable-expert-parallel`), which is the faster combination from a few
concurrent requests up to about 64 at the same accuracy; plain TP + DSpark
remains the lowest-latency choice for a single request. With expert
parallelism, DSpark is validated up to `--max-num-seqs 128`; with plain TP,
keep `--max-num-seqs 32`. For throughput beyond about 64 concurrent
requests, use expert parallelism without DSpark.
### Adaptive DSpark (manual opt-in, Triton attention)
Adaptive verification captures variable-length decode CUDA graphs, which
the AITER FA attention backend does not support; with the AMD MXFP4
command above it fails at startup. To use it on MI350X/MI355X, switch the
target to Triton attention and use the adaptive config:
```bash
export VLLM_ADAPTIVE_VERIFICATION_PROFILE_CONTEXT_LEN=8192
--attention-backend TRITON_ATTN \
--speculative-config '{"method":"dspark","model":"Inferact/Muse-Spark-Open-DSpark","num_speculative_tokens":7,"draft_sample_method":"probabilistic","rejection_sample_method":"standard","enable_adaptive_verification":true,"attention_backend":"TRITON_ATTN"}'
```
Seven tokens remain the maximum draft depth. At startup, adaptive verification
profiles the DSpark and target costs, then uses draft confidence to keep only
the slots whose expected accepted-token benefit justifies their verification
cost. There is no hand-tuned acceptance threshold. Keep the profile context
representative of production traffic.
## References
- [Muse Glimmer 30B recipe](/meta-models/Muse-Glimmer-30B) — the distilled 30B sibling