Dev.to AI 🤖 Ai 👁 0 📖 7 min read

PrismML Ternary Bonsai 2.5 27B: A Local Setup Guide

The 5.9GB open model targets local coding agents, but choosing the right download matters as much as its compressed size. PrismML released Ternary Bonsai 2.5 27B on November 24, 2026, offering Apache-2.0 weights for a c

PrismML Ternary Bonsai 2.5 27B: A Local Setup Guide

The 5.9GB open model targets local coding agents, but choosing the right download matters as much as its compressed size.

PrismML released Ternary Bonsai 2.5 27B on November 24, 2026, offering Apache-2.0 weights for a compressed derivative of Alibaba’s Qwen3.8 27B. The release targets coding agents that read files, call tools, inspect results and keep working across multiple turns.

The headline 5.9GB footprint comes with an important deployment condition: the smallest GGUF build requires PrismML’s fork of llama.cpp. Developers using upstream llama.cpp need the larger 7.67GB Q2_0 download and a sufficiently recent runtime.

PrismML’s launch announcement reports an agentic coding average of 54.2, up from 37.9 for Bonsai 2, alongside a tool-calling average of 82.2 versus 60.2. Those are company-reported results. The practical appeal is a smaller local model that may be better at completing tool-driven work, provided the runtime, memory budget and agent setup are suitable.

Which Bonsai 2.5 27B Download Should You Choose?

PrismML’s Ternary Bonsai 2.5 27B ships in three GGUF packings and a separate Apple MLX package. The GGUF filenames are compatibility choices, not interchangeable labels for the same download.

Build Reported size Runtime requirement Practical choice
PTQ1_0 Approximately 5.9GB PrismML’s llama.cpp fork Smallest reported GGUF footprint
PQ2_0 Approximately 7.25GB Not supported by upstream llama.cpp in the cited analysis Check PrismML’s release instructions
Q2_0 Approximately 7.67GB Upstream llama.cpp build b11556 or later Straightforward route for upstream users
Apple MLX Separate package MLX and the bundled loader Apple Silicon text and image workflows

The official Hugging Face collection lists Q2_0, PQ2_0 and PTQ1_0 releases, plus the MLX export. The sizes and GGUF compatibility distinctions are detailed in NYU Shanghai’s Research Institute of Technology and Society analysis.

For an existing upstream llama.cpp installation, Q2_0 is the practical default. Its reported download is about 1.7GB larger than PTQ1_0, but it avoids maintaining a separate fork. PTQ1_0 makes more sense when minimizing the weight footprint is worth that extra runtime dependency.

These are model-file sizes, not complete memory budgets. Context storage and runtime allocations also need room, so a 5.9GB download should not be treated as a promise that the whole application fits into 6GB of available memory.

Why the Smallest Build Needs PrismML’s Fork

Ternary Bonsai 2.5 27B’s PTQ1_0 format needs PrismML’s llama.cpp fork because upstream support for that packing remains under review, according to NYU Shanghai’s analysis.

Q2_0 has a different requirement: upstream llama.cpp must be build b11556 or later. That build added the Hadamard activation kernels needed by the model. NYU Shanghai reports that older builds can load the file without warning yet generate unusable output.

Check the executable before loading the model:

llama-cli --version

This command prints the installed llama.cpp CLI version. Compare its build identifier with b11556 before attempting Q2_0 inference. A successful file load alone is insufficient evidence that an older runtime supports the model’s calculations.

The deployment sequence is therefore:

  1. Choose the runtime first. Use current upstream llama.cpp for Q2_0, or PrismML’s fork for PTQ1_0.
  2. Download the matching packing. Do not assume every GGUF loader supports every format.
  3. Confirm the executable’s version. This is especially important when an application bundles its own llama.cpp build.
  4. Budget memory beyond the weights. Leave room for the selected context and other runtime allocations.

The consequential detail is the activation kernel requirement. Updating a desktop application’s model list without updating its underlying inference engine may still leave it unable to run this release correctly.

What the Vendor Benchmarks Show

PrismML’s Ternary Bonsai 2.5 27B benchmark results show substantial recovery on agentic tasks compared with Bonsai 2, while leaving a measurable gap to the full-precision base model.

The following figures are PrismML’s results, reproduced in NYU Shanghai’s benchmark breakdown. The analysis identifies the evaluation configuration as thinking mode with the xhigh reasoning setting. These scores were not independently reproduced for this article.

Bar chart comparing agentic coding averages: Bonsai 2 at 37.9, Bonsai 2.5 27B at 54.2, and Qwen3.8 27B FP16 baseline, with tool-calling averages 60.2 vs 82.2.

Image: PrismML’s Bonsai 2.5 27B Closes Most of Its Agentic Coding Gap.

