Brifing

Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint

A breakthrough in AI model compression for local deployment.

Hacker News2 min

1Introduction to Bonsai 2 27B

Prism ML has released Ternary Bonsai 2 27B, a multimodal AI model based on Qwen3.8 27B. This model enhances reasoning, coding, vision, and agentic capabilities while maintaining a small memory footprint. It uses ternary weights with FP16 group-wise scaling, achieving 1.76 effective bits per weight and a total model footprint of 5.9GB. This allows for efficient local deployment on devices.

2Compression and Performance

Ternary Bonsai 2 27B is more than 9x smaller than its full-precision counterpart while retaining 98.2% of aggregate benchmark performance. This level of retention makes the model practically lossless, enabling high-quality AI applications on local devices. The model supports a 262K-token context window and multimodal text-and-image input, making it versatile for various tasks.

3Benchmark Results

Across benchmarks in reasoning, math, coding, instruction following, vision, and agentic tool use, Ternary Bonsai 2 27B scores 83.9, retaining 98.2% of Qwen3.8 27B’s performance. Notably, it excels in coding agents, tool-use systems, and multimodal workflows, areas sensitive to model degradation. This ensures reliable performance in complex, multi-step tasks.

4Energy Efficiency

Ternary Bonsai 2 27B consumes just 0.714 mWh/token on an RTX 4090, making it 40% more energy-efficient than an 8B model running in full-precision. This energy efficiency is crucial for local devices, enabling longer battery life and more sustainable AI applications. Higher throughput also means faster edit-debug loops for coding assistants.

5Deployment Flexibility

The model runs on NVIDIA GPUs via CUDA and on Apple devices via MLX, using custom low-bit kernels. This broad compatibility allows Bonsai 2 27B to be deployed across various hardware platforms. The Apache 2.0 license further facilitates its adoption in diverse applications, from private document analysis to multimodal debugging.

6Real-World Applications

Bonsai 2 27B enables local models to handle real knowledge work, such as coding-agent loops, computer-use workflows, and private document analysis. Its ability to escalate selectively to the cloud allows for hybrid orchestration, where local models manage sensitive or high-frequency tasks efficiently. This opens new possibilities for AI deployment in various industries.

7Future Implications

The advancements in Bonsai 2 27B suggest a future where AI models can deliver high capability within tight memory, compute, and power budgets. This could expand the deployment envelope for future models across devices, workstations, and datacenters. The model’s efficiency could also reduce energy per inference, making AI more sustainable.

8Conclusion

Ternary Bonsai 2 27B represents a significant step forward in AI model compression, offering near-lossless performance in a dramatically smaller footprint. Its ability to retain high capability while reducing memory and energy usage makes it a practical solution for local AI applications. This development could reshape the economics and architecture of AI systems globally.

Original article: Hacker News — Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint