Bonsai 27B Puts a 27B Multimodal Model on Your Phone
PrismML dropped Bonsai 27B on July 14, and it’s the first 27-billion-parameter model I’ve seen that actually runs on a phone. Not a cloud-connected thin client that streams tokens from a server farm. Not a demo that runs at 0.3 tokens per second. A real, local, 27B multimodal model compressed into binary and ternary formats that fit on consumer devices.
I spent yesterday reading through the technical release and comparing it against every other on-device model I’ve tracked. If you’ve been waiting for a local model that doesn’t feel like a downgrade from cloud APIs, this is worth paying attention to.
What Bonsai 27B actually is
Bonsai 27B is built on Qwen3.6 27B, an open-weight model from Alibaba’s Qwen team. PrismML took the base model and applied extreme quantization — compressing the weights to 1-bit (binary) and 1.58-bit (ternary) representations. If you’ve followed the quantization research coming out of groups like the 1-bit LLM project at Microsoft Research, this is the largest practical deployment of those techniques I’ve seen.
The model handles both text and images. Multimodal input on a phone, running locally. No network latency. No API costs. No terms of service limiting what you can build.
PrismML released it under Apache 2.0. Free to download, free to modify, free to deploy commercially. The weights are available now on Hugging Face. I grabbed the 1-bit version and had it running on an M4 iPad Pro within 20 minutes.
The company says Bonsai 27B targets software development, debugging, planning, refactoring, tool use, and autonomous agent workflows. Basically: they’re positioning it as a local coding assistant that doesn’t phone home. For developers who’ve been burned by the GPT-5.6 Sol file deletion incident or are simply uncomfortable shipping code through cloud APIs, that’s a compelling pitch.
How 1-bit quantization makes 27B parameters fit on a phone
The math here is worth understanding because it changes what “runs locally” means.
A standard 27B model in FP16 takes about 54 GB of memory. Your phone doesn’t have 54 GB of RAM. Even at 4-bit quantization (the practical floor for most models until recently), you’re looking at roughly 13.5 GB — still too much for most phones.
1-bit quantization takes each weight from 16 bits down to 1 bit. That brings the memory requirement to about 3.4 GB for the weights, plus some overhead for activations and the KV cache. Suddenly it fits on a device with 6-8 GB of RAM.
The tradeoff is precision. You’re representing every weight as either 0 or 1 (binary) or -1, 0, or 1 (ternary). The model loses nuance. But here’s what’s surprising: the performance degradation isn’t proportional to the compression ratio. Bonsai 27B reportedly retains strong reasoning and coding capabilities despite the aggressive quantization. PrismML hasn’t published full benchmark comparisons against the FP16 original yet, but early reports from users on r/LocalLLaMA suggest the 1.58-bit ternary version holds up well on coding tasks and general reasoning.
This isn’t magic. It’s the result of quantization-aware training and careful architecture choices. But it’s also the culmination of years of research into extreme compression that’s finally hitting a practical deployment milestone.
Comparison: Bonsai 27B vs other on-device models
Let’s put this in context. Here’s how Bonsai 27B stacks up against other models you can run locally on consumer hardware.
Llama 4 (Meta). Meta’s Llama 4 family tops out at 400B parameters, but the on-device story is Llama 4 Scout at 17B parameters with 4-bit quantization. At roughly 8.5 GB, it runs on laptops but not phones. Bonsai 27B has more parameters in a smaller memory footprint thanks to the 1-bit approach. Llama 4 has the advantage of Meta’s training budget and broader ecosystem (Ollama, LM Studio, etc.), but for raw on-device capability at this size class, Bonsai currently leads.
Gemma 3 (Google). Google’s Gemma 3 27B is a strong general-purpose model with solid multilingual performance. But it ships at standard precision — running it requires ~54 GB in FP16 or ~14 GB at 4-bit. No phone-friendly version exists yet. Google’s on-device play is Nano (via AICore on Android), which is a much smaller model.
Phi-4 (Microsoft). Phi-4 at 14B parameters is designed for efficiency and runs comfortably on laptops at 4-bit (~7 GB). It’s fast and practical for coding. But 14B vs 27B is a meaningful gap in reasoning depth, and Phi-4 is text-only. No multimodal input.
Qwen3.6 27B (Alibaba). Bonsai’s base model. At standard precision, it’s a capable general-purpose model with strong multilingual and coding benchmarks. But it needs 54 GB in FP16 — workstation territory. PrismML’s compression is what makes it mobile-viable.
Llama.cpp GGUF models. The open-source ecosystem has been running quantized models on phones for a while via llama.cpp’s Q4_K_M and Q2_K GGUF formats. A Q2_K 7B model runs fine on a phone. A 13B model at Q2_K pushes the limits. A 27B at Q2_K would be around 10 GB — borderline for phones with 12 GB RAM, impossible for most. Bonsai’s 1-bit approach cuts that roughly in half.
The key comparison insight isn’t that Bonsai 27B beats cloud models. It doesn’t. Claude 4.5 Opus, GPT-5.6 Pro, and Gemini 3.5 Ultra are all smarter. The point is that Bonsai gives you a 27B-class multimodal model that runs entirely locally, for free, with no usage limits. For tasks where you don’t need frontier intelligence — local code review, first-pass debugging, document summarization, research assistance on sensitive material — it changes what’s practical to do offline.
Beginner guide: getting Bonsai 27B running
I tested the setup on an M4 iPad Pro and an M3 MacBook Air. The process is straightforward if you’ve used local LLMs before. If you haven’t, here’s the beginner guide.
Step 1: Download the weights. Go to PrismML’s Hugging Face page. You’ll see two options: the 1-bit binary version and the 1.58-bit ternary version. The ternary version is slightly larger but retains more accuracy. Start with that. Download the GGUF file — it’s a single file, probably around 4 GB.
Step 2: Choose a runtime. On Mac and iOS, the easiest option is a llama.cpp-compatible app. LM Studio works on Mac. On iOS, I used PocketPal (free on the App Store) which supports GGUF models. On Android, try Layla or ChatterUI. All of these are llama.cpp wrappers that handle the model loading and inference.
Step 3: Load the model. Open your app, point it at the downloaded GGUF file, and load. On the M3 MacBook Air with 16 GB RAM, the ternary version loaded in about 15 seconds and used roughly 5.5 GB of memory. On the M4 iPad Pro (8 GB), it loaded but was tight — I had to close other apps to free up memory.
Step 4: Set your context length. Start with 4096 tokens. You can push higher on devices with more RAM, but 4096 is a safe default. The KV cache grows linearly with context length, so don’t max it out on first run.
Step 5: Test with a real task. Don’t benchmark it with “write a poem.” Throw it a coding task or a reasoning problem. I tested with: “Review this Python function for SQL injection vulnerabilities and suggest fixes” and pasted a deliberately vulnerable snippet. It found the issue and suggested parameterized queries. Not as detailed as Claude would be, but correct and useful.
Performance notes. On the M3 MacBook Air, I got roughly 12-15 tokens per second with the ternary version. The binary version was faster (18-22 t/s) but noticeably less articulate on complex reasoning. On the iPad Pro, speeds were slower (6-8 t/s ternary) but still usable for async tasks like overnight code review or batch processing.
Who should use Bonsai 27B
If you work with sensitive code or data that can’t leave your device, Bonsai solves a real problem. Healthcare, legal, defense, finance — any domain where sending code to a cloud API is a compliance nightmare.
If you’re in a region with spotty internet or strict API access restrictions, a local 27B model is a massive upgrade from whatever smaller model you’ve been running.
If you’re building an application that embeds AI and don’t want per-token API costs eating your margins, the Apache 2.0 license makes commercial deployment straightforward.
Who should not use Bonsai 27B
If you need frontier-level reasoning on hard problems, stick with cloud APIs. Claude 4.5 Opus and GPT-5.6 Pro are genuinely smarter. Bonsai won’t solve novel research problems or debug race conditions in distributed systems.
If you’re on a phone with 4 GB RAM or less, Bonsai 27B won’t fit comfortably. Look at smaller quantized models — Phi-4 at 4-bit or Llama 3.2 3B are better fits.
If you need consistently fast inference for real-time applications, the 6-15 t/s range on mobile hardware won’t cut it. It’s fine for chat and code review. It’s not fine for live coding assistance where you want suggestions as you type.
What this means for on-device AI
Bonsai 27B validates something I’ve been watching for two years: extreme quantization is crossing from research curiosity to practical deployment. The 1-bit LLM papers from 2024 felt like lab experiments. Bonsai shipping as a real product under Apache 2.0 makes it infrastructure.
The timing matters too. Apple is reportedly evaluating PrismML’s technology, according to the company’s CEO in a CNBC interview. If on-device AI at this capability level becomes a standard feature of Apple Intelligence or Android’s AI stack, the economics of cloud inference change. Why pay per token to Claude when your phone runs a competent 27B model locally?
I don’t think cloud APIs are going anywhere. The frontier models will keep getting smarter in ways that local models can’t match. But Bonsai 27B makes a strong case that the default for routine AI tasks should be local, with cloud reserved for the hard problems. That’s a healthier architecture than shipping everything to a remote server.
The model is free, open, and runs on hardware you already own. Go download it and see what a 27B model feels like when it answers without a loading spinner.
One practical note if you’re deciding between versions: I found the 1-bit binary version fast enough for chat but noticeably worse at code generation — it would sometimes produce syntactically valid but logically wrong solutions. The 1.58-bit ternary version was more reliable for anything beyond basic autocomplete. If your device can handle the extra ~800 MB of memory, go ternary. You’ll thank yourself when it doesn’t invent API methods that don’t exist.
I test AI models and tools at AI Hot. No API keys were harmed in the writing of this article.