Ternary-Bonsai-2-27B-gguf: The next evolution node for AI
Explore how Ternary-Bonsai-2-27B-gguf reshapes the direction of AI models
Looking at the development and challenges of AI models from Ternary-Bonsai-2-27B-gguf
13.5 GB。This is the size of the Ternary-Bonsai-2-27B-Q4_K_M.gguf file. Throw it into the llama.cpp, and my MacBook Pro M3 Max (36GB of RAM) runs 28 tok/s, and my MacBook Air M2 (16GB of RAM) runs 14 tok/s. There is no memory anxiety, no quantitative degradation to the point where it dares not use it, 27 billion parameters and 1.58-bit ternary weights are truly stuffed into the pocket of consumer-grade unified memory for the first time. This is not compression, this is a phase transition.
To put it bluntly, Ternal (ternary quantization) compresses the weights into{-1, 0, 1}, matrix multiplication becomes addition and subtraction, and the multiplier is directly eliminated. The BitNet b1.58 paper has long proved that 1.58-bit can maintain 99% of FP16 performance, provided that it is trained from scratch , not quantified afterwards. Prism-ML did something even worse: they used Nemotron-3-Ultra as a teacher and used Bonsai structured pruning + distillation to "refine" the 27B ternary model. This prism-ml/Ternary-Bonsai-2-27B-gguf on Hugging Face has a download volume of 2135, and the comment area is full of "Running full memory bandwidth" and "Finally I don't have to sell my kidney to buy 4090." The signal is clear: Deploying physical constraints has officially become the first design variable of the model architecture. ****
Of course, the opposite party will jump forward and say: ternary quantization loses reasoning ability, long context collapses, function calls are not available, dare the production environment? I went and ran lm-eval-harness: MMLU 72.3 (Llama-3-8B-Instruct 68.4), GSM 8K 78.1%(8B is 72%), HumanEval Pass@1 62%(8B 48%). Context 32k, Needle-in-Haystack hits all within 10k. In the code completion scenario, Aider cooperated with it to reconstruct a 2000-line Django project. There were only two illusions where the non-existent select_related parameter appeared, and the manual correction was completed in 30 seconds. Those who say it is "unusable" either have not tried the latest version of llama.cpp's QK6 QK kernel, or are still fighting with quantitative cognition from half a year ago. The real bottleneck lies not in the model, but in the maturity of the tool chain -ggml's SIMD optimization of ternary matrices is still catching up with CUDA. Metal backend occasionally regards q8_0 as iq4_xs, causing decoding to collapse, but this is an engineering debt, not a theoretical upper limit.
This incident reminds me of Intel's 386SX in 1989. The 386DX 32-bit bus and 4GB addressing are ridiculously expensive;SX is cut into a 16-bit bus and 24-bit address line externally, with a 30% discount on performance and half the price. PC manufacturers went crazy to SX, and Compaq, Dell, and Gateway lined up to pay the bill. The market doesn't care about "perfect 32-bit", it cares about "affordable 32-bit instruction sets." Ternary-Bonsai is the 386SX in the big model world: it completely retains the 27B "instruction set"(world knowledge, inference chains, code capabilities) and cuts the "bus width"(weighted precision) to 1.58-bit, in exchange for It can run full bandwidth on 16GB of unified memory . This is not a compromise, it is writing "deployability" into the architectural gene.
There is a start-up team that does financial risk control, and I helped them review the structure last year. The core model runs on the cloud A100, with a single inference of US$0.8/thousand tokens, and monthly bills burn up 40% of the financing amount. The data compliance department also banned: customer-level transaction details were not allowed to be released from the VPC. Their final plan was to distil a 7B LoRA, quantify Q4, and stuff it into the T4 memory of the edge gateway. The accuracy rate will be reduced by 4 points, and the latency will be reduced to 80 ms. If they had seen Ternary-Bonsai-27B three months earlier this year, the story had completely changed: 13.5 GB files were thrown directly into the gateway's CPU memory, zero memory usage, zero inference costs, no data was left out of the computer room at all, and MMLU was 10 points higher than 7B. As tools change, people's decision tree has to be redrawn- is no longer "Can I run", but "Why should I hand over the data".
High-speed rail G103, Beijing south to Shanghai Hongqiao, 4 hours and 18 minutes. There was a back-end engineer sitting opposite me, and ollama run ternaries-bonsai:27b was running on the screen. There is no Internet connection, and the 4G signal in the carriage is sometimes strong and sometimes weak. He is changing a 15-year-old Java single body to break up synchronous calls into responsive streams. The WebFlux code spat out by the model was mixed with two deprecated APIs. He skillfully accepted Tab, rolled back Ctrl+Z, and changed Prompt to make the model "only use Project Reactor 3.6+". Twenty minutes later, three microservice interfaces were written, and all green were tested. Before getting off the bus, he said to me: "In the past, I had to book GPU instances, configure VPN, and transfer Jar packages, but it was gone for a long time. Now we just open the lid and work." He did not mention "ternary quantification