
TL;DR
PrismML's Bonsai 27B uses 1-bit quantization to compress a 27B model to 3.9GB - small enough to run on an iPhone. Here's how it works and what HN thinks.
A 27 billion parameter model running on a phone used to be a punchline. PrismML just made it reality.
Bonsai 27B, released on July 14, 2026, compresses a Qwen3.6 27B base into either a 5.9GB ternary variant or a 3.9GB 1-bit binary variant. The 1-bit version fits comfortably in an iPhone 17 Pro's memory constraints while retaining 90% of the full-precision model's performance across 15 benchmarks.
The compression comes from extreme quantization. Instead of the typical 16 or 32 bits per weight, Bonsai goes to the absolute floor:
| Variant | Weights | Bits Per Weight | Size | Performance Retention |
|---|---|---|---|---|
| Ternary | {-1, 0, +1} | 1.71 | 5.9 GB | 95% |
| 1-bit | {-1, +1} | 1.125 | 3.9 GB | 90% |
Both variants apply low-bit representation end to end - embeddings, attention, MLPs, and the language model head all use the compressed format. There are no higher-precision escape hatches.
Inference speeds tell the rest of the story:
That 87 tokens per second on an M5 Max puts Bonsai solidly in the usable range for real-time applications. For comparison, 87 tok/s is faster than many cloud API responses once you factor in network latency.
PrismML measures intelligence density as benchmark performance per gigabyte. The 1-bit Bonsai 27B hits 0.53 per GB - roughly 10x the full-precision baseline and 2.7x conventional low-bit alternatives at the same parameter count.
This metric matters because it directly translates to what you can run on consumer hardware. A model that needs 50GB of VRAM is a cloud-only proposition. A model that fits in 4GB can run on the device already in your pocket.
Newsletter
Get the weekly deep dive
Tutorials on Claude Code, AI agents, and dev tools, delivered free every week.
From the archive
Jul 14, 2026 • 5 min read
Jul 14, 2026 • 7 min read
Jul 14, 2026 • 6 min read
Jul 14, 2026 • 7 min read
The Bonsai models build on Qwen3.6 27B, which already supports multimodal inputs (images and text), agentic tool-calling, and a 262K token context window. PrismML's contribution is the quantization scheme that preserves these capabilities while collapsing model size.
The key insight is FP16 group-wise scaling. Each group of weights gets its own scaling factor stored at full precision, while the actual weight values collapse to ternary or binary. This hybrid approach sacrifices some compression for accuracy retention - pure 1-bit with no scaling would break down much faster.
The HN thread surfaced several practical concerns and discoveries.
On the quantization math: One commenter clarified that "1-bit models are actually 1.58 bit with three values +1, 0 and -1" - technically correct for the ternary variant. The true 1-bit binary version does use just two values, hence the 1.125 effective bits.
Compared to alternatives: A user noted that "if you run the UD_Q2 variant (Unsloth) which does only post-training, the number is pretty close to 1-bit model here and the 5% drop in tool-call is significant than it suggests in real-life use cases." Post-training quantization versus native low-bit training appears to be a meaningful distinction.
Practical compatibility: Several users reported issues getting the models running in LM Studio - "I've tried a couple in LM Studio - the GGUF one and the MLX one - but neither worked there. Might be that LM Studio needs to upgrade their llama.cpp or MLX engines first." The models are available on Hugging Face but tooling support is still catching up.
Hardware fit: For those optimizing VRAM usage, one commenter asked what's possible with a 16GB GPU at 1.125 bits per weight. The math: 16GB / 1.125 bits = roughly 114B parameters, though real-world overhead reduces that.
Apple interest: According to CNBC reporting, Apple is "in talks" with PrismML about the compression technology - potentially for on-device AI features in future iPhones.
Edge cases: At least one Android user reported getting "!!!!!!!!!!!!!!" for answers - a reminder that bleeding-edge releases rarely work perfectly out of the box.
Bonsai 27B represents a milestone in the push toward on-device AI. A year ago, running models this size required cloud infrastructure or expensive workstations. Now it fits on a phone.
The implications extend beyond mobile. Edge deployment for privacy-sensitive applications, offline operation in areas with poor connectivity, reduced cloud costs for inference at scale - all become more feasible when model sizes drop by an order of magnitude.
Whether the 90% performance retention holds up for your specific use case is another question. Math and coding benchmarks reportedly stay near parity, but agentic tool-calling shows more degradation. Your mileage will vary.
The models are available under Apache 2.0 with native support for Apple devices (MLX) and NVIDIA GPUs (CUDA). Check the Hugging Face repository for the latest versions.
Read next
Unsloth's dynamic quantization makes GLM-5.2 runnable on a 256GB Mac or a 24GB GPU with CPU offloading. Here is the hardware math, the quantization tradeoffs, and what the HN community learned from actually running it.
7 min readA new paper shows a 3B parameter model hitting 94.3 on AIME26 and 96.1% on LeetCode contests - matching or exceeding models 100x its size. The catch: it traded general knowledge for pure reasoning ability.
6 min readMeta's first paid API model arrives with $1.25/M input tokens, 1M context window, and strong tool-use benchmarks. HN debates what it means for the open-weights company.
5 min readTechnical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
Alibaba's flagship open-weight coding model. 480B total parameters, 35B active (MoE). Native 256K context, scales to 1M....
View ToolOpen-source AI pair programming in your terminal. Works with any LLM - Claude, GPT, Gemini, local models. Git-aware ed...
View ToolOpen-source AI code assistant for VS Code and JetBrains. Bring your own model - local or API. Tab autocomplete, chat,...
View ToolAnthropic's AI. Opus 4.6 for hard problems, Sonnet 4.6 for speed, Haiku 4.5 for cost. 200K context window. Best coding m...
View ToolInstall Ollama and LM Studio, pull your first model, and run AI locally for coding, chat, and automation - with zero cloud dependency.
Getting StartedInstall the dd CLI and scaffold your first AI-powered app in under a minute.
Getting StartedWhat MCP servers are, how they work, and how to build your own in 5 minutes.
AI Agents
Introducing Meta Llama 3: The most capable openly available LLM to date Meta has released two groundbreaking AI models under the Lama 3 series, an 8 billion parameter model and a 70 billion...

In this video, I explore Together AI which is an AI cloud platform that also you to both easily access apis for a ton of open source models such as the llama-2 models, mistral 7b, stable diffusion...

Tencent's Hy3 ships 295B parameters but activates only 21B per token, matching flagship performance at flash-tier pricin...

xAI launched Grok 4.5, trained on trillions of Cursor interaction tokens. At $2/M input pricing, it undercuts Claude and...

Meta's first paid API model arrives with $1.25/M input tokens, 1M context window, and strong tool-use benchmarks. HN deb...

Martin Alderson's argument for why open-weights models like GLM 5.2 will compress frontier lab margins is sparking debat...

A simple image rotation button reveals deep truths about responsive interface design - why buttons must always respond p...

Anthropic releases Claude Sonnet 5 with improved agentic capabilities, better tool use, and an introductory pricing deal...

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.