Can It Run?
Home โ€บ Qwen2.5 7B โ€บ M2 24GB

Can an M2 24GB Mac run Qwen2.5 7B?

M2 ยท 24 GB unified memory ยท 100 GB/s ยท MacBook Air 15" (M2), Mac mini (M2)

Yes โ€” Qwen2.5 7B runs on an M2 24GB Mac.

At Q4_K_M it needs about 5.8 GiB, leaving 14.6 GiB spare out of the ~20.4 GiB macOS will let you use. Expect roughly 17 tokens/sec โ€” comfortable for interactive chat.

Weights
4.3 GiB
7.62B params @ Q4_K_M
KV cache
0.4 GiB
8K context, FP16
Overhead
1.0 GiB
runtime + activations
Total needed
5.8 GiB
of ~20.4 GiB usable
Est. speed
17 tok/s
100 GB/s bandwidth
Max context
128K tokens
at Q4_K_M

Where the memory goes

Three things occupy memory when a model is loaded: the weights themselves, the KV cache that holds the conversation, and the runtime's own working buffers. Only the first is fixed โ€” the KV cache grows with every token in your context.

QuantisationWeightsTotalTok/sFits?
FP1614.2 GiB16.1 GiB5Yes, comfortably
Q8_07.5 GiB9.2 GiB10Yes, comfortably
Q6_K5.9 GiB7.4 GiB13Yes, comfortably
Q5_K_M5.1 GiB6.5 GiB15Yes, comfortably
Q4_K_M4.3 GiB5.8 GiB17Yes, comfortably
Q3_K_M3.5 GiB4.9 GiB22Yes, comfortably
Q2_K2.7 GiB4.0 GiB28Yes, comfortably

The default. Best quality-per-gigabyte for most people.

How long a context fits

The KV cache is often what breaks a setup that looked fine at load time. Quantising it to 8-bit roughly halves its footprint with little measurable quality cost.

ContextKV cacheTotalFP16 KVQ8 KV
2K0.1 GiB5.2 GiBYes, comfortablyYes, comfortably
4K0.2 GiB5.4 GiBYes, comfortablyYes, comfortably
8K0.4 GiB5.8 GiBYes, comfortablyYes, comfortably
16K0.9 GiB6.5 GiBYes, comfortablyYes, comfortably
32K1.8 GiB8.0 GiBYes, comfortablyYes, comfortably
128K7.0 GiB16.9 GiBYes, comfortablyYes, comfortably

How to run it

Ollama is the shortest path. It picks a quantisation automatically โ€” usually Q4_K_M, which is what the numbers above assume.

brew install ollama
ollama serve &
ollama run qwen2.5:7b

For MLX โ€” Apple's own array framework, typically a little faster than llama.cpp on Apple Silicon:

pip install mlx-lm
mlx_lm.generate --model mlx-community/Qwen2-5-7B-4bit --prompt "Hello"

Macs that run Qwen2.5 7B comfortably

The smallest configuration that handles it is the M1 16GB (MacBook Air (M1)).

MacMemoryBandwidthTok/s
M1 16GB16 GB68 GB/s12
M1 Pro 16GB16 GB200 GB/s34
M2 16GB16 GB100 GB/s17
M4 16GB16 GB120 GB/s21
M3 Pro 18GB18 GB150 GB/s26
M2 24GB24 GB100 GB/s17
M4 24GB24 GB120 GB/s21
M4 Pro 24GB24 GB273 GB/s47
M1 Max 32GB32 GB400 GB/s69
M2 Max 32GB32 GB400 GB/s69
M4 32GB32 GB120 GB/s21
M3 Max 36GB36 GB300 GB/s51

Common questions

Can an M2 24GB Mac run Qwen2.5 7B?
Yes. At Q4_K_M it needs about 5.8 GiB of the roughly 20.4 GiB available, generating around 17 tokens per second.
How fast is Qwen2.5 7B on an Mac?
Around 17 tokens per second. Token generation on Apple Silicon is limited by memory bandwidth, and this machine has 100 GB/s.
How much memory does Qwen2.5 7B need?
4.3 GiB for the weights at Q4_K_M, plus 0.4 GiB for an 8K-token KV cache and about 1.0 GiB of runtime overhead โ€” 5.8 GiB in total.