Bonsai 2 27B:以 1/9 的体积实现近乎无损的压缩
Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint

原始链接: https://prismml.com/news/bonsai-2-27b

PrismML 发布了 **Ternary Bonsai 2 27B**,这是一款基于 Qwen3.8 27B 的高效多模态 AI 模型。通过采用三值化 {−1, 0, +1} 权重压缩技术,该模型的权重位宽有效降至 1.76 比特,使得模型体积仅为 5.9GB。 尽管体积小巧,该模型仍保留了全精度模型 98.2% 的综合性能。这种“近乎无损”的压缩技术显著提升了智能密度,增强了模型在推理、编程、视觉及智能体方面的能力。该模型支持 262K token 的上下文窗口,并针对 NVIDIA GPU(通过 CUDA)和 Apple Silicon(通过 MLX)的本地部署进行了优化。 除了性能出色,Ternary Bonsai 2 27B 在能效方面表现卓越:在 RTX 5090 上运行速度可达每秒 143 token,且能耗比标准 8B 模型降低了 40%。这一性能特点使其非常适合编程智能体和私有高频工作流等本地应用场景。该模型基于 Apache 2.0 许可证发布,证明了低比特架构能够有效弥合高阶智能与受限硬件环境之间的差距,有望重塑 AI 在各类设备和数据中心的部署方式。

**Bonsai 2 27B** 模型因其高效、近乎无损的压缩技术在 Hacker News 上引起了广泛关注,该技术将模型体积压缩至约 6GB(每个权重 1.76 比特)。通过使用三元权重 ({−1, 0, +1}) 和先进的量化技术,用户能够在显存受限的消费级硬件上运行 270 亿参数的模型。 **讨论要点总结:** * **性能:** 用户反馈其速度表现出色,部分高端硬件可达到每秒 100 个 token 以上,但具体性能因系统配置和优化程度而异。 * **实用性:** 尽管该模型在技术上具有创新性,但其“近乎无损”的说法仍存在争议。社区成员指出,与全精度或标准的 4-bit 量化版本相比,该模型在处理复杂的智能体编码任务和长上下文窗口时表现欠佳,容易出现循环输出或“幻觉”现象。 * **技术门槛:** 目前运行该模型需要特定版本的 `llama.cpp` 分支,这导致了一些关于设置复杂性和缺乏上游支持的反馈。 * **社区观点:** 社区认为这是资源受限环境(如移动设备或旧款 GPU)的一项重大突破,但爱好者们提醒,对于高要求的专业编码或推理任务,它目前仍无法取代更大规模、更高精度的模型。
相关文章

原文

Two months ago, we released our first Bonsai 27B models and showed that a 27B-class multimodal model could be compressed enough to run efficiently on a local device. Today, we’re releasing Ternary Bonsai 2 27B, our most capable model yet.

Based on Qwen3.8 27B, Ternary Bonsai 2 27B brings stronger reasoning, coding, vision, and agentic capability to the Bonsai series while preserving the deployment profile that defines it: a dramatically smaller memory footprint, high local throughput, and better energy efficiency.

Ternary Bonsai 2 27B uses ternary {−1, 0, +1} weights with FP16 group-wise scaling, for 1.76 effective bits per weight and a total model footprint of 5.9GB. The low-bit representation is applied end to end across the language model. It supports a 262K-token context window, multimodal text-and-image input, and is released under the Apache 2.0 license.

Against its full-precision counterpart, Ternary Bonsai 2 27B is more than 9x smaller while retaining 98.2% of aggregate benchmark performance. At this level of retention, compression becomes a deployment unlock: nearly the same capability, in a footprint that can run in far more places.

What changed from the first Bonsai 27B release

Our first Bonsai 27B release was an important milestone, offering a practical way to run 27B-class intelligence on local devices. Bonsai 2 27B focuses on the next step: improving the model quality and runtime performance needed for real-world local applications. Compared with the previous Bonsai 27B generation, Bonsai 2 27B brings:

  • a stronger base model, Qwen3.8 27B
  • higher aggregate capability retention of 98.2% against the full-precision model
  • improved reasoning, coding, vision, and long-horizon agentic performance

