Skip to content
Advertisement

How to Run a Local LLM on Android (No Internet Needed)

SumitSumit··17 min read
Android robot logo next to the text Run a Local LLM on Android, with Gemma 4, Qwen3.5 and Llama 3.2 labels

Can you really run an AI chatbot on your phone offline?

Yes. A modern Android phone with 8 GB of RAM can run a small large language model (LLM, the kind of AI behind ChatGPT) entirely on its own chip. Once the model file is downloaded, you can switch on airplane mode and keep chatting. Your prompts never touch a server, there is no subscription, and it works on a plane, in a basement, or anywhere without signal.

The trade-off is size. Phone models have 1 to 4 billion parameters instead of the hundreds of billions behind cloud chatbots, so they are good at summarising, rewriting, brainstorming, quick explanations and simple coding help, and weaker at deep reasoning and recent facts. This guide shows you which app and model to pick for your phone, how to set each one up, and how to prove nothing leaves the device.

Quick answer
  • Easiest: install PocketPal AI from the Play Store, download Qwen3.5 2B or Llama 3.2 1B inside the app, turn on airplane mode, chat.
  • Best for Gemma 4: Google AI Edge Gallery runs Gemma 4 E2B on the GPU at around 50 tokens per second on a 2026 flagship.
  • RAM decides everything: 6 GB phones stick to 1B to 2B models, 8 GB phones handle 2B to 4B, 12 GB or more can try 7B to 9B (slowly).
  • Pick Q4_K_M files. They are about a third of the full size with little quality loss.
  • Power users can run llama.cpp or Ollama inside Termux with one pkg install command.

What you need before you start

You do not need root, a custom ROM, or a gaming phone. You need enough memory, some free storage, and Wi-Fi for the one-time model download.

Your phone's RAMModels that run wellRealistic experience
4 GBQwen3.5 0.8B, Llama 3.2 1BWorks, but short answers and frequent reloads
6 GBLlama 3.2 1B, Qwen3.5 2B, DeepSeek R1 1.5BComfortable for everyday chat
8 GBGemma 4 E2B, Llama 3.2 3B, Phi-4 mini, Qwen3.5 4BThe sweet spot in 2026
12 GB or moreGemma 4 E4B, Qwen3.5 9BBest quality, noticeably slower on bigger models

A simple rule: the model needs its file size in free RAM, plus another 0.5 to 1.5 GB for the app and the conversation. Google's own AI Edge Gallery enforces similar floors: 6 GB for 1B to 1.5B models, 8 GB for Gemma 4 E2B, and 12 GB for Gemma 4 E4B (from the app's model allowlist, version 1.0.19, September 2026).

Storage matters too. Plan for the model file plus about 1 GB of headroom, and more if you want to keep a few models around. If your phone is nearly full, clear some room first with our guide to freeing up space on Android.

Pick a model

Every model below is free to download from Hugging Face (the main public library of AI models). File sizes are for the Q4_K_M version, which is what you want on a phone.

ModelSize on disk (Q4_K_M)Best forLicence
Qwen3.5 0.8B0.53 GBVery old or low-RAM phonesApache 2.0
Llama 3.2 1B Instruct0.81 GBFast, simple chat on almost any phoneLlama 3.2 Community
LFM2.5 1.2B Instruct0.73 GBQuick replies, small footprintLFM 1.0 (custom)
DeepSeek R1 Distill Qwen 1.5B1.12 GBStep-by-step "thinking" answersMIT
Qwen3.5 2B1.28 GBBest all-rounder for 6 GB phonesApache 2.0
SmolLM3 3B1.92 GBFully open model, good EnglishApache 2.0
Llama 3.2 3B Instruct2.02 GBBetter writing than the 1BLlama 3.2 Community
Phi-4 mini Instruct (3.8B)2.49 GBMaths, logic, short codeMIT
Qwen3.5 4B2.74 GBStrongest small model for 8 GB phonesApache 2.0
Gemma 4 E2B3.11 GB (2.59 GB LiteRT)Multilingual chat, images and audio in AI Edge GalleryApache 2.0
Gemma 4 E4B4.98 GB (3.66 GB LiteRT)Top quality on 12 GB phonesApache 2.0
Qwen3.5 9B5.68 GBFlagships only, slow but capableApache 2.0

