Running large language models (LLMs) on mobile devices is challenging due to limited computational power, memory, and battery constraints. However, several optimized LLMs can run efficiently on smartphones (Android/iOS) with acceptable performance. Here are the best options:
Best LLMs for Mobile Devices (2024)
1. Tiny & Efficient Models (Best for Low-End Devices)
Phi-2 (Microsoft) – A 2.7B-parameter model optimized for efficiency, runs well on mid-range phones.
Gemma (Google) – 2B-parameter variant of Google’s open-weight model, optimized for mobile.
Stable LM 3B (Stability AI) – Small but capable, runs on devices with 4GB+ RAM.
DistilBERT / TinyBERT – Compressed versions of BERT for NLP tasks.
2. Mid-Sized Models (Balanced Performance)
Mistral 7B (Quantized) – When quantized (4-bit or lower), can run on high-end phones (e.g., iPhone 15 Pro, Snapdragon 8 Gen 3).
Llama 2 7B (4-bit Quantized) – Runs on flagship phones via ML frameworks like MLC LLM or llama.cpp.
Alpaca / Vicuna (7B Quantized) – Fine-tuned versions of LLaMA for chat.
3. Specialized Mobile-Optimized Models
MLC LLM (Mobile-LLM) – Framework to run LLaMA, Mistral, and others efficiently on mobile.
Llama.cpp (GGML/GGUF models) – Enables CPU-based inference on phones (e.g., via Kobold AI or Oobabooga).
Whisper (OpenAI) – For speech-to-text, runs well on mobile.
How to Run LLMs on Mobile?
Use Quantized Models (4-bit or lower) – Reduces model size and RAM usage.
Leverage Mobile Frameworks:
MLC LLM (iOS/Android) – Optimized for phones.
llama.cpp (via Termux on Android or iOS apps).
Hugging Face Transformers (ONNX Runtime) – For lighter models.
Cloud-Assisted Inference – Use APIs (GPT-4, Claude, Gemini) when offline isn’t required.
Best Apps for Running LLMs on Mobile
MLC Chat (iOS/Android) – Runs Mistral, LLaMA, and others locally.
Kobold AI (Android) – Supports GGML models.
Ollama (if sideloaded) – For advanced users.
LM Studio (Windows-on-ARM for some Android devices).
Performance Considerations
High-end phones (iPhone 15 Pro, Snapdragon 8 Gen 3, Tensor G3) can run 7B models at usable speeds (~5-10 tokens/sec).
Mid-range phones should stick to 1B-3B models.
Low-end phones may only handle models like TinyLLaMA or DistilBERT.
Would you like recommendations for a specific use case (e.g., coding, chatting, summarization)?