Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Run LLMs Locally on Android: Step-by-Step

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can run large language models (LLMs) directly on your Android phone, fully offline. This gives you private, free access to AI chat, text generation, and even code help without sending data to the cloud. The easiest way is to use an app like LM Studio or PocketPal AI (both available on the Google Play Store) that handles model downloading and inference for you. Below is a practical guide to get you running your first local LLM in about 10 minutes.

What You'll Need

  • An Android phone or tablet (Android 8.0 or newer is typical).
  • At least 4 GB of free storage space for the model files (larger models need more).
  • At least 4 GB of RAM – more RAM means you can run larger, smarter models.
  • A stable internet connection for the initial download of the app and model.
  • Optional: a USB-C to USB-C cable if you want to transfer model files from a computer.

Step-by-Step

  1. Install an LLM app. Open the Google Play Store and search for “LM Studio” or “PocketPal AI”. Both are free and officially listed. Install one – we’ll use PocketPal AI for this guide because it’s lightweight and beginner-friendly. (Note: app interfaces can vary slightly by version and device.)
  2. Open the app and allow storage permission. When you first launch it, the app will ask for permission to access your device’s storage. This is needed to save the model files. Tap “Allow”.
  3. Browse the model library. Inside the app, look for a section labeled “Models” or “Library”. You’ll see a list of available LLMs. These are typically quantized versions (e.g., GGUF format) that are compressed to run on phones.
  4. Choose a model that fits your device. For a phone with 6 GB RAM, start with a 1–3 billion parameter model like Phi-3-mini or Qwen2.5-1.5B. For 8 GB RAM or more, you can try 7B models like Llama-3-8B (quantized to Q4). If you’re unsure, pick one labeled “Recommended” or “Small”.
  5. Download the model. Tap the download icon next to the model name. The download size is shown – typically 1–5 GB. Wait for it to finish; this can take a few minutes on Wi-Fi.
  6. Load the model. Once downloaded, go to the “Chat” or “Inference” tab in the app. Select the model you just downloaded from a dropdown menu. The app will load it into memory – this may take 10–30 seconds.
  7. Start chatting. Type a message in the text box and hit send. The model will generate a response on your device. You can now use it offline – put your phone in airplane mode to confirm.
  8. Adjust settings (optional). In the app’s settings, you can change parameters like “temperature” (higher = more creative, lower = more focused) or “max tokens” (response length). Leave them at default for now.
  9. Offload models to a microSD card (if supported). If your phone has expandable storage, some apps let you change the download location in settings. This frees up internal space. Check the app’s “Storage” or “Downloads” section.

Common Mistakes

  • Downloading a model that’s too large. A 13B model on a 4 GB RAM phone will crash or run extremely slowly. Always check the required RAM in the model description.
  • Not checking storage space. Models are big. If you run out of space, the download fails or the app becomes unstable. Free up space before downloading.
  • Ignoring the quantisation level. Models come in different “Q” versions (e.g., Q4, Q8). Q4 is smaller and faster but slightly less accurate. For phones, stick with Q4 or lower.
  • Expecting ChatGPT-level performance. Small local models are impressive but not as capable as cloud-based giants. Keep prompts simple and be patient.
  • Using the app while charging with a weak charger. Running an LLM is CPU/GPU intensive and can drain the battery quickly. Plug into a charger if you plan a long session.

Tips

  • Start with the smallest model. Get comfortable with the workflow before trying bigger ones. You can always delete and re-download later.
  • Use the “system prompt” feature. Many apps let you set a system prompt (e.g., “You are a helpful assistant”). This guides the model’s tone and behaviour.
  • Keep your phone cool. LLM inference generates heat. Remove the case or take breaks if the phone gets hot.
  • Use offline mode deliberately. After downloading, switch off Wi-Fi and mobile data to ensure no data leaves your device – this is the whole point of local LLMs.
  • Try different models. Each model has its own strengths. For coding, try CodeLlama; for general chat, Qwen or Phi. Experiment to find your favourite.

Troubleshooting

App crashes when loading the model. This usually means the model is too large for your RAM. Go back to the library and download a smaller model (e.g., 1B instead of 7B). Also close other apps to free memory.

Download fails or is slow. Check your internet connection and ensure you have enough free storage. If it keeps failing, cancel and retry, or download the model file on a computer and transfer it via USB to the app’s model folder (usually in Android/data/<app>/files/models – exact path varies).

Responses are very slow. This is normal on older phones. Reduce the “max tokens” in settings to get shorter, faster responses. Also try a smaller model.

App doesn’t see the model after download. Restart the app. If that doesn’t work, clear the app’s cache (Settings > Apps > [App] > Storage > Clear Cache) – this does not delete your downloaded models.

Phone overheats. Stop using the app and let it cool down. Consider using a smaller model or reducing the number of CPU threads in the app’s performance settings (if available).

No sound or voice output. Most local LLM apps are text-only. If you need voice, look for a separate text-to-speech app to read the responses aloud.

Frequently Asked Questions

Do I need an internet connection after downloading the model?

No. Once the model is downloaded, the app runs entirely offline. You can enable airplane mode and still chat.

Will this work on any Android phone?

Most modern phones (2018 or later) with at least 4 GB RAM can run small models. Older or budget phones may struggle with anything above 3B parameters.

Are these local LLMs as good as ChatGPT?

Not yet. They are smaller and less knowledgeable, but they are private, free, and work offline. For simple Q&A, summarisation, and brainstorming, they are quite capable.

How much storage space do I need?

A 1B model is about 1 GB, a 3B model ~2 GB, and a 7B model ~4 GB. Plan accordingly.

Can I use my phone’s GPU to speed things up?

Some apps support GPU acceleration on high-end phones (e.g., with Adreno or Mali GPUs). Check the app’s settings for a “GPU” toggle. If not available, CPU is fine for small models.

Is it legal to download these models?

Yes, as long as you use official app stores and the models’ licences permit personal use. Most open-source models (like Llama, Qwen, Phi) allow this.