Ternary Bonsai 2.5 27B

(prismml.com)

213 points | by b0m 2 hours ago

20 comments

  • ariwilson 1 hour 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 solved
    • dofm 8 minutes ago
      It is about this fast (much slower prefill I guess) on the M1 Max.
    • tensusds 33 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 44 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 39 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.
      • ariwilson 27 minutes 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.

      • piyh 42 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.
        • ariwilson 29 minutes ago
          I use my Macbook Air for normal development stuff so the Macbook Mini can be a dedicated batch run / local LLM / image generation machine. Lets me max out the RAM utilization.
  • nik_s 1 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!
    • kvcm 31 minutes ago
      [dead]
    • dofm 1 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 1 hour 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 44 minutes ago
          That's not a problem, you can attach the Claude code harness to any model. It's only like 7k tokens.
      • UncleOxidant 1 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 1 hour 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 56 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 48 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 1 hour ago
        Your neighbor’s cat is open weight?
        • margalabargala 1 hour ago
          Sure, it's 9.7 pounds. Happy to share that info under a permissive license.
        • dofm 1 hour ago
          How dare you, he's just big-boned.
      • dimator 1 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 1 hour 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 1 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 1 hour ago
      I will gladly accept more (benchmaxxed) options on pareto frontier of size v generality.
  • hatthew 7 minutes 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.
  • syntaxing 30 minutes ago
    Just tried it through Unsloth studio. Similar speeds to inkling 2 mini Q4 on a MacBook. 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 4 minutes ago
      Appreciate the real world comparison. An important dimension to add to benchmaxxing.
  • Lramseyer 1 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 1 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 53 minutes ago
        FPGAs/ASICs aren't worth it unless you care about watt/tok/s
    • iagiagiag 55 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 1 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.
  • kojocona 8 minutes ago
    Something you've actually learned about running models on your own hardware or building with AI tools.
  • prmph 1 hour ago
    OT, but nice font. I think it is called Rethink Sans.
  • tompagenet2 1 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 1 hour ago
      It's massively smaller and therefore faster.
      • tompagenet2 1 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 1 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 1 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 1 hour ago
        I'm not following. They are both 27B models.
        • trvz 1 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 1 hour ago
          the parameter itself is smaller. ternary means 1.58 bits per param usually and here it's a bit more.
    • mlmonkey 1 hour 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 1 hour 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 1 hour ago
      the full precision qwen 3.8 27b model has a size of more than 50GB while bonsai is less than 6.
  • vegnus 1 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 1 hour 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 1 hour 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 1 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 1 hour 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 1 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 51 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 1 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.

  • PaulKeeble 1 hour 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 54 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.
  • dlcarrier 2 minutes 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 1 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 1 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.
  • dpflan 44 minutes ago
    What is the business model for this company?
  • NoidFonsense 1 hour ago
    Holy cow, that is a really good quant. I assume they achieve this through some type of quanitzation-aware retraining?
  • DeathArrow 1 hour ago
    I like Inkling 2 Mini more.
    • bensyverson 1 hour ago
      Isn't that much bigger?
      • liuliu 1 hour ago
        MoE, thus, you can run it fine with ~8GiB runtime VRAM without any additional quantization (native NVFP4 / MXFP8 weights).
  • xianshou 1 hour ago
    Would be impressed by the metrics if I weren't so distracted by that Anthropic-lite beige site design.
  • StevenNunez 1 hour ago
    I really want to like this family of models but I'm always disappointed and feel gaslit by the developers.
  • pepethegreatnes 11 minutes ago
    [dead]