Sizes from the Hugging Face API (unsloth GGUF builds and Google's LiteRT builds), checked September 25, 2026.

If you are unsure, start with Qwen3.5 2B on a 6 GB phone or Gemma 4 E2B on an 8 GB phone. Both punch well above their size. Qwen3.5 is still the newest small Qwen: the later 3.6 and 3.8 releases only come in 27B and larger, which is far too big for a phone. For more on what Gemma 4 can do once it is running locally, see our Gemma 4 offline projects guide.

What Q4_K_M means

Models are normally stored with 16 bits per weight. Quantization squeezes each weight into fewer bits so the file shrinks and runs faster.

  • Q4_K_M uses about 4.5 to 5 bits per weight and keeps the most sensitive layers at higher precision. It is roughly 30% of the original size with a small quality loss. This is the default choice for phones.
  • Q8_0 is close to lossless but twice the size of Q4.
  • Q2 and Q3 are smaller still, but answers get noticeably worse.
  • Q4_0 QAT files from Google were trained to handle 4-bit from the start, so they lose less quality than a normal Q4_0.

Pick an app

These are the apps worth using in September 2026. All of them run the model on your phone; none need an account.

AppOpen sourceModel formatDownloads models in-appGPU / NPU
PocketPal AIYes (MIT)GGUFYes, Hugging Face searchGPU (OpenCL) and Qualcomm NPU
Google AI Edge GalleryYes (Apache 2.0)LiteRT (.litertlm)Yes, curated listGPU
MaidYes (MIT)GGUFYes, curated listNot stated
MNN ChatYes (Apache 2.0)MNNYes, built-in catalogueGPU (OpenCL, Vulkan)
ChatterUIYes (AGPL-3.0)GGUFImport a fileNot stated
Termux + llama.cppYes (MIT)GGUFManual downloadVulkan, OpenCL

Versions and store listings checked on GitHub and Google Play, September 25, 2026.

01 / EASIEST

PocketPal AI

Best overall
PocketPal AI listing on the Google Play Store

PocketPal is the one to install first. It runs any GGUF model through llama.cpp, lets you search Hugging Face from inside the app, and handles gated models (ones that need you to accept a licence) if you paste in a Hugging Face token. It can use the Adreno GPU and, on recent Snapdragon chips, the Hexagon NPU, falling back to the CPU when neither is available.

It is very actively maintained. Version 1.18.0 landed on September 25, 2026. The only data that leaves your phone is opt-in: benchmark uploads and feedback, per the project's README. There is also a built-in benchmark and a public device leaderboard if you want to see how your phone compares.

Replaces
ChatGPT app for private chats
Runs on
Depends on the model (see RAM table)
Difficulty
Easy
Licence
MIT (open source)
Skip if
You only want Google's Gemma models
03 / SIMPLE

Maid

No telemetry
Maid app listing on the Google Play Store

Maid (Mobile Artificial Intelligence Distribution) is a clean, no-frills llama.cpp front end with a curated Hugging Face model list. Its README promises no telemetry and no ads. The Play Store build (updated September 2, 2026) is newer than the last GitHub release, so install it from the Play Store.

Runs on
Depends on the model (see RAM table)
Difficulty
Easy
Licence
MIT (open source)
Skip if
You need GPU speed-ups
04 / FAST

MNN Chat

Alibaba's runtime
MNN Chat listing on the Google Play Store

MNN Chat runs models converted to Alibaba's MNN format, with a built-in catalogue that includes Qwen3.5 and Gemma 4. It supports OpenCL and Vulkan GPU acceleration and has its own benchmark screen. The developers say they have only tested it on a OnePlus 13 and a Xiaomi 14 Ultra, and warn that low-spec phones may not work at all, so treat it as a flagship option.

Runs on
Recent flagship recommended
Difficulty
Easy
Licence
Apache 2.0 (open source)
Skip if
Your phone is older or low-end
05 / TINKER

ChatterUI

Roleplay and characters
ChatterUI repository page on GitHub

ChatterUI is for people who want character cards, custom system prompts and fine control over sampling settings. It is not on the Play Store: download the APK from its GitHub releases page (v0.10.0, September 22, 2026). Import a GGUF file you already downloaded. It also has a Remote Mode for cloud APIs, so make sure you are in local mode if privacy is the point.

Runs on
Depends on the model (see RAM table)
Difficulty
Medium
Licence
AGPL-3.0 (open source)
Skip if
You want a Play Store install

Layla is a paid alternative ($19.99 on the Play Store, with a free APK on its website). It is closed source and asks for 6 GB of RAM at minimum, 8 GB or more recommended. MLC Chat still shows up in older guides, but its last Android APK is from September 2024, so skip it.

Method 1: Set up PocketPal AI (5 minutes)

This is the quickest route and works on any phone that meets the RAM table above.

  1. Install PocketPal AI from the Google Play Store and open it.
  2. Tap the menu and open Models. You will see a short list of suggested models.
  3. Tap the + button, then Add from Hugging Face. Search for Qwen3.5-2B GGUF (or Llama-3.2-1B GGUF on a 4 GB to 6 GB phone).
  4. Pick the file ending in Q4_K_M.gguf and tap download. Stay on Wi-Fi: it is roughly 0.8 to 1.3 GB.
  5. When it finishes, tap Load next to the model. The first load takes a few seconds.
  6. Open PocketPal's Settings and turn on GPU acceleration if your phone offers it. If the app crashes or slows down, switch it back off.
  7. Go back to the chat screen and send a message.

Now test that it is truly offline: swipe down, turn on airplane mode (and make sure Wi-Fi is off too), force-close PocketPal, reopen it, and chat again. If it answers, you are running AI entirely on your phone.

Already have a GGUF file?

Copy it to your phone's Downloads folder over USB, then in PocketPal choose + and Add local model. This also works when a download keeps failing inside the app.

Pick this route if you have 8 GB of RAM or more and want Gemma 4's image and audio features.

  1. Install Google AI Edge Gallery from the Play Store (Android 12 or newer).
  2. Open AI Chat. Choose Gemma 4 E2B (8 GB phones) or Gemma 4 E4B (12 GB and up).
  3. If asked, sign in to Hugging Face and accept the Gemma licence. This is a one-time step for gated models.
  4. Download the model (about 2.6 GB for E2B, 3.7 GB for E4B).
  5. Tap the model settings and select GPU as the accelerator. On a Galaxy S26 Ultra, Gemma 4 E2B runs at about 52 tokens per second on the GPU versus 47 on the CPU, and the GPU version uses far less RAM (about 676 MB versus 1.7 GB), per Google's LiteRT model card.
  6. Turn on airplane mode and try Ask Image with a photo from your gallery.

Method 3: Termux with llama.cpp or Ollama (power users)

Termux is a Linux terminal for Android. Running llama.cpp there gives you the latest model support the day it ships, full control over every setting, and a local web chat you can open in your browser.

Get Termux from F-Droid or GitHub

The Play Store version of Termux is outdated. Install it from F-Droid or the Termux GitHub releases. The llama.cpp and Ollama packages are 64-bit only, which covers every recent phone.

Termux app repository page on GitHub
Termux: a full Linux terminal environment for Android.

Install llama.cpp from the Termux package repository (version 0.5.0, built with Vulkan and OpenCL, as of September 25, 2026):

pkg update && pkg upgrade
pkg install llama-cpp
termux-setup-storage

Download a GGUF model in your phone's browser (it lands in Downloads), then start a chat:

llama-cli -m ~/storage/downloads/Qwen3.5-2B-Q4_K_M.gguf -cnv

Prefer a proper chat window? Run the built-in server and open http://127.0.0.1:8080 in Chrome on the same phone:

llama-server -m ~/storage/downloads/Qwen3.5-2B-Q4_K_M.gguf --port 8080

If you already use Ollama on a PC, it is in Termux too (version 0.31.1, a few releases behind upstream):

pkg install ollama
ollama serve &
ollama run llama3.2:1b

The ollama run step needs internet the first time to pull the model. After that it runs offline. If you run Ollama on a home server as well, our home lab apps guide covers that side.

How to confirm nothing leaves your phone

Airplane mode is the simple test, but a few extra checks make it airtight.

  • Download the model, then turn on airplane mode with Wi-Fi and Bluetooth off.
  • Force-stop the app from Settings, reopen it, and confirm it still answers.
  • Check the app's Data safety section on its Play Store page.
  • For permanent blocking, deny the app network access with a firewall app such as NetGuard (no root needed).
  • If you use ChatterUI, confirm Remote Mode is off.

How fast is it?

Speed is measured in tokens per second (a token is roughly three quarters of a word). Anything above 10 feels like fast reading. Below 5 feels slow but usable.

Phone and chipModel and appOutput speedSource
Galaxy S26 UltraLlama 3.2 1B Q4_K_M, llama.cpp49 to 56 tokens/son-device-llm benchmark, Sept 20, 2026
Galaxy S26 UltraGemma 4 E2B, LiteRT GPU52 tokens/sLiteRT model card, Sept 2026
Snapdragon 8 Elite (NPU)Llama 3.2 3B, Qualcomm Genieabout 10 tokens/sGrape Up, March 23, 2026
Snapdragon 8 Elite (NPU)Llama 3.1 8B, Qualcomm Genieabout 5 tokens/sGrape Up, March 23, 2026
Galaxy M55s, Snapdragon 7 Gen 1 (8 GB)Gemma 4 E2B and 1B-class models, LiteRT CPU3.3 to 7 tokens/sUrja Labs, June 23, 2026

Two things slow you down in practice. Long prompts: on the midrange phone above, a long pasted document pushed the wait for the first word to about 11 seconds. And heat: the same test saw Gemma 4 E2B drop from 7.0 to 5.8 tokens per second once the phone warmed up. Running a model is heavy work, so expect the phone to get warm and the battery to drain faster than normal. Plug in for long sessions, and see our battery-saving Android settings for everyday use.

Fixing common problems

01

The app crashes or closes when loading a model

Your phone ran out of memory. Pick a smaller model or a smaller quant (a 1B to 2B model at Q4), close other apps, and reduce the context length in the model settings. Check the RAM table above before you download.

02

Replies are painfully slow

The model is too big for your chip, the phone is throttling from heat, or GPU acceleration is off. Try a smaller model, turn on GPU (OpenCL in PocketPal, GPU in AI Edge Gallery), let the phone cool, and keep prompts shorter.

03

The model will not download

Gemma and Llama are gated: you must log in to Hugging Face, accept the licence on the model page, and add your token in the app. Also check you have enough free storage and a stable Wi-Fi connection. As a fallback, download the GGUF in your browser and import it as a local model.

04

Answers are wrong or made up

Small models hallucinate more than cloud models and know nothing after their training date. Step up a size if your RAM allows, lower the temperature setting, and double-check facts. For research with live sources, a cloud tool is still the better fit (see our Perplexity Pro vs ChatGPT Plus comparison).

FAQs

Can I run an LLM on Android without internet?
Yes. You need internet once to download the app and the model file. After that, apps like PocketPal AI, Google AI Edge Gallery and Maid run the model entirely on your phone, even in airplane mode.
How much RAM do I need to run a local LLM on Android?
6 GB is enough for 1B to 2B models like Llama 3.2 1B or Qwen3.5 2B. 8 GB handles Gemma 4 E2B and 3B to 4B models. 12 GB or more is needed for Gemma 4 E4B or 7B to 9B models.
What is the best local LLM app for Android?
PocketPal AI is the best starting point: it is free, open source, runs any GGUF model, downloads from Hugging Face in the app and supports GPU acceleration. Google AI Edge Gallery is the best choice for Gemma 4.
What is the best offline AI model for a phone?
Qwen3.5 2B is the best all-rounder for 6 GB phones. On 8 GB phones, Gemma 4 E2B and Qwen3.5 4B give the best quality. Llama 3.2 1B is the fastest option for older phones.
Do I need to root my phone?
No. Every app in this guide installs normally from the Play Store, GitHub or F-Droid, and Termux runs llama.cpp without root.
Is a local LLM on Android private?
Your prompts are processed on the device and never sent to a server. Some apps still send usage analytics when you are online, for example Google AI Edge Gallery includes Firebase Analytics. Use airplane mode or a firewall app to block all network access.
Does running an LLM damage my phone or battery?
No, but it is heavy work. The phone gets warm, it throttles speed when hot, and the battery drains faster than normal. For long sessions, keep it plugged in and out of direct sun.
SSumit

Sumit

Contributor

Hi, I'm Sumit, Being an introvert I have always been obsessed with technology-computers and reading dozens of posts to learn, find answers out of my curiosity. I love to write as I explore more.

65 articles writtenView all posts by Sumit →

Related articles

See all