On-device LLM in an app: LiteRT-LM, Gemini Nano or llama.cpp?
Summary LiteRT-LM (0.20.0; November 2026) replaces MediaPipe LLM Inference as Google's cross-platform route, Gemini Nano via ML Kit is Android-only and Beta, Apple Foundation Models needs iOS 26 and Apple Intelligence hardware, and llama.cpp runs compatible GGUF models on both; weight licences differ between Gemma 4 (Apache-2.0), earlier Gemma and Llama 3.2.