Skip to main content
Back to Blog
AndroidNov 18, 2026·10 min read

I Ran AI Models on a Budget Android Phone. Here's What Happened.

Sandaruwan Shanaka avatar
Sandaruwan Shanaka
Fullstack Developer & AI Engineer

Almost every "offline AI on mobile" demo you see online is filmed on a $1,300 flagship smartphone packing 16 GB of LPDDR5X RAM and a top-tier Snapdragon Elite processor. That is great for a launch trailer, but it does not reflect reality for most of the world.

Walk across any university campus—including SLIIT here in Sri Lanka—and the vast majority of students and developers are carrying budget or mid-range Android devices with 4 GB, 6 GB, or 8 GB of RAM.

I am Sandaruwan Shanaka—a third-year Artificial Intelligence undergraduate at SLIIT, full-stack software engineer (github.com/ssshanaka), and the creator of Local AI (dev.shanaka.localai). While I do most of my daily development and testing on a Samsung Galaxy S25 Ultra, I built Local AI using native Kotlin, JNI, and llama.cpp specifically so that anyone with an Android phone could run quantized GGUF language models offline without paying for cloud APIs.

To see where budget hardware actually breaks—and which 2026 Small Language Models (SLMs) genuinely survive in the real world—I ran a structured offline AI benchmark on Android across 4 GB, 6 GB, and 8 GB RAM tiers. Here is what happened to first-token latency, tokens per second, memory pressure, battery drain, and device thermals.

Rendering diagram...

The Test Setup & Methodology

Running an LLM on a budget phone is a battle against memory bandwidth and Android's Low Memory Killer (lmkd). To keep the test reproducible and free of background network noise, every run followed the same protocol inside Local AI:

  • Network State: 100% Airplane Mode (Wi-Fi and mobile data off).
  • Inference Engine: Native llama.cpp (ARM64 NEON CPU backend) via JNI with memory-mapped I/O (mmap) enabled.
  • Quantization: Q4_K_M (4-bit medium quantization), which cuts memory footprints by ~75% while preserving roughly 95% of baseline reasoning quality.
  • Context Window (n_ctx): Locked at 2,048 tokens with a quantized KV cache to prevent RAM spikes.
  • Workload: A standardized 150-token prompt asking for a structured technical explanation, generating 250 output tokens, repeated in a continuous 30-minute stress loop to measure thermal throttling and battery drain.

The 2026 Small Language Models Tested

Instead of testing outdated 2024 checkpoints, I focused on the strongest compact models available in late 2026:

  • Qwen 3.5 0.8B (~0.6 GB): Built with a tiny KV cache spanning only 6 of its 24 layers, making it uniquely suited for constrained RAM.
  • Llama 3.2 1B (~0.8 GB): Meta's lightweight baseline for mobile summarization and fast chat.
  • Gemma 4 E2B (~1.6 GB): Google's edge-optimized 2.3B effective-parameter model using 512-token sliding-window layers to keep memory flat.
  • Llama 3.2 3B (~2.0 GB): The classic 3B all-rounder for structured text and light coding.
  • Gemma 4 E4B / Phi-4-mini (3.8B) (~2.4–2.7 GB): Heavyweight edge models pushing the upper limit of mid-range Android RAM.

Offline AI Benchmark Results: 4 GB vs. 6 GB vs. 8 GB Android RAM

On a budget Android phone, the operating system, launcher, and background services already consume 2.0 GB to 2.6 GB of RAM before you even open an app. That leaves a razor-thin window for model weights plus the KV cache.

Model (Q4_K_M)File Size4 GB RAM Phone (Budget SoC)6 GB RAM Phone (Mid-Range SoC)8 GB RAM Phone (Upper Mid-Range SoC)Peak App RAM (RSS)
Qwen 3.5 0.8B~0.6 GB18–24 tok/s · TTFT: 0.9s (Stable)24–30 tok/s · TTFT: 0.6s (Instant)28–35 tok/s · TTFT: 0.4s (Instant)~1.0 GB
Llama 3.2 1B~0.8 GB14–19 tok/s · TTFT: 1.2s (Stable)19–25 tok/s · TTFT: 0.8s (Smooth)22–28 tok/s · TTFT: 0.6s (Smooth)~1.25 GB
Gemma 4 E2B~1.6 GB6–9 tok/s · TTFT: 2.8s (Tight; closes apps)11–15 tok/s · TTFT: 1.5s (Sweet Spot)14–18 tok/s · TTFT: 1.1s (Fast)~2.1 GB
Llama 3.2 3B~2.0 GBCrash / OOM (Killed by lmkd)7–10 tok/s · TTFT: 2.6s (Usable)10–13 tok/s · TTFT: 1.8s (Solid)~2.6 GB
Gemma 4 E4B / Phi-4-mini~2.5 GBCrash / OOM (Fails to load)4–6 tok/s · TTFT: 4.5s (Heavy paging)7–10 tok/s · TTFT: 2.4s (Best Quality)~3.3 GB

