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.

This page has no q4_K_M row, on purpose. The repository ships a ternary weight format (1.77 / 2.14 bits per weight by our own division) plus an FP16 reference packing. There is no 8/6/5/4/3/2-bit K-quant ladder to list, so instead of pasting our usual nine-row table onto it — which would have published numbers for files that do not exist — we list the bytes Hugging Face reports per asset, with the arithmetic under the table.

Pack sizes and what each one needs

packfile GiBfile GBbits/weight (ours)bits/weight (repo says)need @8k GiBsmallest fit
PTQ1_05.545.951.771.756.0RTX 3060 12GB
PQ2_06.717.212.142.137.2RTX 3060 12GB
F1650.1153.8116.0016.0050.6A100 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)

fileGiBGB
mmproj Q8_0 (vision)0.590.63
mmproj BF16 (vision)0.870.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)

contextneed (file + KV)smallest fit
8k6.0RTX 3060 12GB
32k7.5RTX 3060 12GB
128k13.5RTX 4060 Ti 16GB
256k21.5RTX 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

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.

Copy this into a README / model card (backlink engine v1):
**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