llmrun

Apple · M4 · Laptop

Best AI Models for MacBook Air 13" M4 (24 GB)

Runs 27–31B models at 5 tok/s; 9B and 14B fit but are slow (13 and 9 tok/s), and 70B doesn't fit in 20.5 GB.

24 GB unified20.5 GB for models120 GB/s9 TFLOPS FP162025
Buyabout $1,399

What LLMs can the MacBook Air 13" M4 run?

#ModelSpeedllmrun ScoreQuant · Memory
1
Q4_K_M · 16.5 GB · 25.8 t/s
25.8 tok/sQ4_K_M · 16.5 GB
2
Qwen3.5 9BAlibaba
Q4_K_M · 6.6 GB · 13.2 t/s
13.2 tok/sQ4_K_M · 6.6 GB
3
Qwen3.5 4BAlibaba
Q4_K_M · 3.4 GB · 25.8 t/s
25.8 tok/sQ4_K_M · 3.4 GB
4
Q4_K_M · 13.1 GB · 28.1 t/s
28.1 tok/sQ4_K_M · 13.1 GB
5
Q4_K_M · 15.0 GB · 38.3 t/s
38.3 tok/sQ4_K_M · 15.0 GB
See all 320 models on the MacBook Air 13" M4 →Bars = traction for models without a Score yet

About the MacBook Air 13" M4 (24 GB)

The MacBook Air 13" M4 is a 24 GB laptop with more memory than speed: it runs 27–31B models at 5 tok/s. Among 24 GB machines, only the M5 Pro, M4 Pro and M5 write faster. macOS keeps about 3.5 GB, leaving 20.5 GB for models. Prompt reading is its weak spot: a 4K-token prompt waits 21 s before the first word on Gemma 4 26B A4B IT. At its $1,399 MSRP it gives 9.4 tok/s per $1,000, 7th of the 8 machines compared here. M4 generation, released 2025; the newer M5 writes 28% faster with 1.9× the compute.

Speed in 24 GB#4120 GB/s
Prompt reading#49 TFLOPS
For models20.5 GBmacOS keeps 3.5 GB
ChipM4released 2025

MacBook Air 13" M4 strengths and weaknesses

Strengths

  • Runs 35B MoE models: Qwen3.6 35B A3B at 25.7 tok/s in 19.8 GB

Weaknesses

  • 70B models don't fit: Llama 3.3 70B Instruct needs 51.3 GB at Q4 vs 20.5 GB usable here
  • Slow on large dense models: Qwen3.8 27B at 4.8 tok/s
  • Slow prompt reading: A 32K-token prompt on Gemma 4 26B A4B IT waits 2.8 min for the first token
  • No CUDA: vLLM, AWQ, GPTQ and FP8 builds don't run; use GGUF or MLX

Memory for models

20.5 GB of 24 GB
9B6.6 GB14B11.9 GB27–31B17.9 GB35B MoE19.8 GB
9B6.6 GB14B11.9 GB35B MoE19.8 GB
For models 20.5 GBmacOS keeps 3.5 GBModel size at Q4

70B models need 51.3 GB at Q4, more than the 20.5 GB available. The 32 GB config fits Qwen3.8 27B →Or rent an H100 (80 GB) from $2.69/hr →

Speed per dollar and per watt

On Qwen3.5 9B (9B params) at Q4_K_M. New means a shop price, either a street quote or the maker's own price; used is compared with used. The last two columns are the speed you get per $1,000 of price and per 100 W of power; higher is better. The MacBook Air 13" M4 has no current new price, so it is shown at its MSRP.

MachineNew pricetok/stok/s per $1,000tok/s per 100 W
about $1,59930.0
18.8
21.4
about $2,49945.1
18.0
31.1
about $1,99930.0
15.0
–
about $2,29933.8
14.7
–
about $99913.2
13.2
–
about $2,49930.0
12.0
–
about $1,39913.2
9.4
–
about $1,83916.9
9.2
–
MachineUsed pricetok/stok/s per $1,000tok/s per 100 W
about $2,00045.1
22.6
31.1
about $2,10933.8
16.0
–

Cost per token: the MacBook Air 13" M4 against 16–64 GB machines and GPUs

On Qwen3.5 9B (9B params, Q4_K_M, 4K context). Speed, cost per token and power per token depend on the model.

≤16 GB24–36 GB48–64 GBthis laptopat MSRP
Cost per 1M output tokenson Qwen3.5 9B · card over 3 years + power
$6.72
Machine, MSRP
$6.72
Power
not published
3-year cost of ownership$1,399
Or rent an RTX 5090 in the cloud$0.46/hr

Renting costs as much as buying after ≈3,000 hours (≈2.1 years at 4 h a day).

Each dot is a machine or GPU; hover or tap it for its numbers, click to open it. Machines without a price for the chosen basis are left out. Machines without a published power figure are left out of Per watt and costed without power. How we calculate cost per token

Similar devices and alternatives

Other memory sizes of the same machine first, then machines and GPUs people weigh against it, each with the one reason it is worth a look. Speeds on Qwen3.5 9B.

MacBook Air 13" M4 tokens per second by model size

Output speed depends on memory bandwidth (120 GB/s). Grey rows need more than the 20.5 GB available.

  1. 9BQwen3.5 9B · Q4_K_M · 6.6 GB
    13.2tok/s
  2. 14BQwen3 14B · Q4_K_M · 11.9 GB slow
    8.8tok/s
  3. 27–31BQwen3.8 27B · Q4_K_M · 17.9 GB slow
    4.8tok/s
  4. 35B MoEQwen3.6 35B A3B · IQ4_XS · 19.8 GB tight · IQ4_XS
    25.7tok/s
  5. 70BLlama 3.3 70B Instruct · not at 4-bit
    needs 51.3 GB
  6. 120B MoEGPT OSS 120B · not at 4-bit
    needs 70.8 GB

