Local models on a 128 GB Mac Studio (M5 Max)
Measured with llama.cpp's llama-bench (flash attention on) and DwarfStar. Sizes in GiB (230 bytes). Hover any mark for details.
How big, how fast, and where it runs
Generation speed at an empty context against model size. The dashed lines are the two walls: what Metal lets the GPU use (107.5 GiB) and physical RAM (128 GiB).
Table
Speed as the context fills
llama-bench at 0, 8K, 32K and 64K tokens already in context. Prompt speed is on a log scale: it spans 12 to 3,500 tokens/s.
Table
Where the bytes live
Each bar is one way of running a model. Blue is GPU memory (weights, KV cache, compute buffer), orange is experts the CPU computes from ordinary memory, green stays on the SSD. Only the blue part has to fit under Metal's limit.
Table
Inkling 2 Small, layer by layer
48 layers in blocks of six: five that look back only 1,024 tokens and one that sees the whole context. --n-cpu-moe N moves the experts of the first N layers to the CPU; attention stays on the GPU.