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

Simon Willison's Blog Models

Summary

Bonsai 2 27B is a compressed AI model that achieves near-lossless performance in a 9x smaller footprint, with setup instructions provided for use with Prism's llama.cpp fork.

No content available
Original Article
View Cached Full Text

Cached at: 09/25/26, 07:44 PM

# Comment: Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint Source: [https://simonwillison.net/2026/Sep/17/hn-49747390/](https://simonwillison.net/2026/Sep/17/hn-49747390/) 17th September 2026 If you want to try out out the GGUFs from[https://huggingface\.co/prism\-ml/Ternary\-Bonsai\-2\-27B\-gguf\#th\.\.\.](https://huggingface.co/prism-ml/Ternary-Bonsai-2-27B-gguf#these-files-need-our-llamacpp-build)be aware that you need Prism's llama\.cpp fork to get them to work, from[https://github\.com/PrismML\-Eng/llama\.cpp/releases/tag/prism\-\.\.\.](https://github.com/PrismML-Eng/llama.cpp/releases/tag/prism-b10685-7dffb15) This should work: ``` cd /tmp # Get the Prism macOS runtime curl -fL https://github.com/PrismML-Eng/llama.cpp/releases/download/prism-b10685-7dffb15/llama-prism-b10685-7dffb15-bin-macos-arm64.tar.gz -o bonsai-runtime.tar.gz tar -xzf bonsai-runtime.tar.gz # Get the ~5.95 GB GGUF model: curl -fL https://huggingface.co/prism-ml/Ternary-Bonsai-2-27B-gguf/resolve/main/Ternary-Bonsai-2-27B-PTQ1_0.gguf -o Ternary-Bonsai-2-27B-PTQ1_0.gguf # Run the server, I used port 8331 ./llama-prism-b10685-7dffb15/llama-server \ -m Ternary-Bonsai-2-27B-PTQ1_0.gguf \ --port 8331 -ngl 99 -fa on -c 32768 ``` Then open http://localhost:8331 for the \(very good\) baked in llama\-server web UI\.\.\. or run a prompt via the API like this: ``` uvx llm openai endpoint http://127.0.0.1:8331/v1 \ --model bonsai-2-27b --responses hi ``` That's running at ~20 token/second for me on an M5 Pro \(after a server restart I got 44 token/second, not sure why\), but I'm pretty sure something isn't working right, on startup the server said "`ggml\_metal\_device\_init: \- the tensor API is not supported in this environment \- disabling`"\.

Similar Articles

PrismML hopes its tiny LLM will change how we all use AI

TechCrunch AI

PrismML, a Caltech-founded startup, released Bonsai 2, a highly compressed LLM that reduces memory usage by 9-10x with minimal performance loss, aiming to enable AI on consumer devices like PCs and smartphones.

prism-ml/Bonsai-27B-gguf

Hugging Face Models Trending

Prism ML releases Bonsai-27B-gguf, a 27-billion parameter language model with binary (1.125-bit) weights, achieving a ~14x size reduction while retaining ~90% of FP16 reasoning performance. It runs on consumer hardware with high throughput.