The Constraints of the Edge

A phone is not a small server — it's a fundamentally different environment with four hard limits a data center never imposes: a tight memory budget, modest and heterogeneous compute, a battery that your model drains, and a thermal ceiling that throttles you when you push it. Every on-device AI decision is a negotiation with these four.

The previous post made the case for on-device AI. This one is the reality check: why it’s hard. Running a model on a phone means operating inside constraints that simply don’t exist on the cloud GPU it was designed for. Understanding these four constraints — memory, compute, battery, and thermal — is what lets you choose a model, quantization level, and runtime that actually work on real devices instead of only in the demo on your high-end phone.

Memory: the first and hardest wall

The tightest constraint is RAM. A cloud server has tens or hundreds of gigabytes; a phone has a handful, and your app gets only a slice of it — the OS, the system, and every other app are competing for the same pool, and mobile operating systems will kill your app without ceremony if it uses too much.

This has direct consequences for what model you can run:

Memory is why quantization is mandatory on-device (the next post): it’s the primary lever for making a model fit at all. The practical rule is to pick the largest model whose quantized weights plus a reasonable KV cache fit comfortably within the app’s realistic memory slice on your lowest-end target device — then test that it doesn’t get killed under real conditions.

Compute: modest and heterogeneous

A phone’s processors are far less powerful than a data-center GPU, and — unlike the cloud’s uniform hardware — wildly heterogeneous across devices. Your app runs on last year’s flagship and a three-year-old budget phone, with completely different performance. This shapes on-device inference in two ways.

First, which processor runs the model matters, and phones have several:

A good on-device runtime abstracts this, using the best available accelerator and falling back gracefully — but you must expect a spread of performance and design for the slow end.

Second, generation speed will be modest compared to the cloud. On-device token generation is measured in a handful to some tens of tokens per second depending on model and hardware — usable for many features, but slow enough that you design the UX around it (stream tokens, keep outputs concise, avoid making users wait on long generations). Don’t assume cloud-like speed; design for what a mid-range phone actually delivers.

Battery: your model spends the user’s power

On a server, energy is the operator’s cost. On a phone, energy is the user’s battery, and a feature that drains it fast will be uninstalled no matter how clever it is. LLM inference is computationally intensive and therefore power-hungry — sustained generation, especially on the GPU/NPU, measurably consumes battery.

The design implications:

Battery is easy to forget in development (your test phone is plugged in) and impossible for users to forgive. Measure energy impact on a real device on battery, under realistic use.

Thermal: the ceiling that throttles you

The subtlest constraint is heat. Sustained heavy computation makes a phone hot, and to protect itself the device thermally throttles — deliberately slowing its processors to cool down. This creates a failure mode absent from benchmarks:

The lesson is to test sustained, repeated inference, not just a cold-start single run, and to keep workloads short and spaced enough that the device doesn’t cook itself into throttling. Thermal is why the honest performance number is “tokens per second during extended real use,” not “peak tokens per second on the first try.”

Designing within the four constraints

These constraints interlock, and the good news is that the same moves help all of them:

The edge is a harder environment than the cloud, but a predictable one: memory, compute, battery, and thermal are the whole story. Design against all four — on real, low-end devices — and on-device AI is entirely practical. The next post covers the tool that makes fitting within these limits possible: quantization for the edge.

Key takeaways

Further reading

Sources & References