Instructions to use dbirks/Muse-Glimmer-30B-int4-AutoRound with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dbirks/Muse-Glimmer-30B-int4-AutoRound with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="dbirks/Muse-Glimmer-30B-int4-AutoRound") 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("dbirks/Muse-Glimmer-30B-int4-AutoRound") model = AutoModelForMultimodalLM.from_pretrained("dbirks/Muse-Glimmer-30B-int4-AutoRound", 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use dbirks/Muse-Glimmer-30B-int4-AutoRound with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dbirks/Muse-Glimmer-30B-int4-AutoRound" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dbirks/Muse-Glimmer-30B-int4-AutoRound", "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/dbirks/Muse-Glimmer-30B-int4-AutoRound
- SGLang
How to use dbirks/Muse-Glimmer-30B-int4-AutoRound 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 "dbirks/Muse-Glimmer-30B-int4-AutoRound" \ --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": "dbirks/Muse-Glimmer-30B-int4-AutoRound", "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 "dbirks/Muse-Glimmer-30B-int4-AutoRound" \ --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": "dbirks/Muse-Glimmer-30B-int4-AutoRound", "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 dbirks/Muse-Glimmer-30B-int4-AutoRound with Docker Model Runner:
docker model run hf.co/dbirks/Muse-Glimmer-30B-int4-AutoRound
Muse-Glimmer-30B-int4-AutoRound
int4 (W4A16) quantization of
meta-models/Muse-Glimmer-30B, produced with Intel AutoRound and packaged in compressed-tensors for vLLM. Runs on any modern NVIDIA GPU (Ampere → Ada → Hopper → Blackwell) via Marlin — 4-bit weights, BF16 activations. Text-only quant: the transformer decoder is int4; vision tower +lm_headstay BF16. ~20.7 GB on disk (vs ~60 GB BF16).
Model overview
- Base model:
meta-models/Muse-Glimmer-30B— a dense (Gemma2-derived) multimodal reasoning decoder + vision tower. - Quantization: W4A16 (int4 weight-only, group size 128) on the text-decoder
Linearlayers; vision tower / adapter / projection / patch-embedder /lm_headkept BF16. - Format: compressed-tensors (
pack-quantized), auto-detected by vLLM. - Quantizer: Intel AutoRound (arXiv:2309.05516), 128 samples · seqlen 2048 · 200 iters ·
NeelNanda/pile-10k. - Why this one: highest accuracy recovery of the 4-bit variants and the broadest hardware support — if you don't have a Blackwell card, this is the one to use. (For Blackwell FP4 speed, see the NVFP4 sibling.)
Evaluation — accuracy recovery vs BF16
EleutherAI lm-evaluation-harness, in-process --model vllm, OpenLLM-v1, identical settings; Recovery % = quant ÷ BF16 × 100. (No chat template: Muse is a reasoning model, and chat-template MCQ loglikelihood collapses to ~random — see notes.)
| Task | BF16 base | This (int4 W4A16) | Recovery % |
|---|---|---|---|
| arc_challenge | 0.6254 | 0.6041 | 96.6 |
| hellaswag | 0.8275 | 0.8187 | 98.9 |
| winogrande | 0.7798 | 0.7695 | 98.7 |
| truthfulqa_mc2 | 0.6168 | 0.6099 | 98.9 |
| mmlu | 0.7977 | 0.7930 | 99.4 |
| OpenLLM V1 Avg | 0.7295 | 0.7191 | 98.50% |
For reference on the same harness: Red Hat GPTQ-NVFP4 = 98.36%, AutoRound NVFP4 (W4A4) = 97.09%. This W4A16 build is the highest-recovery 4-bit option, at the smallest size (20.7 GB).
Deployment (vLLM)
vLLM auto-detects the scheme from config.json — no quantization flag needed. int4 W4A16 serves via the Marlin kernel on any Ampere-or-newer GPU.
vllm serve dbirks/Muse-Glimmer-30B-int4-AutoRound \
--tensor-parallel-size 1 --max-model-len 8192 \
--enable-auto-tool-choice --tool-call-parser muse_glimmer --reasoning-parser muse_glimmer
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="x")
r = client.chat.completions.create(model="dbirks/Muse-Glimmer-30B-int4-AutoRound",
messages=[{"role":"user","content":[
{"type":"text","text":"Describe this image."},
{"type":"image_url","image_url":{"url":"https://…"}}]}])
print(r.choices[0].message.content)
Note: Muse-Glimmer is a reasoning model — with the reasoning parser on, chain-of-thought comes back in the
reasoningfield and the final answer incontent; give it enoughmax_tokens.
Limitations
- Small accuracy loss vs BF16 (see table). Only the text decoder is quantized (vision tower BF16, intentional).
- Weight-only (W4A16): activations stay BF16, so no activation-quant speedup — but maximal compatibility + accuracy. For Blackwell FP4 (W4A4) speed, use the NVFP4 sibling.
Reproducibility
from auto_round import AutoRound
ar = AutoRound("meta-models/Muse-Glimmer-30B", scheme="W4A16", dataset="NeelNanda/pile-10k",
nsamples=128, seqlen=2048, batch_size=4, iters=200,
device_map=0, trust_remote_code=True, quant_nontext_module=False, seed=42)
ar.quantize_and_save(output_dir="Muse-Glimmer-30B-int4-AutoRound", format="llm_compressor")
Toolchain: auto-round 0.15.0, transformers 5.16.0.dev0 (source — required for the muse_glimmer arch), compressed-tensors 0.17.0, torch 2.11.0+cu130. Full effort log: home-k8s issue #81.
Citation
@article{cheng2023optimize, title={Optimize Weight Rounding via Signed Gradient Descent for the Quantization of LLMs}, author={Cheng, Wenhua and others}, journal={arXiv:2309.05516}, year={2023}}
- Downloads last month
- 42
Model tree for dbirks/Muse-Glimmer-30B-int4-AutoRound
Base model
meta-models/Muse-Glimmer-30B