Instructions to use OpensourceWTF/Muse-Glimmer-30B-MLX-q4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use OpensourceWTF/Muse-Glimmer-30B-MLX-q4 with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("OpensourceWTF/Muse-Glimmer-30B-MLX-q4") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use OpensourceWTF/Muse-Glimmer-30B-MLX-q4 with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "OpensourceWTF/Muse-Glimmer-30B-MLX-q4" --prompt "Once upon a time"
- Atomic Chat
Muse-Glimmer-30B — MLX q4-affine
A 4-bit affine MLX quantization of meta-models/Muse-Glimmer-30B — the text tower (a Gemma-family multimodal; the text model is served here) — for MTPLX on Apple Silicon. Pairs with a dflash block-diffusion speculative-decoding drafter (see the MTPLX PR linked below).
Architecture
Custom Gemma-3-like text tower (reference: llama.cpp src/models/muse-glimmer.cpp):
- sigmoid gated attention (
self_attn.gate_proj, beforeo_proj) - parameter-free QK-norm with
qk_scale_factorfolded onto Q - NoPE on the global/full-attention layers (RoPE θ=500000 only on sliding layers)
- Gemma
(1+w)sandwich norms; RMS-normed embeddings (not ×√hidden); SiLU SwiGLU;logit_scale+ tanh softcap
52 layers · hidden 6656 · GQA 32/2 · head-dim 128 · vocab 202048 · sliding-window 2048 (pattern-4) · untied lm_head.
Quantization
q4-affine mirroring unsloth's UD-Q4_K_XL recipe: 4-bit gs32 body; 5-bit lm_head + attention-output layers 45–51; norms full-precision. 5.06 bpw / 16 GB.
Quality
Base-model completion, greedy, through the real MTPLX /v1/completions serve path (batch-decode,
so indentation is correct):
| benchmark | pass@1 |
|---|---|
| HumanEval-164 | 47.6% |
| HumanEval+ (stricter) | 43.3% |
| MBPP-378 | 68.8% |
| MBPP+ (stricter) | 56.9% |
Speculative decoding (dflash)
Paired with a bf16 dflash block-diffusion drafter through MTPLX's MTP route. Decode is token-exact vs greedy AR. Throughput × block size (K), Python code continuation, M5 Max:
| workload | AR tok/s | best K | best tok/s | ×AR |
|---|---|---|---|---|
| repetitive code (1024 ctx) | 27.2 | 16 | 59.3 | 2.18× |
| short code prompt | 28.1 | 6 | 43.3 | 1.54× |
| diverse code (1024 ctx) | 27.4 | 4 | 28.6 | 1.04× |
Speedup is acceptance-bound: ~2.2× on predictable/boilerplate code, ~break-even on genuinely diverse code (where the optimum shifts to small K). Full per-K matrix in the MTPLX PR.
Usage (MTPLX)
mtplx serve --model OpensourceWTF/Muse-Glimmer-30B-MLX-q4 \
--stock-ar --no-mtp --unsafe-force-unverified --yes
For speculative decoding, use the dflash pair bundle (target/ + drafter/ + dflash_pair.json)
described in the PR.
Links
- MTPLX integration (arch + dflash backend): https://github.com/youssofal/MTPLX/pull/248
- Downloads last month
- 1,070
4-bit
Model tree for OpensourceWTF/Muse-Glimmer-30B-MLX-q4
Base model
meta-models/Muse-Glimmer-30B