Bonsai 27B: A 27B-Class model that runs on a phone

prismml.com

694 points by xenova 2 days ago


SwellJoe - 2 days ago

What I most want to see it compared to is Gemma 4 12B in the 4-bit QAT version. It's barely bigger than this at just under 7GB, so it also runs on just about any modern device and is remarkably smart for its size. It's an excellent tool user, crazy good vision for its size. I'm still trying to wrap my head around how much is lost with each step down in resolution, but the QAT versions from Google seem to prove the answer is "very little" at four bits.

motbus3 - 2 days ago

I need help understanding this. I understood that the magic here is the quantization that allows it to use from 50G to 4G and their process retain most of the intelligence within Pareto limits of gain. And then they proceed to compare with other quantized models as in the level of intelligence per size. It gets to my attention though that the performance in tool calling is mostly affected which is a problem for other small models.

How does this model compare to a recent 4G model? How do we know it retained intelligence from the parent rather then being fine tuned for the benchmarks?

I am not shtng on them or anything. I'd rather find it amazing, BUT given my limited knowledge, I feel the results miss fair comparison plots and the ones might be misleading. Buy I also reckon it might be me the problem. Anyone care to explain this poor silly fellow some of those points?

kristianp - 2 days ago

Apparently Apple is "in talks" with the PrismML: https://www.cnbc.com/2026/07/14/apple-prismml-ai-compression...

networked - 2 days ago

I have benchmarked Bonsai 27B CPU inference on my computer (a Ryzen 7 5700X desktop with 48G RAM running Ubuntu 24.04) using the latest 62061f910 build of PrismML's llama.cpp fork.

Binary: 9 t/s prompt, 6 t/s generation. Ternary: 0.8 t/s prompt, 0.7 t/s generation. It looks like CPU inference for ternary isn't optimized yet.

simonw - 2 days ago

The models themselves are showing up on Hugging Face here: https://huggingface.co/prism-ml/models

I've tried a couple in LM Studio - the GGUF one and the MLX one - but neither worked there. Anyone else get them to work? Might be that LM Studio needs to upgrade their llama.cpp or MLX engines first.

kbart - 2 days ago

Excuse my likely stupid question, but has anybody had some success using Claude Code with frontier agents (or Junie or anything else) to invoke local LLMs for specific sub-tasks or wrapped as skills? In other words, is there a way to use expensive, frontier models as orchestrators that manage local models to do the specialised coding tasks?

Arcuru - 2 days ago

Awesome! I've been waiting for them to start scaling ternary models for over a year[1]. Excited to try it out, typical Qwen 27B is too heavy for me to run on my local hardware at reasonable speeds.

[1] https://jackson.dev/post/dont-sleep-on-bitnet/

davedx - 2 days ago

I find it super interesting that we're now in an era where we have LLM's that are quantized to binary weights - 1's and 0's. So effectively they're digital neural networks.

I assume that in addition to the significant memory savings, this should also lead to much simpler matrix multiplication operations? Could models like these run on CPU's efficiently, or does the geometry of the compute mean GPU's are still a better choice?

erwan577 - 2 days ago

The KV-cache memory usage also seems remarkably frugal, even at the full context length. That could make this model particularly useful in multi-agent coding workflows.

I wish KV-cache memory usage and related optimizations were discussed more clearly in new model announcements and demos.

RugnirViking - 2 days ago

maybe its nitpicking here but the demo shows them asking the model what to cook and its recipie sounds like it wouldn't be very good and also it totally gets the macronutrients wrong. 25g protein for "spaghetti, carrots, peppers, garlic and herbs"?

alvatech - 2 days ago

TIL that 1 bit models are actually 1.58 bit with three values +1, 0 and -1

thomasjb - 2 days ago

I've been watching and waiting for this, interested to see how smart it is, as it fits with my interest of getting the smartest possible model running in 10GB of VRAM (RTX3060 that has to drive 2 monitors and run an llm)

Havoc - 2 days ago

Got this running on my phone. Unfortunately like other small models it hallucinates quite easily.

eg asked it what Signoz is. It reckoned it is a woocommerce/shopify competitor aimed at India market

liuliu - 2 days ago

The problem, of course, is 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.

luckystarr - 2 days ago

Tried it on Android and got "!!!!!!!!!!!!!" for answers.

syntaxing - 2 days ago

For those curious about their demo, I’m pretty sure it’s using Locally AI (iOS only) that lmstudio acquired/aquihired a couple months ago.

hham - 2 days ago

