Ollama can run local inference with model files already downloaded, but installing Ollama does not make an entire application offline. You must also account for cloud models, web search, remote embeddings and connected tools, then test the workflow with the network disconnected.
Official documentation was reviewed on 2026-10-20. This guide provides preparation paths and proposed checks; we have not installed a model or performed a disconnection test on your device. The default scope is inference on the target machine. If you use an internal server, include that server in the deployment dependencies.
Choose a setup path before disconnecting
| Can the target machine connect beforehand? | Preparation path | Ready to test when |
|---|---|---|
| Yes | Install Ollama, download a local model and run it on that machine before disconnecting | Model files, interface and actual task materials are ready |
| Never | Prepare matching installation materials, compatible model files and dependencies on another machine, then transfer them by an approved method | Installation, local import and the task work on the isolated target |
| Only an interface is installed locally; inference uses an internal server | Include the server, its model files and the connection in the test | You have verified where inference happens, rather than treating a working laptop interface as local inference |
The program and model weights are separate materials. Copying an online installation script onto an isolated machine does not include the program it needs to download.
Define which layers must work offline
| Layer | Prepare locally | Common hidden dependency |
|---|---|---|
| Model inference | Complete model files and a working Ollama service | A cloud model selection or missing files |
| Chat interface | An installed interface that opens locally | Remote page assets, sign-in or history storage |
| Document questions | Documents, an index and local embedding model | Local generation paired with cloud embeddings |
| Agent tools | Local tools and their input data | Search, web fetching and remote MCP services |
Write an acceptance task such as “answer three questions whose answers are present in these local text files.” A task that requires today’s online information cannot retain that capability after you remove network access.
Prepare files and test cases while connected
Choose your platform from the official Ollama download page, install the service and prepare a local model suited to the target’s resources. This is the command sequence; replace LOCAL_MODEL_TAG with a local model tag you have checked, rather than running the placeholder literally:
ollama pull LOCAL_MODEL_TAG
ollama list
ollama run LOCAL_MODEL_TAG
Complete the download while connectivity is available. Do not wait until disconnection to let run fetch a missing model. Check the exact model name and loading result on the actual server, rather than trusting a separate interface’s menu. The memory-sizing guide (Chinese) explains why file size alone is insufficient.
Run a minimal local task while the network still works, and record how the service was started. This makes it easier to distinguish an existing setup problem from a dependency exposed by disconnection.
Save short and representative long inputs, plus expected answers. A successful greeting will not exercise document parsing, indexing or long-context behavior. Test material should resemble the work you actually need to perform.
Install on an isolated target using local files
Prepare a transfer manifest containing the program’s source, version, target OS and architecture; model files and license; required drivers, runtime dependencies, interface resources and task documents. Record file sizes and SHA-256 digests before and after transfer to check completeness. Your own digest comparison does not independently authenticate the publisher or source.
The official Linux manual-install instructions provide architecture-specific archives, with extra materials for some GPU configurations. Prepare the appropriate files on the connected machine, then follow the target platform’s installation instructions using those local files. The documented online curl download cannot complete on an isolated machine. For other platforms, prepare materials from their official download entry rather than applying Linux extraction paths.
For an already obtained compatible single-file GGUF, use the official model-import and Modelfile workflow. The filename below is a placeholder. Check architecture and format compatibility; a split model needs all its shards, not just one file.
Place these two files in one working directory:
offline-kit/
LOCAL_MODEL.gguf
Modelfile
Contents of Modelfile:
FROM ./LOCAL_MODEL.gguf
With the Ollama service available, run from that directory:
ollama create offline-demo -f ./Modelfile
ollama list
ollama run offline-demo
This imports a local file instead of naming a registry model in FROM. Current import documentation says to prepare the required GGUF quantization beforehand; the import does not quantize it for you. If the file is incompatible or incomplete, return to the preparation manifest. Reconnecting to fetch missing materials is not a successful offline acceptance test.
Check which server receives the request
Inspect OLLAMA_HOST and the third-party interface’s server address. The documented default is 127.0.0.1:11434, but a custom address can point to another computer. ollama list describes the connected server’s models, which alone does not establish that their weights are on your laptop.
In a shell with curl installed, query the local model-list endpoint explicitly:
curl --noproxy '*' http://127.0.0.1:11434/api/tags
Use curl.exe in PowerShell if curl is an alias for a different command. This checks the service and list, not generation quality. For a refused connection, check startup, address and port before changing the model. If you move model storage, consult the FAQ for OLLAMA_MODELS and the actual service account’s directory permissions.
Disable Ollama’s cloud features
The official Ollama FAQ documents disable_ollama_cloud in ~/.ollama/server.json, or the service environment variable OLLAMA_NO_CLOUD=1. Disabling cloud features removes Ollama cloud models and web search.
Configuration field example:
{
"disable_ollama_cloud": true
}
Merge this field into an existing configuration rather than overwriting other settings. Restart Ollama, then check for the documented log message Ollama cloud disabled: true before running the offline test below. An environment variable must reach the process that runs the service; setting it in an unrelated terminal does not reconfigure an already-running desktop application or service.
This controls Ollama’s cloud features. It does not disable networking in a third-party interface, plugin or other program. Requirements covering the complete application need checks at those layers as well.
Run an offline acceptance test
- End the previous test session, disconnect external networking, and reopen Ollama and your actual interface.
- Run
ollama run MODEL_NAME, replacing the placeholder with the local name recorded fromollama list. - Provide a locally saved short document and ask for specific fields. Compare the answer with the source yourself.
- Add a longer input, then exercise the parsing, embedding, indexing and retrieval steps you will use.
- Close and reopen the application and repeat. This helps expose reliance on an old session or cached state.
- Record the model, software version, startup method, result and exact failure message.
Success establishes offline functionality for the cases tested. It does not prove that no program ever attempts an outbound connection. If that is part of your requirement, examine firewall or network logs separately. Functioning without a network and never attempting a connection are different claims.
Download a repeatable acceptance worksheet
Use this synthetic local document, three questions and expected answers, and blank results CSV to compare the same task before disconnection and after a disconnected restart. The files contain invented test data, not device measurements or customer records.
Save all three files while connected. Paste the document and one question into the interface you actually plan to use. Record the first answer, including failures; the third question checks whether the model invents an owner absent from the source. Repeat with the same model and input after the offline restart described above. A correct answer while connected is only a baseline, not evidence of offline readiness. Keep version, endpoint, disconnection and restart fields explicit; leave unperformed checks blank rather than marking them passed.
Do not put private documents, account names, keys or tokens into a result sheet intended for sharing. This tiny fixture checks a repeatable text task only; it does not establish document parsing, embeddings, long-context quality or zero outbound attempts. Those dependencies need their own cases.
Troubleshoot by the first failing layer
| Symptom | Check first | Next action |
|---|---|---|
| Model not found | Download completeness and exact model name | Prepare the model while connected, then repeat offline |
| GGUF import fails | File completeness, compatibility and path relative to the Modelfile | Check the import requirements; renaming an extension is not a format conversion |
| Interface can chat but the local API is unreachable | Whether the interface connects to another server | Define the deployment boundary, then test the local or internal server explicitly |
| Command line works but the UI fails | UI service address, account and remote resources | Compare the UI path with the minimal local call |
| Chat works but document questions fail | Embedding model, parser and index location | Test parsing, embedding and retrieval separately |
| Slow responses or process exit | Memory, context length and concurrent requests | Reduce the input or model size, then retry realistic material |
| Features disappear after disabling cloud | Previous cloud model or web-search dependency | Identify a local replacement or document that the feature needs connectivity |
Decide whether the deployment is ready
Mark a workflow offline-ready only after its real task survives both a restart and network disconnection. List untested features, including speech, image parsing and plugins. Adding one later requires a new acceptance test for that dependency.
Local operation does not automatically settle file permissions, logging or model-license requirements. Evaluate those for the application and data involved.
Official sources (reviewed 2026-10-20): Downloads, Linux manual installation, model import, Modelfile reference, model-list API and cloud/service configuration FAQ. The preparation paths, transfer manifest and layered acceptance sequence are our editorial method, not measured device results.