Field Guides / Run a private AI assistant offline

Setup guide · last checked December 2, 2026

Run a private AI assistant offline.

Size the hardware, pick a model you’re allowed to use, carry it across the gap, and prove nothing leaves.

For teams with controlled or sensitive data that can’t go to a cloud AI service. It assumes someone on your team can install software on a Linux or Windows machine. It does not assume you have done this before.

Step 1

Is offline right for you?

Offline is more work to run and less capable than the best cloud models. Choose it for a reason you can write down.

Step 2

Size the hardware

Memory decides which models you can run. A model needs room for its weights, plus room for the conversation and documents it is working on.

Quantization stores each weight in fewer bits, so the model takes less memory at some cost in quality. The llama.cpp project publishes these sizes for Llama 3.1 at full 32-bit precision and at its common 4-bit setting, Q4_K_M (llama.cpp):

Model sizeAt 4-bit (Q4_K_M)What that means
8 billion parameters4.9 GB (32.1 GB at full precision)Fits a 16 GB machine with room for context.
70 billion parameters43.1 GB (280.9 GB)Needs a 64 GB machine or 48 GB of GPU memory, and leaves little for context at 48 GB.
405 billion parameters249.1 GB (1,625.1 GB)Server-class hardware. Not a small-office install.

Rule of thumb: memory in GB ≈ billions of parameters × bits per weight ÷ 8. Q4_K_M averages about 4.9 bits per weight (llama.cpp), so a 14-billion-parameter model needs about 14 × 4.9 ÷ 8 ≈ 8.6 GB for its weights.

Then add room for context. A longer context, meaning more conversation and more document text at once, needs more memory (Ollama docs), and so does each extra person using it at the same time. I size for the weights plus at least a quarter again, then test with real documents before buying more.

Step 3

Choose a model you may use

Open weights does not mean no rules. Read the licence before you build on a model.

ModelLicenceWorth knowing
OpenAI gpt-oss-20bApache 2.0A permissive open-source licence.
Qwen3-8BApache 2.0A permissive open-source licence.
Mistral Small 3.2 (24B)Apache 2.0A permissive open-source licence.
Llama 3.1Llama 3.1 Community LicenseRequires an acceptable use policy, a “Built with Llama” notice when you distribute it, and a separate licence above 700 million monthly users.
Gemma 3Gemma Terms of UseIncorporates a prohibited use policy you must follow.

Licences as shown on each model’s page on December 2, 2026. Read the licence file itself; this table is a summary, not legal advice.

Step 4

Pick a runtime

The runtime loads the model and answers requests. Start with the simplest one that fits how many people will use it.

RuntimeBest forOffline notes
llama.cppOne machine, CPU or GPU, GGUF model files, the most control.Has had memory-safety bugs in its model loader and its network server (see updates). Keep it current.
OllamaThe easiest start: one command to run a model, with a local API.Listens on 127.0.0.1 only unless you change it (Ollama FAQ). Its cloud features can be switched off with OLLAMA_NO_CLOUD=1 (Ollama FAQ).
vLLMA GPU server answering many people at once.Collects anonymous usage data by default; VLLM_NO_USAGE_STATS=1 or DO_NOT_TRACK=1 turns it off (vLLM docs).

I don’t call any of these “offline” until I have watched it run with the network blocked (Step 7). Settings change between versions; check them on the version you install.

Step 6

Carry it across the gap

Everything that crosses into the offline network, from installers and models to drivers and updates, goes through one recorded process.

  1. Download on a connected machine from the publisher’s own page. Note the exact version and the source address.
  2. Record a SHA-256 hash of every file (for example sha256sum * on Linux or Get-FileHash on Windows). Compare it with the publisher’s checksum or signature wherever one is published.
  3. Scan the media under your normal policy, carry it across, and hash every file again on the far side. Any mismatch stops the install.
  4. Write one line per file in a transfer log: date, file, version, hash, source, who carried it, who checked it.

Tools that download on first run need a hint that there is no internet. Hugging Face’s libraries, for example, make no network calls with HF_HUB_OFFLINE=1 and use only files already cached (Hugging Face).

Step 7

No outbound network, and proof

Settings reduce what software tries to send. Only a blocked network guarantees it can’t.

Step 8

Keep it updated

An offline system still has vulnerabilities. It just doesn’t get patched on its own.

Install checklist

Twelve things to be able to say before people rely on it.

  1. Decide. We confirmed the data can’t go to a cloud service, or chose offline for another stated reason.
  2. Size. The model and its context fit in memory, with headroom.
  3. Licence. We read the model’s licence and recorded it.
  4. Files. Model weights are safetensors or GGUF from the publisher, not pickle files from a stranger.
  5. Transfer. Every file was hashed before and after the transfer, and the log is signed off.
  6. Network. Outbound traffic is blocked by default, and a test proved it.
  7. Exposure. Each service listens only where it must: the machine itself or the internal network.
  8. Settings. Telemetry, cloud features and online model downloads are switched off.
  9. Search. Document search respects the same permissions as the source files.
  10. Testing. A set of questions with known answers was run, and the results were recorded.
  11. Inventory. Every runtime, model, driver and OS version is written down.
  12. Updates. Someone owns checking advisories, on a date, with a rollback copy kept.

On paper: the printable checklist has these twelve lines with space to sign each one off.

Honest limits

What an offline assistant won’t do, so nobody is surprised.

If you’d rather have it set up for you, sized to your hardware and handed over with a runbook, that is my Offline AI Setup.

Sources and method

Written by Matthew Bonham with AI drafting assistance. Every fact on this page links to its source, and the sources below were last checked on December 2, 2026. The steps, sizing headroom and checklist are my recommendations, not requirements of any agency or vendor.

No affiliation with any project, vendor or agency named here is implied. Spot an error or an out-of-date version? Tell me.