Skip to main content
DARKPC.NET

Guide 8 of 20 / Linux & local AI

AI Without an Internet Connection

Prepare, test and maintain a local workflow that keeps working after Wi-Fi is disconnected.

Prepare software, models and documentation

Offline inference is practical when the runtime, model weights and any needed assets are already on the device. Download the runtime and a local model while connected. Save a copy of the installation instructions and record versions, licences, where files are stored and how to restart the service. Save any dictionaries, templates or reference documents the task needs.

Test in a real disconnect

If you start the runtime yourself, stop your own foreground instance with Ctrl+C before starting a new one with the command below. Set the environment variable on the server process. For a service-managed install, use the official FAQ and your distribution’s service settings. A variable on a CLI command does not reconfigure a service that is already running.

OLLAMA_NO_CLOUD=1 ollama serve

In another terminal, confirm the local model is listed. Disconnect Wi-Fi and wired network access after downloads finish and run a new prompt. Keep essential network-dependent services in mind before disconnecting a shared workstation.

ollama list
ollama run llama3.2:1b "List the days Monday to Wednesday, one per line."

Know what changes offline

A local model can explain an old manual excerpt but has no current web sources during a disconnect. Web search, online speech recognition and cloud-hosted chat interfaces may all stop working. Test every step of the workflow, including the input and accessibility tools, and keep a plain-text or keyboard-accessible fallback.

Build a recovery kit

A rural learner can prepare short local tutorials before travelling. Keep a copy of important prompts and notes in portable formats. Record compatible runtime and model versions and test with harmless sample files after updates. A laptop still needs working storage, sufficient power and maintenance.

Practical exercise

While connected, save a fictional meeting note and install a documented local model. Disconnect, start a fresh session, summarise the note and save the result locally. Reconnect when needed and tick off which steps worked offline.

Learning completion checklist

References and further reading

Browse all AI guides