Local AI use cases with Phi

Phi is Microsoft's family of small language models. Models like Phi-3 mini and Phi-4 mini are compact enough for laptops and single-board computers.

2 real examples, each linked to its original source.

Selective MoE offloading in llama.cpp on a 16 GB laptop GPU: faster for some models, much slower for others

Jessica Doering benchmarked five Mixture-of-Experts models too big for her 16 GB RTX 4090 laptop GPU, comparing llama.cpp's --n-cpu-moe expert offloading against plain layer offloading.

Jessica Doering (DEV Community) · 2026-10-31

Offline LLM on a Raspberry Pi 5 for classification and extraction

Phi-3 mini at Q4_K_M runs at 4-6 tokens per second on an 8 GB Pi 5 with no network at all. Under GDPR, data that never leaves the board isn't transferred anywhere.

Stefano Noferi · 2026-10-18