Unofficial Hacker News companion — get notified on comment replies, and more.

Ternary Bonsai 2.5 27B (opens external site)

544 points by b0m 6 days ago | prismml.com | 181 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (3)

  1. 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?

      Replies (1)
      1. I just tried it, I admit I am impressed, 40+ tokens/second with the 27b. Thinking that a year ago or so I ran the same model at 12 tokens/second decode. For a dense models 40+ tokens/s on an m1 sounds crazy to me.

        But again, I see no benefit with q4 vs q8. I assume that is because speculative decoding makes the decoding compute bound from memory-bandwidth bound (because it calculates/checks sequence of tokens at each single pass), and m1s don't seem to optimize for int4 specifically vs int8 if I remember correctly, with really minimal gains from q8->q4 (or even deterioration with some dynamic quantizations, I have observed in the past). So there is no performance benefit to q4, and unless I had other things taking up ram it does not seem to make sense to me to use q4. I use tailscale and work mostly on a macbook air which I can take elsewhere etc, and the m1 max stays at home for llms and playing games. But I can see that if I was working on the same machine I may have considered a leaner model.