Language Models

PrismML squeezed Qwen3.8-27B into 5.93 GB of ternary weights and still hit 75.6 on SWE-bench

November 25, 20260 views阅读中文原文
PrismML squeezed Qwen3.8-27B into 5.93 GB of ternary weights and still hit 75.6 on SWE-bench

On November 24, PrismML shipped Ternary Bonsai 2.5 27B. The weights are 5.93 GB, each parameter costs 1.76 bits, and the download is free under Apache 2.0. The uncompressed source model needs 53.8 GB at FP16.

The score to look at is SWE-bench Verified, the benchmark built from real GitHub issues: 75.6. The previous generation, Bonsai 2, scored 60.8. The full-precision Qwen3.8-27B scores 80.6.

So a model that fits on an 8 GB card closed a 20-point gap down to 5. That is the whole reason this release matters.

TL;DR

  • What it is: every language-model weight in Alibaba's Qwen3.8-27B flattened to three values (-1, 0, +1), with 27.36B parameters packed into a 5.93 GB file.
  • What changed: not the architecture, not the size, not the runtimes. What changed is behavior on long tasks. It reads unexpected tool output, backtracks when a step fails, and stops running itself into a wall.
  • The numbers: 75.6 on SWE-bench Verified, DeepSWE from 0 to 27.0, AppWorld from 51.2 to 90.5, and a 77.2 average across five tool-use tests against 77.7 for full precision.
  • The cost: quantization is quantization. It still loses to the FP16 base on all three coding tests, and the MTP speedup makes prompt prefill slower.

Three generations side by side:

BenchmarkQwen3.8-27B FP16Bonsai 2 27BBonsai 2.5 27B
SWE-bench Verified80.660.875.6
DeepSWE30.10.027.0
Terminal-Bench 2.170.852.860.1
AppWorld93.251.290.5
τ³-Bench72.869.173.9

Figures come from PrismML's own documentation. 9to5Mac and GIGAZINE picked the release up on November 24 and 25 with the same core numbers. This article is compiled from multiple media reports.

What ternary weights actually mean

Short version: each weight can only be negative one, zero, or positive one.

A normal weight is a 16-bit float, which can hold more than sixty thousand distinct values. Cut it to three and the theoretical compression ratio goes past 10:1. PrismML lands at 1.76 bits per weight in practice, turning 53.8 GB into 5.93 GB, roughly one ninth.

Strip the values down without anything else and the model falls apart. Their fix is one FP16 scale shared by every 128 weights, effectively a range knob per group. Storage keeps three values plus a scale; inference multiplies the scale back in.

There is a detail that bites people: the weights live in a rotated basis. The inference engine has to apply the matching transform to activations. Miss it and the model produces fluent nonsense. Atomic Chat's local deployment guide calls this out specifically, noting that some GGUF loaders recognize the filename but skip the rotation.

For anyone outside the lab, the practical reading is simple: do not assume an old llama.cpp build will handle this file.

Where the upgrade shows up

The official framing is "same architecture, different behavior." In concrete terms:

  • It notices when a tool returns something unexpected and stops to think instead of inventing an answer.
  • When a step errors out, it tries another route.
  • The task objective survives to the end, so it does not forget step one by step eight.
  • The previous model over-thought and looped. This one finishes in fewer turns and fewer tokens.

The loudest number is DeepSWE going from 0.0 to 27.0. The previous version scored literally zero, meaning multi-step agentic coding was out of reach. 2.5 at least gets on the board.

AppWorld, which simulates multi-step work inside real apps, climbs from 51.2 to 90.5. Full precision sits at 93.2, so the gap is 2.7 points.

There is one regression. LiveCodeBench v6 drops from 83.8 to 83.0, the only benchmark of the seven that moved backwards. 9to5Mac flagged it too: six up, one down.

Terminal-Bench 2.1 is the weakest spot relative to the base model, 60.1 against 70.8. If your workload is an agent hammering out long shell command chains on a server, that 10.7-point gap is the number to weigh.

How to use it

The weights are available now under Apache 2.0, commercial use included. Pick a GGUF file by runtime:

FileSizeRuntimeWhen to pick it
PTQ1_05.99 GBPrismML's llama.cpp forkSmallest option, first choice on NVIDIA
PQ2_07.25 GBPrismML's llama.cpp forkThe packing behind the official Metal numbers, best on Apple silicon
Q2_07.67 GBUpstream llama.cpp b11556 or newerIf you would rather not build the fork

The -mtp variants add a draft head for speculative decoding, worth 1.5× to 1.8× faster decode on NVIDIA.

Three steps to get running:

  1. Pull the right file from prism-ml/Ternary-Bonsai-2.5-27B-GGUF on Hugging Face.
  2. Serve it with PrismML's fork, or upstream llama.cpp at b11556 or later.
  3. Pass --min-p 0 explicitly at launch. Skip it and output quality drifts.

Apple devices take a different path. The MLX build lives at prism-ml/Ternary-Bonsai-2.5-27B-mlx-2bit and runs on Mac, iPhone, and iPad. The Apple package is about 8.9 GB.

