For years, the dream of running a truly capable large language model on a smartphone has been throttled by a brutal physical reality: the memory wall. While developers have successfully deployed small models in the 1B to 3B parameter range, these often lack the reasoning depth required for complex agentic workflows or sophisticated tool use. To get real intelligence, you typically need a model in the 20B to 70B range, but those models demand VRAM capacities that would make a high-end workstation sweat, let alone a mobile device. This gap has forced a reliance on cloud APIs, introducing latency, recurring token costs, and significant privacy risks for users handling sensitive local data.
The Architecture of Extreme Compression
PrismML has attempted to break this deadlock with the release of Bonsai 27B, a low-bit model based on the Qwen3.6 27B architecture. The primary objective of Bonsai 27B is to bring the reasoning, tool-calling, and vision capabilities of a 27B parameter model into the strict memory constraints of a handheld device. To put the challenge in perspective, a standard 27B model at 16-bit precision requires roughly 54GB of memory, and even a standard 4-bit quantization still demands 18GB—far exceeding the available RAM on any current iPhone.
To solve this, PrismML provides two distinct low-bit configurations tailored for different deployment needs. The first is the Ternary Bonsai 27B, which utilizes weights restricted to $\{-1, 0, +1\}$ combined with FP16 group-wise scaling. This approach achieves an effective weight precision of 1.71 bits, bringing the total model size down to 5.9GB. For those pushing the absolute limits of hardware, the 1-bit Bonsai 27B uses a binary $\{-1, +1\}$ weight system, resulting in an effective precision of 1.125 bits and a footprint of just 3.9GB.
Beyond the weights, the model is engineered for modern multimodal interaction. It supports a massive context window of up to 262K tokens, allowing it to process extensive documents or long conversation histories locally. The vision tower is provided in a compressed 4-bit format, enabling the model to handle screenshots, camera inputs, and document scans directly on the device. To optimize the user experience, PrismML integrated speculative decoding, a lossless acceleration method where a smaller draft model generates tokens that the larger model then verifies, significantly boosting perceived inference speed. The entire project is released under the Apache 2.0 License, ensuring open accessibility for the developer community.
Intelligence Density and the On-Device Reality
The critical question for any quantized model is how much intelligence is sacrificed for the sake of size. PrismML applied its low-bit representation across the entire language network, including embeddings, attention mechanisms, MLP layers, and the LM head, rather than relying on high-precision bypasses for critical layers. To make this viable, they developed custom low-bit kernels optimized for hybrid attention architectures, ensuring the model runs efficiently on both NVIDIA CUDA environments and Apple's MLX framework for Mac, iPhone, and iPad.
When tested across 15 reasoning-based benchmarks, the results suggest that the trade-off is surprisingly lean. The full-precision Qwen3.6 27B scored a composite 85.0. The Ternary model followed closely at 80.5, retaining 95% of the original performance. The 1-bit model scored 76.1, maintaining 90% of the original capability. In specific domains, the resilience of the model is evident. In mathematics (GSM8K, MATH-500, AIME25, AIME26), the scores moved from 95.3 in full precision to 93.4 for Ternary and 91.7 for 1-bit. Coding tasks (HumanEval+, MBPP+, LiveCodeBench) saw a dip from 88.7 to 86.0 for Ternary and 81.9 for 1-bit. Knowledge and STEM benchmarks (MMLU-Redux, MuSR) dropped from 83.1 to 77.0 and 73.4 respectively. The most significant degradation occurred in agentic tool calling (BFCL v3, TauBench), dropping from 80.0 to 74.0 for Ternary and 66.0 for 1-bit, and in vision tasks (MMMU Pro, OCRBench), which fell from 72.6 to 65.2 and 59.6.
This performance is paired with impressive throughput. On an NVIDIA GeForce RTX 5090, the 1-bit model hits 163 tok/s, while the Ternary version reaches 134 tok/s. On Apple M5 Max hardware, the 1-bit model delivers 87 tok/s compared to 58 tok/s for the Ternary version. Most notably, the 1-bit model achieves an intelligence density of 0.53 per GB, which is over 10 times higher than full-precision models and approximately 2.7 times higher than existing low-bit alternatives.
For developers, the real-world implication centers on the usable memory of the target device. While an iPhone may be marketed with 12GB of RAM, the operating system typically limits a single app's usable memory to around 6GB. Within this 6GB budget, the system must house not only the model weights but also the KV cache and activations. The 3.9GB footprint of the 1-bit Bonsai 27B is a strategic choice, leaving enough headroom for the model to actually function without being killed by the iOS memory manager.
This shift enables a fundamental change in agentic workflow design. Cloud-based agents often struggle with the cost and latency of hundreds of iterative loops, where every single step incurs a token fee and risks leaking private screen data over the network. By deploying Bonsai 27B locally, developers can implement 100-step loops with zero marginal cost and total data sovereignty. This paves the way for a hybrid architecture where the local model handles sensitive data processing and routine planning, while only the most complex, high-reasoning tasks are offloaded to a frontier cloud model. This strategy simultaneously slashes operational costs and eliminates the lag that currently plagues mobile AI agents.
Local intelligence of this scale transforms the smartphone from a thin client into a sovereign reasoning engine.




