← Back to Blog
27 November 2026 /// AI-MODELS / OPEN-WEIGHTS / ON-PREMISE

A 27B Agent Model That Fits in 6 GB: Ternary Bonsai 2.5 Stores Qwen3.8 at 1.76 Bits a Weight

PrismML's Ternary Bonsai 2.5 27B puts a Qwen3.8-27B agent model in 5.93 GB instead of 53.8 GB — 1.76 bits per weight — and averages 77.2 on five tool-calling benchmarks against 77.7 for full precision.

By Guruji Corporation
Diagram: a 53.8 GB FP16 model next to a 5.93 GB ternary build at 1.76 bits per weight, with tool calling compared against full precision and three coding benchmarks against the previous ternary build, plus decode speeds on an RTX 4090 and an Apple M5 Pro
Original graphic by Guruji Corporation. Based on PrismML's Ternary Bonsai 2.5 27B model card and whitepaper, 24 November 2026.

The file is 5.93 GB. The model inside it has 27.36 billion parameters, and the same weights at FP16 would occupy 53.8 GB.[1]

That is the whole pitch of Ternary Bonsai 2.5 27B, published by PrismML on 24 November 2026 under Apache 2.0. It is not a small model squeezed until it forgets things — on the vendor's own measurements it holds full-precision behaviour on tool calling and keeps about 90% of it on agentic coding.[1][2]

For a 50-person Indian firm the question is narrower: can a model that schedules meetings, calls your ERP APIs and reads a 60-page contract run on hardware you already own, without a per-token bill or shipping client documents to someone else's cloud? On the vendor's numbers, this is the first credible yes at this size.

What actually shipped

Ternary Bonsai 2.5 is the agentic release of PrismML's Bonsai line. It keeps the architecture of Qwen3.8-27B — a hybrid-attention model where roughly 75% of layers are linear and 25% full attention — and the ternary weight format of Bonsai 2.[1][2]

The weights are exactly ternary: each one takes a value from {−1, 0, +1}, with one shared FP16 scale factor for every group of 128 weights. A ternary value carries log₂3 ≈ 1.585 bits of information, and with group scales the stored cost works out to 1.76 bits per weight. Before quantisation, each matrix is rotated blockwise by an orthogonal Hadamard transform that the runtime reverses on activations, so the rotation costs no extra bits.[1]

The released model is 24.35B language parameters across 64 blocks, plus a 0.47B vision tower and 2.54B of embeddings and output head, at a 262,144-token context window. The vision tower ships as a separate mmproj file, so text-only serving never loads it.[1]

The numbers, and what they cost

PrismML reports results against the uncompressed FP16 model — a quantisation story is only useful if you can see what the compression removed.[2]

  • Tool calling: an average of 77.2 across τ²-Bench, τ³-Bench, BFCL v3, BFCL v4 and AppWorld, against 77.7 for FP16. On the individual suites that matters most for agents, τ²-Bench is 82.0 and AppWorld 90.5.[1][2]
  • Agentic coding: about 90% of the FP16 score, up from 63% for Bonsai 2. SWE-bench Verified rises from 60.8 to 75.6, Terminal-Bench 2.1 from 52.8 to 60.1, and DeepSWE from 0 to 27.0.[2]
  • General capability: 82.3 against 84.4 for FP16, averaged over 14 benchmarks in five categories. The whitepaper notes it is the only compressed build it compares that stays within four points of FP16 in every category.[2]
  • Size against other low-bit builds: PrismML's IQ2-class comparisons sit at 2.27–2.75 bits per weight, 29–56% larger, and still score lower on tool calling. One of them collapses to 46.5 on AppWorld where Bonsai 2.5 scores 90.5.[2]

The honest reading: tool calling survives compression almost intact, coding loses roughly a tenth, and the gap between 5.93 GB and 7.9 GB rivals is not cosmetic — some of them collapse on multi-step tool use.

Running it is a decision, not a download

Three constraints come with those numbers, and all three are in the release notes rather than the headline.

You need the right runtime. The small PTQ1_0 and PQ2_0 packs need the ternary kernels in PrismML's llama.cpp fork. The Q2_0 pack runs on stock llama.cpp from release b11556 onward, and older stock builds load it without warning and produce garbage — check llama-cli --version before blaming the model.[1][6]

VRAM management is manual. The server can start four request slots sharing one KV cache. On a 10 GB card that is the difference between fitting and not: a community report on an RTX 3080 measured about 9.5 GB of total GPU use before adding -np 1, and about 7.8 GB after.[1]

Speed is now usable on a desk, not just a rack. PrismML measures 112 tokens per second decode on an RTX 4090 and 95 on an L40S, and 30.2 tokens per second on an Apple M5 Pro over Metal — with a multi-token-prediction head adding 1.5–1.8× decode on NVIDIA GPUs. Its ~300 tokens per second on H200 and B200 is irrelevant to most readers; the workstation numbers are not.[2]

The claim to treat cautiously is "strongest agentic model under 10 GB". It is a vendor comparison against a chosen set of builds, measured by the vendor, with no independent reproduction yet. The benchmark direction is consistent with the wider trend of low-bit quantisation holding up on tool use, but "FP16-level" here means level with this base model at FP16, not level with the frontier.

Why this matters for Indian SMBs and mid-market teams

The hardware conversation changes shape. Until this year, an agent that could reliably chain tool calls meant an API bill or a datacentre. A 6 GB model changes the quote: a single workstation GPU, or a laptop with unified memory, is now a deployment target. That is capex you can depreciate instead of a per-token line item that grows with usage.

Data stays where your compliance says it stays. An agent that reads salary letters, loan files or patient intake forms is exactly the workload where "send it to a US endpoint" fails an internal review. Local inference removes that argument — not by contract, but by physics. It does not remove your obligations under the DPDP Act, but it removes the third-party transfer question from the design.

Long context is where the value is. At 262K tokens, a 200-page vendor contract or a year of support tickets fits in one pass. That is the difference between a demo that summarises a PDF and a tool that answers "what did we agree about penalty clauses in the 2024 amendment".

Ops cost moves, it does not vanish. Someone has to own the runtime version, the KV-cache settings, the evaluation set and the rollback. A local model that silently degrades after an upgrade is worse than a stable API.

A sane pilot

  1. Pick one workflow with a measurable output — invoice field extraction, first-line ticket triage, contract clause search — not "AI for the company".
  2. Run Q2_0 on stock llama.cpp from b11556 or newer, or PTQ1_0 on PrismML's fork. Record the exact build string.
  3. Score 50 real documents you already have, with the correct answers written down first.
  4. Test Hindi and mixed-script input on your own data. The base model is multilingual; quality on your vocabulary is a measurement, not an assumption.
  5. Put a human approval step in front of anything that writes to a system of record.
  6. Compare it against your API bill over three months, including engineer time.

Where Guruji Corporation fits in

We do not train or quantise models. What we build is the ring around one: an agent service with an evaluation set that runs before every model swap, a hardware recommendation sized to your actual document load, tool-call logging so a wrong action is traceable to a prompt, and a rollback path to the previous build. If a 6 GB model can carry your workload, we will tell you so and prove it with your documents; if it cannot, we will say that too.

If you want to know whether an on-premise agent is viable on hardware you already own, get in touch.

Sources

Want to see how we can build your project?

Send us your project outline or chat directly on WhatsApp.