llmrun
AppleM5Laptop

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

Memory:24 GB UnifiedBandwidth:153.6 GB/sGPU Cores:10 GPU coresCPU Cores:10 CPU coresNeural Engine:38.0 TOPS

24 GB unified − 3.5 GB OS overhead = 20.5 GB available for AI models

How does this device compare with your machine?

48 of 293 featured models run great on MacBook Air 13" M5 (24 GB) · best pick: Qwen3.8 27B at ~6.2 tok/s

largest that fits: 36.0B (Qwen3.6 35B A3B, IQ4_XS) · 70B needs CPU offload or more memory

What LLMs Can MacBook Air 13" M5 (24 GB) Run?

1068 models · 293 run great · 232 run well

Score: model quality, 100 = average model. Fit: how well it runs on this hardware, S best to F won't fit. Ordered by quality, recency and Fit. How ranking works

Showing compatibility for MacBook Air 13" M5 (24 GB)

LLM models compatible with MacBook Air 13" M5 (24 GB) — ranked by quality, recency and Fit
ModelVRAMScoreFit
LightOnOCR 3 4B
4.5B·Q4_K_M·33.7 t/s·262K ctx
3.4 GBA72, Runs well
30.5B·Q4_K_M·34.8 t/s·262K ctx
19.4 GBB50, Decent
Steelman 14B Ada
14B·Q4_K_M·11.6 t/s
12.2 GBB50, Decent
Racka 4B
4.0B·Q4_K_M·40.6 t/s
4.8 GBA75, Runs well
Gemma 3 1B IT
1000M·Q4_K_M·162.9 t/s·33K ctx
2.1 GBS97, Runs great
Pantheon Reasoning 27B
27.8B·Q4_K_M·6.2 t/s·262K ctx
17.9 GBC34, Usable
Darwin 4B Genesis
7.5B·BF16·6.9 t/s·131K ctx
15.8 GBC44, Usable
36M·Q4_K_M·272.5 t/s·0K ctx
0.3 GBS100, Runs great
XiaoHong V1
8.2B·Q4_K_M·19.5 t/s·41K ctx
7.6 GBB60, Decent
1.9B·BF16·25.8 t/s·262K ctx
4.3 GBA66, Runs well
Gpt2 Mini
39M·Q4_K_M·3584.0 t/s·1K ctx
0.0 GBS100, Runs great
Qianfan OCR
4.7B·Q4_K_M·32.3 t/s·33K ctx
4.7 GBA72, Runs well
9.7B·Q4_K_M·16.9 t/s·262K ctx
6.6 GBB56, Decent
7.6B·Q4_K_M·21.5 t/s·131K ctx
5.8 GBB62, Decent
Qwen2.5 1.5B Instruct
1.5B·Q4_K_M·84.0 t/s·33K ctx
1.7 GBS88, Runs great
2.6B·Q4_K_M·62.2 t/s
3.6 GBA84, Runs well

MacBook Air 13" M5 (24 GB) has 20.5 GB of memory for models. In the ranking below, Qwen3.8 27B leads at Q4_K_M: it needs 17.9 GB (87% of that memory) and generates about 6.2 tokens per second. 48 of the 293 featured models earn a Fit S here, meaning they load with room for context and run fast. Decode speed is set mostly by memory bandwidth (154 GB/s), so smaller and mixture-of-experts models are noticeably quicker than dense models of the same quality. 70B-class models need about 46 GB at Q4_K_M, more than the 20.5 GB available, so they require offloading layers to system RAM or a larger-memory setup.

Runs Well

  • Gemma 4 26B A4B IT (25.8B at Q4_K_M, ~31.7 tok/s)
  • GPT OSS 20B (20.9B at Q4_K_M, ~34.6 tok/s)
  • Qwen3.5 4B (4.7B at Q4_K_M, ~33 tok/s)
  • Ling 3.0 Tiny (7.9B at Q4_K_M, ~74.1 tok/s)
  • MiniCPM5 2B (2.5B at Q4_K_M, ~56.6 tok/s)

Challenging

  • Qwen3.8 27B (27.8B at Q4_K_M, ~6.2 tok/s) fits but uses 87% of memory, so keep context short
  • Qwen3.6 35B A3B (36.0B at IQ4_XS, ~31.1 tok/s) fits but uses 97% of memory, so keep context short
  • Qwen3.5 9B (9.7B at Q4_K_M, ~16.9 tok/s) fits but uses 32% of memory, so keep context short
  • 70B-class models need ~46 GB at Q4_K_M, so they need CPU offload or more memory
  • 120B-class models need ~77 GB at Q4_K_M, so they need CPU offload or more memory

MacBook Air 13" M5 (24 GB) Specifications

Brand
Apple
Chip
M5
Type
Laptop
Unified Memory
24 GB
Memory Bandwidth
153.6 GB/s
GPU Cores
10
CPU Cores
10
Neural Engine
38.0 TOPS
Release Date
2026-03-11

Get Started

Ollama (Recommended)

Runs Qwen3.8 27B on Q4_K_M; this is our top choice here.

$curl -fsSL https://ollama.com/install.sh | sh
$ollama run hf.co/unsloth/Qwen3.8-27B-GGUF:Q4_K_M

LM Studio

LM Studio

Download LM Studio, search for "Qwen3.8 27B", and run it with one click.

