On-Device LLM
An on-device LLM brings a conversational language model directly onto a phone, laptop, tablet, or local embedded computer instead of sending every prompt to a cloud server. It is like carrying a compact reference assistant with you: it can read, write, summarize, and answer within the device’s own hardware limits, even when the network disappears.
What runs on the device
The model’s learned parameters, or weights, are stored locally and processed by the device’s CPU, GPU, or dedicated NPU (neural processing unit). During generation, the model also keeps a KV cache: working memory containing the conversation tokens it needs to attend to. That cache grows as the prompt and response get longer, so usable memory is not determined by model size alone. A model with billions of parameters can require several gigabytes once its weights, cache, runtime, and application memory are counted.
Making it fit
On-device deployment relies heavily on quantization, which stores weights using fewer bits—such as 4-bit instead of 16-bit values—to reduce storage, RAM use, memory traffic, and energy demand. Runtimes such as llama.cpp, MLC LLM, and Apple’s Core ML execute these compressed models using hardware-specific kernels. The engineering trade is deliberate:
- Smaller models and lower-bit weights fit more devices and respond using less power.
- They can lose accuracy, reasoning depth, language coverage, or reliability on difficult prompts.
- Long contexts increase KV-cache memory and can slow each generated token.
Why local execution matters
A phone can summarize private notes, draft a reply, or power an offline travel assistant without transmitting text to a server. It also avoids round-trip network delay and keeps functioning in poor connectivity. But thermal and battery budgets are real: sustained token generation heats a handset, can trigger throttling, and drains power. Designers therefore choose a model, quantization level, context window, and token-rate target together—not just the model with the best benchmark score.
An on-device LLM is a large language model that runs inference directly on a user’s phone, computer, or embedded device rather than in a cloud data centre. Its model weights, runtime, and attention cache must fit the device’s memory, compute, power, and thermal limits. It enables private, low-latency, offline text generation and assistance, but requires efficient models and careful resource management.
An on-device LLM is like having a small, private writing assistant living inside your phone or laptop instead of in a distant data center. An LLM, or “large language model,” is the kind of AI that can answer questions, summarize text, help write messages, or translate language.
Because it runs directly on your device, it can still work with no internet connection. Your prompts and documents may also stay on the device, which can improve privacy. The trade-off is that these models are usually smaller and may be less capable than the biggest online AI services. They are designed to be useful within a device’s limited battery, memory, and processing power.