Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Prism's ternary-compressed 27B model runs locally on a Mac from a ~6 GB file, but only on Prism's llama.cpp fork, not mainline llama.cpp.

Read this as

A company called Prism ML has released Bonsai 2 27B, a 27-billion-parameter language model compressed using ternary methods into a roughly 5.95 GB file. Willison ran it on his MacBook at around 20-44 tokens per second, meaning a large capable model now fits on ordinary consumer hardware. Anyone can download the model files from Hugging Face today. The catch: you must use Prism's custom version of llama.cpp, not the standard one.

Prism ML's Bonsai 2 27B claims near-lossless quality at one-ninth the expected footprint via ternary compression, and it is downloadable now from Hugging Face as GGUF files. This strengthens the case for running capable local models on consumer Macs instead of paying cloud inference costs. The practical risk is ecosystem lock-in: it requires Prism's llama.cpp fork, and Willison saw a Metal tensor-API warning suggesting the software is still rough. Watch whether mainline llama.cpp adopts support.

Willison documents running Ternary-Bonsai-2-27B-PTQ1_0.gguf (~5.95 GB) with Prism's llama.cpp fork (release prism-b10685-7dffb15), serving via llama-server on port 8331 with -ngl 99, -fa on, 32K context. Throughput was ~20 tokens/second on an M5 Pro, briefly 44 after restart. Startup logged 'ggml_metal_device_init: the tensor API is not supported in this environment', indicating the Metal path isn't working correctly. No accuracy benchmarks are given beyond the headline 'near-lossless' claim.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Bonsai 2 27B Prism ML Hugging Face llama.cpp Simon Willison

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

datasette-charts 0.5a0

Datasette Charts 0.5a0 adds calendar heatmaps, box plots and active-over-time charts, enabling richer data visualisation directly in the browser without extra libraries.

datasette-charts 0.4a0

Datasette now lets developers add custom chart types more easily, expanding visualisation options for data projects.