Prompt Processing

Estimated for Qwen3.8 27B, the compute-bound phase that reads your prompt before the first reply token appears.

57.6tok/s prefill

Short chat

8.9 s

512 tok prompt

Long chat

71 s

4,096 tok prompt

Document / codebase

569 s

32,768 tok prompt

Prefill is compute-bound and a different number from the decode tok/s shown elsewhere on this page — how prompt processing works →

Performance figures are estimates calibrated as of 2026-09-21 — see calibration basis →

What to do next with MacBook Air 13" M5 (24 GB)

Which model to run first, a faster option with the same memory, and what more memory unlocks. Computed from the rankings and specs above.

Frequently Asked Questions

Can MacBook Air 13" M5 (24 GB) run Qwen3.8 27B?

Yes. The MacBook Air 13" M5 (24 GB) with 24 GB unified memory can run Qwen3.8 27B (Q4_K_M, 17.9 GB, 87% of memory). It is also the table's best pick, at ~6.2 tok/s. 48 of the 293 featured models get a Fit of S (runs great) here. The largest featured model that fits at Q4 or better is Qwen3.6 35B A3B (36.0B at IQ4_XS). 70B-class models need around 46 GB at Q4_K_M, meaning they need CPU offloading or extra memory beyond what's available in 20.5 GB. Check the compatibility table above for the full list with Fit, VRAM usage and estimated speed. Models are checked against the 20.5 GB available to AI (that is, the 24 GB of RAM minus roughly 3.5 GB for macOS), while Apple Silicon's unified memory allows the GPU to draw from that same pool without copying data.

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

The MacBook Air 13" M5 (24 GB) has 24 GB unified memory. After macOS reserves ~3.5 GB for the operating system, approximately 20.5 GB is available for AI models. Model rankings here use that 20.5 GB limit instead of the total 24 GB. Unlike discrete GPUs where VRAM is separate from system RAM, a unified-memory device shares one memory pool between the CPU and GPU — this means no data copying overhead, but you share memory with macOS and open apps.

Is MacBook Air 13" M5 (24 GB) good for AI?

With 24 GB unified memory and 153.6 GB/s bandwidth, the MacBook Air 13" M5 (24 GB) is solid for running local AI models. Models that run well include Gemma 4 26B A4B IT (25.8B at Q4_K_M, ~31.7 tok/s); GPT OSS 20B (20.9B at Q4_K_M, ~34.6 tok/s); Qwen3.5 4B (4.7B at Q4_K_M, ~33 tok/s). Mid-size models run at good quality, and Metal acceleration keeps interactive chat smooth.

What's the best model for MacBook Air 13" M5 (24 GB)?

For the MacBook Air 13" M5 (24 GB), the best pick right now is Qwen3.8 27B at ~6.2 tok/s. Also running well: Gemma 4 26B A4B IT (25.8B at Q4_K_M, ~31.7 tok/s); GPT OSS 20B (20.9B at Q4_K_M, ~34.6 tok/s); Qwen3.5 4B (4.7B at Q4_K_M, ~33 tok/s). The best choice depends on your use case: coding assistants benefit from code-tuned models, general chat from instruction-tuned ones. The list is ranked by quality, recency and Fit.

How fast is MacBook Air 13" M5 (24 GB) for AI inference?

With 153.6 GB/s memory bandwidth, the MacBook Air 13" M5 (24 GB) achieves approximately 24 tok/s on a 7B model at Q4_K_M — that's functional for interactive use. A 14B model runs at ~12 tok/s. In the ranking, the top pick Qwen3.8 27B runs at ~6.2 tok/s. Apple Silicon achieves high efficiency (~70%) thanks to unified memory — there's no PCIe bottleneck between CPU and GPU.

= (153.6 GB/s ÷ model GB) × efficiency

Apple Silicon achieves ~70% bandwidth efficiency thanks to and Metal acceleration.

Estimated speed on MacBook Air 13" M5 (24 GB)

~6 tok/s
~32 tok/s
~31 tok/s
~17 tok/s

Real-world results typically within ±20%.

Learn more about tok/s estimation →

Can I run AI offline on MacBook Air 13" M5 (24 GB)?

Yes — once you download a model, it runs entirely on the MacBook Air 13" M5 (24 GB) without internet. Applications like Ollama and LM Studio make it straightforward to download, manage, and run models locally. All your conversations stay private on your device with zero data sent to external servers. This is one of the key advantages of local AI: complete privacy, no API costs, and no rate limits.

Will MacBook Air 13" M5 (24 GB) throttle or drain the battery running LLMs?

Yes, sustained LLM inference is one of the most thermally demanding workloads a laptop can face — more continuous than most gaming sessions. Plugged in, the MacBook Air 13" M5 (24 GB) will run at full performance but may still throttle if the chassis thermal limit is hit under prolonged load; expect the fans to spin up noticeably. On battery, macOS and the firmware typically cap power draw to protect the cells, which can reduce inference speed by 20–40%. For long sessions (generating documents, batch processing), keep the laptop plugged in, on a hard flat surface with the vents unobstructed, and consider a 7B model at Q4_K_M rather than a larger model — smaller models generate less heat while still giving useful results. Real-world speed on battery is typically within ±20% of the on-charger figure for short bursts, but diverges more over 10+ minutes of continuous generation.