Benchmark Qwen3.8 27B FP16 Bonsai 2 27B Bonsai 2.5 27B
SWE-bench Verified 80.6 60.8 75.6
Terminal-Bench 2.1 70.8 52.8 60.1
DeepSWE v1.1 30.1 0.0 27.0
AppWorld 93.2 51.2 90.5
τ³-Bench 72.8 69.1 73.9
LiveCodeBench v6 87.6 83.8 83.0

The first three rows form PrismML’s reported agentic coding average. AppWorld and τ³-Bench form the two-benchmark tool-calling average cited in the announcement.

The strongest supported interpretation is improved task persistence, not a uniform increase in coding ability. DeepSWE rises from 0.0 to 27.0, while LiveCodeBench v6 slips from 83.8 to 83.0. That pattern fits PrismML’s stated focus on interpreting tool feedback, recovering from failed actions and reducing unproductive repetition.

Terminal-Bench 2.1 remains an important limit: Bonsai 2.5 scores 60.1 against the base model’s 70.8, a 10.7-point gap. Compression has not erased every capability difference.

For developers following Zeniteq’s coding coverage, the useful distinction is between generating a good answer once and sustaining a productive sequence of actions. An agent must preserve useful behavior after a failed test or an unexpected tool response.

What the Reported CPU Test Adds

A separate CPU measurement summarized by NYU Shanghai provides a narrower deployment reference. The institute reports that an independent test by MODEL used the 7.67GB Q2_0 file on upstream llama.cpp, an eight-core machine, 15GB of RAM and no GPU.

That test recorded:

  • 3.3 tokens per second during generation.
  • About 9.5GB of memory at an 8K-token context.
  • Roughly 48 seconds for a tool call.

Those measurements address speed and memory on one CPU configuration, not the accuracy benchmarks above. The cited test did not evaluate GPU performance, image input or the multi-token prediction files. Its useful lesson is narrower: fitting the weights locally does not guarantee an interactive coding experience.

Apple MLX Availability and Image Support

PrismML’s Ternary Bonsai 2.5 27B MLX package includes 2-bit language weights, an FP16 vision tower and a bundled loader, with text and image quickstarts in the official release collection.

The Apple export is a separate deployment path. Its 2-bit language weights should not be assumed to have the same footprint as the headline PTQ1_0 GGUF build.

PrismML names Mac, iPhone and iPad support through MLX in its announcement. Actual device suitability still depends on available memory and the application’s workload; platform support is not a guarantee of comfortable operation on every device.

NYU Shanghai also notes that the model’s vision tower ships separately, allowing text-only serving without loading it. Keeping image components out of a text-only coding setup is a concrete way to avoid unnecessary memory use.

The release continues PrismML’s on-device direction, previously covered in Zeniteq’s article on its 1-bit and ternary image-generation models for iPhone. That earlier coverage provides context for the company’s compression work, not a performance comparison with this coding model.

What the Ternary Compression Actually Changes

PrismML’s Ternary Bonsai 2.5 27B is a compressed Qwen3.8 27B derivative, not a newly pretrained foundation model. Its small file size comes from representing weights more compactly, while the 2.5 update focuses on behavior during longer tasks.

NYU Shanghai describes ternary language weights taking one of three values: −1, 0 or +1, with an FP16 scale for each group of 128 weights. The reported effective storage is 1.76 bits per weight for that representation, compared with 16 bits for FP16.

The compression also uses a blockwise orthogonal Hadamard transform before ternary assignment. The runtime applies the corresponding transform to activations. That explains why the runtime needs specific kernels even when it recognizes the file container.

The underlying model still has approximately 27.36 billion parameters, including its language backbone, vision tower, embeddings and output head. Smaller storage has not turned it into a conventionally sized 6B model.

Local inference can keep model processing on the user’s device. A private coding agent also needs local or appropriately controlled tools: a model running locally cannot, by itself, prevent an attached tool from sending repository contents elsewhere.

The release drew 426 points and 135 comments in the supplied Hacker News front-page snapshot. That documents attention, not deployment reliability. For installation decisions, the packing format and runtime build remain the more useful facts.

Frequently Asked Questions

Which Build Works With Upstream llama.cpp?

Use the approximately 7.67GB Q2_0 build with upstream llama.cpp b11556 or later. NYU Shanghai reports that older builds can load the model but produce unusable output. The smallest PTQ1_0 build requires PrismML’s fork, so check llama-cli --version before choosing or troubleshooting a download.

Is an Apple MLX Version Available?

Yes. PrismML’s official collection includes an Apple Silicon MLX package with 2-bit language weights, an FP16 vision tower and a bundled loader. Text and image quickstarts are included. Treat this as a separate export, rather than assuming it shares the 5.9GB PTQ1_0 GGUF footprint.

Are the Benchmark Gains Independently Verified?

No. The coding and tool-calling gains discussed here are PrismML-reported results. NYU Shanghai also summarizes an independent CPU test, but that measured speed and memory on one machine. It did not reproduce the vendor’s accuracy benchmarks or establish GPU performance across consumer hardware.

Originally published on Zeniteq.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.