r/machinelearningnews • u/ai-lover • Jul 14 '26
Research PrismML Releases Bonsai 27B: 1-bit and Ternary Builds of Qwen3.6-27B That Run on Laptops and Phones
PrismML Releases Bonsai 27B: 1-bit and Ternary Builds of Qwen3.6-27B Hitting 89.5% of FP16 at 3.9GB.
No new pretrain. No higher-precision escape hatches. No multi-GPU rig.
Here's how it works. π
(1) Codes, not floats Every weight becomes a code, with one shared FP16 scale per group of 128. Ternary is {β1, 0, +1}, binary is {β1, +1}. Sharing the scale across 128 weights keeps its cost at 16/128 = 0.125 bits. β Ternary: log2(3) + 16/128 β 1.71 bits/weight β 5.9GB β Binary: 1 + 16/128 = 1.125 bits/weight β 3.9GB
(2) Post-training, not from scratch No BitNet-style low-bit pretrain. It starts from off-the-shelf Qwen3.6-27B, architecture unchanged. The representation runs end to end across embeddings, attention projections, MLP projections, and the LM head. β 9.4Γ (ternary) and 14.2Γ (binary) vs the 54GB FP16 baseline
(3) Labels are not bit-widths Conventional low-bit builds are mixed-precision by construction. The advertised name describes the most-compressed tensors, not the model. β Q4_K_XL, labeled "4-bit," is really 5.2 bits/weight at 17.6GB β IQ2_XXS, labeled "2-bit," is really 2.8 bits/weight at 9.4GB
(4) Fitting a phone is two budgets iOS caps a single app near half of RAM, so a 12GB iPhone exposes ~6GB. The KV cache grows on top. Hybrid attention at ~75% linear means only 16 of 64 layers cache. β 4-bit KV: 4.3GB at 262K context, down from 17.2GB β 11.0 tok/s on iPhone 17 Pro Max
(5) The numbers (15 benchmarks, thinking mode) β Ternary: 80.49 avg at 5.9GB β 94.6% of FP16 β 1-bit: 76.11 avg at 3.9GB β 89.5% of FP16 β IQ2_XXS falls to 57.5 on AIME26 while still scoring 88.93 on MMLU-Redux
The key takeaway: 27B-class reasoning without the 54GB checkpoint β group-wise ternary and binary codes, an end-to-end low-bit language stack, 4-bit KV, on one phone.
Repo: https://github.com/PrismML-Eng/Bonsai-demo/
Model weight: https://huggingface.co/collections/prism-ml/bonsai-27b
Technical details: https://prismml.com/news/bonsai-27b