Anyone adding AI to their workflow hits an awkward fork in the road. Cloud flagships are smart and fast, but you can't upload NDA client files to them, and subscription caps tend to run out right before a deadline. Local models cost zero per token and work with the internet unplugged, yet you immediately run into RAM limits and the ceiling of smaller weights.
That balance has shifted. A standard 16 GB Apple M4 Mac mini can now handle an agent's daily routine completely offline, while 32 GB machines just got the open-weight Inkling-2-Mini. Here are both setups with working commands and the real limits of local AI.
Why Disconnect Your Agent and When It Pays Off
People build fully offline setups for two practical reasons. First is client NDAs and personal data: support exports, CRM tickets, and financial summaries that must never touch a public chat.
Second is limit economics. Burning paid quota to sort notes, draft replies, or write 60 product descriptions makes little sense. A local machine grinds through that queue overnight at zero API cost, and it keeps working on a plane or inside a closed network.
You don't have to ditch the cloud. The smartest setup is hybrid: your Mac handles about 80% of routine work and data scrubbing, while complex strategy and heavy coding stay with a cloud flagship.
The Heavy Setup: Inkling-2-Mini by Thinking Machines Lab
If you need quality close to a dense 27-billion-parameter model, Thinking Machines Lab released open-weight Inkling-2-Mini in late November 2026 under the Apache 2.0 license, which allows free commercial use.
Under the hood, it runs a looped MoE transformer. Simply put, the model has 24 physical layers, and the middle 12 run three times in a row with shared weights (48 logical passes per token). Out of 128 expert blocks, 8 activate per step. Out of 26.4 billion total parameters, 3.4 billion are active in a single pass—or 5.4 billion effective parameters across the triple loop. It reads text and images from 40 to 4,096 pixels, with a context window up to one million tokens.
Official illustration of the open multimodal model Inkling-2-Mini by Thinking Machines Lab (Source: huggingface.co/thinkingmachines/Inkling-2-Mini)
On the open AA Index v5.0 benchmark, it matches the dense Qwen3.8-27B and beats larger local options. On Vals Index v2.2, it scores 46.5% compared to 29.8% for Nemotron 3.5 Super VL.
Local model comparison on the AA Index v5.0 benchmark
The chart highlights the main win of a looped MoE: running the middle layers three times gives dense-model quality with far fewer active parameters.
Now for the hardware reality check. The Inkling-2-Mini checkpoint in mixed NVFP4 and MXFP8 precision weighs 19–20 GB. You cannot squeeze it onto a 16 GB Mac—the system will hit heavy swap. Officially, you need Apple Silicon with at least 32 GB of RAM or a 32 GB VRAM GPU (such as an NVIDIA DGX Spark). It runs via Ollama, llama.cpp, vLLM, or SGLang.
On a Mac, weights load in 1–2 minutes and generate at 5–10 tokens per second. That's slow for live chat, but ideal for background queues. Its killer use case is a privacy airlock for PII (personally identifiable information like names, emails, phones, and order IDs). The local model swaps each client for a steady tag like [CLIENT_03], sends the scrubbed text to a cloud flagship for deep analysis, and restores real names back on your drive.
The same setup covers four more jobs: overnight support ticket triage with draft replies, batch product listings (six items with a title, five bullets, and a description take ~5 minutes at 8–10 tok/s), NDA client reports, and image analysis for SEO descriptions and alt text.
The 16 GB Build: Ollama, Gemma 4, Qwen 2.5, and Kokoro Voice
On a base M4 Mac mini with 16 GB of unified memory (shared RAM for CPU and GPU), one giant model loses to a modular stack with clear roles. Quantization—compressing weights from 16-bit numbers down to 4–8 bits—lets models fit into regular memory. In Ollama, four tools make a solid 16 GB kit:
| Component | Disk size | Context & format | Role in stack | Min RAM |
|---|---|---|---|---|
gemma4:e4b | 6.6–9.5 GB | 128K, text + image | Chat, reasoning, images | 16 GB |
qwen2.5:3b | 1.9 GB | 32K, text | Sorting, scoring, queues | 8 GB |
mxbai-embed-large | 670 MB | 512 tokens, text | Vector search over notes | 8 GB |
kokoro-onnx | ~300 MB (~80 MB quant) | Audio (ONNX CPU) | Offline voice replies | 8 GB |
Model size doesn't always decide narrow tasks. In a test sorting eight notes into folders, the larger gemma4:e4b dumped everything into one directory, while tiny qwen2.5:3b neatly split files across three folders and finished faster. Leave classification and lead scoring to lightweight Qwen, and save Gemma 4 for chat and images. On an 8 GB RAM machine, swap gemma4:e4b for gemma4:e2b (4.6–7.5 GB) or stick with qwen2.5:3b alone.
Official cover for the local model runner Ollama (Source: ollama.com)
For archive search, mxbai-embed-large turns every note into a numeric meaning vector, finding related files even without exact keyword matches. Voice comes from kokoro-onnx (MIT code, Kokoro-82M weights under Apache 2.0). Its ONNX Runtime engine synthesizes speech on the CPU in near real time, even on an Apple M1. The light trio of Qwen, embeddings, and voice uses about 3 GB of RAM; even with gemma4:e4b loaded, the stack fits inside 16 GB.
Download all weights ahead of time while you're online:
# Install Ollama via Homebrew (or from the official site)
brew install ollama
# Base stack for 16 GB RAM
ollama pull gemma4:e4b
ollama pull qwen2.5:3b
ollama pull mxbai-embed-large
# For 8 GB RAM instead of gemma4:e4b:
# ollama pull gemma4:e2b
# For 32 GB+ RAM (or NVIDIA DGX Spark):
# ollama pull inkling-2-mini
# Auto-unload weights after 5 minutes of idle time
export OLLAMA_KEEP_ALIVE=5m
Now the weights sit on your drive, and OLLAMA_KEEP_ALIVE frees RAM after five minutes of silence. Next, set up local speech synthesis with uv and Python 3.12:
# Environment and packages for local TTS
uv init -p 3.12 local-tts && cd local-tts
uv add kokoro-onnx soundfile
# Download model weights (~300 MB) and voices once in advance
BASE="https://github.com/thewh1teagle/kokoro-onnx/releases/download"
VER="model-files-v1.1"
curl -LO "$BASE/$VER/kokoro-v1.0.onnx"
curl -LO "$BASE/$VER/voices-v1.0.bin"
Once downloaded, test speech output with a short speak.py script that makes zero cloud calls:
import soundfile as sf
from kokoro_onnx import Kokoro
# Load local ONNX weights and voice dictionary
kokoro = Kokoro("kokoro-v1.0.onnx", "voices-v1.0.bin")
# Generate audio on CPU and save to WAV
samples, sample_rate = kokoro.create(
"All five overnight tasks finished locally with zero cloud calls.",
voice="af_heart",
speed=1.0,
)
sf.write("reply.wav", samples, sample_rate)
The script writes reply.wav in a fraction of a second on your CPU, and not a single character leaves your machine. The last step is locking down internet access for the server using macOS's built-in sandbox-exec (Seatbelt). Save an offline-ollama.sb profile that blocks all external traffic and allows only the local 127.0.0.1 loopback:
(version 1)
(allow default)
; Block all external network traffic
(deny network*)
; Allow access only to localhost and 127.0.0.1 loopback
(allow network-inbound (local ip "localhost:*"))
(allow network-outbound (remote ip "localhost:*"))
(allow network* (local ip "127.0.0.1:*"))
(allow network* (remote ip "127.0.0.1:*"))
This profile blocks every outbound socket at the OS level while keeping Ollama's local HTTP port open. Launch the server inside the sandbox and verify it responds:
# Start the server with outbound network blocked
sandbox-exec -f offline-ollama.sb /opt/homebrew/bin/ollama serve
# Check in another terminal: local API replies, 0 bytes go outside
curl http://127.0.0.1:11434/api/tags
Localhost 127.0.0.1:11434 works normally, while the OS cuts off any attempt to reach external sites. Note that Apple marked the sandbox-exec CLI as deprecated, though it still works in current macOS versions. It's plenty for a personal overnight setup; for strict work environments, back it up with pf rules or the built-in firewall.
Honest Limits of 16 GB and Three Common Mistakes
Compact 3B–8B models handle sorting, scoring, short summaries, drafts, and PII scrubbing well. On long code, complex strategy, or writing long articles from scratch, they lose context and fall behind cloud flagships. Local inference is also slower than data centers, especially on the first token, so run it in overnight queues and add a rule to your scripts: don't start a model if less than 40% of RAM is free.
In practice, builds usually trip over three mistakes. First is running models alongside a video editor and forty browser tabs, where fighting over 16 GB drops speed to a few words a minute. Second is queueing vague prompts like "grow my business" instead of one-line specs like "write 3 hooks for a launch email." Third is forgetting to update your notes—without fresh data, mxbai-embed-large vector search spins its wheels.



