Can MacBook Air M5 (16 GB) run GLM-4 9B Chat?

Yes. MacBook Air M5 (16 GB) runs GLM-4 9B Chat at Q6_K with a 16K context, using 9.4 GB of 11.5 GB usable memory at an estimated 13.7–18.5 tok/s. The largest context that still fits at Q6_K is 64K.

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

Open in calculator
Fits comfortablyQ6_K · 16K context
13.7–18.5 tok/s
9.4 GBof 11.5 GB usable memory
82% used
Weights7.7 GBKV cache0.6 GBOverhead1.1 GB
2.1 GB free

Every quantization on Air M5 16GB

Q4_K_M (4-bit)
glm4:9b-chat-q4_K_M
5.8 GB
real file size
7.5 GBFits comfortably64K
17.7–24 tok/s
Calibrated
Q6_K (6-bit)
glm4:9b-chat-q6_K
7.7 GB
real file size
9.4 GBFits comfortably64K
13.7–18.5 tok/s
Calibrated
Q8_0 (8-bit)
glm4:9b-chat-q8_0
9.3 GB
real file size
11.1 GBTight fit16K
10.9–14.7 tok/s
Calibrated
FP16 / BF16 (16-bit)
glm4:9b-chat-fp16
17.5 GB
real file size
19.7 GBToo large—
—

MacBook Air M5 (16 GB) has 11.5 GB usable for models out of 16 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.

GLM-4 9B Chat on Air M5 16GB by runtime

Command
Ollama
Q6_K
glm4:9b-chat-q6_K
7.7 GB
real file size
9.4 GBFits comfortably13.7–18.5 tok/s
LM Studio
Q6_K
7.7 GB
estimate
9.4 GBFits comfortably13.7–18.5 tok/sNot in LM Studio's catalog.
llama.cpp
Q6_K
7.7 GB
estimate
9.4 GBFits comfortably13.7–18.5 tok/sNo Q6_K GGUF of this model found on Hugging Face.
MLX
6-bit
7.3 GB
estimate
9.0 GBFits comfortably12.1–20 tok/sNo 6-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 Air M5 16GB
$1.23

$0.79/mo power + $1,300 hardware over 36 months

Rented cloud GPU
$0.25

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

OpenRouter API
—

Not listed on OpenRouter

There is no API price to compare against. Assumes 75% input and 25% output tokens, one request at a time. Rent on Vast.ai

Questions and answers

Can MacBook Air M5 (16 GB) run GLM-4 9B Chat?

Yes. MacBook Air M5 (16 GB) runs GLM-4 9B Chat at Q6_K with a 16K context, using 9.4 GB of 11.5 GB usable memory at an estimated 13.7–18.5 tok/s. The largest context that still fits at Q6_K is 64K.

How fast is GLM-4 9B Chat on MacBook Air M5 (16 GB)?

About 13.7–18.5 tok/s at Q6_K. Scaled from 2 published llama.cpp measurements on this chip.

How much context can GLM-4 9B Chat use on MacBook Air M5 (16 GB)?

At Q6_K the largest context that fits is 64K tokens. Q4_K_M: 64K, Q8_0: 16K.