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.
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 simplyWrite a haiku about small modelsWhy 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.