Speed and memory, laid out

PrismML's own server measurements on real prompts:

DeviceDecode, MTP offDecode, MTP on2K prefill off2K prefill on
RTX 4090111 tok/s204 tok/s2,808 tok/s2,166 tok/s
RTX 5090174 tok/s305 tok/s3,854 tok/s2,998 tok/s
Apple M4 Pro22.9 tok/s25.3 tok/s126 tok/s122 tok/s

Look at the last two columns. With MTP on, prefill gets slower on all three devices. The 4090 falls from 2,808 to 2,166 tokens per second, a 23% drop.

So: short prompts with long answers, turn MTP on. Dumping a large document in for analysis, leave it off.

Memory floor:

  • 8 GB of VRAM: PTQ1_0 only, context capped at 4,096, and you may need to offload layers to system RAM depending on the allocation log.
  • 12 GB: PTQ1_0 with 8,192 context.
  • 16 GB and up: establish a baseline on PTQ1_0, then consider PQ2_0.

Who it's for

Three groups can use this today:

  • People with one consumer GPU who want a coding agent. 204 tokens per second on a 4090 beats the first-token latency of plenty of cloud APIs, and nothing leaves the machine.
  • Teams whose code cannot leave the building. Private repos, internal projects, code under client NDA. Running the fix loop locally is a different risk posture than pasting source into a web chat box.
  • Anyone building on-device products. At 5.9 GB it fits inside a desktop app, a document tool, or a local knowledge base. Those are the three examples in the official docs.

Not a good fit

Worth saying plainly before you buy a card:

  • You want the top of the SWE-bench leaderboard. 75.6 is strong, but the FP16 base model scores 80.6 on the same test with the same methodology. Five points is not noise.
  • Your workload is long terminal chains. 60.1 on Terminal-Bench 2.1 against 70.8 for full precision. That is a real weakness.
  • You need maximum reasoning quality. Ternary quantization has a ceiling and PrismML does not claim to have removed it.
  • You only have 4 GB of VRAM. The weights will not fit. Do not try.

Pitfalls

Four hard ones, pulled from the official docs and the third-party deployment guide:

  1. --min-p 0 must be explicit. Version 2.5 sets min_p to 0.0 in thinking mode; the previous release used 0.05. Leave it implicit and llama.cpp applies a default that shifts output quality.
  2. The low reasoning setting is unsupported. Only medium and xhigh exist, xhigh by default. Dial down to low to save compute and you get errors or strange behavior.
  3. A mismatched rotation basis produces garbage. The weights are stored in a rotated coordinate system and the loader must undo it. Wrong fork, or a newer upstream build that only matches on filename, and you get fluent, confident, completely wrong text. That is harder to catch than a crash.
  4. Do not assume MTP is always faster. It accelerates decode and slows prefill. Long-document and long-context work loses out.

Cost and time

Money is the easy part. The weights are Apache 2.0, free to download, no license fee for commercial use. PrismML makes its money on custom fine-tuning and inference optimization, which is what the [email protected] line is for.

Time is where it adds up:

  • Downloading 6 to 8 GB takes anywhere from fifteen minutes to an hour depending on your connection.
  • Building PrismML's llama.cpp fork is a compile-it-yourself job, call it thirty minutes to an hour the first time, longer if dependencies fight back.
  • From installed to first working task: twenty minutes if you have done this before, an afternoon if you have not.

Skip the build entirely by using upstream llama.cpp b11556 or newer with Q2_0. You pay 1.7 GB of extra disk.

Next step

First step: before you pull 6 GB, open the file list at prism-ml/Ternary-Bonsai-2.5-27B-GGUF and confirm two things. Does your GPU clear 8 GB? Are you running the fork or upstream? Two minutes there saves an hour later.

If you are on an M-series Mac, go straight to the MLX repo and skip GGUF. It is far less grief.

One question to leave you with: if 5.9 GB can reach 75.6 on SWE-bench, what gets compressed next, the models above it or the API bill you are paying now?

Sources

  • PrismML announcement: https://prismml.com/news/bonsai-2-5-27b
  • PrismML model documentation: https://docs.prismml.com/models/bonsai-2-5-27b
  • 9to5Mac coverage: https://9to5mac.com/2026/11/24/prismmls-bonsai-2-5-brings-better-coding-and-tool-use-to-on-device-ai/
  • PR Newswire release: https://www.prnewswire.com/news-releases/prismml-launches-ternary-bonsai-2-5-27b-for-agentic-coding-and-private-knowledge-work-302949886.html
  • Atomic Chat local deployment guide: https://atomic.chat/blog/guides/how-to-run-bonsai-2-5-locally
  • Weights: https://huggingface.co/prismml/Ternary-Bonsai-2.5-27B-GGUF
  • GIGAZINE coverage: https://gigazine.net/news/20261125-ternary-bonsai-2-5-27b/

Sources

Comments

0 published
Log inorsign up to leave a comment.

Loading comments...