Qwen 2.5 Coder on the M5 Max 48GB
On the M5 Max 48GB, Qwen 2.5 Coder 7B at 4-bit generates a median 113.9 tokens per second, from 2 plain runs (context not stated).
Speed by size and quant on the M5 Max 48GB
Plain runs only: one card, one request, no speculative decoding, the whole model in memory. Each row is one model size at one bit class. Context length and build still differ between runs, and each row shows its own.
| Qwen 2.5 Coder | Generation | By engine |
|---|---|---|
| 7B 4-bit | 113.9 t/smedian of 2, context not statedprompt 3132.1 t/s (median of 2) | llama.cpp 106.0 t/s (1) MLX 121.8 t/s (1) |
| 14B 4-bit | 58.4 t/smedian of 2, context not statedprompt 1632.7 t/s (median of 2) | llama.cpp 56.0 t/s (1) MLX 60.8 t/s (1) |
| 32B 4-bit | 27.4 t/smedian of 2, context not statedprompt 709.7 t/s (median of 2) | llama.cpp 26.3 t/s (1) MLX 28.4 t/s (1) |
Memory Qwen 2.5 Coder needs on the M5 Max 48GB
The M5 Max 48GB gives a model 36 GB. Each figure is the memory a size reported on this card needs at one quant with an 8k context, cache and buffers included, from the VRAM calculator. It is for one card holding the whole model. Qwen 2.5 Coder memory on every card.
| Size | Q8_0 | Q6_K | Q5_K_M | Q4_K_M | Q3_K_M |
|---|---|---|---|---|---|
| 7B | 10.0 GBfits | 8.7 GBfits | 7.8 GBfits | 6.9 GBfits | 6.0 GBfits |
| 14B | 17 GBfits | 14 GBfits | 13 GBfits | 11 GBfits | 9.2 GBfits |
| 32B | 36 GBtoo big | 30 GBfits | 26 GBfits | 22 GBfits | 18 GBfits |
6 reports of Qwen 2.5 Coder on the M5 Max 48GB
Newest first. A run on several cards, with speculative decoding, with part of the model in system RAM or with batched requests says so, since each describes a different setup. Prompt processing is how fast the input is read, not how long you wait for the first word. How to measure time to first token.
- 7B · Q4_K_M · llama.cpp106.0 t/s
- 32B · Q4_K_M · llama.cpp26.3 t/s
- 14B · Q4_K_M · llama.cpp56.0 t/s
- 7B · 4-bit · MLX121.8 t/s
- 32B · 4-bit · MLX28.4 t/s
- 14B · 4-bit · MLX60.8 t/s
Frequently asked
How fast is Qwen 2.5 Coder on the M5 Max 48GB?
On the M5 Max 48GB, Qwen 2.5 Coder 7B at 4-bit generates a median 113.9 tokens per second, from 2 plain runs (context not stated).
Does Qwen 2.5 Coder fit on the M5 Max 48GB?
The M5 Max 48GB gives a model 36 GB. With an 8k context, the 7B model fits at Q8_0 (about 10.0 GB), the 14B model fits at Q8_0 (about 17 GB), the 32B model fits at Q6_K (about 30 GB). The figures are the VRAM calculator's, for one card with the whole model in its memory.
Which engine runs Qwen 2.5 Coder fastest on the M5 Max 48GB?
Plain runs of the 7B model at 4-bit on this card: llama.cpp 106.0 t/s (1 run), MLX 121.8 t/s (1 run). Context length and engine build differ between the runs, so treat it as a lead, not a benchmark.