Instructions to use meta-models/Muse-Glimmer-30B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use meta-models/Muse-Glimmer-30B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="meta-models/Muse-Glimmer-30B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("meta-models/Muse-Glimmer-30B") model = AutoModelForMultimodalLM.from_pretrained("meta-models/Muse-Glimmer-30B", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use meta-models/Muse-Glimmer-30B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "meta-models/Muse-Glimmer-30B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "meta-models/Muse-Glimmer-30B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/meta-models/Muse-Glimmer-30B
- SGLang
How to use meta-models/Muse-Glimmer-30B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "meta-models/Muse-Glimmer-30B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "meta-models/Muse-Glimmer-30B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "meta-models/Muse-Glimmer-30B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "meta-models/Muse-Glimmer-30B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use meta-models/Muse-Glimmer-30B with Docker Model Runner:
docker model run hf.co/meta-models/Muse-Glimmer-30B
Notes from an independent NVFP4 port of Muse-Glimmer-30B (53 t/s on One RTX 5090)
We converted and ran Muse-Glimmer-30B — Meta's 30-billion-parameter dense
agentic model — on a single consumer RTX 5090, end to end: conversion,
inference, tool calling, and a full correctness gate suite. The model now
generates at ~53 tokens/second at a 2048-token budget, with a 554 ms
time-to-first-token, using 19.5 GB of the card's 32 GB.
What the checkpoint forced into the engine
Muse-Glimmer is not a vanilla dense transformer. Four semantics are easy to
get wrong, and each is pinned by a test against a float64 reference derived
from the vendor's own transformers implementation:
- Gated attention. Every layer carries a fifth attention projection
(self_attn.gate_proj); the attention output is multiplied elementwise bysigmoid(gate)before the output projection. It is present on sliding
and full layers. - NoPE full layers. The layer pattern is [sliding, sliding, sliding,
full] × 13. The full-attention layers apply no rotary embedding at all
(layer_rope_theta == 0) and attend the whole prefix; the sliding layers
use θ = 500 000 over the full head dim with a 2048-token window. A uniform
RoPE port decodes garbage past the first positions. - Centered norms. The four per-layer norms are Gemma-2-style
×(1+w)
(pre-norms ε 1e-5, post-norms ε 1e-8); the final norm is plain×w;
the embedding carries a weightless RMSNorm with no√hiddenscale. - Softcapped logits with a multiplier.
logits = 20·tanh(raw·0.196116/20).
Dropping the multiplier ships ~5.1× hot logits that greedy argmax hides —
the head test uses a non-unit fixture to pin it.
The QK norm is weightless per-head RMSNorm, with Q additionally scaled by
3.87 on top of the standard 1/√128 score scale.
Quantization
All eight linear projections per layer are quantized to NVFP4 (E2M1 nibbles +
per-16 E4M3 block scales + a per-tensor float global scale). The embedding and
the untied lm_head stay FP16 (exact greedy), and no norm is ever quantized.
The 59.5 GB BF16 source converts to a 19 GB tree in ~3 minutes. The vision
tower + adapter (809 tensors, ~3.8 GB) is counted and stripped, never applied —
this is a text-only runtime.
Tool calling: byte-identical to the vendor template
Muse uses the ATEM protocol: harmony-style channels
(<|start|>assistant to=<tool><|message|>…<|eot|>) wrapping<atem:function_calls>/<atem:invoke>/<atem:parameter> XML. We reproduced the
checkpoint's chat_template.jinja render byte-for-byte (verified against
HF apply_chat_template on both a tools conversation and a full multi-turn
tool-call/result conversation, 1762 and 2099 bytes respectively). The native
parser scans token ids for the answer channel (the markers are special:true,
so text decode drops them). A real-weight round-trip producesget_weather {"city":"Paris"}.
Measured gates
| gate | result |
|---|---|
| SelfCheck ("Paris") | PASS ×3 bit-exact, logits_hash 3374b7bc94231955, top-1 13796 |
| Tool round-trip (real weights) | PASS — get_weather {"city":"Paris"} |
| Cooperative cancel | PASS |
| CODE (compiler strictness, 3 prompts) | 3/3 vs source-captured golden |
| DET (determinism + near-tie, 3 prompts ×3 runs) | 3/3, byte-identical runs |
| FSI (financial formulas, 3 prompts) | debt — capture attempted twice, see below |
| Throughput @2048 tokens | 52.9 t/s (perf) / 53.3 t/s (r3), ttft 554 ms |
A defect the gates caught (and we fixed)
Muse is a reasoning model: it emits its answer in an assistant to=user
channel, then loops back into assistant to=self reasoning, re-emitting the
answer several times. The last answer channel can be truncated by the token
budget mid-answer, and the reasoning tail echoes the prompt body. The parity
harness's prompt-echo cut then removed everything and the extraction was empty.
We added ATEM answer-channel selection to the CODE/DET harnesses (select the
first complete answer channel), with unit tests written failing-first. Both
gates then passed on the converted weights.
What was not measured, and why
FSI is declared debt, not a pass. The source runs (a text-tower CPU oracle
answers the Paris probe and the CODE/DET sets), but the FSI capture did not
complete: at 512 tokens FSI-03 aborts because the source loops inside its
reasoning channel and never emits a clean comparison line; at 1024 tokens the
3-case capture ran >1.5 h on CPU without finishing. The gate is wired and skips
for the golden, not the tree. A longer unattended capture (or areasoning_strength: low framing) is the next step.
Vision execution and the DFlash speculative drafter are out of scope (the
drafter is not in this checkpoint's index).
The full ingestion report — including the internal evidence, CTest gate targets (test_muse_dense_*), byte-exact ATEM tool protocol, and the C++20/CUDA runtime — is available in the public repository:
• Full Ingestion Report: https://github.com/Alex7MV/logestix/blob/main/docs/model-reports/2026-11-19-Muse-Glimmer-30B.md
• Repository: https://github.com/Alex7MV/logestix