[!NOTE] Human Reading Baseline: Human reading speed averages roughly 4 to 6 tokens per second. Anything above 8–10 tok/s feels comfortable for interactive reading, while anything below 5 tok/s feels noticeably slow.

Rendering diagram...

What Actually Happened on Each RAM Tier

1. The 4 GB RAM Reality: Survival Mode

Running a local LLM on Android 4GB RAM is possible, but you have zero room for ego. The moment you try to load a 3B model (~2.0 GB on disk plus KV cache and runtime buffers), Android’s lmkd daemon aggressively terminates the process to protect the OS.

On 4 GB hardware, sub-2B models are the only reliable daily drivers:

  • Qwen 3.5 0.8B and Llama 3.2 1B load in under two seconds and stream faster than you can read. They are surprisingly good at grammar correction, short email drafting, and quick offline definitions.
  • Gemma 4 E2B can run on a clean 4 GB phone if you clear recent apps first, but switching to another app mid-generation will almost always force Android to evict the model from memory.

2. The 6 GB RAM Sweet Spot: Where Offline AI Gets Useful

If you are looking for the best AI model for 6GB RAM, Gemma 4 E2B and Llama 3.2 3B completely change the experience.

With ~3.2 GB to 3.5 GB of usable headroom, a 6 GB mid-range phone holds a 2 GB–2.5 GB working set without constant disk thrashing. Gemma 4 E2B stood out in testing: because of its sliding-window attention design, memory usage stays predictable even as conversations grow longer, delivering 11–15 tokens/sec with noticeably sharper reasoning than 1B models.

3. The 8 GB RAM Tier: Entering Desktop Territory

At 8 GB of RAM, you unlock 3.8B to 4.5B models like Phi-4-mini and Gemma 4 E4B. While generation speed on mid-range silicon sits around 7–10 tokens/sec, the jump in instruction-following, coding syntax accuracy, and multi-step reasoning is massive. You can paste a 500-word lecture note or a Python function into Local AI in Airplane Mode and get genuinely useful analysis back.


Thermals, Battery Drain, and the 60-Second Throttling Wall

Speed benchmarks from a single 10-second prompt lie. When you run continuous offline inference on a phone without active cooling fans, physics catches up fast:

Stress Metric (30-Min Continuous Loop)0.8B – 1B Models2B – 3B Models4B Models (8 GB Phone)
Starting Battery Temp31°C31°C32°C
Peak Temp (After 15–30 Mins)37°C – 38°C (Slightly warm)40°C – 42°C (Noticeably warm)43°C – 45°C (Thermal throttle kicks in)
Sustained Speed Drop-5% to -10%-15% to -25%-30% to -40%
Battery Drain (30 Mins Active)~5% – 6%~7% – 9%~11% – 13%
Rendering diagram...
  • The 60-Second Wall: On passive-cooled budget phones, CPU big cores hit peak thermal limits after roughly 45 to 60 seconds of continuous token generation. Once the SoC throttles to protect the battery, a 3B model that started at 11 tok/s will settle closer to 8 tok/s.
  • Battery Impact: Continuous local generation drains roughly 12% to 24% battery per hour depending on model size—comparable to playing a 3D mobile game. However, in normal chat usage (reading responses for 30 seconds between prompts), the actual battery impact is much lower because the CPU drops straight back to idle the millisecond generation finishes.

Which Model Should You Pick for Your Phone?

Based on these real-world constraints, here is the practical cheat sheet for configuring Local AI:

Rendering diagram...
  • If you have 4 GB RAM: Download Qwen 3.5 0.8B (Q4_K_M) or Llama 3.2 1B (Q4_K_M). Keep n_ctx at 2048 and stick to short, focused prompts.
  • If you have 6 GB RAM: Download Gemma 4 E2B (Q4_K_M) as your primary daily driver, and keep Llama 3.2 3B (Q4_K_M) for heavier writing or coding tasks when other apps are closed.
  • If you have 8 GB RAM: Run Gemma 4 E4B (Q4_K_M) or Phi-4-mini (Q4_K_M) for the best reasoning-to-speed balance on mid-range silicon.

Test Your Own Phone Offline

You do not need a flagship phone—or a cloud subscription—to run private, offline AI in your pocket. The key is matching the GGUF model size to your device's actual RAM ceiling rather than blindly downloading the biggest file on Hugging Face.