On my M1 Max MBP when I was testing yesterday, Ollama had the same speed as the Unsloth llama.cpp build, around 18 tokens per second during token generation. Based on 5.4B active parameters at 4 or 8 bits/parameter and 400GB/s memory bandwidth, I'd expect 74 to 148 tokens/second.
The 18 tokens per second number smells suspiciously like the model is being processed as if it were a dense model somehow: 400 GB/s / 22 GB/token ~= 18 tokens/second (the model is ~22GB on disk at Q8).
The 18 tokens per second number smells suspiciously like the model is being processed as if it were a dense model somehow: 400 GB/s / 22 GB/token ~= 18 tokens/second (the model is ~22GB on disk at Q8).