Ternary Bonsai 2.5 27B (prismml.com)
488 points by b0m 18 hours ago
ariwilson 16 hours ago
With this new Ternary Bonsai model (Q2 GGUF), I'm seeing about 22-25 tokens/s on a Mac Mini M5 Pro 24G RAM/512G SSD, sample Python generation prompt:
Prompt eval 2.05s
Prompt speed 222.9 tok/s
Generation 83.49s
Speed 22.3 tok/s
Tokens 1,860
First token 2.12s
I can get up to 128k context in memory easily which makes it potentially useable for agentic coding. Pretty impressive for a small model. Will have to try a simple agentic task. Might be useful for batch agentic coding.Inkling 2 mini (UD-Q3_K_XL) gets about 28 tokens/s with same prompt but only 16k context:
Prompt eval 1.07s
Prompt speed 285.3 tok/s
Generation 108.29s
Speed 27.6 tok/s
Tokens 2,993
First token 1.21s
Edit: it was able to solve the simplest bug fix from my benchmark via pi (https://fairbake.dev/signature/tasks?language=javascript) "Sharing from a phone skips the upload cap", with one held-out test fixed and nothing else broken across 25 tests. Bonsai 2.5 27B (local, Q2_0) Median of the 45 stored runs
Time 6 min 0 s 1.0 min
Output tokens 6,607 about 2,000
Outcome solved all solvedakavel 4 hours ago
May I ask how are you running them both? llama.cpp or something else? (Inklink reportedly currently requires their fork of llama.cpp on a Mac, right?)
quard8 2 hours ago
They added support in main branch + llama-app has support too
ariwilson 14 hours ago
And one game it came up with on its own in 18 minutes:
https://claude.ai/artifact/FQxdHAzST4VPC26GCeCFiU
Pretty fun. Generated about 24k tokens.
vunderba 14 hours ago
I mean, it's neat that it was able to make it without errors, but that's a direct ripoff of several very popular Geometry Dash levels (the exact gravitational mechanic and game play).
Also OOC why is it hosted on claude.ai? Did you just copy Bonsai's code to there and then ask it to wrap it?
ariwilson 14 hours ago
prometheus1992 16 hours ago
On a separate note - I am thinking of getting Mac Mini M5 Pro 24G RAM/512G SSD. how is it doing in terms of running other local models?
noiv 13 minutes ago
My M4 Pro/24GB, barely runs inkling/qwen3.8, both can create working Tetris clones with PI/oMLX/iogpu.wired_limit_mb, but it is too noisy. I'm going for 64GB when budget allows again, don't think the 27B class will fly one day.
futhey 16 hours ago
Things are moving in an interesting direction but this is still underpowered to do economically meaningful work. If this is your budget wait a year, put $50 into open router, or Deepinfra, try some models, and find one you like, then figure out how it runs on real hardware. It's hard to recommend that specific machine for local inference if you haven't spent a bunch of time testing models and found one you love for your own use-case.
piyh 16 hours ago
Speaking with an M4 Pro, my biggest regret is not getting the RAM upgrade. You can run inkling quants, but can't have anything else open and the context is gutted. I'd be able to actually use my computer for other things and have useful context windows with 48 gigs.
z2 15 hours ago
ariwilson 16 hours ago
ariwilson 15 hours ago
Can't beat it for $1299 at Microcenter! I didn't primarily get it for agentic coding - mostly for large scale cloud agent work, secondarily for batch processing, and finally for small LLMs/image generation.
Obviously RAM is your limiting factor. I think the RAM-to-tokens/s ratio is decent though.
vunderba 14 hours ago
walrus01 6 hours ago
Realistically on a 24G system you'd be far better off buying a $10/mo opencode plan and using DeepSeek v4.1 flash 1017. And maybe buy an extra $10 of credit a month on top of that depending on how much you use it.
dofm 15 hours ago
It is about this fast (much slower prefill I guess) on the M1 Max.
jmspring 14 hours ago
same experience...m1max, 64gb
tensusds 16 hours ago
Speed seems good for such setup, is the quality of generated text/code good? Was thinking to use it in my game for AI-s diplomacy, but dropped it in favor to Gemma
nik_s 17 hours ago
Unless I'm totally mistaken, this scores equivalent to opus 4.6 (released feb 2026) on SWE-bench verified. I'd be curious to which extent this is Ternary Bonsai bechmaxxing, the underlying benchmark moving, or just us seeing frontier-like behavior on benchmarks in tiny models with a ~6 month lag: probably a bit of all three? I'll be the first to say that SWE-bench verified is clearly not the most representative of benchmarks sadly, but progress in small models is really exciting nevertheless!
zmmmmm 15 hours ago
Previous iteration of this got some hype but in actual quality people found it to be incredibly bad. Hope this one is better, but won't be jumping in until I hear confirmation from others.
Currently I am able to run Qwen 3.8 using the byteshape quant very satisfactorily with < 16GB VRAM with close to full quality at 40-50 tps - I don't see too much reason to shift from that.
dofm 13 hours ago
It feels superficially good actually — but it seems to overthink even on Low reasoning mode (unless maybe the chat template is broken and the reasoning effort selector in Unsloth Desktop isn't working — I need to test that)
I think there will at some point be merit in a test that compares this, other low-bit quants of 27B, Nemotron Bolt and Inkling 2 Mini. Because the challenge is only to find the best model that fits in those smaller spaces.
I think if one has the resources to run really any Q4 version of Muse Glimmer or the Ukisa or BottleCap versions of 27B, it's automatically better to do so.
You may be seeing lower raw token speeds but you will get usable results on low reasoning more quickly in practice, because low bit and MoE models seem to need to spend more time reasoning to catch up.
shermanyo 8 hours ago
serf 12 hours ago
my previous bonsai experience : it was good and fast until it got caught in a death loop, which was often, so it needed a lot of babysitting.
qwen3.8 27b variants are a lot better in the death-loop department, "But wait.."; it tends to catch itself repeating, the older bonsai model just filled text buffers until terminated.
very fast though. it flies on RTXs.
dofm 17 hours ago
My neighbour's cat scored equivalent to Opus 4.6 this week.
Like, seriously: I would be prepared to bet that the experience with this model, impressive though it is, does not match Opus 4.6 in practical use.
Same with Inkling 2 Mini. Is it very good? Yes, it's really very good for an MoE. Are there speed improvements to come: yes. Is it entirely worth the hype: no.
This is a cycle and we should be wary of it. It will go into overdrive if Alibaba can find enough GPUs to finish Qwen 4 27B.
(I use only open weights)
ekidd 15 hours ago
> Like, seriously: I would be prepared to bet that the experience with this model, impressive though it is, does not match Opus 4.6 in practical use.
I suspect that there are local models that match Opus 4.6 in practical use, but I doubt that Ternary Bonsai or Inkling 2 Mini meet that threshold. Those two are both weaker than Qwen3.8 27B (6 bit quants or above) in practice.
Qwen3.8 27B is pretty clearly stronger than Sonnet 4.5. Whether it beats Opus 4.5 might come down to matters of taste.
There's a larger tier of models—Qwen3.8 Flash Next, DeepSeek V4 Flash and Hy4 Flash—that you can just run with a high end gaming GPU, plenty of VRAM, and a highly-optimized inference engine like Basalt. (Basalt is Blackwell only, and it profiles expert usage and does intelligent VRAM allocation.) Some of these models plausibly play in Opus 4.6 and 4.7 range. They're actually quite useful in practice, for real software work, though each has some idiosyncracies.
jonahx 14 hours ago
> (I use only open weights)
As an open-weight curious person, how do the best open-weight models compare with frontier stuff like Astra/Fable?
sgsjchs 13 hours ago
UncleOxidant 16 hours ago
> if Alibaba can find enough GPUs to finish Qwen 4 27B.
Does Alibaba have a shortage of GPUs to finish Qwen 4 27B?
dofm 16 hours ago
iagiagiag 16 hours ago
> I would be prepared to bet that the experience with this model, impressive though it is, does not match Opus 4.6 in practical use.
You would need to provide the same harness to the model though.
post-it 16 hours ago
throwup238 16 hours ago
Your neighbor’s cat is open weight?
margalabargala 16 hours ago
dofm 16 hours ago
dimator 16 hours ago
If this is true, of what utility are all these benchmarks at this point? Is the only alternative really for everyone to try a model themselves and judge it against exactly what they're doing?
dofm 16 hours ago
NBJack 16 hours ago
andai 14 hours ago
Downvoted for: awaiting methodology regarding neighbor's cat
motbus3 16 hours ago
Bro benchmarking is on the rise but to give a reason of a doubt I used a previous version of bonsai model and it was seemingly good for its size.
dofm 16 hours ago
pkghost 17 hours ago
I will gladly accept more (benchmaxxed) options on pareto frontier of size v generality.
thepoet 14 hours ago
Some numbers for a self-created benchmark I have for running long horizon tasks with local models on my Mac (Opus 5.5 gets a 8 of 8 Passed). The tps remains the same, but the overall task completion time has improved.
Passed Steps Time
Bonsai2 5 of 8 358 107 min
Bonsai2.5 5 of 8 296 (17% fewer) 76 min (29% less)tompagenet2 17 hours ago
Asking genuinely as I know I'm surely being daft here: the scores for this model in the table shown seem worse than Qwen. Am I reading it right and is the upside something else (memory use, speed etc)?
trvz 17 hours ago
It's massively smaller and therefore faster.
tompagenet2 17 hours ago
Thanks, sorry it that's obvious from the page - I get lost in the mix (in general, not just with this model) of parameters Vs active parameters Vs memory usage etc
kzrdude 17 hours ago
zerd 16 hours ago
notenchange 16 hours ago
I'm not following. They are both 27B models.
trvz 16 hours ago
baq 16 hours ago
mahdi7d1 17 hours ago
the full precision qwen 3.8 27b model has a size of more than 50GB while bonsai is less than 6.
drob518 14 hours ago
If you have the memory to run a less-quantized version of Qwen, you’ll get better output doing that. This model is deliberately trying to crunch things down to a minimum size. For its size, it’s doing pretty well with output quality, just judging from the self reported numbers, but there is a trade off here, and if you aren’t forced to make it, you’ll should choose Qwen. Even Qwen at 4-bit is likely better.
dofm 10 hours ago
Yes. If you can fit 4 bit Qwen it will, I am pretty confident, be better. If it is slow, I would suggest trying BottleCap AI’s ThinkingCap, or Ukisa Swift 1.5, both of which are fine tunes of 3.8 27B that are designed to get to their answers with much less thinking.
I am not sure but I don’t think this Bonsai model is just a clever quantisation; I haven’t been able to prove it but it feels like it thinks a lot more on low reasoning mode than Qwen does, and that this is likely the result of their post training that they have done to try to address looping and broken tool calls and other things that go wrong in long context work with aggressive quantisations.
In its size class I think it is clear there is nothing much that gets close, though maybe a streaming weights engine with Nemotron Bolt (which is only 9B active parameters) would.
mlmonkey 16 hours ago
I was about to make the same comment, but decided to re-read the article, and from what I can tell, the QWen is 27B (i.e. 27B parameters, so about 27GB memory footprint), whereas this model (Ternary Bonsai) is around 5.7GB. So it's about 5X smaller with similar performance on popular benchmarks.
PaulKeeble 16 hours ago
By default a model comes at FP16, or 2 bytes per value and this is indeed Qwen 3.8 with 27Billion parameters, each of which takes 2 bytes by default so its about a bit bigger than 54GB for the model.
Most people are quantising it (reducing the size) and early tests on this model showed it retains pretty well down to about q4, or half a byte per parameter which is ~16GB or so. You also need space for context to get anything done, multiple GBs worth of it so you in practice can't really use Q4 on a 16GB card, 32GB allows the full 256k context.
These are compressing it down to 2 bits or even less per parameter on average, this means some parameters have more in places that matter with the goal of retaining as much as possible while shrinking it to fit on cards with less VRAM.
syntaxing 16 hours ago
Just tried it through Unsloth studio. Similar speeds to inkling 2 mini Q4 on a MacBook (300 prefill, 30 generation). Actually “useful” compared to the older version 2. The agentic calls have been solid. This has been better than Q4 inkling 2 mini which was surprising.
danbrooks 15 hours ago
Appreciate the real world comparison. An important dimension to add to benchmaxxing.
vegnus 17 hours ago
So if I run 4 bonsais will that give me better results than Qwen 3.8 27b? Qwen is obviously cool but I could never really get anything useful out of it, over a number of different experiments
PaulKeeble 16 hours ago
Instead of doing that what you actually do is run the inference engine with --parallel 4 (llama.cpp) or look up what it is on your engine and it will copy only the context that model uses per person and share the weights. Some of them can do some context sharing to reduce the impact of that but this will take up less space than 4x bonsai models + context.
NoidFonsense 17 hours ago
Why not run 4x Qwen 3.8 27b in parallel? If you want more intellegence at only slightly more memory and flops, at the cost of greater latency. Use llama.cpp's --parallel flag for instance, you will find that the aggregate t/s increases with more requests in parallel.
If you can run qwen 3.8 27B at q4 already, this model is not for you. Wrong tradeoffs. Also you do not need 4x the memory to run the same model 4x in paralell, thats your other wrong assumption. Good question though.
onaclov2000 16 hours ago
I could be mistaken but the problem I ran into with parallel is that it reduced the context I had available per process. Dunno, yes it went faster but I had to get what I needed done in less context (dual 16gb GPUs, running 4 bit quant, and mtp/speculative decoding)
codazoda 17 hours ago
I feel like I can get these to work but they require a bit more tuning of prompts and instructions than I’m willing to spend time on at the moment. Love the idea and eventually I’ll have time.
I wrote a bit about my first successful run.
https://joeldare.com/a-local-open-weight-model-builds-its-fi...
woopsn 16 hours ago
It's not great below q8 (which requires some hardware unfortunately), and you also need to set reasoning to low or Qwen will just second guess itself until it runs out of context. At q4 I liked Poolside's Laguna 2.1 XS a lot better, although there will probably never be another release.
iagiagiag 16 hours ago
Sure, you "just" need the code to optimize swarm of AI agents. It's what they use at Anthropic and OpenAI to solve math problems. Though I'm not sure if 4 agents would qualify as a swarm, but I'm sure they could provide better results than 1 agents provided they're used correctly. It turns the "intelligence" problem into an "intelligence + bruteforce" problem. You don't have to be too smart if you can try 10.000 "ok" solutions per minute.
vegnus 12 hours ago
is 4 agents a squad? or do we need a new denomination?
nl 16 hours ago
> So if I run 4 bonsais will that give me better results than Qwen 3.8 27b?
No, you'll just get 4x the wrong answers.
hatthew 15 hours ago
I would be interested in seeing direct comparisons to equivalently small models, e.g. a popular Q1/Q2 quant of Qwen3.8 or some SOTA model in the 1B-10B range.
prmph 17 hours ago
OT, but nice font. I think it is called Rethink Sans.
noir_lord 4 hours ago
It is (FF has a nice font tab when you inspect).
ricardobeat 12 hours ago
A pretty decent Pelican, for a 1-bit model running on a Macbook Air M3 and using 7-8GB of RAM:
https://gist.github.com/ricardobeat/7bdc3c143c6ed2bd5b5a1d22...
At this rate, we might get usable Opus 4.6 level models running on a regular 24GB-32GB laptop in the very near future. All we need is Qwen4 65B to come out :)
DarmokJalad1701 12 hours ago
Isn't Inkling 2 Mini already there?
ricardobeat 12 hours ago
I think it barely fits in 32GB (there is no <4bit quant that I've seen), and you need to cross the 40-60tok/s barrier to really be useful.
graboid 4 hours ago
ariwilson 12 hours ago
serf 12 hours ago
risphere 3 hours ago
The model is extremely efficient (small size + good performance).
Lramseyer 16 hours ago
This is really cool! I am glad that people are asking questions about the optimal bit depth for a language model! What's a smarter model? One with more parameters and fewer bits, or more bits and fewer parameters?
But I have a dumb question about this model - is there hardware acceleration for ternary weights aside from an FPGA?
Foobar8568 16 hours ago
I feel you would need a fairly expensive FPGA board to be able to have proper performance for these models. And you would be limited by the usual low bandwith, even with HBM, 90%~ on decode of 700GB/sec? I don't remember, but basically worse than a MacBook Pro, and the FPGA board would cost 3-5 times the price.
edit: Alveo V80 is like 10k and 800GB/sec for 32GB of HBM and 2.6M LUT for 190W, and on mouser, next delivery date is July 2027.
dlcarrier 15 hours ago
FPGAs aren't great at doing math. Most of them basically cheat by having internal ALUs that get used for math, but a GPU has a lot more of them and will significantly outperform FPGAs for a given die area and power consumption, on the same process.
Where FPGAs really shine is super-low-power applications, like detecting wakewords for voice prompts, where the neural network has thousands of parameters at most.
halfmatthalfcat 16 hours ago
FPGAs/ASICs aren't worth it unless you care about watt/tok/s
dlcarrier 15 hours ago
lossolo 14 hours ago
> edit: Alveo V80 is like 10k and 800GB/sec for 32GB of HBM and 2.6M LUT for 190W, and on mouser, next delivery date is July 2027.
So it seems a better deal is just to buy an NVIDIA card, seems like even 5090 (1.8 TB/s) with 32 GB GDDR7 is better than this FPGA with 32 GB of HBM for LLMs.
suprjami 11 hours ago
It's not quite that simple.
You can quantize some tensors heavily before capability drops off.
Other tensors really need to be kept at full size otherwise the model degrades fast.
This is the idea behind quant schemes like Unsloth Dynamic.
There are also improvements one can make during quantization, like EXL3 uses Hessians instead of llama.cpp's diagonals, which should result in less quantization loss.
iagiagiag 16 hours ago
In the end I'm sure all models will be 1 bit per parameter. For now it's still problematic because we can't (easily) train models like that. Idk if we'll find a way to train models that way or if we'll do it with better quantization methods. I've not looked too deep into how bonsai models work during inference, but you have hardware acceleration for any weight provided you give them the right size during inference, and you do have acceleration for some binary operations. So they use tricks. I think the last generation of GPUs has nvfp4 (4 bits) min.
dofm 12 hours ago
> What's a smarter model? One with more parameters and fewer bits, or more bits and fewer parameters?
There are many more variables to consider now. The impact of the harness, various forms of QAT, streaming experts, looping, post-training to reduce thinking overhead, post-training to match the harness…
Local weights models might be outgunned by frontier cloud models, but my contention is that if you want to be actually relevant in the future, you have to have some instincts for all this stuff — some broad sense of how and why. When the labs people say "learn AI", a lot of them mean "learn our SaaS product" — learn a dependency.
I say, if you can run even the smallest local weights model (Gemma 4 E4B QAT, Nvidia Dory, Gemma 4 12B QAT, and up) you really should. Get a sense for what they can and can't do, run the whole stack, get Pi, understand how tool calling really works, write tools, etc.
This is a way to start building the core skills, or at least the footing for the core skills, that develops some cognitive independence.
One day very soon, I think, the talk of open weights will be much closer to practical, much closer to necessary, and I think being slightly further along in understanding is going to help.
And I say this as really a perpetual novice.
dotancohen 16 hours ago
> What's a smarter model? One with more parameters and fewer bits, or more bits and fewer parameters?
I've never dated a model, but if I did, I'd choose the one with more bits and fewer parameters.minimaxa 13 hours ago
Great to see more options and methods, but the market is already saturated.
Where the focus will be in the next year is Omni models, all in one MOE coding, video, image, and voice.
Anything else is three steps behind, burning through inference training costs.
suprjami 12 hours ago
Yeah we're all waiting for Qwen 4 Flash to do this.
lettergram 8 hours ago
They should do this for a >100B model, if we're looking at a 90% reduction in memory requirements you can effectively bring the largest models to a maxed out macbook, or a home computer with a couple of GPUs.
ycui7 13 hours ago
for the first time, bonsai passed my 2048 needles dense retrieval test over 256K context length. really good progress for them.
NoidFonsense 17 hours ago
Holy cow, that is a really good quant. I assume they achieve this through some type of quanitzation-aware retraining?
derac 14 hours ago
This sentence doesn't make sense. The term quantization-aware refers to doing quantization at training time as opposed to post-training as is done here.
DeathArrow 17 hours ago
I like Inkling 2 Mini more.
bensyverson 17 hours ago
Isn't that much bigger?
liuliu 17 hours ago
MoE, thus, you can run it fine with ~8GiB runtime VRAM without any additional quantization (native NVFP4 / MXFP8 weights).
DANmode 2 hours ago
bensyverson 14 hours ago
dpflan 16 hours ago
What is the business model for this company?
dlcarrier 15 hours ago
Here's an uncensored version, for those who don't like condescending and contemptuous attitudes from LLMs, or are interested in learning about what happened in Tienanmen Square in 1989: https://huggingface.co/AtomicChat/Ternary-Bonsai-2.5-27B-Unc...
jedbrooke 17 hours ago
Bonsai 2 was a huge leap from Bonsai 1 (Bonsai 1 could barely do anything multi-turn, it would get confused by the second message and keep responding to the first one, frequent doom loops, etc).
Bonsai 2 I would describe as Certified Usable™*, So I’m excited to see what they’ve cooked up with 2.5.
*: probably on par with Luna or Sonnet, definitely not Opus. Vibes wise it’s able to do multi step agent workflows, but has trouble conforming to my style guide. It reeks heavily of clauditis in its stock configuration (tons of “My genuine honest opinion” stuff), but I was able to get that down maybe 70% with a style guide
Foobar8568 16 hours ago
Qwen 27b is far from Opus...Even 4.6, Bonsai 2 was definitely worse than Qwen 27b Q4 when I was playing with it in agentic coding.
sleight42 14 hours ago
Incredibly frustrating when people post LLM benchmarks without indicating which quantization, model file format, and engine. Establishing and controlling for variables in an experiment is basic scientific method. So many people leave out this important context.
I, too, can achieve blazing speeds... when using a 1-bit quant with vllm and a tiny context.
xianshou 17 hours ago
Would be impressed by the metrics if I weren't so distracted by that Anthropic-lite beige site design.
undefined 17 hours ago
esseph 17 hours ago
It is not down? Looking right at the paper.
StevenNunez 17 hours ago
I really want to like this family of models but I'm always disappointed and feel gaslit by the developers.
yieldcrv 13 hours ago
Private Knowledge Work, love that term, curious if it could catch on
kojocona 15 hours ago
Something you've actually learned about running models on your own hardware or building with AI tools.
Pxtl 15 hours ago
I think I'm going to need a proper catalogue of all these Qwen 3.8 27b derivatives.
derac 14 hours ago
huggingface does this, check the model card for it under model tree.
drob518 14 hours ago
Yea, there is definitely a cottage industry devoted to tweaking Qwen in every way imaginable.
andai 14 hours ago
As an absolute muggle: wtf is "intelligence density" ?
dofm 14 hours ago
I think they mean how much intelligence (by whatever metric they choose) it delivers per unit whatever (bit, token, second, watt, parameter, times they managed to stroke my neighbour's cat without getting thwacked with a paw).
I too dislike vague notions like this but I suppose they mean it slightly vaguely.
yieldcrv 13 hours ago
onsite in Pasadena huh? and this is essentially modifying specific weights on Qwen for specific domains and potentially spreading this style of LLM amongst different inference engines? building platforms to help do post-training for specific use cases and potentially doing this for your clients
Still a little commute from LA but I could be down to do that to avoid the gravitational pull of the SF Bay Area
ariwilson 11 hours ago
We need more LA tech!
yieldcrv 11 hours ago
The talent is definitely present
PaulKeeble 16 hours ago
I tried the V2 and it was unfortunately really bad. It ran but it got stuck in loops and the output was comparatively poor. I think the most welcome change is that it will run on stock llama.cpp, well the Q2s do anyway which makes managing it with other models a fair bit easier. Hopefully it works better now, thankfully I have more VRAM and I don't need to cut this deeply anymore.
The other option that is really worth considering down at these quants is exllama and its heavily quantised models, they work really well in my experience, fast and the parallel behaviour is also good so you get really good performance out of them.
veemjeem 16 hours ago
did you properly configure sampling parameters? many bonsai runtimes default to a temp of 0, which can yield loops. greedy decoding is great for showing off runtime speeds, but not great at doing actual work. I've been able to run v2 bonsai on some tasks for an hour without seeing any loops. I use bonsai on my 12gb 4070ti using the ninfer engine and pi harness, which gets around 3.5k pp and 120 tg, with 200k context at q4_0. It's great for terminal work.
PaulKeeble 14 hours ago
Yes I did, I had a particular problem that I was running a lot of models on to compare them via open router and local. I set up Bonsai V2 with it's custom llama.cpp port and the parameters it set in the model description and it was the only one that failed to finish. Ornith 1.0 was also unable to correct it's bugs but that was preferred to no output. I had a bad experience with it in pi harness and moved on to other options.