Model pages · rapid-mlx 0.16.0

bonsai-1.7b-2bit

Run Ternary Bonsai 1.7B on a Mac

A ternary (2-bit) model that fits in half a gigabyte on disk. The quality ceiling is what you'd expect at this size — the interesting part is how much of it survives 2-bit quantisation.

1.7 B ternary · 2-bittiny-footprint experiments · embedded-style use

32K context

Measured decode
236.4tok/s
on Mac mini M4 Pro · 48 GB · rapid-mlx 0.15.5 · 2026-10-03
Weights
0.5 GB
Peak memory · Metal
13.1 GB

One command

rapid-mlx serve bonsai-1.7b-2bit

Weights (0.5 GB) download on first run; you get an OpenAI-compatible endpoint at http://localhost:8000/v1. No rapid-mlx yet? It's one line — curl -fsSL https://rapidmlx.com/install.sh | bash — or take the desktop app.

Point a client at it. OpenAI SDK: base_url="http://localhost:8000/v1", model="bonsai-1.7b-2bit". Claude Code: ANTHROPIC_BASE_URL=http://localhost:8000 (no /v1 suffix) — see the Claude Code guide.

Measured on real hardware

Headline machine · Mac mini M4 Pro · 48 GB

Decode
236.4tok/s
First token · 2K prompt
1.3 s
Peak memory · Metal
13.1 GB
Weights on disk
0.5 GB

All measured machines

MachineDecodeFirst tokenPeak memoryCold bootWeights
Mac mini M4 Pro · 48 GB rapid-mlx 0.15.5 · 2026-10-03 raw data236.4 tok/s1.3 s13.1 GB—0.5 GB

Each row cites its own run; numbers are never copied across machines. Mac mini M4 Pro · 48 GB: rapid-mlx 0.15.5, 2026-10-03 — raw data + method — 4 concurrent streams: 413.4 tok/s aggregate.

Community runs, one page per Mac: Apple M4 Max · Apple M5 Max.

Will it fit your Mac?

Peak memory · Metal
13.1 GB
Weights on disk
0.5 GB

Measured 13.1 GB Metal peak (7.8 GB process RSS) on a 48 GB M4 Pro across the whole benchmark run — up to a ~16K-token prompt and four concurrent streams, including the engine's prefix cache, which defaults to 20% of RAM. A short chat needs less; long contexts grow the KV cache, so leave headroom.

For the conservative install-default placement see the hardware tiers table; to compare against every model your RAM can hold, use the live picker.

Variants & profiles

  • bonsai-27b-2bit — Bonsai 27B — a 27 B ternary in 7.9 GB of weights

FAQ

How much memory does Ternary Bonsai 1.7B need on a Mac?

Measured 13.1 GB Metal peak (7.8 GB process RSS) on a 48 GB M4 Pro across the whole benchmark run — up to a ~16K-token prompt and four concurrent streams, including the engine's prefix cache, which defaults to 20% of RAM. A short chat needs less; long contexts grow the KV cache, so leave headroom.

How fast is Ternary Bonsai 1.7B on Apple Silicon?

We measured 236.4 tok/s on a Mac mini M4 Pro · 48 GB, rapid-mlx 0.15.5, 2026-10-03; peak memory 13.1 GB on that run. Every row on this page keeps its own chip, version and date — no number is copied across machines.

How do I run Ternary Bonsai 1.7B locally?

rapid-mlx serve bonsai-1.7b-2bit — the weights download on first run and you get an OpenAI-compatible endpoint at localhost:8000/v1 for Aider, Codex and any OpenAI client, plus the Anthropic API at localhost:8000 for Claude Code.

Where next