Running AI models locally: memory, privacy and request contracts

Choose a supported local deployment, budget working memory, distinguish local and cloud requests, and evaluate the exact artifact and request contract.

By benchr Editorial Team · · · Changelog

A local model is useful when you need control over an exact checkpoint, local data handling or operation without an inference service. Begin with a small, supported deployment and one real task. The model file's download size, an advertised context limit and a familiar API format do not establish that the whole application will work on your machine.

Choose the runtime for the artifact you have

Use the local deployment reference to inspect supported records and their sources, then use the guides here to evaluate the complete setup.

A checkpoint, tokenizer, chat template and runtime form a deployment. Confirm the exact architecture and quantization format are supported by your installed runtime. A file ending in .gguf is not interchangeable with an arbitrary Transformers checkpoint, and a runtime update can change template handling or default settings.

Ollama packages supported models behind an application and API. llama.cpp provides direct control over supported model files and device placement. A Python serving stack may be appropriate when you need its architecture support or deployment tooling. Choose according to the documented model contract and the operations you can maintain, rather than a promise that one runtime runs every open-weight model.

Budget working memory, not just the download

Allow room for resident weights, prompt and generation state, computation buffers and the rest of the system. Quantization changes the representation of supported tensors; it does not remove every other allocation. CPU RAM, discrete GPU memory and shared system memory have different placement and performance implications. Do not add their capacities together and assume the runtime can use them as one fast pool.

Start with a bounded context and a single active request. Increase those settings only after checking memory and the time needed to complete your task. Read the deployment guide for CPU and partial-offload choices, or the CUDA diagnosis when an existing GPU process fails.

Make a local-only configuration explicit

Ollama's FAQ distinguishes locally executed models from cloud-hosted models. It documents OLLAMA_NO_CLOUD=1 and the disable_ollama_cloud configuration option for disabling its cloud features, followed by a restart. Confirm the selected model and actual request destination rather than treating the desktop application as proof of local execution.

For a local-only workflow, review telemetry, remote tools, embedding services, web search and synchronization systems across the complete application. Download required artifacts before an offline trial, then test the intended workflow without network access. Preserve the resulting errors as well as successful output; do not silently replace an unavailable local operation with a remote model.

Keep an inference server on loopback during setup

The llama.cpp server reference documents model, context, GPU-layer, host and port controls. This command is an illustrative configuration, not an executed setup. The file path is a placeholder for a supported model you have already downloaded. It requests CPU weight placement and an explicit local listening address; backend allocations still depend on the build.

llama-server --model ./models/chosen-model.gguf --ctx-size 4096 --n-gpu-layers 0 --host 127.0.0.1 --port 8080

Check the installed binary's help and the chosen model's requirements before using the example. A successful health endpoint establishes server readiness, not model quality. If you later expose a service beyond the machine, add the authentication, network restrictions and transport protections appropriate to that environment. Do not enable filesystem or shell tools merely to make a chat demonstration richer.

Evaluate a task you can inspect

Use a small set of inputs with known acceptance criteria: extract named fields from documents you control, explain a specific function or produce a summary checked against its source. Retain the exact prompts, model revision, quantization, template, settings, outputs and elapsed times. Include failed cases. The same model name with different artifacts or templates is a different experimental condition.

For structured output, validate both syntax and the meaning of each value. For tool use, inspect the proposed arguments before running anything. A compatible HTTP request shape does not guarantee identical stop behavior, reasoning fields, JSON-schema support or tool protocols. Keep a fallback that reports an unsupported operation rather than inventing a result.

Labs can compare outputs you supply and retain local review history. It does not run your local server or certify that deployment. benchr has not executed the command above or measured local model performance for this article.

Changelog

  • 2026-10-16 — Rebuilt local setup guidance around exact artifacts, memory, explicit local-only operation, loopback serving and retained task evaluations. Removed generic hardware tiers and unsupported performance promises.
  • September 11, 2026 — Updated the frontier comparison from Claude Opus 4.7 and GPT-5 to the current Claude Opus 5 and GPT-5.6 Sol, and relabeled Llama 4 Maverick from "frontier-class" to a large open MoE in the hardware grid. Memory planning and cost guidance are unchanged.
  • July 24, 2026 — Replaced the absolute “data never leaves” statement with deployment conditions covering telemetry, remote tools, logs, backups, monitoring exports, access, and connected services.
  • May 25, 2026 — Pre-publication verification: checked pricing against provider documentation and prepared cost figures reflecting Anthropic's pricing adjustments and Google's Gemini 3.1 Pro Preview rollout.
  • May 30, 2026 — Published with retrospective coverage through the March 7, 2026 subject date.

Sources and documentation review

Documentation review dates are recorded per source. No provider inference or independent benchmark replication was performed for this revision.

  1. Ollama local and cloud operation — read
  2. llama.cpp server and request controls — read
  3. llama.cpp quantization contract — read