Docs /Android Quickstart Guide
BEGINNER WALKTHROUGH · 3-MINUTE SETUP

Android Quickstart.

Get up and running with private, offline artificial intelligence on your Android smartphone. Zero Termux commands, zero account logins, and 100% on-device inference powered by verified Hugging Face GGUF models.

STEP 01

Install Local AI on Your Android Device

Join the official Google Play Early Access testing group or download the direct APK. Local AI requires Android 10 or higher (API 29+) and an ARM64-v8a processor.

Ensure your device has at least 5GB of free internal UFS storage.
Zero account creation, zero email registration, zero telemetry.
STEP 02

Select Your Model in the Hugging Face Explorer

Open Local AI and browse verified models directly linked to Hugging Face GGUF repositories. The app profiles your hardware to recommend safe quantization levels:

4 GB RAMHuggingFaceTB/SmolLM2-1.7B-Instruct-GGUF (smollm2-1.7b-instruct-q4_k_m.gguf) — 1.06 GB
6 GB RAMbartowski/Llama-3.2-3B-Instruct-GGUF (Llama-3.2-3B-Instruct-Q4_K_M.gguf) — 2.02 GB
8 GB RAMunsloth/DeepSeek-R1-Distill-Qwen-7B-GGUF (DeepSeek-R1-Distill-Qwen-7B-Q4_K_M.gguf) — 4.36 GB
12 GB+ RAMbartowski/Meta-Llama-3.1-8B-Instruct-GGUF (Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf) — 4.92 GB
The app actively profiles free physical RAM before downloading to prevent OOM termination.
Downloads support HTTP range chunking and resume automatically if network drops.
STEP 03

Test Offline Mode (Airplane Mode)

Once the .gguf file is downloaded to your device, swipe down your quick settings panel and enable Airplane Mode. Disconnect both Wi-Fi and mobile cellular data to verify zero network reliance.

Local AI never opens local or remote network sockets during conversation.
Inference runs 100% on your device processor via native C++ llama.cpp bindings.
STEP 04

Start Your First Private Conversation

Tap the model card to memory-map (mmap) weights into RAM (takes 1–2 seconds on UFS 3.1/4.0 storage). Type any prompt and observe immediate token generation at 15 to 55 tokens per second.

DeepSeek-R1 reasoning models feature an interactive collapsible <think> trace view.
Tap the Camera icon to process documents locally using 100% on-device ML Kit OCR.

Verified Hugging Face GGUF Model Directory

Local AI integrates directly with Hugging Face Hub. Below are the exact repository IDs and file names verified for maximum stability and performance across Android RAM tiers:

4 GB RAM

SmolLM2 1.7B Instruct

Size: 1.06 GB•Speed: 45–55 tok/s

Ultra-compact SLM fine-tuned for quick conversational turns and device-level tasks.

HF Repository ID:HuggingFaceTB/SmolLM2-1.7B-Instruct-GGUF
Exact GGUF File Name:smollm2-1.7b-instruct-q4_k_m.gguf
Full Model Identifier (Hugging Face Path):HuggingFaceTB/SmolLM2-1.7B-Instruct-GGUF/smollm2-1.7b-instruct-q4_k_m.gguf
Quantization: Q4_K_M (Recommended)
6 GB RAM

Llama 3.2 3B Instruct

Size: 2.02 GB•Speed: 32–44 tok/s

Meta's flagship mobile model with balanced reasoning, concise writing, and tool calling.

HF Repository ID:bartowski/Llama-3.2-3B-Instruct-GGUF
Exact GGUF File Name:Llama-3.2-3B-Instruct-Q4_K_M.gguf
Full Model Identifier (Hugging Face Path):bartowski/Llama-3.2-3B-Instruct-GGUF/Llama-3.2-3B-Instruct-Q4_K_M.gguf
Quantization: Q4_K_M (Recommended)
6 GB RAM

DeepSeek-R1 Distill Qwen 1.5B

Size: 1.12 GB•Speed: 35–50 tok/s

Compact reasoning model emitting full chain-of-thought tokens for logic and math.