This is accelerant #3 and #4 from our article converging in one release: a 27B-class model, built on Qwen (already one of our examples of local models "good enough to matter"), now running on an iPhone. The hardware layer and the local-model layer aren't just going to converge in the future, they're doing it right now! https://news.ycombinator.com/item?id=48892559

kamranjon - 2 days ago

After using a highly capable 2-bit quant as my daily driver for months now, I get pretty excited about releases like this. After a few days for the kinks to be worked out, I’ll be excited to try it.

verdverm - 2 days ago

Preliminary analysis via lm-evaluation-harness + vllm

    model         | disk | wikitext | gsm8k (match/error)
    baseline      | 55G  | 8.00     | 0.50/0.09
    nvfp4-gptq    | 27G  | 8.25     | 0.47/0.9
    nvfp4a16-gptq | 27G  | 8.11     | 0.53/0.9
    bonsai-4bit   | 19G  | 16.75    | 0/0 (eval bug?)
Looks like they quant'd too hard at 4 bits, can't imagine the ternary being any good based on this. I'm also not sure what is up with the gsm8k, their benchmarks show something different, but they are using another eval tool. I'll have to add it to my setup. Also why I'm building a setup instead of taking model devs word for benchmarks. (https://github.com/modelscope/evalscope)

Code if you'd like to reproduce or try other test sets: https://github.com/verdverm/quantr (lightly tuned to a single oem spark, probably possible in 32-48G)

Good paper to understand the effects of quant regimes across model families and tasks: https://arxiv.org/abs/2402.18158 (Evaluating Quantized Large Language Models - 2024 ICML)

trvz - 2 days ago

I still don’t see the point of this. In my testing, it’s worse than Qwen 3.5 4B and even 0.8B.

sigbottle - 2 days ago

What's the hiring space and business strategy around all of these smaller AI labs? Its really cool that people like these guys get paid to optimize models and give them out for free (open source). Do a lot of these labs have forward deployed engineers doing integrations with customers who want local models? Is there a general shift towards the local model crowd?

comandillos - 2 days ago

Quite weird that heavy quantization method on a dense model gives better results than slightly quantized MoE models like 35B-A3B from Google.

At this point all the different quantization and 'compression' (look at MPO applied to LLMs...) techniques start feeling a bit like snake oil. It's just gut feeling - or scores on benchmarks models are optimized for - what ends up deciding whether a technique is good enough or not.

athrowaway3z - 2 days ago

So first off, phenomenal stuff to see a 1bit model at 90% capability.

However, this is the 5th product post in 2 weeks that proclaims that AI use is shifting, and why [insert tradeoffs] are the perfect fit.

Paradigms shift don't happen in the release announcements.

I suspect this is an AI-ism, making all the release posts sound so paradigmshiftery.

est - 2 days ago

Maybe Taalas could cook this as their AI-on-chip next

armanj - 2 days ago

Bonsai vs Qwen (quick) Benchmark: https://github.com/ArmanJR/PrismML-Bonsai-vs-Qwen3.5-Benchma...

snthpy - 2 days ago

What is the best way to deploy these on CPUs, arm64 ones in particular?

I'm interested in the CPU inference application of these models with things like the FairyFuse kernels.

I've tried trillim previously but was disappointed that i got higher tok/s just with similar sized models through ollama using just Q4_K_M quants.

I see there is bitnet.cpp and litespark-inference. What else should i look at?

all2 - 2 days ago

Tried this on an old 4 core i5 and got about 1tps.

OS: WSL2 on Windows 10

syntaxing - 2 days ago

I don’t know if the llama cpp implementation is wonky (and only supports the binary version) but it’s a lot slower than 35B-A3B @ Q4_KM + MTP with CPU offloading.

RandyOrion - 2 days ago

Thanks Bonsai team.

Now open weight LLMs/VLMs/LMMs are becoming even larger to the extent that consumer-grade hardware are no longer able to run these models. In contrast, quantization and pruning make the model better at the size-performance pareto and provide people with strictly more possibilities.

wy35 - 2 days ago

Entire blog post seems to be AI-generated :/

0xbadcafebee - 2 days ago

27B is way more than you need for a phone. Doesn't matter how much you try to compress it, it's the wrong application of the wrong tool. There are already useful tiny models that fit on phones and do basic things really well. Dumb down a big model too much and it becomes worse than a small fine-tuned model.

OutOfHere - 6 hours ago

How does one even install and use this on a phone? They don't say. I guess the claim is fake. It is unreasonable to make a claim without an app for Android and iPhone that supports and runs this model.

Heliodex - 2 days ago

Nice to see a larger model in their lineup, I've been using Ternary 8B and it seems to get higher TPS than most other similarly sized models on my hardware.

