Ternary Bonsai 2.5 27B

(prismml.com)

176 points | by b0m 2 hours ago ago

58 comments

  • ariwilson 36 minutes 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
    • tensusds 3 minutes 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

    • prometheus1992 14 minutes 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?

      • futhey 8 minutes 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 12 minutes 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.

  • nik_s an hour 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!

    • dofm an hour 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)

      • iagiagiag 34 minutes 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 14 minutes ago

          That's not a problem, you can attach the Claude code harness to any model. It's only like 7k tokens.

      • UncleOxidant an hour 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 42 minutes ago

          I was sort of joking and I should have flagged that, sorry :-)

          But I also wonder if it could be true.

          Things are changing very fast, and even if they are reliant on GPUs in remote clouds they might find they have less access since the interim rule on the 16th:

          https://techcrunch.com/2026/11/16/us-tightens-ai-chip-export...

          That might not have had an effect on existing GPUs, but it's at least possible some providers are being proactive.

          Perhaps enough that Alibaba have to reprioritise what they train?

      • motbus3 25 minutes 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 18 minutes ago

          Oh it was good, I tried it.

          And I have no doubt this one will be good for its size, too, for coding tasks.

          It's the vibes around benchmarks and comparisons to Opus I think we should be careful with.

          I am now off to try this new one.

      • throwup238 an hour ago

        Your neighbor’s cat is open weight?

        • margalabargala an hour ago

          Sure, it's 9.7 pounds. Happy to share that info under a permissive license.

        • dofm 42 minutes ago

          How dare you, he's just big-boned.

      • dimator an hour 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 32 minutes ago

          Goodhart's Law is undefeated.

          I feel a little sorry for Thinking Machines Lab. Their press release for Inkling 2 Mini was pretty honest as far as these launch announcements go.

          (And it really is objectively good)

          But I think we should assume these benchmarks (especially the silly Artificial Analysis graphs) are now not much use, not least because there are so many to choose from.

          And this model is a post-hoc quantization to a clever but small bit depth of a model that, while excellent, itself does not match Opus 4.6 on most things. So the odds are stacked against it really being better.

          I am sure it will be impressive given its size, though.

          Having said that, when I made my comment I wasn't aware that Opus 4.6 is actually still available. So it is at least possible to make head to head comparisons.

        • NBJack an hour ago

          Selling stuff. Making money. Impressing you. Drawing your attention. Marketing.

          I've lost track of how many times someone said how great a local model is at x or y, only to learn they limit the conditions of its use, have some secret sauce in their harness, etc. to make it work.

    • pkghost an hour ago

      I will gladly accept more (benchmaxxed) options on pareto frontier of size v generality.

  • Lramseyer an hour 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 an hour 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.

      • halfmatthalfcat 22 minutes ago

        FPGAs/ASICs aren't worth it unless you care about watt/tok/s

    • iagiagiag 24 minutes 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.

    • dotancohen an hour 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.
  • tompagenet2 an hour 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 an hour ago

      It's massively smaller and therefore faster.

      • tompagenet2 an hour 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 an hour ago

          Size of the download is a good proxy for memory requirement. Since the model is dense (not MoE), it's also a proxy for the inference speed.

        • zerd an hour ago

          The link to the previous announcement has some more details: “Ternary Bonsai 2 27B uses ternary {−1, 0, +1} weights with FP16 group-wise scaling, for 1.76 effective bits per weight and a total model footprint of 5.9GB.” … “ while retaining 98.2% of aggregate benchmark performance”.

      • notenchange an hour ago

        I'm not following. They are both 27B models.

        • trvz an hour ago

          You wouldn't use Qwen 3.8 at less than Q4. Preferably at Q8, but even going to full BF16 might make sense.

          Bonsai 2.5 is basically/supposedly a really good Q2 quant.

          Give up a bit of quality for an order of magnitude faster inference. Previous Bonsais were rather bad, so we'll see whether it's actually just "a bit" now.

        • baq an hour ago

          the parameter itself is smaller. ternary means 1.58 bits per param usually and here it's a bit more.

    • mlmonkey 38 minutes 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 33 minutes 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.

    • mahdi7d1 an hour ago

      the full precision qwen 3.8 27b model has a size of more than 50GB while bonsai is less than 6.

  • prmph an hour ago

    OT, but nice font. I think it is called Rethink Sans.

  • dpflan 14 minutes ago

    What is the business model for this company?

  • PaulKeeble 37 minutes 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 24 minutes 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.

  • vegnus an hour 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 30 minutes 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.

    • woopsn 39 minutes 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.

    • NoidFonsense an hour 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 43 minutes 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 an hour 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...

    • iagiagiag 20 minutes 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.

    • nl an hour 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.

  • jedbrooke an hour 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 an hour 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.

  • NoidFonsense an hour ago

    Holy cow, that is a really good quant. I assume they achieve this through some type of quanitzation-aware retraining?

  • DeathArrow an hour ago

    I like Inkling 2 Mini more.

    • bensyverson an hour ago

      Isn't that much bigger?

      • liuliu an hour ago

        MoE, thus, you can run it fine with ~8GiB runtime VRAM without any additional quantization (native NVFP4 / MXFP8 weights).

  • xianshou an hour ago

    Would be impressed by the metrics if I weren't so distracted by that Anthropic-lite beige site design.

  • an hour ago
    [deleted]
    • esseph an hour ago

      It is not down? Looking right at the paper.

  • StevenNunez an hour ago

    I really want to like this family of models but I'm always disappointed and feel gaslit by the developers.