How to use from the
Use from the
llama-cpp-python library
# !pip install llama-cpp-python

from llama_cpp import Llama

llm = Llama.from_pretrained(
	repo_id="AmareshHebbar/pocketllm-models",
	filename="",
)
llm.create_chat_completion(
	messages = [
		{
			"role": "user",
			"content": "What is the capital of France?"
		}
	]
)

PocketLLM Model Collection

The official model collection for PocketLLM

Private β€’ Offline β€’ On-Device AI for Android

GitHub Platform License


What is PocketLLM?

PocketLLM is an Android app that runs large language models completely on your device β€” no internet required during inference, no data sent to the cloud, no subscriptions.

This repository hosts the curated model collection optimized for mobile edge inference using:

  • MediaPipe LLM Inference (for .bin and .task files β€” Gemma family)
  • llama.cpp via llama.rn (for .gguf files β€” Llama, Phi, Qwen, SmolLM, Gemma 3)

Model Catalog

⚑ Ultra Fast β€” Under 1 GB, fits any Android phone

Model File Size Format RAM
Qwen 2.5 0.5B qwen2.5-0.5b-instruct-q4_k_m.gguf 0.4 GB GGUF 2 GB
Gemma 3 1B gemma-3-1b-it-q4_k_m.gguf 0.7 GB GGUF 2 GB
Llama 3.2 1B llama-3.2-1b-instruct-q4_k_m.gguf 0.8 GB GGUF 3 GB
SmolLM2 1.7B smollm2-1.7b-instruct-q4_k_m.gguf 1.0 GB GGUF 3 GB

βš–οΈ Balanced β€” 1–2 GB, great quality on mid-range phones

Model File Size Format RAM
Gemma 1.1 2B (CPU) gemma-1.1-2b-it-cpu-int4.bin 1.35 GB MediaPipe 4 GB
Gemma 1.1 2B (GPU) gemma-1.1-2b-it-gpu-int4.bin 1.35 GB MediaPipe 4 GB
Llama 3.2 3B llama-3.2-3b-instruct-q4_k_m.gguf 2.0 GB GGUF 4 GB

πŸš€ Powerful β€” Best quality, needs 5GB+ RAM

Model File Size Format RAM
Phi-3.5 Mini phi-3.5-mini-instruct-q4_k_m.gguf 2.4 GB GGUF 5 GB
Gemma 3 4B gemma-3-4b-it-q4_k_m.gguf 2.8 GB GGUF 6 GB

How to Use in PocketLLM

Models are downloaded directly inside the PocketLLM app. Open the Model Store tab, select a model, and tap Download. The app handles everything automatically.

Direct download URLs:

https://huggingface.co/AmareshHebbar/pocketllm-models/resolve/main/<filename>

Fine-Tuning Roadmap

Coming soon β€” within the next 2 weeks

We are fine-tuning these base models specifically for on-device conversational AI on mobile:

Goals

  • Better persona adherence (the model stays in character consistently)
  • Shorter, more natural responses (base models tend to be verbose on mobile)
  • Improved memory utilization (uses injected memories naturally)
  • Better instruction following for small context windows (2048 tokens)
  • Hindi + English code-switching support (for India market)

Training approach

  • Base: Llama 3.2 1B, Gemma 3 1B (smallest models first β€” fastest iteration)
  • Method: QLoRA fine-tuning (4-bit, similar to the AxioMapper training setup)
  • Dataset: Curated conversational dataset optimized for mobile edge constraints
  • Hardware: Single A100 via RunPod
  • Framework: Unsloth (2x faster fine-tuning, same as AxioMapper)

Fine-tuned models (coming soon)

  • pocketllm-llama-1b-v1.gguf β€” Llama 3.2 1B fine-tuned for mobile chat
  • pocketllm-gemma-1b-v1.gguf β€” Gemma 3 1B fine-tuned for persona consistency

Model Selection Guide

Your phone has...          Best model to start with
─────────────────────────────────────────────────────
2 GB RAM (budget)    β†’    Qwen 2.5 0.5B  (fastest)
3 GB RAM             β†’    Llama 3.2 1B   (balanced speed)
4 GB RAM (mid-range) β†’    Gemma 1.1 2B   (best all-rounder)
6 GB RAM             β†’    Llama 3.2 3B   (better quality)
8 GB RAM (flagship)  β†’    Phi-3.5 Mini   (best for coding)

Technical Details

MediaPipe format (.bin, .task)

  • Used for Gemma family
  • Runs via Google's MediaPipe LLM Inference SDK
  • Supports CPU and GPU acceleration (Vulkan/OpenCL)
  • Integrated via react-native-llm-mediapipe

GGUF format (.gguf)

  • Used for Llama, Qwen, Phi, SmolLM, Gemma 3
  • Runs via llama.cpp (the gold standard for mobile inference)
  • Q4_K_M quantization β€” best balance of size and quality
  • Integrated via llama.rn

Repository Structure

pocketllm-models/
β”œβ”€β”€ gemma-1.1-2b-it-cpu-int4.bin       ← Gemma 2B CPU (MediaPipe)
β”œβ”€β”€ gemma-1.1-2b-it-gpu-int4.bin       ← Gemma 2B GPU (MediaPipe)
β”œβ”€β”€ gemma-3-1b-it-q4_k_m.gguf         ← Gemma 3 1B (GGUF)
β”œβ”€β”€ gemma-3-4b-it-q4_k_m.gguf         ← Gemma 3 4B (GGUF)
β”œβ”€β”€ llama-3.2-1b-instruct-q4_k_m.gguf ← Llama 3.2 1B (GGUF)
β”œβ”€β”€ llama-3.2-3b-instruct-q4_k_m.gguf ← Llama 3.2 3B (GGUF)
β”œβ”€β”€ phi-3.5-mini-instruct-q4_k_m.gguf ← Phi-3.5 Mini (GGUF)
β”œβ”€β”€ qwen2.5-0.5b-instruct-q4_k_m.gguf ← Qwen 2.5 0.5B (GGUF)
└── smollm2-1.7b-instruct-q4_k_m.gguf ← SmolLM2 1.7B (GGUF)

License


Built By

Amaresh Hebbar

Building PocketLLM: the only mobile app that runs a full AI agent stack β€” smart routing, persona memory, MCP tools β€” completely offline on Android.

"Your AI. Your phone. Nobody else's business."

GitHub

Downloads last month
24
GGUF
Model size
1.0B params
Architecture
gemma3
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support