On-Device Multimodal LLMs on Phones: Memory, Quantization, and Edge-Cloud Split
Running a multimodal model on a phone depends on more than the weight file size. This article explains memory and bandwidth limits, how to estimate total RAM including KV cache and vision encoders, when 4-bit or 8-bit quantization and MoE help, which metrics to measure, and which tasks belong on device versus in the cloud.
Start with the conclusion
A multimodal model can run smoothly on a phone only if three conditions hold at once: it fits in available memory, decode speed is usable, and throughput does not drop sharply after continuous use. Looking only at the weight file usually underestimates real demand. The sections below cover resource limits, memory estimation, quantization and engine constraints, performance metrics, and how to split work between device and cloud.
Resource constraints on device
Phones differ from servers first in memory, bandwidth, and power. The table below compares typical orders of magnitude. Exact numbers vary by device, chip, and OS; these are not measured results.
| Resource | Cloud datacenter GPU | Flagship phone | Typical failure |
|---|---|---|---|
| Available memory | Tens to hundreds of GB of VRAM | 8–16 GB system-wide; after OS and background apps, less remains for the model | Load fails, or the process is killed |
| Memory bandwidth | Often TB/s class | Often tens of GB/s | Decode much slower than expected |
| Sustained power | Hundreds of watts with dedicated cooling | Tight whole-device budget; thermal throttling | Speed drops after a few minutes |
| Dedicated compute | Massively parallel units | NPU rated in TOPS, limited operator set | Some ops fall back to CPU and speed collapses |
How much memory does an on-device multimodal model need?
Weight memory can be estimated as: weight memory (GB) ≈ parameters (billions) × bytes per parameter. Bytes per parameter follow bit width: 2 for 16-bit, 1 for 8-bit, 0.5 for 4-bit. For a 7B (7 billion parameter) model:
| Bit width | Bytes per parameter | 7B weight size | Common risk |
|---|---|---|---|
| 16-bit | 2 | ~14 GB | Hard to keep resident on a typical flagship |
| 8-bit | 1 | ~7 GB | Smaller accuracy loss, still heavy on RAM |
| 4-bit | 0.5 | ~3.5 GB | Smallest footprint; quality must be checked per task |
Weights are only a lower bound. Runtime total memory is:
Total memory ≈ weights + KV cache + activations + multimodal vision encoder + runtime overhead
- KV cache grows linearly with context: 2 × layers × KV heads × head_dim × context length × bytes per element.
- Activations come from intermediate tensors. On device, batch size is usually 1, but space must still be reserved.
- Vision encoder uses extra memory for images or video frames; higher resolution costs more.
- Runtime overhead includes engine caches and graph-compile artifacts.
Example (illustrative only, not a real model): 32 layers, 8 KV heads, head_dim 128, context 4096, KV stored in 16-bit. Then 2×32×8×128×4096×2 bytes ≈ 0.5 GB.
A 4-bit 7B model may be ~3.5 GB of weights, but KV cache, vision encoder, and runtime push the total well above that. Measure on the target device; do not decide from weight size alone.
Quantization, MoE, and inference engines
Bit width
8-bit usually loses less accuracy. 4-bit cuts size a lot, but quality drop varies by task. VQA, OCR, summarization, and number-sensitive work are not equally sensitive. Compare original vs. quantized quality on your own eval set rather than generic leaderboards.
MoE
Mixture-of-experts models activate only some experts per token, so compute and bytes read per token can be lower than a dense model with the same total parameter count. All expert weights still need to stay in memory or be paged in, so total RAM still scales with total parameters. This trades memory for compute and bandwidth. It works only if RAM holds all experts and expert switches do not constantly reload from storage. Otherwise time-to-first-token and throughput suffer.
Operator support and CPU fallback
NPUs support a limited op set. Unsupported ops fall back to CPU. Moving tensors between NPU and CPU adds overhead and can crash speed. Check engine logs or profilers: which backend each op uses, and how much time fallback ops take.
Engine optimizations
Graph opts, fusion, KV-cache management, and hardware mapping decide real speed. The same model can differ a lot across engines. Choose from measurements on the target phone, not paper TOPS.
Metrics and how to validate
Use a consistent definition for these five:
- Time to first token (TTFT): from submit to first output token. Affected by image encode, prompt length, and whether the model is already loaded.
- Decode throughput (tokens/s): tokens per second in the steady generate phase; exclude the first-token stage.
- Peak memory: max process RSS over the full run, including vision encoder and KV cache.
- Temperature and power: chip temperature and power over continuous run.
- Throttled throughput: stable tokens/s after several minutes; better than a one-shot test.
A rough decode ceiling: decode speed upper bound ≈ memory bandwidth ÷ bytes of weights read per token. For a 7B 4-bit dense model (~3.5 GB weights) and an example 50 GB/s of usable bandwidth, the theoretical cap is about 14 tokens/s. Real speed is lower because of KV reads, compute, and scheduling.
Validation steps:
- Cold-start load on the target device; record load time and peak memory.
- Measure TTFT with representative inputs (real image resolution and context length).
- Generate continuously for 10+ minutes; log throughput, temperature, and power each minute; watch for throttling.
- Compare original vs. quantized quality on the same eval set.
- Inspect fallback logs and confirm critical ops run on the NPU.
Splitting tasks between device and cloud
Fit on device:
- Short VQA, image classification, receipt OCR, and similar small jobs offline or on weak networks
- Privacy-sensitive local content that should not be uploaded
- Latency-sensitive, short-input interactions
- Tasks that tolerate lower precision or have a fallback
Keep in the cloud:
- Long video or high-resolution continuous vision; frames and context exhaust memory quickly
- Long documents and multi-turn long chats
- Generation that needs high accuracy and is unstable after quantization
- Work that needs fresh knowledge, retrieval, or multiple models
Rule of thumb: estimate with the memory formula, then verify with measured metrics. Put on device only what stays stable on the target phone; otherwise use the cloud. Hybrid is fine: preprocess and filter on device, heavy compute in the cloud.
