← All guides AI Release
RU Subscribe to @ai_releaseorg

How to Run an AI Model Locally on Android: Apps and Setup

Updated: 19.10.2026 · AI Release · @ai_releaseorg
How to Run an AI Model Locally on Android: Apps and Setup

TL;DR

Requirements and setup

Illustration: Requirements and setup
Illustration: Requirements and setup

Step 1. Prepare Termux and Python environment

What to do: Install Termux, update packages, install Python and pip.

Why: Termux gives you a Linux terminal on Android to run Python scripts and load AI models locally.

How to check: Run python --version and see a version number.

pkg update && pkg upgrade -y
pkg install python -y
python --version

Expected output: Python 3.11.x (or similar). Then install pip and upgrade:

pkg install python-pip -y
pip install --upgrade pip

Install basic libraries required by the model (check the model card for exact dependencies; typically transformers, torch, numpy):

pip install numpy

Example: After running python --version, you see Python 3.11.6. This means Python is ready.

Step 2. Deploy local AI models

Illustration: Step 2. Deploy local AI models
Illustration: Step 2. Deploy local AI models

What to do: Download and run EmbeddingGemma 2; install and configure Гига Писарь for offline voice input.

Why: To have AI models running entirely on your device without sending data to the cloud.

How to check: EmbeddingGemma 2 script prints an embedding shape; Гига Писарь transcribes your speech offline.

EmbeddingGemma 2

Download the model from Hugging Face or Kaggle. Replace <model-repo> with the actual repository ID from the model page:

pip install huggingface-hub
huggingface-cli download <model-repo> --local-dir ./embeddinggemma2 --local-dir-use-symlinks False

Run a test script:

from transformers import AutoModel, AutoTokenizer
import torch

model_path = "./embeddinggemma2"
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModel.from_pretrained(model_path)
texts = ["Hello, world!", "Local AI on Android"]
inputs = tokenizer(texts, padding=True, truncation=True, return_tensors="pt")
with torch.no_grad():
    embeddings = model(**inputs).last_hidden_state.mean(dim=1)
print(embeddings.shape)

Expected output: torch.Size([2, 768]) (dimension may vary; check model card).

Гига Писарь

Download the APK from the project site or GitHub. Install it (enable installation from unknown sources if needed). Open the app and set it as your default keyboard or enable it in Android settings. For offline use, do not configure the "Мозг" (Brain) feature—it requires an API key and internet. Offline recognition works without it.

Example: Open any text field, long-press the microphone key, speak a sentence, and release. The text appears under the cursor.

Step 3. Verify local AI operation

Illustration: Step 3. Verify local AI operation
Illustration: Step 3. Verify local AI operation

What to do: Run final checks for both models without internet.

Why: Confirm that everything works offline and within your device's RAM limits.

How to check:

For EmbeddingGemma 2, run a cosine similarity test:

import torch
from transformers import AutoModel, AutoTokenizer

model_path = "./embeddinggemma2"
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModel.from_pretrained(model_path)

def embed(text):
    inputs = tokenizer(text, return_tensors="pt")
    with torch.no_grad():
        return model(**inputs).last_hidden_state.mean(dim=1)

emb1 = embed("cat")
emb2 = embed("dog")
similarity = torch.nn.functional.cosine_similarity(emb1, emb2)
print(f"Similarity: {similarity.item():.4f}")

Expected output: a number between 0 and 1, e.g., Similarity: 0.85. If you see it, the model works locally.

For Гига Писарь, turn off Wi-Fi and mobile data. Open a notes app, dictate a sentence. Text should appear. If it does, offline recognition works.

Check memory usage in Termux:

free -m

Ensure available RAM is above the model requirement: ~567 MB for full multimodal, ~191 MB for text-only.

Troubleshooting

Problem. EmbeddingGemma 2 fails to load with out-of-memory error.

Problem. Гига Писарь does not transcribe speech when offline.

Problem. Hugging Face download fails.

Summary and next steps

You have installed Termux, run EmbeddingGemma 2 locally, and set up Гига Писарь for offline voice input. To explore more Android AI apps, see Best AI apps for Android in 2026.

FAQ

Can I run large language models like GPT-6 locally on Android?

The post about GPT-6 Sol and Luna does not mention local execution; those are cloud models. For local use, models like EmbeddingGemma 2 are optimized for consumer devices.

Does Гига Писарь work without internet?

Yes, offline recognition works without internet. The "Мозг" feature requires an API key and internet.

How much RAM does EmbeddingGemma 2 need?

Full multimodal mode: ~567 MB active RAM (quantized on Pixel 11 Pro). Text-only mode: ~191 MB.

Where to download EmbeddingGemma 2?

From Hugging Face or Kaggle under the Apache 2.0 license.

