> ## Content Index
> Fetch the complete content index at: https://globalfeed.ai/llms.txt
> Use this file to discover other available public pages before exploring further.

# Ternary Bonsai 2.5 如何把 270 亿参数模型装进 6 GB？
- URL: https://globalfeed.ai/zh/ternary-bonsai-2-5-ru-he-ba-270-yi-can-shu-mo-xing-zhuang-jin-6-gb/
- Published: 2026-11-25T22:43:56.000Z
- Updated: 2026-11-25T22:43:56.000Z
- Description: PrismML 的三值模型把 Qwen3.8-27B 缩小九倍；三值格式原理、智能体测试变化与运行方法。
- Author: GlobalFeed Editor
- Tags: Ternary Bonsai, PrismML, Qwen, dil-zh, elle

PrismML 于 11 月 24 日发布 Ternary Bonsai 2.5 27B（[技术报告](https://github.com/PrismML-Eng/Bonsai-demo/blob/main/bonsai-2-5-27b-whitepaper.pdf?ref=globalfeed.ai)）：基于 Qwen3.8-27B，模型从 53.8 GB 压缩到 5.93 GB，在五项工具调用测试中平均 77.2 分，全精度模型为 77.7。模型以 Apache 2.0 许可发布在 Hugging Face。

## 三值数字如何工作

模型中几乎所有数值只取负一、零、正一三种值，每 128 个数值共享一个 16 位缩放因子，实际成本约为每个数值 1.76 位。数值保存在固定的 Walsh-Hadamard 旋转基中，运行时对输入做对应变换。线性注意力状态路径等约 0.0976% 的张量保持全精度。

## 如何训练

2.5 版保留 Bonsai 2 的格式，训练重点转向智能体编程、多轮工具调用，并减少“过度思考和重复循环”。三项编程测试保留全精度成绩的 90%，Bonsai 2 为 63%；DeepSWE 从 0 升到 27.0，AppWorld 从 51.2 升到 90.5。报告未公开训练数据、步数和硬件。

## 速度与试用

每个文件都带多 token 预测草稿头，NVIDIA 显卡上解码加速 1.5 至 1.8 倍，单张 H100 每秒 291 个 token。可通过 Bonsai-demo 仓库或标准 llama.cpp（Q2\_0 文件）运行。

来源： [Hugging Face 模型卡](https://huggingface.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF?ref=globalfeed.ai), [技术报告](https://github.com/PrismML-Eng/Bonsai-demo/blob/main/bonsai-2-5-27b-whitepaper.pdf?ref=globalfeed.ai), [PrismML 公告](https://prismml.com/news/bonsai-2-5-27b?ref=globalfeed.ai)