by liuliu · 11mo ago · 0 comments
I am asking, however, is whether that will speed up decoding as linearly as it would for prefilling.
In our benchmarks with MLX / mlx-lm it's as much as 3.5x for token generation (decoding) at batch size 1 over 4 machines. In that case you are memory bandwidth bound so sharding the model and KV cache 4-ways means each machine only needs to access 1/4th as much memory.