ExxKA - 2 days ago

From an investors perspective, this is truly a paradigm shift - this will kill a whole range of startups in Europe which were packaging privacy and wrapping around large hosted models. There's absolutely no reason to use a "Privacy GPT tm" provider, then I have it all on my own laptop - There is also no need for banks or other regulated institutions to rely on those providers when they can selfhost with this much intelligence on tap.

xyzsparetimexyz - 2 days ago

That's awesome. What's the largest model that could fit onto a single 16gb gpu at 1.125 effects bits per weight?

Luker88 - 2 days ago

Nice!

Do they have plans to bring even bigger models down to ~16GB VRAM so that more consumer hardware might be useful?

bilsbie - 2 days ago

What data type stores one bit? Does it offer opportunity for more efficient matmuls?

raylad - 2 days ago

Not impressed. It fails the "Jabberwocky" test.

drob518 - 2 days ago

This is going in a good direction.

lifesucks1 - 2 days ago

When Bonsai GLM 5.2 2bit

diddid - 2 days ago

They should do this to GLM 5.2

luciana1u - 2 days ago

phone manufacturers are about to add '27B-capable' right next to '5G' on the spec sheet and honestly it's the first spec bump I've cared about in years

anshumankmr - 2 days ago

More and more it seems the iPhone 16 was the worst deal in history cause I don't think mine will support the upcoming foundation model from Apple or this one, does it?

rvba - 2 days ago

Does anyone know how to disable the 10 minute timeout in Android studio when using a self hosted model on local machine?

It always auto disconnects.

goofy_lemur - 2 days ago

I tried this on M1 Pro today with 16GB ram and it worked!!!

I was using vscode and it seemed to interperet the system prompt right and then started actually inspecting and doing stuff.

Unfortunately the vscode system prompt is 24000 tokens, and I was getting 100 at beginning, 69 by the end of it, but honestly I'm super impressed. Great work team 1

- 2 days ago
[deleted]
latexr - 2 days ago

The meal demo is hilarious.

— Hey, model, see this fake-ass stock photo of a variety of spices, vegetables, and spaghetti? What meal can I make with this?

— Just cook everything.

— I’m a complete noob. I can’t even fathom how to cook those things. Help me!

— Sure sure. First boil the spaghetti completely and drain. Only after that, while it’s getting cold, you need to sauté (good luck knowing what that is if you don’t even know how to cook spaghetti) the garlic and carrots at this specific temperature (good luck figuring out how to do that on a stove). Despite having mentioned the peppers and herbs in the previous message, I’m not going to tell you what to do with those. Just chew them raw or something, I guess.

The demo shows that the model can answer, but the answers are frankly bad. Here’s what you could’ve done instead faster with better results: a web search for “spaghetti carrots peppers”. Don’t even need to add “recipe”.

Presumably you’ve been using the model as you develop it, why not show something real and useful instead of a generic, unrealistic and uninteresting scenario that above all makes it look incompetent? Show something that genuinely surprised you positively.

yieldcrv - 2 days ago

this is really amazing! keep pushing guys, this will coexist in the memory footprint with vision models, and audio models, and other kinds of transformers so we still need memory to work with

you also might single handedly pop the hyperscaler investment and capital projects! that's the whole AI bubble essentially!

contentpulse - 2 days ago

[flagged]

stevenhubertron - a day ago

[flagged]

ryss20 - 2 days ago

[flagged]

VaporJournalAPP - 2 days ago

[flagged]

OsamaJaber - 2 days ago

[dead]

unitindex - 2 days ago

[flagged]

nttylock - 2 days ago

[flagged]

pdfops - 2 days ago

[dead]

KolinFirz - 2 days ago

[dead]

ai_fry_ur_brain - 2 days ago

[dead]

sahitya_ - 2 days ago

[flagged]

Havoc - 2 days ago

This must be some sort of unpublished app?

I can just see their image tool on the app store

runtime_lens - 2 days ago

This feels like a more interesting direction than chasing ever larger models. For a lot of use cases having a capable model that runs entirely on-device is a much bigger win than squeezing out a few extra benchmark points with a model that lives the cloud.

erelong - 2 days ago

I was trying Ornith 9B locally (it's up on Ollama) which claims:

> Ornith-1.0-9B, which can be easily deployed on edge devices, matches or exceeds the performance of much larger models such as Gemma 4-31B and Qwen 3.6 35B.

https://deep-reinforce.com/ornith_1_0.html

Only tried it so much so far; it did a little better than Qwen 9B

theLiminator - 2 days ago

This is useful research, but this particular model itself is likely absolutely useless.