Key facts
- Bonsai 2 from Prism ML is a family of ternary-weight vision models (every weight is -1, 0 or +1) in 2B, 4B, 9B and 27B sizes, released under Apache 2.0. All sizes support thinking, tool calling, image input and a 262K-token context.
- In Ollama,
bonsai-2:9b(alsobonsai-2:latest) is a 3.2 GB download andbonsai-2:27bis 8.3 GB. The-q2_0tags point at the same files. - On an 8 GB GPU such as the RTX 5060 Ti, the 9B fits fully in VRAM with room for a long context. The 27B is slightly bigger than 8 GB, so part of it runs on the CPU. On 12 GB or more it should fit on the GPU.
- Prism ML reports that the 27B keeps 98.2% of its full-precision quality at about a ninth of the size (vendor-reported).
- Ollama only uses a 4K context by default on GPUs under 24 GB. Raise it, and check
ollama psto confirm everything is on the GPU.
Most small local models are cut down to 4 bits per weight. Bonsai 2 goes much further, to about 2 bits, while claiming to keep almost all of the quality. That makes a 27B-class model a realistic option on a mid-range gaming PC. This guide shows how to install it with Ollama on Windows, macOS or Linux, which size to pick for your GPU, and how to set the context and sampling so it behaves.
What Bonsai 2 is
Prism ML builds models whose weights are stored as trits: -1, 0 or +1, with a shared scale per small group of weights. In Prism’s words, that’s “about half the size of standard 4-bit models, at close to full-precision quality” (Ollama library page). The models are converted from Qwen bases:
| Size | Base model (per Prism’s model cards) | Ollama tag | Download |
|---|---|---|---|
| 2B | Qwen3.5-2B | bonsai-2:2b |
911 MB |
| 4B | Qwen3.5-4B | bonsai-2:4b |
1.6 GB |
| 9B | Qwen3.5-9B | bonsai-2:9b / latest |
3.2 GB |
| 27B | Qwen3.8-27B | bonsai-2:27b |
8.3 GB |
Sources: Ollama tags, Prism ML model cards for the 2B, 4B, 9B and 27B.
The Hugging Face repos for Bonsai 2 went up between September 16 and 23, 2026. So it isn’t brand new, but it’s one of the most-downloaded small model families in the Ollama library, with about 194,000 pulls when we checked.
Both model cards describe a hybrid-attention backbone, mostly linear attention with some full-attention layers. That’s what keeps a 262K context practical on a consumer machine, because linear-attention layers don’t grow a large KV cache.
The quality claim (vendor-reported)
For the 27B, Prism ML reports an average of 84.78 across 14 thinking-mode benchmarks. That’s 98.2% of the full-precision model, far above a conventional IQ2_XXS build (72.59), and within 0.4 points of an Unsloth UD-Q4_K_XL build that is three times larger. These are Prism’s own numbers from its whitepaper and model card. We haven’t seen independent tests yet.

Requirements
- Windows: Windows 10 22H2 or newer, and NVIDIA driver 551.61 or newer (Ollama Windows docs). RTX 50-series cards, including the RTX 5060 Ti, are on Ollama’s supported GPU list.
- macOS or Linux: a current Ollama release. Apple silicon uses Metal.
- Ollama: install the latest stable release (v0.40.16 as of November 19, 2026, from the releases page).
- Disk: 3.2 GB for the 9B or 8.3 GB for the 27B, plus about 4 GB for Ollama itself.
Which size for your GPU?
| GPU VRAM | Recommended tag | Why |
|---|---|---|
| CPU only / 4 GB | bonsai-2:4b or 2b |
Small enough for laptops and CPU |
| 8 GB (e.g. RTX 5060 Ti 8 GB) | bonsai-2:9b |
3.2 GB leaves several GB for context |
| 8 GB, quality first | bonsai-2:27b |
Runs, but partly on the CPU and slower |
| 12 GB and up | bonsai-2:27b |
The 8.3 GB file should fit on the GPU with a modest context |
This table is our guidance based on the published file sizes, not measured results. We haven’t benchmarked Bonsai 2 on our reference PC.
Step 1: Install Ollama
On Windows, download the installer from ollama.com/download. No admin rights are needed. On Linux:
curl -fsSL https://ollama.com/install.sh | sh
Then check the version:
ollama --version
Step 2: Pull and run Bonsai 2
ollama pull bonsai-2:9b
ollama run bonsai-2:9b
On a 12 GB or larger card, swap in bonsai-2:27b. Bonsai 2 is a thinking model, so expect it to reason before it answers. To turn thinking off for quick replies:
ollama run bonsai-2:9b --think=false
Try an image
All sizes accept images. In the interactive prompt, include a file path:
>>> What does this chart show? ./sales-q3.png
Step 3: Raise the context length
Ollama defaults to a 4K context on GPUs with less than 24 GB of VRAM (Ollama context docs). That’s too small for coding tools or long documents. On Windows, use the slider in the Ollama app’s settings, or set it for the server:
OLLAMA_CONTEXT_LENGTH=32768 ollama serve
On Windows PowerShell, set it as a user environment variable and restart Ollama:
setx OLLAMA_CONTEXT_LENGTH 32768
Start at 32K on an 8 GB card with the 9B and go higher only if the model stays fully on the GPU (Step 4).
Step 4: Verify it’s on the GPU
ollama ps
Look at the PROCESSOR and CONTEXT columns. You want 100% GPU and the context you set. If you see a CPU/GPU split, either lower the context or use a smaller size. With the 27B on an 8 GB card, a split is expected.
Step 5: Use Prism’s recommended sampling settings
Prism ML publishes sampling settings that differ by size. For the 9B in thinking mode: temperature 1.0, top_p 0.95, top_k 20, min_p 0, presence penalty 1.0. For the 27B in thinking mode: temperature 1.0, top_p 0.95, top_k 20, min_p 0.05, presence penalty 0. With thinking off, both use temperature 0.7, top_p 0.8, top_k 20, presence penalty 1.5.
Pass them per request through Ollama’s API:
curl http://localhost:11434/api/chat -d '{
"model": "bonsai-2:9b",
"messages": [{"role": "user", "content": "Explain ternary weights in two sentences."}],
"options": {"temperature": 1.0, "top_p": 0.95, "top_k": 20, "min_p": 0, "presence_penalty": 1.0, "num_predict": 8192}
}'
Two more tips from the model cards. Give thinking room: allow at least 8,192 output tokens with thinking on, because even simple prompts can use 3,000+ thinking tokens. And don’t use temperature 0 with thinking on, since greedy decoding can get stuck reasoning. More on these settings in our sampling settings guide.
Step 6 (optional): Use it with a coding agent
The Ollama page lists one-command launchers:
ollama launch claude --model bonsai-2:9b
ollama launch opencode --model bonsai-2:9b
Agents need a large context, so set at least 32K (Ollama’s docs recommend 64K for coding tools), and keep an eye on ollama ps.
Troubleshooting
- Answers stop mid-thought: the output limit is too low. Raise
num_predictto 8,192 or more, or turn thinking off. - Model forgets earlier messages: you’re still on the 4K default context. Redo Step 3 and check the CONTEXT column.
- Very slow,
ollama psshows CPU use: the model plus context doesn’t fit in VRAM. Lower the context, or drop from 27B to 9B. 100% CPUon Windows with an NVIDIA card: update the driver to 551.61 or newer and restart Ollama.- Repetitive or looping output: make sure the presence penalty is set as above and you aren’t using temperature 0.
- Using llama.cpp directly instead: only the
Q2_0files run on upstream llama.cpp, release b11556 or newer. Older builds give wrong output without any warning. The smallerPQ2_0andPTQ1_0files need Prism’s own llama.cpp fork. See our llama.cpp install guide.
Bottom line
On an 8 GB GPU, bonsai-2:9b is an easy win: a 3.2 GB vision and thinking model with a 262K context ceiling that leaves plenty of VRAM for a long context. If you have 12 GB or more, try bonsai-2:27b. Prism’s numbers say it keeps nearly all of a 27B model’s quality in 8.3 GB, though that’s worth checking on your own prompts. For background on why low-bit formats work, see LLM quantization explained.
Sources (checked November 19, 2026): Ollama library: bonsai-2 and tags, Prism ML model cards for Bonsai 2 9B and Bonsai 2 27B, Bonsai demo repo, Bonsai 2 27B whitepaper, Ollama docs on Windows, hardware support and context length. We have not benchmarked Bonsai 2 on the reference PC. VRAM guidance is based on published file sizes.
Cover image: screenshot of prism-ml/Ternary-Bonsai-2-2B-gguf on Hugging Face