🤖 AI summary

AI Release Knowledge Layer
Machine-readable description · Version 1.0

Status: practical guide. Some statements come from vendors; verify in your environment.

1. Summary

A guide to running LLMs on an Android smartphone: choosing apps, installing models, and memory limitations. Difficulty: Intermediate You'll need: Android device with at least 2 GB RAM, Termux (from F-Droid or GitHub), EmbeddingGemma 2 model files (Hugging Face or Kaggle, Apache 2.0), Гига Писарь APK (project site or GitHub), optional API key for DeepSeek/OpenAI.

Inside: direct answers, key facts, entities, context, reliability, unknowns and sources.

Machine data: Citation Map JSON · JSON-LD · Semantic Embeddings — separate stage.

Full Knowledge Layer: sections 2–8

2. Direct answers

What is this guide about?
A guide to running LLMs on an Android smartphone: choosing apps, installing models, and memory limitations. → details (AR-GUIDE-KAKZAPUSTI-001)
What is required?
Android device with at least 2 GB RAM. For EmbeddingGemma 2: full multimodal mode requires ~567 MB active RAM (quantized on Pixel 11 Pro); text-only mode requires ~191 MB.; Free storage: at least 1 GB (check model card for exact size).; Termux installed. For a detailed Termux setup, see How to Run Linux on Android… → details (AR-GUIDE-KAKZAPUSTI-003)
How to do it?
Step 1. Prepare Termux and Python environment → Step 2. Deploy local AI models → Step 3. Verify local AI operation → details (AR-GUIDE-KAKZAPUSTI-004)
What are the key points?
Difficulty: Intermediate You'll need: Android device with at least 2 GB RAM, Termux (from F-Droid or GitHub), EmbeddingGemma 2 model files (Hugging Face or Kaggle, Apache 2.0), Гига Писарь APK (project site or GitHub), optional API key for DeepSeek/OpenAI. → details (AR-GUIDE-KAKZAPUSTI-007)

3. Key facts

  1. Difficulty: Intermediate — evidence; status: заявление источника.
  2. You'll need: Android device with at least 2 GB RAM, Termux (from F-Droid or GitHub), EmbeddingGemma 2 model files (Hugging Face or Kaggle, Apache 2.0), Гига Писарь APK (project site or GitHub), optional API key for DeepSeek/OpenAI. — evidence; status: заявление источника.
  3. Android device with at least 2 GB RAM. For EmbeddingGemma 2: full multimodal mode requires ~567 MB active RAM (quantized on Pixel 11 Pro); text-only mode requires ~191 MB. — evidence; status: заявление источника.
  4. Free storage: at least 1 GB (check model card for exact size). — evidence; status: заявление источника.
  5. Termux installed. For a detailed Termux setup, see How to Run Linux on Android Without Root: Termux, PRoot, and AI Tools. — evidence; status: заявление источника.

4. Entities

EntityTypeRole
running LLM on Androidтема/инструментупоминается в заголовке, TL;DR или разделах гайда
local AI model on phoneтема/инструментупоминается в заголовке, TL;DR или разделах гайда
offline AI on Androidтема/инструментупоминается в заголовке, TL;DR или разделах гайда
Linuxплатформа/технологияупоминается в заголовке, TL;DR или разделах гайда
Androidплатформа/технологияупоминается в заголовке, TL;DR или разделах гайда
GitHubплатформа/технологияупоминается в заголовке, TL;DR или разделах гайда
Pythonплатформа/технологияупоминается в заголовке, TL;DR или разделах гайда
OpenAIкомпанияупоминается в заголовке, TL;DR или разделах гайда
Googleкомпанияупоминается в заголовке, TL;DR или разделах гайда
DeepSeekкомпанияупоминается в заголовке, TL;DR или разделах гайда

5. Context

  • Guide — describes → How to Run an AI Model Locally on Android: Apps and Setup (AR-GUIDE-KAKZAPUSTI-001).
  • Guide — includes step → Step 1. Prepare Termux and Python environment (AR-GUIDE-KAKZAPUSTI-001).

6. Reliability

Confirmed

No independent confirmation is provided; source claims and editorial conclusions are separated below.

Source claims

  • Product features, versions, prices and limits come from vendors and the guide.
  • Commands and steps are recommendations, not guaranteed results.

AI Release analysis

  • Structure, comparison and selection criteria are editorial.
  • The guide does not replace an independent audit or legal advice.

7. Unknowns

  • Current versions, prices and limits.
  • Independent benchmarks and quality checks.
  • Terms of use and data policy.

8. Sources

SourceTypeRole
No external links——

Cite as: AI Release. Как запустить ИИ-модель локально на Android: приложения и настройка. ai-release.org.