
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 --versionExpected output: Python 3.11.x (or similar). Then install pip and upgrade:
pkg install python-pip -y
pip install --upgrade pipInstall basic libraries required by the model (check the model card for exact dependencies; typically transformers, torch, numpy):
pip install numpyExample: After running python --version, you see Python 3.11.6. This means Python is ready.

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.
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 FalseRun 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.

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 -mEnsure available RAM is above the model requirement: ~567 MB for full multimodal, ~191 MB for text-only.
Problem. EmbeddingGemma 2 fails to load with out-of-memory error.
java.lang.OutOfMemoryError: Failed to allocate a 12345678 byte allocation with 1234567 free bytes and 123KB until OOMfree -m in Termux.Problem. Гига Писарь does not transcribe speech when offline.
Network error. Please check your connection.Problem. Hugging Face download fails.
Error: git-lfs not found.pkg install git-lfs -y and then git lfs install. Retry the download.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.
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.
Status: practical guide. Some statements come from vendors; verify in your environment.
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.
Machine data: Citation Map JSON · JSON-LD · Semantic Embeddings — separate stage.
| Entity | Type | Role |
|---|---|---|
| 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 или разделах гайда |
| компания | упоминается в заголовке, TL;DR или разделах гайда | |
| DeepSeek | компания | упоминается в заголовке, TL;DR или разделах гайда |
No independent confirmation is provided; source claims and editorial conclusions are separated below.
| Source | Type | Role |
|---|---|---|
| No external links | — | — |
Cite as: AI Release. Как запустить ИИ-модель локально на Android: приложения и настройка. ai-release.org.