Estimated speeds: Q4_K_M, 4K context, one user. How we estimate

Chip generations: writing vs compute

M1 → M5
Writing speed (tok/s)Compute (TFLOPS FP16)
1×2×3×4×M12020M22022M32024M42025M52026M1 · 5.2 TFLOPS FP16M1 · 7.5 tok/s · 68.3 GB/sM2 · 7.2 TFLOPS FP16M2 · 11.0 tok/s · 100 GB/sM3 · 7 TFLOPS FP16M3 · 11.3 tok/s · 102.4 GB/sM4 · 8.6 TFLOPS FP16M4 · 13.2 tok/s · 120 GB/sM5 · 16 TFLOPS FP16M5 · 16.9 tok/s · 153.6 GB/sCompute 3.1×Writing +125%
1×2×3×4×M12020M22022M32024M42025M52026M1 · 5.2 TFLOPS FP16M1 · 7.5 tok/s · 68.3 GB/sM2 · 7.2 TFLOPS FP16M2 · 11.0 tok/s · 100 GB/sM3 · 7 TFLOPS FP16M3 · 11.3 tok/s · 102.4 GB/sM4 · 8.6 TFLOPS FP16M4 · 13.2 tok/s · 120 GB/sM5 · 16 TFLOPS FP16M5 · 16.9 tok/s · 153.6 GB/sCompute 3.1×Writing +125%

Writing speed follows memory bandwidth and barely moved: 7.5 to 16.9 tok/s since the M1. Compute, which sets how fast prompts are read, grew 3.1×. Indexed to the M1; speeds on Qwen3.5 9B, same 16 GB.

All 1125 models on the MacBook Air 13" M4

Featured only

Best quant that fits in 20.5 GB, ordered by llmrun Score. Fit grades how well it runs here, S best. How ranking works

LLM models compatible with MacBook Air 13" M4 (24 GB) — ranked by Score, recency and Fit
ModelVRAMScoreFit
Q4_K_M·33.3 t/s
3.7 GBA72, Runs well
LightOnOCR 2 1B
Q4_K_M·82.4 t/s
1.8 GBS88, Runs great
Q4_K_M·107.7 t/s
1.6 GBS93, Runs great
Llama 3.2 3B Instruct
Q4_K_M·39.6 t/s
4.1 GBA75, Runs well
Qwen3.6 28B
Q4_K_M·30.1 t/s
17.4 GBB64, Decent
Llama 3.1 8B Instruct
Q4_K_M·15.8 t/s
7.9 GBB55, Decent
Phonellm Alpha 1
Q4_K_M·27.4 t/s
19.3 GBB47, Decent
Q4_K_M·29.1 t/s
4.2 GBA70, Runs well
TeleOCR
Q4_K_M·66.1 t/s
2.1 GBS85, Runs great
Q4_K_M·84.8 t/s
2.6 GBS88, Runs great
Q4_K_M·29.0 t/s
4.2 GBA69, Runs well
Q4_K_M·28.1 t/s
13.1 GBA69, Runs well
Qwen2.5 7B Pyuigpt
Q4_K_M·16.8 t/s
5.8 GBB56, Decent
MedPsy 4B
Q4_K_M·26.8 t/s
4.5 GBA68, Runs well
Q4_K_M·5.6 t/s
18.1 GBC32, Usable

MacBook Air 13" M4 specs

Specs

Chip
M4
CPU cores
10
GPU cores
10
Unified memory
24 GB
For models
20.5 GB (macOS keeps 3.5 GB)
Memory bandwidth
120 GB/s
FP16 (dense)
8.6 TFLOPS
Neural Engine
38 TOPS
Released
2025-03-12
MSRP
$1,399

MacBook Air 13" M4 FAQ

Is the MacBook Air 13" M4 (24 GB) worth it for local LLMs in 2026?

At its $1,399 MSRP it gives 9.4 tok/s per $1,000 on Qwen3.5 9B, 7th of the 8 machines compared here. It runs 27–31B models at 5 tok/s; 9B and 14B fit but are slow (13 and 9 tok/s), and 70B doesn't fit in 20.5 GB.

How much memory is available for AI on the MacBook Air 13" M4 (24 GB)?

About 20.5 GB of the 24 GB. macOS keeps roughly 3.5 GB for itself and other apps.

What is the largest model the MacBook Air 13" M4 (24 GB) can run?

Qwen3.6 35B A3B (36.0B) is the largest at 4-bit or better: at IQ4_XS it uses 19.8 GB, 97% of the available memory, and runs at about 25.7 tok/s.

Can the MacBook Air 13" M4 (24 GB) run Gemma 4 26B A4B IT?

Yes. Gemma 4 26B A4B IT fits at Q4_K_M, using 16.5 GB of the 20.5 GB available, and it is the best model that runs well on this machine.

Can the MacBook Air 13" M4 (24 GB) run 70B models?

No. Llama 3.3 70B Instruct needs 51.3 GB at Q4, more than the 20.5 GB available.

How long does the MacBook Air 13" M4 (24 GB) take to read a long prompt?

On Gemma 4 26B A4B IT, about 21 s for a 4K-token prompt and 2.8 min for a 32K-token document before the first word appears.

Is renting a GPU cheaper than buying the MacBook Air 13" M4?

An RTX 5090 (32 GB) rents from $0.46/hr. Renting costs as much as buying after ≈3,000 hours (≈2.1 years at 4 h a day).