Not every AI call needs to cross the internet. Increasingly, none of them have to.
Why edge AI matters
The cloud-first era of AI is getting a counterbalance. Running models directly on phones, laptops, and embedded devices solves four problems at once.
The first is latency. A round trip to a cloud API takes 200–2000ms depending on the model and load. On-device inference takes 10–100ms. For real-time work — live translation, camera processing, keyboard prediction — that gap is the difference between something that feels alive and something that feels broken.
The second is privacy. When data never leaves the device, entire categories of regulatory and trust concerns disappear. Health data stays on the phone. Legal documents stay on the laptop. No data processing agreements, no breach risk through a third-party API.
The third is offline capability. Cloud AI just stops working without connectivity. On-device AI keeps running on airplanes, in basements, in rural areas with patchy signal. For global deployment, that's a hard requirement, not a nice-to-have.
The fourth is cost. API calls add up fast. A consumer app making 100 LLM calls per user per day across millions of users is writing checks that don't scale. On-device inference has zero marginal cost once the model is deployed.
The hardware enablers
On-device AI became viable because of dedicated silicon. Modern chips include Neural Processing Units, NPUs, which are specialized accelerators built for the matrix multiplications that dominate neural network inference.
The main players today: Apple Neural Engine in M-series and A-series chips, with a 16-core NPU doing 38+ TOPS in M4. Qualcomm Hexagon NPU in Snapdragon 8 Gen 3+ at around 45 TOPS, powering on-device AI in Android flagships. Intel NPU starting with Meteor Lake, finally bringing AI acceleration to x86 laptops. MediaTek APU in Dimensity 9300+, competitive NPU performance for mid-range Android.
These aren't GPUs repurposed for inference. They're built from the ground up for low-power, high-throughput tensor operations. The power efficiency is the part that matters in practice. Running a model on an NPU uses a fraction of the energy a GPU consumes for the same task, which is why your phone can transcribe a meeting without melting.
Making models fit
A 70B parameter model in FP16 needs about 140GB of memory. No phone is going to have that. Getting models onto devices means aggressive compression.
Quantization reduces numerical precision. FP16 to INT8 halves memory. INT4 cuts it to a quarter. A 7B model in FP16 needs around 14GB; in INT4, it's down to roughly 3.5GB, which is within reach of modern phones. The quality loss is often negligible for common tasks, though reasoning-heavy workloads suffer more visibly.
Pruning strips weights that contribute little to output quality. Structured pruning removes entire neurons or attention heads. Unstructured pruning zeros out individual weights. Combined with quantization, pruning can shrink models 5-10x with minimal quality loss.
Knowledge distillation goes the other direction. Instead of compressing a big model, you train a small one to mimic the large one's behavior. Microsoft's Phi series and Google's Gemini Nano are both products of this approach, and they punch well above their parameter count.
Real deployments
This isn't theoretical. Shipping products run meaningful AI entirely on-device today.
Apple Intelligence runs a ~3B parameter model locally for text summarization, rewriting, and notification prioritization. More complex tasks route to Apple's Private Cloud Compute servers, but the first line of processing is entirely on-chip.
Gemini Nano runs on Pixel phones for call screening summarization, Smart Reply, and Recorder transcription. Google specifically designed this model tier around the Tensor G3/G4 NPU constraints.
Whisper on mobile is another good example. OpenAI's speech recognition model, quantized and optimized, runs real-time transcription on phones through apps like MacWhisper. No network required.
The 1B–7B sweet spot
For edge deployment, model size clusters around 1B to 7B parameters.
Models in the 1–3B range — Gemini Nano, Phi-3-mini, Llama 3.2 1B — fit on phones, run fast, and handle focused tasks well: summarization, classification, simple Q&A. The 3–7B range covers Mistral 7B, Llama 3.1 8B, Qwen2.5-7B. These need laptops or high-end tablets, but they get close to cloud-model quality on many tasks. Below 1B is too limited for general language work, but still useful for narrow classifiers and embedding models.
The gap between a quantized 7B model and a cloud-hosted 70B model is real, but it's been shrinking every year. For maybe 80% of typical use cases — drafting, summarization, extraction, classification — a well-tuned 7B model is enough.
Frameworks and tools
The software stack for on-device inference has matured fast.
- llama.cpp: C/C++ inference engine. Runs GGUF-format models on CPU, Metal, CUDA, and Vulkan. The de facto standard for local LLM inference.
- MLC-LLM: Machine Learning Compilation for LLMs. Optimizes models for specific hardware targets including mobile GPUs and NPUs.
- ONNX Runtime: Microsoft's cross-platform inference engine. Strong quantization support and broad hardware compatibility.
- Core ML: Apple's framework for deploying models on Apple silicon, with tight Neural Engine integration.
- MediaPipe: Google's framework for on-device ML pipelines. Strongest for vision and audio.
# Running a 7B model locally with llama.cpp
./llama-server \
--model models/mistral-7b-instruct-v0.3.Q4_K_M.gguf \
--ctx-size 4096 \
--n-gpu-layers 35 \
--port 8080The privacy differentiator
Privacy isn't just a feature, it's becoming a regulatory requirement. GDPR, HIPAA, and the emerging AI regulations increasingly restrict sending personal data to external services.
On-device AI sidesteps the whole problem. A therapist's note-taking app that transcribes and summarizes sessions locally never transmits patient data. A legal firm's document analysis tool running on local hardware keeps privileged information inside the organization.
For enterprises, the procurement story changes too. "The data never leaves your network" is a fundamentally different conversation than "we encrypt it in transit and store it in our SOC 2 compliant infrastructure."
Where edge AI falls short
It's worth being honest about the gaps.
Complex reasoning is still cloud territory. Multi-step logical reasoning, mathematical problem-solving, and nuanced analysis still need larger models. A 7B model isn't going to match GPT-4 or Claude on hard problems, no matter how clever the prompting is.
Long context is another. On-device models typically support 4K–8K context windows. Processing a 100-page document means chunking strategies that cloud models with 128K+ context can skip entirely.
Multimodal capabilities at the edge are emerging but still limited compared to what's available in the cloud. And training or fine-tuning on-device is impractical for most hardware. The device runs inference. The cloud handles training.
The trajectory, though, is hard to argue with. Each hardware generation brings more TOPS, more memory bandwidth, and more efficient architectures. Models keep getting smaller and smarter through better distillation and training techniques. The set of tasks that genuinely need a cloud round-trip shrinks every year.
Edge AI isn't replacing cloud AI. It's claiming the territory where latency, privacy, and cost make the cloud the wrong answer.
