How to run an LLM on an Android phone: Gallery, PocketPal and Termux
You can run a small model on an Android phone in under ten minutes. These are the options, as described in two guides from November 2026.
| App | Skill level | Model format | Licence | Best for |
|---|---|---|---|---|
| Google AI Edge Gallery | Beginner | LiteRT models from Google's list | Apache 2.0 | Trying Gemma 4 with image and audio input |
| PocketPal AI | Beginner | Any GGUF from Hugging Face | MIT | Choosing your own models and benchmarking |
| ChatterUI | Intermediate | GGUF, or remote APIs | AGPL-3.0 | Mixing local and remote models |
| MLC Chat | Intermediate to developer | MLC-compiled models | Apache 2.0 | GPU-accelerated inference |
| llama.cpp in Termux | Advanced | GGUF | MIT | Full control, local server |
Google AI Edge Gallery
Google's open-source showcase app. Google's own README (read 27 Nov 2026) says it needs Android 12 or newer, includes a Prompt Lab, and works with no internet required for inference. Taku adds chat, image questions and audio transcription. It picks models from Google's list. The same guide says the RAM minimums in the Gallery list are the best official guide available. See how much RAM you need.
PocketPal AI
Open source, runs GGUF files with llama.cpp. Its strength is searching and downloading from Hugging Face inside the app, and a built-in benchmark that measures tokens per second and memory use on your own phone. VDF AI notes its README lists OpenCL on Adreno GPUs and Qualcomm's Hexagon NPU on Android.
Steps that work in both
- Install the app from Google Play.
- On Wi-Fi, download a model: Gemma 4 E2B in Gallery, or a 4-bit Qwen3.5-4B GGUF in PocketPal.
- Send a test prompt, then switch on airplane mode and send another.
- In PocketPal, run the benchmark once to see if a larger model is realistic.
Termux
Termux is a terminal app that lets you run llama.cpp as on Linux. The llama.cpp project's own Android page (read 27 Nov 2026) describes it as an install of git and cmake followed by a CMake build, then running llama-cli with a model file and a context size. It suggests starting near 4096, because otherwise memory can spike and kill the terminal. It says Termux is available experimentally on Google Play and otherwise from the project repository or F-Droid. Both guides we cite say pkg install llama-cpp also works; we did not find that on the llama.cpp page, so check it yourself.
What to expect
Taku cites Google's numbers for Gemma 4 E2B on a Galaxy S26 Ultra at roughly 47 to 52 tokens per second. Older and midrange phones are much slower. See how fast AI runs on a phone.
Sources
- How to Run an LLM Locally on Android, Taku (17 Nov 2026)
- Local LLM on Android and iPhone, VDF AI (14 Nov 2026)
- google-ai-edge/gallery README, GitHub (read 27 Nov 2026)
- llama.cpp docs: Android, GitHub (read 27 Nov 2026)
Checked: 26 Nov 2026. Figures change; confirm on the source before you rely on them.
Keep reading
- 8 GB vs 12 GB vs 16 GB phone for AI: which one should you buy?What each RAM tier lets you run, with the models, file sizes and the one-sentence verdict for each.
- AI-Benchmark ranking: what the columns mean, and what the top phones showReading the AI-Benchmark phone table: the score columns, five phones with their chip, RAM and AI Score as listed, and what the numbers cannot tell you about chat models.
- The airplane mode test: how to check a phone model is really offlineLoad a model on Wi-Fi, switch on airplane mode, send a prompt. The check VDF AI recommends and what it does and does not prove.
- Android local AI runtimes explained: MLC LLM, llama.cpp, ExecuTorch and moreA May 2026 guide lists five ways to run models on Android and warns about NNAPI deprecation, aggressive background killing and vendor-locked NPU tools. A secondary source, with caveats.