Home › Models › Ternary Bonsai 2 27B
Ternary Bonsai 2 27B — VRAM for the three packs below
Bottom line: the smallest published pack (PTQ1_0) is a 5.54 GiB file and lands at ≈ 6.0 GiB with 8k context, so the smallest card in our catalog that fits is RTX 3060 12GB. It is not in the modelvram.com dataset; it is here because its entire pitch is memory footprint.
2026-11-24: Ternary Bonsai 2.5 27B shipped. prism-ml/Ternary-Bonsai-2.5-27B-GGUF lists six packs, 5.58–7.37 GiB; the heaviest (Q2_0-mtp) is 7.37 GiB = 0.63 GiB of an 8GB card left for KV and runtime. Sizes: that API asset list, retrieved 2026-11-27.
Pack sizes and what each one needs
| pack | file GiB | file GB | bits/weight (ours) | bits/weight (repo says) | need @8k GiB | smallest fit |
|---|---|---|---|---|---|---|
| PTQ1_0 | 5.54 | 5.95 | 1.77 | 1.75 | 6.0 | RTX 3060 12GB |
| PQ2_0 | 6.71 | 7.21 | 2.14 | 2.13 | 7.2 | RTX 3060 12GB |
| F16 | 50.11 | 53.81 | 16.00 | 16.00 | 50.6 | A100 80GB |
File bytes: prism-ml/Ternary-Bonsai-2-27B-gguf asset list,
retrieved 2026-10-29 (the API states no time window). Re-checked 2026-11-27: the repo has since
added a Q2_0 pack (7.10 GiB); the rows above are the 2026-10-29 file set and still no
q4_K_M appears. "bits/weight (ours)" = bytes × 8 ÷ 26,895,998,464 params
(gguf.total, same response); the README states 1.75 / 2.13 and calls the format "a true 1.72 bits per weight" — the
gap is header and metadata bytes, which we count rather than hide. "need @8k" = file + our KV cache at 8k context
(64.0 KiB/token, formula below). It does not include runtime/graph overhead: unlike our dataset
rows nothing here is measured, and we say so instead of borrowing a fudge factor.
Vision add-on (only if you use images)
| file | GiB | GB |
|---|---|---|
| mmproj Q8_0 (vision) | 0.59 | 0.63 |
| mmproj BF16 (vision) | 0.87 | 0.93 |
Same asset list, retrieved 2026-10-29. The language GGUF carries 26,895,998,464 params while the base repo Qwen/Qwen3.8-27B reports 27,781,427,952 — the 885,429,488 difference is the vision tower, which ships separately as these mmproj files. Add one on top of any pack above if you want image input.
Context scaling on PTQ1_0 (GiB)
| context | need (file + KV) | smallest fit |
|---|---|---|
| 8k | 6.0 | RTX 3060 12GB |
| 32k | 7.5 | RTX 3060 12GB |
| 128k | 13.5 | RTX 4060 Ti 16GB |
| 256k | 21.5 | RTX 3090 24GB |
The one trap on this page: at 8k a 12GB card is comfortable, at the advertised 256k you want a 24GB card. Why the growth is that gentle for a 27B: the backbone is hybrid-attention — 16 of 64 layers keep a growing KV cache, the other 48 keep a constant-size recurrent state.
KV arithmetic (ours, published): 2 (K and V) × 16 full-attention layers ×
4 KV heads × 256 head_dim × 2 bytes = 64 KiB per token ⇒
0.5 GiB at 8k. Inputs are the base repo's own
config.json → text_config
(num_hidden_layers 64, layer_types 16 full + 48 linear, num_key_value_heads 4,
head_dim 256, max_position_embeddings 262144), raw-fetched 2026-10-29. Cache dtype
is assumed fp16/bf16 — an assumption: the maintainers' llama.cpp fork does not document it (no public data, we checked
2026-10-29). Same method as our method page.
Cost: what renting costs, where we can source it
Cheapest listed rental that fits: RunPod RTX 5090 32GB @ $1.39/h — source: RunPod: our own fetch of RunPod’s pricing page (checked 2026-11-13); figures are its Secure Cloud tier (the page’s default selection), variants named per card. Lambda: our own fetch of lambda.com/pricing (checked 2026-11-17) — the list that took effect 2026-11-16, now in force, with the mounting form named per card. Vast.ai: priced per listing by hosts; its pricing page is JS-rendered — no extractable static figure (checked 2026-10-22). Superseded basis for RunPod rows: modelvram.com table (stated 2026-09-29, re-fetched by us 2026-10-22), CC BY 4.0
Honest note: this is the rare model where renting is usually the wrong answer — a card you may already own holds it. The rental row is printed for parity with every other page. Break-even needs your own card price and electricity: builds under $1000 · used GPUs & break-even.
What we could not verify
- Tokens/sec. The README claims "~47 tok/s on an Apple M5 Max laptop". We have no measurement and no independent number: no public data (we checked, 2026-10-29).
- Quality. The README claims 84.78 average over 14 thinking-mode benchmarks and "98.2% of FP16 intelligence retained" versus a UD-Q4_K_XL build. Self-reported by the publisher, not reproduced by us, so it stays prose, not a table.
- Linear-attention state size. Constant per layer, magnitude unpublished ⇒ the context table above is a floor.
- Runtime overhead. No measured peak-memory figure exists for these packs, so we add no overhead term at all.
- Upstream runtime support. Needs the maintainers' llama.cpp fork (CUDA/Metal) or their MLX fork; whether upstream llama.cpp loads these packs we did not verify ⇒ no public data.
- Mac verdict. An MLX 2-bit companion repo exists, but macOS caps GPU-usable memory (our rule: 2/3 of unified,
3/4 above 36GB — ours, not Apple's) and we have no measured Mac figure ⇒ see Mac memory pages, confirm with
sysctl iogpu.wired_limit_mb.
Repository popularity at the same fetch: 2,048,816 downloads, 2,854 likes (HF API field, no stated window — we never call it "30 days"). It was inside today's text-generation trending top 60 when we chose to publish this page (re-checked 2026-10-29 00:16 Beijing, rank 29 by trendingScore).
FAQ
How much VRAM does Ternary Bonsai 2 27B need?
The PTQ1_0 pack is a 5.54 GiB file; with KV cache at an 8k context we put it at about 6.0 GiB, so the smallest card in our catalog that fits is RTX 3060 12GB. File bytes: prism-ml/Ternary-Bonsai-2-27B-gguf via the HF API, retrieved 2026-10-29. KV is our own arithmetic from the base config (formula), not a measured run.
Is there a q4_K_M build of Ternary Bonsai 2 27B?
Not in this repository. The asset list we fetched holds three language packs (F16, PQ2_0, PTQ1_0) and two vision projectors — nothing in between 1.77 and 16 bits per weight. Most model pages here print a q4_K_M row because the dataset has one; publishing that row for this model would mean inventing a file. If you want a 4-bit-class 27B, the closest normal-quant option in our catalog is Qwen3.8 27B at q4_K_M, the model this one was derived from.
Can I run it at its full 262K context?
At the full 256k our arithmetic says 21.5 GiB on PTQ1_0 (22.7 GiB on PQ2_0), which is past every 16GB card and lands on a 24GB one. The reason that is even possible: only 16 of 64 layers keep a growing KV cache (64.0 KiB/token); the other 48 are linear-attention layers with a constant-size state. We have no published figure for that state (we checked, 2026-10-29), so treat the 262k row as a floor.
**Ternary Bonsai 2 27B** needs ~6.0 GiB VRAM at ptq1_0 (8k context) → minimum RTX 3060 12GB. Check & cost-compare: [LLM Budget Lab](https://llmbudgetlab.com/models/ternary-bonsai-2-27b/)or grab the SVG badge →
More: base model at normal quants Qwen3.8 27B · what a 12GB card runs · what a 24GB card runs · formula & sources · which runtime to run it in