Hacker News new | ask | show | jobs
by meatmanek 9 days ago
I'm getting about 18 on the same hardware using the unsloth build of llama.cpp; I guess I should try upstream now that support is merged.

Theoretically with 400GB/s memory bandwidth and effectively 5.4B active parameters (accounting for the looping), token generation should be closer to 74 tokens/second. 18tps is close to what you'd expect for a dense model this size (22GB for UD-Q8_K_XL). Hopefully over the next few days, someone clever figures out what's going on and optimizes this.

1 comments

> Theoretically with 400GB/s memory bandwidth

Well it would be theoretical, alas — the M1 Max can't actually saturate the bus with the GPU. I have seen varying suggestions that it might in practice be anywhere between 320GB/s and 390GB/s; for the CPU it is much much lower (only 243 GB/s).

I am seeing 16-20 tokens per second generation in Unsloth Desktop. And if they can get to higher speeds it might indeed be interesting.

But where you say:

> and effectively 5.4B active parameters (accounting for the looping)

It says 5.4B "weight activations per token" — but it is a 3.4B-active model, so my interpretation of that is: it's activating a total extent of 5.4B different weights, but is it not activating a different 3.4B subset of this 5.4, three times in succession?

So your calculation should be based on 10.2, perhaps? (Not taking into account that some layers might not loop)

(These are extremely late-night thoughts, I should be in bed and not on HN, so I am probably wrong)

ETA: just found a discussion of this here, relevant to this particular model, that I am going to read tomorrow:

https://www.reddit.com/r/LocalLLaMA/comments/1y1ip5f/discuss...

Looks like from the blurb maybe the number of equivalent activations (for the purposes of working out token generation speeds) is 3.4 + 4.4 + 5.4 = 13.2B, because it adds about 1B on the subsequent loops?