LimitDigest
Home / Models / Local finder / MacBook Air M5 24GB

Best local LLMs for MacBook Air M5 24GB

With Apple M5, 24GB the strongest open models that run well are gpt-oss-20b, Gemma 4 E4B. Speeds are estimates based on memory bandwidth.

Your machine

Showing models for Apple M5, 24GB

Chat and writing

  1. 1gpt-oss-20bOpenAI · 21B · Apache 2.0~42 tok/sFastQ4 · 13 GB download · Mixture of experts: 21B total, 3.6B active per token, so it runs fast for its size. · Official page
  2. 2Gemma 4 12BGoogle · 11.95B · Apache 2.0~13 tok/sUsableQ4 · 7 GB download · Official page
  3. 3Ministral 3 14BMistral · 14B · Apache 2.0~11 tok/sSlowQ4 · 8 GB download · Official page
  4. 4Phi-4 14BMicrosoft · 14.7B · MIT~10 tok/sSlowQ4 · 9 GB download · Official page

Coding

  1. 1gpt-oss-20bOpenAI · 21B · Apache 2.0~42 tok/sFastQ4 · 13 GB download · Mixture of experts: 21B total, 3.6B active per token, so it runs fast for its size. · Official page

Small and fast

  1. 1Gemma 4 E4BGoogle · 8B · Apache 2.0~19 tok/sUsableQ8 · 8 GB download · Mixture of experts: 8B total, 4.5B active per token, so it runs fast for its size. · Official page
  2. 2Ministral 3 8BMistral · 8B · Apache 2.0~16 tok/sUsableQ5 · 6 GB download · Official page
  3. 3Qwen3 8BQwen · 8.2B · Apache 2.0~16 tok/sUsableQ5 · 6 GB download · Official page
  4. 4Qwen3 4BQwen · 4B · Apache 2.0~22 tok/sUsableQ8 · 4 GB download · Official page

Quick facts

How much memory can a MacBook Air M5 24GB use for AI models?

About 16 GB of its 24 GB, after leaving room for the system. That is our estimate of what is usable for model weights.

What is the largest model a MacBook Air M5 24GB can run?

In our list, gpt-oss-20b at Q4 (about 13 GB) fits. Big models may run slowly, so check the speed estimate.

What is the fastest good model on a MacBook Air M5 24GB?

gpt-oss-20b at Q4 runs at an estimated 42 tokens per second, based on memory bandwidth.

On a 32GB Mac? See the best local LLM for a 32GB Mac.

Other setups: Mac mini M4 Pro 64GB MacBook Air M4 16GB MacBook Pro M4 Max 128GB RTX 4090 (24GB) RTX 3060 12GB RTX 5090 (32GB) MacBook Pro M4 Pro 24GB MacBook Pro M4 Pro 48GB Mac Studio M4 Max 64GB RTX 4070 (12GB) RTX 4080 (16GB) PC with 32GB RAM (no GPU) 8GB VRAM 16GB VRAM 16GB RAM PC MacBook Pro M5 Pro 48GB MacBook Pro M5 Max 128GB

VRAM requirements by model

How the estimates work

Fit: a model fits if its download size plus about 1.5 GB for context fits in usable memory. On a Mac that is about two thirds of RAM (three quarters from 32GB up), since macOS keeps some for itself. On a PC it is your GPU's VRAM minus 1 GB, or 60% of RAM when running on the CPU only.

Quant: we pick the highest quality that fits: Q8 (about 8.5 bits per weight), then Q5 (5.7), then Q4 (4.8). Q4 and Q5 keep most of the quality at a fraction of the size.

Speed (estimate): generating text is limited by memory bandwidth, because every token reads the active weights once. We use bandwidth x 0.6 / bytes per token. Mixture-of-experts models only read their active experts, so they run much faster than their total size suggests. Real speed varies with the app, context length and settings, so treat it as a rough guide.

How to run a local model

Ollama: install from ollama.com, then find the model in the Ollama library and run it with one command. LM Studio: install from lmstudio.ai, search the model name, and pick the quant shown here. On a Mac, LM Studio's MLX builds are usually fastest.

FAQ

What is the best local LLM for a Mac?

It depends on RAM. With 16GB, small models like Gemma 4 E4B or Qwen3 8B run well. With 64GB, mixture-of-experts models like gpt-oss-120b don't fit, but Gemma 4 31B and Qwen3.6 27B do, and 128GB opens up gpt-oss-120b and Mistral Small 4. Pick your Mac above for the exact list.

How much RAM do I need to run a local AI model?

About 0.6 GB per billion parameters at Q4, plus a little for context. An 8B model needs about 6 GB, a 30B model about 20 GB, and a 70B model about 44 GB.

Can I detect my specs automatically?

Partly. Browsers share your platform, CPU core count, a rough RAM hint and sometimes the GPU maker. They hide the exact chip and memory size, so the finder makes a best guess and you confirm it with a tap.

Is a local model cheaper than an API?

If you already own the hardware, local models cost only electricity. For top quality, hosted models still lead; compare them on our AI API prices page.