Bonsai 27B: First 27‑Billion‑Parameter LLM Running Fully On‑Device at 3.9 GB
PrismML’s Bonsai 27B brings a 27‑billion‑parameter multimodal model to phones at 3.9 GB, showing on‑device AI can match cloud‑scale capabilities.

The AI community woke up to a surprise on July 14: PrismML released Bonsai 27B, a 27‑billion‑parameter model that can run on a consumer smartphone. By compressing the model to a 3.9 GB 1‑bit variant and a 5.9 GB ternary variant, the company shattered the long‑standing belief that such large models belong only in data‑center clouds. The release includes full multimodal support, 262K‑token context, and speculative decoding for speed. For developers, this means powerful reasoning, tool‑calling, and vision capabilities can now be embedded directly into mobile apps, opening new privacy‑first and offline use cases.
What happened
PrismML announced two low‑bit variants of Bonsai 27B, both built on the Qwen‑3.6 27B backbone. The ternary version uses {-1,0,+1} weights with FP16 group‑wise scaling, yielding a 5.9 GB footprint that fits on a laptop while preserving 95% of full‑precision performance. The 1‑bit version uses binary {-1,+1} weights, achieving a 3.9 GB size that fits within the memory budget of an iPhone 17 Pro, delivering roughly 90% of the baseline accuracy.
Across a 15‑benchmark suite covering knowledge, reasoning, math, coding, instruction following, tool calling, and vision, the ternary model retained 95% and the 1‑bit model retained 90% of full‑precision scores. Both variants run end‑to‑end in low‑bit mode, including embeddings, attention, MLPs, and the LM head, and ship with a compact 4‑bit vision tower. The models are released under the Apache 2.0 license, enabling immediate experimentation.
Why it matters
Running a 27B‑class model on a phone collapses the latency and privacy gap between cloud inference and edge execution. Developers can now ship AI‑driven features—such as on‑device code assistance, multi‑step planning, and image‑aware assistants—without sending data to remote servers. The reduced memory footprint also lowers power consumption, extending battery life for continuous AI workloads. Moreover, the open‑source license encourages community‑driven optimization and integration into diverse platforms, accelerating the shift toward decentralized AI.
- Enables high‑capacity reasoning and vision on consumer hardware.
- Preserves most of the original model’s accuracy (90‑95%).
- Open‑source Apache 2.0 license encourages broad adoption.
- Performance still lags behind full‑precision 27B models, especially on complex math.
- Requires high‑end devices (e.g., iPhone 17 Pro) to meet memory constraints.
- Tooling for on‑device deployment is still emerging, adding integration effort.
How to think about it
Start by profiling your target device’s memory and compute budget; the 1‑bit variant fits under 4 GB, while the ternary version needs about 6 GB. Use PrismML’s provided GGUF files and the spec‑decode API to maximize token throughput. For latency‑sensitive tasks, benchmark both variants on the actual hardware and decide if the 5‑% accuracy trade‑off of the 1‑bit model is acceptable. Integrate the vision tower only when image input is essential, as it adds a modest 4‑bit overhead. Finally, consider hybrid deployment: run the 1‑bit model on‑device for privacy‑critical steps and fall back to a cloud service for heavy‑weight inference when needed.
FAQ
Can Bonsai 27B run on older smartphones with less than 4 GB RAM?+
How does the 1‑bit variant compare to the ternary variant in practice?+
What toolchain is needed to deploy Bonsai 27B on iOS?+
- 01Bonsai 27B: A 27B-Class model that runs on a phone
- 02PrismML — Announcing Bonsai 27B: The First 27B-Class Model to Run on a Phone
- 03Bonsai 27B: A 27B-Class model that runs on a phone | Hacker News
- 04prism-ml/Bonsai-27B-gguf · Hugging Face
- 05PrismML Announces 1-bit Bonsai 27B - The First 27B Model to Run on a Phone
- engineering·5 min readGLM 5.2's Emergence Signals Potential AI Inference Margin Compression for Frontier Labs
The release of GLM 5.2, a high-quality open-weight AI model, challenges the profitable inference business of proprietary AI labs. Developers should prepare for shifting AI economics.
- tools·3 min readreMarkable Tablet Reimagined as Tom Riddle's Disappearing Ink Diary
A developer mod transforms the reMarkable Paper Pro into an AI-powered diary, mimicking Tom Riddle's magical notebook with disappearing ink and animated responses.
- engineering·5 min readUnpacking GPT-5.6 Sol Ultra in Codex: Alias or Advanced Pro Model Integration?
The integration of GPT-5.6 Sol Ultra into OpenAI's Codex sparks debate: is it a simple alias for existing features or a true 'pro model' with advanced capabilities? This matters for developer…
The week’s highest-signal tech and AI stories, synthesized into a five-minute read. One email a week, no spam, unsubscribe anytime.