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)# 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=40) 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
wanted to believe! #5090
Getting Muse Glimmer 30B + DFlash working on RTX 5090 (Windows) — need help reaching advertised speed
Hi all,
I've been trying to reproduce the 233 tok/s DFlash benchmark for Muse Glimmer 30B K-Quant on an RTX 5090 (32 GB GDDR7). I'm seeing DFlash activate but getting inconsistent results and would love input from anyone who's hit the advertised numbers.
Hardware / Software
| GPU | NVIDIA GeForce RTX 5090 32 GB |
| OS | Windows 11 (native, not WSL) |
| Runtime | llama-server build b10354 (Clang 20.1.8, x86_64) |
| Model | meta-models/Muse-Glimmer-30B-GGUF → muse-glimmer-30B-kquant-17gb.gguf (~16.8 GB) |
| DFlash drafter | dflash-kquant.gguf (~1.63 GB) |
| Vision | mmproj-kquant.gguf (~1.40 GB, loaded but not used in these tests) |
Launch command
llama-server.exe `
--model "C:\models\Muse-Glimmer-30B\muse-glimmer-30B-kquant-17gb.gguf" `
--model-draft "C:\models\Muse-Glimmer-30B\dflash-kquant.gguf" `
--mmproj "C:\models\Muse-Glimmer-30B\mmproj-kquant.gguf" `
-ngl 99 -ngld 99 `
--np 1 `
--ctx-size 131072 `
--spec-type draft-dflash `
--spec-draft-n-max 15 `
--flash-attn on `
--reasoning-preserve `
--host 0.0.0.0 --port 8000
Startup log confirms DFlash is loading:
I common_speculative_impl_draft_dflash: adding speculative implementation 'draft-dflash'
I common_speculative_impl_draft_dflash: - n_max=15, n_min=0, p_min=0.00
I common_speculative_impl_draft_dflash: - block_size=16, mask_token_id=201818, n_extract=5
I srv load_model: initializing, n_slots = 1, n_ctx_slot = 131072, kv_unified = 'false'
I srv llama_server: model loaded
Results
I sent the same coding task (BST implementation, ~80K-token context) multiple times and watched the draft acceptance line in the server logs.
| Run | Context tokens | Output tokens | Acceptance rate | Mean accepted len | tok/s |
|---|---|---|---|---|---|
| 1 | 79,762 | 821 | 30.5% (673/2205) | 5.58 | 168 |
| 2 | ~82K (follow-up) | 1,268 | 9.5% (744/7860) | 2.42 | 76 |
| 3 | ~82K (follow-up) | 93 | 14.0% (63/450) | 3.10 | 98 |
- Prefill rate is very healthy: ~2,800–4,400 tok/s depending on context length.
- Baseline (no draft model): ~74–77 tok/s — consistent with Meta's published 74.9 tok/s baseline.
- Peak decode so far: 168 tok/s (run 1 above) — roughly 2.2× speedup, DFlash is clearly activating.
- Target: 233 tok/s from the model card. Some community posts are quoting 300 tok/s — I don't know the source of that number.
What I've tried
- ✅
--spec-type draft-dflash(was silently defaulting todraft-simplebefore — this was the key missing flag) - ✅
--flash-attn on(required for DFlash block-parallel attention) - ✅
--spec-draft-n-max 15(block_size=16, trained max = 15) - ✅ Single slot (
--np 1) to avoid splitting KV cache budget - ❓
kv_unified = 'false'shown in logs — should this betruefor DFlash? - ❓ Is
kv_cache_typerelevant? (q8_0 / q4_0 for KV compression) - ❓ Temperature / sampling parameters affecting acceptance rate?
- ❓ Does this need a Linux build to work properly, or is the Windows Clang binary sufficient for DFlash's CUDA kernels?
Questions for the community
What acceptance rate should I expect? My run 1 got 5.58 mean accepted tokens per block. Is there a warm-up or context-length dependency? The acceptance drops sharply on follow-up turns.
Is
kv_unifiedimportant for DFlash? The log showskv_unified = 'false'. DFlash shares KV state between main and draft models — does this flag need to betrue?Is there a minimum context length for DFlash to engage properly? Run 1 had an 80K-token prefill; runs 2–3 were shorter continuation turns and acceptance cratered.
Are there temperature / sampling settings that improve acceptance? Lower temperature → more predictable outputs → higher draft acceptance?
Windows vs. Linux? Are there known issues with the DFlash CUDA kernels in the Windows pre-built binaries? Would a native Linux (WSL2) build be meaningfully faster?
Has anyone consistently hit 200+ tok/s on a 5090? If so, please share your full startup command and llama.cpp build.
Thanks in advance — this model is clearly capable, just trying to squeeze every token out of it.
Same on my 5090:
Avg prefill: ~2300 tok/s .
Avg decode: ~65 tok/s.
Avg acceptance rate: 25%
Tested with configs using llama cpp (b10358):
[muse_glimmer]
model =./models/muse-glimmer-30B-kquant-dynamic.gguf
md=./models/dflash-kquant.gguf
ctx-size=131072
temp=1.0
top-p=0.95
top-k=64
device=CUDA0
spec-type=draft-dflash
spec-draft-device=CUDA0
spec-draft-n-max=15
spec-draft-n-min=2
reasoning-preserve=1
Hey folks, pls check https://huggingface.co/meta-models/Muse-Glimmer-30B/discussions/21. This might help?