Higher capability at the same deployment point

Across a benchmark suite spanning 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 aggregate performance.

‍Figure I: Benchmark scores of Ternary Bonsai 2 27B (thinking mode) compared with the full-precision Qwen3.8 27B and Qwen3.6 27B baselines. Full per-benchmark results are in the whitepaper.‍

The key result is not only the aggregate score, but where the capability is retained. Coding agents, tool-use systems, multimodal workflows, and long-horizon tasks are particularly sensitive to model degradation because small errors can compound over many steps. Bonsai 2 27B preserves much of the full-precision model’s performance in exactly these areas while operating at a fraction of the memory footprint.

Compared with the full-precision model and other low-bit alternatives, Bonsai 2 27B stands out as an outlier on intelligence density. Many low-bit alternatives become deployable only by giving up meaningful capability in coding, vision, or agentic tool use. Bonsai 2 27B pushes the frontier toward both higher capability and lower memory usage.

Figure II: Intelligence density (per GB) of Ternary Bonsai 2 27B compared to other models in the same parameter class.
Demo I: Coding agents with Cline, powered by Ternary Bonsai 2 27B on NVIDIA GeForce RTX 5090.

With Bonsai 2 27B, local models can start to take on real knowledge work: coding-agent loops, computer-use workflows, private document analysis, multimodal debugging, and hybrid orchestration where local models handle sensitive or high-frequency tasks while escalating selectively to the cloud.

Throughput and energy efficiency

Ternary Bonsai 2 27B reaches up to 143 tokens/second on NVIDIA GeForce RTX 5090 and 46.8 tokens/second on M5 Max. On an RTX 4090, Ternary Bonsai 2 27B consumes just 0.714 mWh/token, making it 40% more energy-efficient than an 8B model running in full-precision.

For coding assistants, higher throughput means faster edit-debug loops. For multimodal agents, it means quicker iterations over screenshots, documents, and tool calls. For private local workflows, better energy efficiency means more useful inference on the same device, longer battery life, and a more realistic path to assistants that can stay available in the background without constantly calling the cloud.

Why this release matters

Compared to Ternary Bonsai 27B, the new Ternary Bonsai 2 27B has closed the retention gap between the full precision model from 95% to over 98%. This is a significant improvement that makes the current release practically “lossless”. It further cements the notion that low-bit models can be the best way to deploy AI. 

That has implications well beyond local inference. Low-bit models can change the economics and architecture of AI systems across devices, workstations, and datacenters: fitting larger models into the same memory envelope, serving more users on the same hardware, reducing energy per inference, and enabling hybrid systems that dynamically decide what should run locally and what should run in the cloud.

The question will increasingly be not just how capable a model is, but how much useful intelligence can be delivered within a given memory, compute, and power budget. If capability can continue to scale while those requirements fall dramatically, the deployment envelope for future models expands across the stack: from personal devices to large-scale datacenters.

Platform Coverage

Bonsai 2 27B runs on NVIDIA GPUs via CUDA and on Apple devices (Mac, iPhone, iPad) via MLX, through custom low-bit kernels. Model weights are available today under the Apache 2.0 License.

Full technical details of our compression, evaluation, and benchmarking processes are available in our whitepaper.

Work with Us

We work with teams to tailor Bonsai models to their applications, from post-training on domain-specific data to optimizing inference for target hardware. If you’re building AI products with tight memory, latency, or power requirements, we’d love to explore how Bonsai can help. Reach out at [email protected].

Join Us

PrismML emerged from a team of Caltech researchers and was founded with support from Khosla Ventures, Cerberus, and Google, with continuing support from Samsung. We've spent years tackling one of the field's hardest problems: compressing neural networks without sacrificing their reasoning ability.

If you want to help build the next generation of state-of-the-art AI, we'd love to hear from you. Check out our careers page.

联系我们 contact @ memedata.com