HF Repository ID:unsloth/DeepSeek-R1-Distill-Qwen-1.5B-GGUF
Exact GGUF File Name:DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_M.gguf
Full Model Identifier (Hugging Face Path):unsloth/DeepSeek-R1-Distill-Qwen-1.5B-GGUF/DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_M.gguf
Quantization: Q4_K_M (Recommended)
8 GB RAM

DeepSeek-R1 Distill Qwen 7B

Size: 4.36 GB•Speed: 14–20 tok/s

Frontier mathematical and algorithmic reasoning model distilled from 671B DeepSeek-R1.

HF Repository ID:unsloth/DeepSeek-R1-Distill-Qwen-7B-GGUF
Exact GGUF File Name:DeepSeek-R1-Distill-Qwen-7B-Q4_K_M.gguf
Full Model Identifier (Hugging Face Path):unsloth/DeepSeek-R1-Distill-Qwen-7B-GGUF/DeepSeek-R1-Distill-Qwen-7B-Q4_K_M.gguf
Quantization: Q4_K_M (Recommended)
12 GB+ RAM

Meta Llama 3.1 8B Instruct

Size: 4.92 GB•Speed: 12–18 tok/s

Full 8-billion parameter instruction tuned model for complex coding and deep synthesis.

HF Repository ID:bartowski/Meta-Llama-3.1-8B-Instruct-GGUF
Exact GGUF File Name:Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf
Full Model Identifier (Hugging Face Path):bartowski/Meta-Llama-3.1-8B-Instruct-GGUF/Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf
Quantization: Q4_K_M (Recommended)

First Verification Prompt Suite

Once your model loads into RAM, run this 3-prompt test suite to benchmark Time-to-First-Token (TTFT), token generation speed, and response accuracy on your device:

1

Step-by-Step Logic & Reasoning

Best on: DeepSeek-R1 Distill Qwen 1.5B or Llama 3.2 3B
Input Prompt to Copy:
“A bat and a ball cost $1.10 in total. The bat costs $1.00 more than the ball. How much does the ball cost? Show step-by-step logic.”
Expected Latency0.8s – 1.4s (TTFT)
Token Speed30 – 48 tok/s
Expected On-Device Output:
Let the ball cost $x.
Then the bat costs $(x + 1.00).
Together: x + (x + 1.00) = 1.10
2x + 1.00 = 1.10
2x = 0.10
x = 0.05
Conclusion: The ball costs $0.05 (5 cents), and the bat costs $1.05.
Verification Target: Verifies whether the model avoids the intuitive trap ($0.10) and properly computes algebraic constraints.
2

Coding & Algorithmic Synthesis

Best on: Llama 3.2 3B or Qwen 2.5 3B
Input Prompt to Copy:
“Write a concise Python function to check if a string is a palindrome, ignoring non-alphanumeric characters and casing. Include type hints.”
Expected Latency0.6s – 1.2s (TTFT)
Token Speed32 – 50 tok/s
Expected On-Device Output:
def is_palindrome(text: str) -> bool:
    clean = [c.lower() for c in text if c.isalnum()]
    return clean == clean[::-1]

# Example test:
# is_palindrome("A man, a plan, a canal: Panama") -> True
Verification Target: Confirms proper syntax highlighting, correct character filtering with isalnum(), and reverse slice logic.
3

Structured Extraction & Summarization

Best on: SmolLM2 1.7B or Llama 3.2 3B
Input Prompt to Copy:
“Extract 3 numbered action items with assignees and deadlines from this note: 'Alex must finalize the NDK bindings by Friday. Sarah will update the Hugging Face model cards on Wednesday. Liam to profile LPDDR5X RAM usage by Monday.'”
Expected Latency0.5s – 1.0s (TTFT)
Token Speed35 – 55 tok/s
Expected On-Device Output:
1. Finalize NDK bindings — Assignee: Alex | Deadline: Friday
2. Update Hugging Face model cards — Assignee: Sarah | Deadline: Wednesday
3. Profile LPDDR5X RAM usage — Assignee: Liam | Deadline: Monday
Verification Target: Confirms prompt instruction following, structured formatting, and zero hallucinated entities.

Offline File Transfer Walkthrough

If you already have .gguf models on your Mac, Linux, or Windows workstation, you don’t need to burn mobile data re-downloading them. Here is how to sideload them directly into Local AI:

Method 1: USB-C OTG Drive

Copy the .gguf file to a USB-C flash drive. Plug it into your Android phone via OTG.

  1. Open Local AI → Model Explorer.
  2. Tap “Custom File Import”.
  3. Select your USB drive via Android SAF file picker.
  4. The app copies and indexes the model into internal storage.

Method 2: Local Wi-Fi / LAN Transfer

Transfer models over your home Wi-Fi network without touching the internet, or push via ADB:

Option A — Local HTTP Server (Zero Setup):

On your PC, open a terminal in your model folder and run:

python3 -m http.server 8000

On your phone browser, open http://<PC-LOCAL-IP>:8000 and tap the file to download across your local LAN at 40–80 MB/s.

Option B — Direct ADB Push:
adb push model.gguf /sdcard/Download/
  1. Once transferred to phone storage, open Local AI.
  2. Tap “Import from Storage” in Model Explorer.
  3. Select the file from your Downloads folder.

Method 3: MicroSD Staging

For devices with a MicroSD card slot, copy the file to your card from your computer:

  1. Insert the SD card into your Android phone.
  2. In Local AI, tap “Import from SD Card”.
  3. Select the file; Local AI copies and stages the weights into internal UFS flash for optimal mmap speed.

Storage Best Practices: Why UFS 3.1/4.0 Internal Storage Is Required for Smooth mmap

Local AI relies on the POSIX mmap() system call to map multi-gigabyte GGUF model files directly into virtual memory. Rather than reading the entire 4GB weight tensor into physical RAM at startup, the Linux kernel demand-pages weights into LPDDR5X RAM on-the-fly during token matrix operations.

Storage TypeSequential ReadRandom Read IOPSSeek Latencymmap Suitability
UFS 4.0 (Modern Flagships)Up to 4,200 MB/s400,000+ IOPS< 0.05 msOptimal (0-stutter generation)
UFS 3.1 (Mid-Range / 2022–24)Up to 2,100 MB/s250,000+ IOPS< 0.10 msExcellent (Instant page-in)
UHS-I MicroSD Card60–100 MB/s~1,500 IOPS5.0 – 15.0 ms High I/O thread stalls
The Technical Consequence:

When running models from slow MicroSD cards, kernel page faults cause CPU worker threads to block on disk I/O (iowait), dropping token speeds from 35 tok/s to under 4 tok/s and triggering erratic stuttering. Local AI automatically stages imported models into internal flash storage so you enjoy maximum hardware acceleration.

Quickstart FAQs

Do I need an internet connection after downloading the model?+
No. The internet is only needed once to download the model weights file (.gguf) from Hugging Face. After the download completes, the file is stored locally in your device's private app storage. You can run all chats, code generation, and OCR completely offline in Airplane Mode indefinitely.
Why do you recommend starting with Llama 3.2 3B or SmolLM2 1.7B?+
Small language models download in under 2 minutes, consume less than 2.2GB of RAM, and generate answers at blazing speeds (30 to 55 tokens per second). They provide instant, smooth local AI performance without risking memory pressure on everyday mid-range phones.
Can I import GGUF files I already downloaded on my PC?+
Yes! Local AI includes a dedicated 'Custom File Import' button in the Model Explorer. You can transfer any standard GGUF file from your computer via USB-C cable (MTP/ADB), USB-C flash drive (OTG), or local Wi-Fi, and the app will index and run it immediately.
Why is internal UFS storage required instead of running from a MicroSD card?+
Local AI uses POSIX mmap() to map model weights into memory. Modern UFS 3.1/4.0 internal storage provides 2,100 to 4,200 MB/s sequential read speeds and low-latency random access. MicroSD cards peak at only 60–100 MB/s with high random latency, causing kernel I/O page fault stalls and severe token stuttering.
Is Local AI really free to use forever?+
Yes. Local AI is completely free with zero subscription fees, zero token limits, and zero ads. The open-source models (Llama, DeepSeek, Qwen) are licensed for open commercial and research use.
READY TO BEGIN?

Join Google Play Early Access

Install Local AI in seconds and start chatting with open weights completely offline.

Get Early Access ↗