cat ~/writing/run-ai-offline.md
Run AI Offline on Android, iPhone, Mac, Windows & Linux
on this page
Cloud AI sends every prompt you type to a remote server. For quick questions that’s fine. But running capable AI models directly on your own hardware (no account, no subscription, no data leaving your device) is now a realistic option for ordinary hardware.
This guide covers what offline AI actually is, which apps to use on each platform, which models fit your hardware, how quantization works, and what the genuine trade-offs are.
Key takeaways
- Turn on airplane mode after setup: if the model still answers, it’s truly local.
- Memory capacity decides what fits; memory bandwidth decides how fast it runs.
- Q4_K_M is the right starting quantization for most GGUF models.
- PocketPal AI is the best mobile starting point; LM Studio is the friendliest desktop GUI.
- Jan is desktop-only (Windows, macOS, Linux) and has no official iOS app; on iPhone and iPad, use PocketPal AI or Locally AI.
- Small local models are less capable than frontier cloud models. That trade-off is worth it for private, offline work, not for every task.
Local, offline, cloud, hybrid: what these actually mean
Four terms get mixed together:
- Local AI inference: the model runs on your device.
- Offline AI: after setup, the model keeps working with no internet.
- Cloud AI: your prompts travel to a remote server.
- Hybrid AI: local handles some tasks, cloud handles others.
An app being installed locally doesn’t mean its AI runs locally. Some apps are local shells for cloud services. The test: turn on airplane mode. If the model still answers, it’s genuinely running on your device.
What offline AI can actually do
Modern small models handle more than you’d expect. Realistic everyday uses:
- Text work: writing, rewriting, summarizing, translating, brainstorming, explaining.
- Documents: reading PDFs and notes and asking questions about your own files, using retrieval-augmented generation (RAG).
- Vision: analyzing photos, screenshots, and diagrams with vision-capable models.
- Voice: speech-to-text and transcription via companion models like Whisper (a separate model from the chat model itself).
- Code: explaining snippets, generating boilerplate, reviewing files, serving a local API for your editor.
One boundary to know: speech recognition, image generation, OCR, and embeddings are separate model types. A single LLM app won’t cover all of them.
The best apps, by platform
No single app wins everywhere. Pick the best tool for the device in front of you.
| Platform | First pick | Alternative |
|---|---|---|
| Android | PocketPal AI | Google AI Edge Gallery |
| iPhone / iPad | PocketPal AI | Locally AI |
| macOS (Apple Silicon) | LM Studio | Jan, Ollama |
| Windows | LM Studio | Jan, Ollama |
| Linux | Jan | LM Studio, Ollama |
A quick tour of each:
- PocketPal AI: open-source and the best mobile starting point. It supports GGUF models, downloads directly from Hugging Face, runs inference offline, and uses hardware acceleration (Metal on iOS, GPU/NPU paths on Android) on supported devices.
- Locally AI: backed by LM Studio, a clean offline app for iPhone, iPad, and Mac that runs GGUF and MLX models locally with zero login or data collection.
- LM Studio: the friendliest desktop GUI, with model discovery, chat, document chat, and a local API server in one place. On macOS it requires Apple Silicon (M1 or later); Intel Macs are not supported. Windows (x64 and ARM64) and Linux (x64 and ARM64) work fine.
- Jan: the best fully open-source desktop alternative. It runs an OpenAI-compatible local API on
localhost:1337, supports MCP, and works across Windows, macOS, and Linux. Note that Jan is desktop-only and has no official iOS app; avoid similarly named lookalike apps on the App Store. - Ollama: the developer’s choice. It runs as a local model service for the terminal and automation scripts, and also works as a backend for other apps.
- AnythingLLM: specializes in chatting with your own documents using local RAG workspaces.
LM Studio does not support Intel Macs. If you have an Intel Mac, use Jan or Ollama instead.
Will your device actually run it?
Memory capacity determines what fits; memory bandwidth and compute determine how fast it runs.
Phones:
| Free RAM | Realistic models |
|---|---|
| 4 GB | 0.5B–1B (a taste, not a productive tool) |
| 6 GB | 1B–2B models |
| 8 GB | 2B–4B models |
| 12 GB | 3B–7B, depending on quantization |
| 16 GB+ | Larger mobile-oriented models |
Computers:
| System RAM | Model size | GPU VRAM | Model size |
|---|---|---|---|
| 8 GB | 1B–3B | 4 GB | 1B–3B, or partial offload |
| 16 GB | 7B–8B at Q4 | 8 GB | 7B–8B at Q4 |
| 24 GB | 8B–14B | 12 GB | 8B–14B |
| 32 GB | 14B–20B | 16 GB | 14B and up |
| 64 GB | 27B–32B | 24 GB | 27B–32B |
Quantization in one minute
Models store billions of numbers. Quantization stores those numbers with fewer bits, shrinking memory use at a small quality cost. You’ll see labels like Q4, Q5, Q6, Q8. As a starting point, Q4_K_M is the sensible default for GGUF models; step up to Q5 or Q6 when you have headroom.
The file size alone does not tell you the memory requirement:
Total memory ≈ model weights + conversation cache (KV cache) + runtime overhead
A 4 GB model file does not mean 4 GB of free RAM is enough. Context length and chat history push memory use up as the conversation grows.
Which models to try
Match the model to the task and the hardware. There is no universal best.
| Model | Best for | Runs on |
|---|---|---|
| Gemma 4 E2B / E4B | Lightweight mobile and edge | Phones, laptops |
| Qwen 3.5 2B / 4B | Compact general, multilingual, vision | Phones, powerful laptops |
| Qwen 3.5 9B | Demanding general tasks | Computers |
| Phi-4-mini | Math, logic, reasoning | Computers |
| Gemma 4 12B / 26B | Heavy general and multimodal work | Higher-memory computers |
Three tips that save headaches: start with an instruction-tuned model (marked Instruct or IT, not a base model); for MoE models, judge memory requirements by total stored weights, not the smaller active-parameter count; and if you care about a specific language like Bangla, test it on a real prompt first. “Multilingual” is a claim, not a guarantee.
Good places to browse: the Ollama library, Hugging Face, and the LM Studio catalog.
Getting started, end to end
A concrete path on a desktop:
- Install LM Studio (Windows or Apple Silicon Mac) or Jan (Linux, Intel Mac, or any desktop).
- Download an instruction-tuned model that fits your memory table above, using Q4 quantization first.
- Chat, then switch on airplane mode and keep chatting.
For the terminal path with Ollama, llama3.2:3b is the right starting command on most laptops:
ollama pull llama3.2:3b
ollama run llama3.2:3b
On a phone, install PocketPal AI (or Locally AI on iOS), download a small model (a 2B–4B Q4 is a good start on an 8 GB device), and you have an assistant that works in flight mode.
Two useful configurations beyond basic chat: your phone and computer can each run their own model offline. Or the computer can act as a local AI server (LM Studio and Ollama both expose an API endpoint), and your phone connects over your home Wi-Fi to use the bigger model. No internet needed, as long as the local network is up. Keep that endpoint on your private network only.
Related: Best offline file-sharing apps: LocalSend, LANDrop, and more
Privacy, security, and safe use
Local AI is private if you set it up that way, not automatically:
- Verify the model runs locally (airplane mode is the test).
- Download models only from trusted sources. Read the license before you use it commercially.
- Turn off optional cloud providers and online search features inside the app.
- Check whether chat history and logs stay on-device.
- Never expose a local API endpoint to the public internet.
Honest limitations
Small models are less capable than frontier cloud models. They hallucinate confidently. Their knowledge is frozen at training time, so they don’t know about recent events. Phones run warm and lose battery quickly under inference load. And getting a model to perform reliably on a specific task (like a particular language or domain) often requires testing several options.
Local AI is not a full replacement for cloud AI. It’s a private, offline-capable alternative for the workflows that fit: writing, summarizing, explaining code, and asking questions about your own documents. For those tasks, the trade-off is often exactly right.
Which one should you use?
- On a phone, any OS: PocketPal AI, then download a 2B–4B Q4 model (or Locally AI on iPhone).
- On a Mac with Apple Silicon: LM Studio, starting with a Gemma 4 or Qwen 3.5 model at Q4.
- On an Intel Mac: Jan or Ollama; LM Studio does not support Intel Macs.
- On Windows or Linux: LM Studio or Jan, your preference; Ollama if you prefer the terminal.
- For coding or automation: Ollama as a backend, paired with your editor’s local-AI plugin.
- For chatting with your own documents: AnythingLLM over a local Ollama backend.
FAQ
Does running AI offline actually protect my privacy? Yes, if you do it correctly. The model runs locally and your prompts never leave the device. Check two things: that the app itself does not phone home (turn on airplane mode and confirm the model still answers), and that any API endpoint you expose stays on your private network.
How much storage do I need for local AI models? Plan for 2 GB to 10 GB per model in Q4 format, depending on parameter count. A 3B model is around 2 GB; an 8B model is around 4–5 GB. Download one model at a time and delete what you don’t use.
Can I run a local AI model without a GPU? Yes. CPU inference works on any modern computer. It runs slower than GPU inference but is usable for most text tasks on a 7B–8B model at Q4. Metal acceleration on Apple Silicon, CUDA on NVIDIA GPUs, and ROCm on AMD GPUs all speed things up significantly.
Is llama3.1 still worth using? llama3.2 (1B, 3B) is a better starting point for edge devices: smaller, faster, and instruction-tuned out of the box. llama3.1:8b is still widely used for 8–16 GB setups and remains framework-compatible, but newer models like Qwen 3.5 and Gemma 4 often outperform it on specific tasks. Test on your hardware.
Does Jan have an official iPhone or Android app? No. As of November 2026, Jan is a desktop application for Windows, macOS, and Linux only. Watch out for similarly named apps on the iOS App Store that charge subscriptions; use PocketPal AI or Locally AI on iOS instead.
Sources
- PocketPal AI: Official site
- PocketPal AI: GitHub
- Locally AI: Official site
- Google AI Edge Gallery: GitHub
- LM Studio: System requirements
- Jan: Official site
- Ollama: Model library
- Hugging Face: Model hub
- AnythingLLM: Official site
Last verified: 2026-11-29
Pick one app for your primary device, pull a Q4 model that fits your RAM table, and run a prompt in airplane mode to confirm it works.