An unofficial, read-only Hacker News reader.

Ternary Bonsai 2.5 27B (opens external site)

542 points by b0m 4 days ago | prismml.com | 178 comments on HN

View full thread · View on Hacker News

Comment thread (41)

  1. 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
    Replies (7)
    1. 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?
      Replies (5)
      1. 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.
        Replies (2)
        1. I use my Macbook Air for normal development stuff so the Mac Mini can be a dedicated batch run / local LLM / image generation machine. Lets me max out the RAM utilization.
          Replies (1)
          1. Yeah but you do want to consider that maxing out the RAM utilization on a 24gb Mac means running a quantized 26b model with small context windows.

            I have a 24gb Mac mini and get some fun use out of it for running the Gemma models (E4B can call tools!) locally but that’s really it. Nothing else is very usable.

        2. Exactly. I've no regrets splurging on a 48GB M5 pro. I'm also addicted to the speed from the Splash engine's speculative decoding on Qwen models, 70t/s on Qwen3.8 27b, 200t/s for Qwen3.6 35b-a3b, and can just throw long running background batches at it like photo/video annotation, while still using it normally.
          Replies (3)
          1. This is great. I want a Mac Mini or something !laptop so I can run a local LLM without worrying about my co puter catching fire
            Replies (1)
            1. Running an LLM on a MacBook Pro M5 Pro might not ignite, but it will try and take off.
          2. Thank you for mentioning the Splash engine, which I was unaware of.

            With the simonw prompt "Generate an SVG of a pelican riding a bicycle", on an M4 Pro Mac mini 64GB, Splash engine, I'm getting 48.21 tok/s--which is around double what I get with other engines!

          3. What kind of context windows are you seeing 70 tk/s at? I'm considering picking a similar config up for Black Friday.
            Replies (1)
            1. I've been running batches of roughly 2 concurrent requests at 20-50k input tokens, with context window pretty inefficiently set at 150k tokens. If this were sequential it's probably closer to 50 t/s for the 27b Splash q4 variant and 150 t/s for the 35b-a3b. M5 Pro 20-core GPU Macbook Pro.

              As an aside, it does get hot to ~80C if left to its own cooling, and while supposedly OK, I fully intend to use this computer for the next decade, so I ended up getting one of those laptop cooler bases which can keep the CPU/GPUs at 60C and the battery at room temperature.

              Continue this thread (1 replies) →

      2. 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.
      3. 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.

        Replies (1)
        1. > finally for small LLMs/image generation

          As somebody who does a fair amount of gen AI stuff on a headless linux machine with a dedicated nVidia RTX 24GB card, I'm always interested to hear what kind of performance people are getting out of unified-memory Mac systems outside of bog LLM work.

          How is it working out for you? What kind of generation times are you seeing with image models like Flux2, Qwen Image 2.1, or Krea2 at 1 MP?

          Is video gen using something like LTX 2 or Minimax H3 feasible on that machine?

          Replies (1)
          1. I just got the machine yesterday so not a ton of experience. MOSS-Image was generating images with 30 passes at 1 megapixel in somewhere between 2-3 minutes.
            Replies (1)
            1. Very cool, that's not bad. Just for reference, Moss at 1MP with 30 steps (int8 convrot) finishes in about 8 seconds on an RTX 4090. But honestly, a couple of minutes is not terrible especially considering that you can just run it in a batch and forget it, then come back and curate the final results.

              Also, look into the FP8 custom node package (assuming you're using ComfyUI). I think it adds a ton of nice acceleration paths specifically for the M5.

              https://github.com/pawel-mazurkiewicz/ComfyUI-AppleSilicon-F...

      4. 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.
      5. 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.
    2. 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
    3. It is about this fast (much slower prefill I guess) on the M1 Max.
      Replies (2)
      1. same experience...m1max, 64gb
      2. Yeah that's what I am getting too. I have found hard to beat getting ~25 tok/s with qwen 27b @q8 + mtp, because even if you get a few tokens more it's not worth the drop in quality. Even q4 does not really get much faster.
        Replies (1)
        1. FWIW I disagree on that point and stick at Q4 simply because I think the gains above that are quite painful and I want a mix of being able to afford long context and also having quite high interactive speed.

          (Plus the machine is doing more for me than running the LLM; I think if the Mac in question was a Studio and only an LLM server I would push it a whole lot further.)

          Have you investigated the M1 port of Splash?

    4. And one game it came up with on its own in 18 minutes:

      https://claude.ai/artifact/FQxdHAzST4VPC26GCeCFiU

      Pretty fun. Generated about 24k tokens.

      Replies (1)
      1. 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?

        https://en.wikipedia.org/wiki/Geometry_Dash

        Replies (1)
        1. I had Claude prompt the local LLM and put it up in a Claude artifact. Seemed like the easiest way to get it hosted (other option would be GitHub pages or one of my personal sites, but this was just a fun experiment).
          Replies (2)
          1. Ah okay that makes sense. I guess there's really not an equivalent of something really low-friction like Imgur but for little HTML5 games like this.

            And since you already have an Anthropic sub you can probably just have it handle everything through the agentic harness.

            Replies (4)
            1. itch.io is a free html5/everything-else game host.

              I guess it's not no-login like imgur, pretty close though.

            2. There's always https://neocities.org

              Antigravity is happy to upload via the cli tools.

              Continue this thread (1 replies) →

            3. > I guess there's really not an equivalent of something really low-friction like Imgur but for little HTML5 games like this.

              Getting a DO droplet, throwing Caddy on it, setting up unattended upgrades takes like 10 minutes once you've done it once or twice. Add in DNS and registering a domain, do that once takes 10 minutes, then adding new records takes 30 seconds.

              Create your own bash alias that can setup new projects for you, now you can deploy new projects in a few seconds. Invest in your tooling, it pays of long-term. Especially since centralized services eventually do disappear.

              Continue this thread (2 replies) →

          2. GH pages would be my goto, but curious how do you like Claude artifact for hosting?
    5. 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?)
      Replies (1)
      1. They added support in main branch + llama-app has support too
    6. The last time I tried a bonsai model, it was slower than comparable models, but maybe I did something wrong. Is there any trick to running this one one GPU or CPU, or is it just using their llama.cpp fork?
    7. Are you running this on a standard llama.cpp build?