Ternary Bonsai 2.5 27B

(prismml.com)

141 points | by b0m 1 hour ago

14 comments

  • ariwilson 5 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
  • nik_s 46 minutes 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 30 minutes 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 3 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.

      • UncleOxidant 18 minutes 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 11 minutes ago
          I was sort of joking.

          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.

          Perhaps enough that they have to reprioritise what they train?

      • throwup238 25 minutes ago
        Your neighbor’s cat is open weight?
        • margalabargala 15 minutes ago
          Sure, it's 9.7 pounds. Happy to share that info under a permissive license.
        • dofm 11 minutes ago
          How dare you, he's just big-boned.
      • dimator 20 minutes 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 minute 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 15 minutes 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 42 minutes ago
      I will gladly accept more (benchmaxxed) options on pareto frontier of size v generality.
  • PaulKeeble 6 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.

  • Lramseyer 26 minutes 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 23 minutes 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.

    • dotancohen 18 minutes 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 39 minutes 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)?
    • mlmonkey 7 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 2 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.

    • trvz 36 minutes ago
      It's massively smaller and therefore faster.
      • tompagenet2 34 minutes 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 29 minutes 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 26 minutes 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 27 minutes ago
        I'm not following. They are both 27B models.
        • trvz 23 minutes 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 25 minutes ago
          the parameter itself is smaller. ternary means 1.58 bits per param usually and here it's a bit more.
    • mahdi7d1 35 minutes ago
      the full precision qwen 3.8 27b model has a size of more than 50GB while bonsai is less than 6.
  • prmph 34 minutes ago
    OT, but nice font. I think it is called Rethink Sans.
  • vegnus 46 minutes 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
    • woopsn 8 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 42 minutes 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 12 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 39 minutes 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...

    • nl 27 minutes 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 34 minutes 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 20 minutes 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 45 minutes ago
    Holy cow, that is a really good quant. I assume they achieve this through some type of quanitzation-aware retraining?
  • xianshou 42 minutes ago
    Would be impressed by the metrics if I weren't so distracted by that Anthropic-lite beige site design.
  • DeathArrow 43 minutes ago
    I like Inkling 2 Mini more.
    • bensyverson 33 minutes ago
      Isn't that much bigger?
      • liuliu 28 minutes ago
        MoE, thus, you can run it fine with ~8GiB runtime VRAM without any additional quantization (native NVFP4 / MXFP8 weights).
  • StevenNunez 46 minutes ago
    I really want to like this family of models but I'm always disappointed and feel gaslit by the developers.