Topophones

Home / Guides

How to run an LLM on an Android phone: Gallery, PocketPal and Termux

Updated 26 Nov 2026.

Cover graphic for: 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'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

  1. Install the app from Google Play.
  2. On Wi-Fi, download a model: Gemma 4 E2B in Gallery, or a 4-bit Qwen3.5-4B GGUF in PocketPal.
  3. Send a test prompt, then switch on airplane mode and send another.
  4. 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

  1. How to Run an LLM Locally on Android, Taku (17 Nov 2026)
  2. Local LLM on Android and iPhone, VDF AI (14 Nov 2026)
  3. google-ai-edge/gallery README, GitHub (read 27 Nov 2026)
  4. 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