Can the Apple M4 (16GB) run Phi-3.5 Mini 3.8B?

Yes
QuantQ8_0Near-lossless
Memory7.9 GBof 10.7 GB
Speed~18tokens/s

Yes. The Apple M4 (16GB) can run Phi-3.5 Mini 3.8B fully in unified memory at Q8_0 (near-lossless), using about 7.9 GB of the 10.7 GB available, at roughly 18 tokens/second.

Try other context lengths in the calculator →

Memory needed by quantization

At 8,192 tokens of context. macOS lets the GPU use about 10.7 GB of the 16 GB unified memory by default.

QuantQualityMemoryFits?Speed
FP16Full quality11.5 GBToo big—
Q8_0Near-lossless7.9 GBFits~18 tok/s
Q6_KExcellent7 GBFits~23 tok/s
Q5_K_MVery good6.5 GBFits~27 tok/s
Q4_K_MGood, most popular6.1 GBFits~31 tok/s
Q3_K_MNoticeably degraded5.7 GBFits~39 tok/s
Q2_KHeavily degraded5.3 GBFits~50 tok/s

How to run Phi-3.5 Mini 3.8B on the Apple M4 (16GB)

With Ollama installed, one command downloads and starts it:

ollama run phi3.5:3.8b

Ollama's default download is Q4_K_M (about 6.1 GB here). You have room for Q8_0, which is near-lossless: pick that GGUF in LM Studio or from Hugging Face.

GPUs that run Phi-3.5 Mini 3.8B comfortably

Models that run well on the Apple M4 (16GB)

Run it in the cloud

Don't want to buy hardware? Run Phi-3.5 Mini 3.8B on a rented GPU today.

Rent a cloud GPU by the hour. No upfront cost, cancel any time.