PrismML: Ternary Bonsai 2 9B
Prism-ml · Multimodal
Ternary language weights across embeddings, attention projections, MLP projections and the LM head, stored with a group-wise FP16 scale.; Three GGUF packings of the same weights, consumed directly by custom kernels and never expanded back to FP16: PTQ10 (dense trits, 2.00 GB), PQ20 (2-bit slots, 2.42 GB) and Q20 (2.56 GB).; Vision input through a separate mmproj pack (Q80, or BF16 for reference precision), loaded only when an image arrives.; 262K-token context, inherited…
Which way is for me?
🌐 Online, right now
- Open the model's page on OpenRouter: openrouter.ai/prism-ml/ternary-bonsai-2-9b
- 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.00011, so $1 buys about 9,523 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-9B-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-9B-gguf🧑💻 For developers
vLLM
vllm serve prism-ml/Ternary-Bonsai-2-9B-ggufTransformers (Python)
from transformers import pipeline
pipe = pipeline("image-text-to-text", model="prism-ml/Ternary-Bonsai-2-9B-gguf")llama.cpp
llama-server -hf prism-ml/Ternary-Bonsai-2-9B-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
Ternary language weights across embeddings, attention projections, MLP projections and the LM head, stored with a group-wise FP16 scale.; Three GGUF packings of the same weights, consumed directly by custom kernels and never expanded back to FP16: PTQ10 (dense trits, 2.00 GB), PQ20 (2-bit slots, 2.42 GB) and Q20 (2.56 GB).; Vision input through a separate mmproj pack (Q80, or BF16 for reference precision), loaded only when an image arrives.; 262K-token context, inherited…
Source: Hugging Face · prism-ml/Ternary-Bonsai-2-9B-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
- 1 GB
- Recommended Q8
- 1.8 GB
- Full quality FP16
- 3.5 GB
On common hardware
| RTX 4060 · 8 GB | Great | FP16 · ≈ 34–56 tokens/s |
|---|---|---|
| RTX 4090 · 24 GB | Great | FP16 · ≈ 120–210 tokens/s |
| RTX 5090 · 32 GB | Great | FP16 · ≈ 220–370 tokens/s |
| Mac M4 Max · 128 GB | Great | FP16 · ≈ 67–110 tokens/s |
| H100 · 80 GB | Great | FP16 · ≈ 410–690 tokens/s |
| 8× H100 · 640 GB | Great | FP16 · ≈ 3,310–5,510 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: