PrismML: Ternary Bonsai 2 27B
Prism-ml · Multimodal
\~5.9 GB language model (down from \~54 GB FP16) — full 27B-class reasoning on a standard laptop or a single GPU; 98.2% of FP16 intelligence retained: 84.78 average across 14 thinking-mode benchmarks — far above the conventional IQ2XXS build (72.59) at about 82% of its footprint, and within 0.4 points of UD-Q4KXL at three times the footprint; Retains thinking, reasoning, and agentic behavior deep in the sub-4-bit regime, where conventional low-bit representations collapse:…
Which way is for me?
🌐 Online, right now
- Open the model's page on OpenRouter: openrouter.ai/prism-ml/ternary-bonsai-2-27b
- Sign in (with Google or email) and press Chat; you can talk to the model right there.
- Cost: a short exchange (about a page in and a page out) costs about $0.00029, so $1 buys about 3,478 messages.
💻 On my own computer
- Download and install LM Studio (free): lmstudio.ai
- In LM Studio open Search (the magnifier) and type exactly:
prism-ml/Ternary-Bonsai-2-27B-gguf - From the list of files pick the version the check above suggested; if unsure, take Q4_K_M (compressed, slightly lower quality, less memory).
- Press Download, then Load, and start talking in Chat.
Or, if you use Ollama, this one command is enough:
ollama run hf.co/prism-ml/Ternary-Bonsai-2-27B-gguf🧑💻 For developers
vLLM
vllm serve prism-ml/Ternary-Bonsai-2-27B-ggufTransformers (Python)
from transformers import pipeline
pipe = pipeline("image-text-to-text", model="prism-ml/Ternary-Bonsai-2-27B-gguf")llama.cpp
llama-server -hf prism-ml/Ternary-Bonsai-2-27B-ggufWords used here
- GGUF
- The file format LM Studio, Ollama and llama.cpp use to run a model.
- Quantization (Q4, Q8)
- Shrinking a model by storing numbers less precisely: Q4 smallest and slightly weaker, Q8 almost full, FP16 full.
- VRAM
- The graphics card's memory (or shared memory on a Mac); the model has to fit in it.
- Context
- The most text the model can see at once in a conversation (questions, answers and files).
- Tokens per second
- How fast the answer is written; 20 is about reading speed, 5 is slow.
From the Hugging Face model card
\~5.9 GB language model (down from \~54 GB FP16) — full 27B-class reasoning on a standard laptop or a single GPU; 98.2% of FP16 intelligence retained: 84.78 average across 14 thinking-mode benchmarks — far above the conventional IQ2XXS build (72.59) at about 82% of its footprint, and within 0.4 points of UD-Q4KXL at three times the footprint; Retains thinking, reasoning, and agentic behavior deep in the sub-4-bit regime, where conventional low-bit representations collapse:…
Intended use
Laptop-local 27B agents: full 27B reasoning and tool use on a standard laptop at \~28 tok/s, with the 262K context available for long-document analysis, full-repository code work, and other tasks that depend on holding a large working set in context; Privacy-sensitive and offline settings: on-device execution keeps prompts and data on…
Limitations
The quality–footprint trade-off: the ternary model retains 98.2% of the full-precision average, and the gap is modest and predictable — the reasoning core (math, coding) stays within a few points of baseline, with the difference concentrated in the most demanding categories; Native low-bit kernels: the dense PTQ10 packing (1.75…
Benchmarks (from the model card)
| Variant | True bpw | Footprint | Thinking avg | vs FP16 |
|---|---|---|---|---|
| Qwen3.8-27B FP16 | 16.0 | 54 GB | 86.32 | 100% |
| Qwen3.8-27B UD-Q4KXL ("4-bit") | 5.2 | 17.6 GB | 85.18 | 98.7% |
| Qwen3.8-27B IQ2XXS ("2-bit") | 2.16 | 7.27 GB | 72.59 | 84.1% |
| Bonsai 2 27B | 1.72 | 5.95 GB | 84.78 | 98.2% |
Source: Hugging Face · prism-ml/Ternary-Bonsai-2-27B-gguf · License: apache-2.0
Hardware and running it
Cloud and local Available through an API, and its weights are published to run on your own hardware.
- Minimum Q4
- 18.1 GB
- Recommended Q8
- 32.3 GB
- Full quality FP16
- 64.6 GB
On common hardware
| RTX 4060 · 8 GB | Won't run | |
|---|---|---|
| RTX 4090 · 24 GB | Usable | Q4 · ≈ 24–40 tokens/s |
| RTX 5090 · 32 GB | Usable | Q4 · ≈ 43–71 tokens/s |
| Mac M4 Max · 128 GB | Slow | FP16 · ≈ 4–6 tokens/s |
| H100 · 80 GB | Great | FP16 · ≈ 22–37 tokens/s |
| 8× H100 · 640 GB | Great | FP16 · ≈ 180–300 tokens/s |
Speeds are estimates. estimated speed for one user, from memory bandwidth
Links come from the vendor's official site and the model card the vendor published · Updated: