Can MacBook Air M2 (24 GB) run Granite 4.2 30B?

Only with tuning. At Q4_K_M Granite 4.2 30B needs 22.0 GB, more than the 18.0 GB macOS gives the GPU by default on MacBook Air M2 (24 GB). It loads after raising the memory limit, but expect swapping and about 1.5–3.5 tok/s.

Asking through an AI agent? Point it at llms.txt or the JSON API.

Open in calculator
Over GPU memory limitQ4_K_M · 16K context
1.5–3.5 tok/s
22.0 GBof 18.0 GB usable memory
122% used
Weights16.5 GBKV cache4.0 GBOverhead1.5 GB
+4.0 GB over limit

Every quantization on M2 24GB

Q4_K_M (4-bit)
granite4.2:30b
16.5 GB
real file size
22.0 GBPartial offload—
1.5–3.5 tok/s
Estimate
Q6_K (6-bit)
granite4.2:30b-q6_K
22.4 GB
real file size
28.1 GBToo large—
—
Q8_0 (8-bit)
granite4.2:30b-q8_0
29.0 GB
real file size
35.0 GBToo large—
—
FP16 / BF16 (16-bit)
granite4.2:30b-bf16
41.8 GB
real file size
48.4 GBToo large—
—

MacBook Air M2 (24 GB) has 18.0 GB usable for models out of 24 GB of unified memory. Max context is the longest window that still loads without spilling out of that memory. The label under each speed says whether it was measured, scaled from measurements on this hardware, or modelled.

Granite 4.2 30B on M2 24GB by runtime

Command
Ollama
Q4_K_M
granite4.2:30b
16.5 GB
real file size
22.0 GBPartial offload1.5–3.5 tok/s
LM Studio
Q4_K_M
lmstudio-community/granite-4.2-30b-GGUF
16.5 GB
real file size
22.0 GBPartial offload1.5–3.5 tok/sNot in LM Studio's catalog. Search for lmstudio-community/granite-4.2-30b-GGUF in the app's Discover tab.
llama.cpp
Q4_K_M
lmstudio-community/granite-4.2-30b-GGUF
16.5 GB
real file size
22.0 GBPartial offload1.5–3.5 tok/s
MLX
4-bit
15.8 GB
estimate
21.3 GBPartial offload1.6–3.6 tok/sNo 4-bit MLX build of this model on mlx-community. Convert one with mlx_lm.convert.

Each runtime loads its own build, so sizes differ. Ollama, LM Studio and llama.cpp use GGUF files, MLX its own format. Numbers above this table are for Ollama.

Cost per 1M tokens at 1M tokens/day

Local on M2 24GB
—

Does not fit

Rented cloud GPU
$0.50

1x RTX 3090 (24 GB) on Vast.ai at $0.18/hr

OpenRouter API
—

Not listed on OpenRouter

Local cost is not shown because the model does not fit. Assumes 75% input and 25% output tokens, one request at a time. Rent on Vast.ai

Questions and answers

Can MacBook Air M2 (24 GB) run Granite 4.2 30B?

Only with tuning. At Q4_K_M Granite 4.2 30B needs 22.0 GB, more than the 18.0 GB macOS gives the GPU by default on MacBook Air M2 (24 GB). It loads after raising the memory limit, but expect swapping and about 1.5–3.5 tok/s.

How fast is Granite 4.2 30B on MacBook Air M2 (24 GB)?

It does not run at a usable speed: Granite 4.2 30B does not fit into the memory of MacBook Air M2 (24 GB).

How much context can Granite 4.2 30B use on MacBook Air M2 (24 GB)?

None of the standard quantizations fit MacBook Air M2 (24 GB), so there is no usable context length.