Model reference · open weights

Ternary-Bonsai

Ternary-Bonsai is an open-weight language model from prism-ml, listed in the AxForge catalogue. AxForge can bring it up on EU-owned hardware for you on request — with the licence handled where one is required.

LLMs prism-ml 1 variants 2.1M downloads/mo
Request this model on EU hardware All served models Not on the shared API today — deployed on request.

About

What Ternary-Bonsai is

Ternary Bonsai 27B Full 27B-class reasoning in ternary transformer weights — on everyday laptops \~9.4x smaller than FP16 (ideal) | 95% of FP16 intelligence retained | \~26 tok/s on an Apple M5 Pro laptop Highlights - \~7.2 GB deployed footprint (down from \~54 GB FP16) — full 27B-class reasoning on a standard laptop or a single GPU - 95% of FP16 intelligence retained: 80.49 average across 15 thinking-mode benchmarks — a higher score than the conventional IQ2XXS build (72.73) at less than two-thirds of its footprint - Retains thinking, reasoning, and agentic behavior deep in the sub-4-bit regime, where conventional low-bit representations collapse: math within two points of full precision (93.40), coding at 85.96, agentic tool use at 74.01 - End-to-end ternary language weights across embeddings, attention projections, MLP projections, and LM head, at a true 1.71 bits per weight — no high-precision escape hatches behind a low-bit label; the vision tower ships in compact 4-bit HQQ - 262K-token context on-device, kept practical by the Qwen3.6-27B hybrid-attention backbone (\~75% linear attention) and 4-bit KV-cache quantization - Custom 2-bit hybrid-attention kernels on Apple MLX (Python, Swift) and CUDA — packed weights are consumed directly, never expanded back to FP16 - Ships with a DSpark speculative-decoding drafter layer trained against the Bonsai 27B target — a lossless 1.34x decode speedup on the CUDA serving path - 1-bit companion: also available as 1-bit Bonsai 27B (\~3.9 GB), the phone-class operating point that fits an iPhone 17 Pro Max Resources - Whitepaper — full methodology, benchmarks, and measurement notes - Demo & examples — serving, benchmarking, and integrating Bonsai - Low-bit kernels: MLX fork (Apple Silicon) · mlx-swift fork (iOS/macOS) · llama.cpp fork (CUDA) - Discord — join the community for support, discussion, and updates Model Overview Weight Representation: Ternary g128 Each weight takes a value from {−1, 0, +1}, with one shared FP16 scale factor for every group of 128 weights. A ternary value carries log₂3 ≈ 1.585 bits of information, so the effective storage cost is \~1.71 bits/weight (ternary code + 16-bit scale amortized over 128

Summarised from the published model card. Read the full card on the HuggingFace links below.

Specifications

What it is

Makerprism-ml
TypeLanguage models
Parameters (lead)2.6B
Variants1
Runs withmlx
Based onQwen/Qwen3.6-27B
Released2026-07-04
Popularity2.1M downloads / month
Likes182
LicenceOpen weights

How it works

How language models work

Your prompttext / messagesTransformerattention over tokensNext-token loopgenerate + streamResponsetext · tool callsA language model reads your tokens and predicts the next one, again and again, streaming the reply back.

Variants

Sizes & precisions

Open weights ship in several sizes and precisions. One page, all the variants — pick the one that fits your GPU. VRAM figures are estimates from model size.

VariantParamsPrecisionVRAMFits 16 GBWeights
Ternary-Bonsai-27B-mlx-2bit2.6BMLXWeights ↗

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys ternary-bonsai for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (ternary-bonsai below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/chat/completions \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"ternary-bonsai","messages":[{"role":"user","content":"Hello"}]}'

Details

Languages, data & research

Tags

mlx safetensors qwen3_5 conversational ternary 2-bit cuda metal on-device hybrid-attention prismml bonsai text-generation

Licence

Open weights

Open weights under apache-2.0 — commercial use is permitted. Deploy it on AxForge EU hardware on request. Read the licence ↗

Sources

Weights & code

Want Ternary-Bonsai on EU-owned hardware?

Request this model on EU hardware See what’s served now

Explore

More language models

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms