prism-ml/Bonsai-27B-mlx-1bit Β· Apache-2.0

A 27B model that fits
in your pocket.

Bonsai compresses a 27-billion-parameter model to 1.125 bits per weight β€” a ~3.9 GB footprint that runs at ~44 tok/s on an M5 Pro and ~11 tok/s on an iPhone 17 Pro Max.

β–Ά Try the demo ⌘ Run on your Mac
1.125 bit
per weight (binary + group scaling)
3.9 GB
on disk β€” 14.2Γ— smaller than FP16
262K
context, 4-bit KV cache
89.5%
of full-precision quality retained
Interactive preview

Chat with Bonsai

A simulated preview of the model's thinking-mode responses. Real generation runs on your own Apple Silicon β€” see Run locally.

bonsai@mlx β€” mlx_lm.generate SIMULATED PREVIEW
🌳
Hi! I'm Bonsai-27B running at 1.125 bits. Ask me anything, or tap a suggestion below.
Explain 1-bit quantization simply Write a haiku about small models Why is it called Bonsai? How fast is it on iPhone?
⚠️ Responses here are canned illustrations of the model's style β€” this Space serves static HTML on x86 Linux, and MLX only runs on Apple Silicon, so no live inference happens in the browser.
Quality vs. size

Tiny footprint, most of the smarts

Averages across 15 thinking-mode benchmarks. Bonsai keeps ~89.5% of the original model's capability while shrinking the weights by more than 14Γ—.

Quality retained vs. FP1689.5%
Avg score Β· 15 thinking benchmarks76.11 / 100
Size reduction vs. FP16 (54 GB β†’ 3.9 GB)14.2Γ— smaller
Intelligence density (0.530 / GB)2.7Γ— densest conventional
Under the hood

How it's built

Derived from Qwen3.6-27B β€” a hybrid-attention causal LM β€” then binarized end-to-end across embeddings, attention & MLP projections, and the LM head.

🧠

Hybrid attention

Mostly linear attention with periodic full-attention layers, plus SwiGLU MLP, RoPE, and RMSNorm.

linear / full75% / 25%
πŸ”©

End-to-end 1-bit

Binary weights with group-wise scaling everywhere; the optional vision tower stays in compact 4-bit.

bits / weight1.125
⚑

Fast decoding

Ships a DSpark speculative-decoding drafter for a 1.37Γ— speedup on CUDA; ternary variant for quality.

M5 Pro / iPhone44 / 11 tok/s
Get started

Run it locally

Bonsai is an MLX model β€” it runs natively on Apple Silicon. Pick your stack:

bonsai.py