Ollama infrastructure

Best Ollama Hosting: Managed GPU, VPS and Self-Hosted Options

Ollama can run as a local model runtime on your own hardware and can also access Ollama-hosted cloud models through the same CLI and API. The right deployment depends on model size, uptime requirements, network access needs, data privacy constraints, and budget.

GPU cloud sizing workflow from model artifact and quantization through VRAM and context capacity to total cost including compute, storage and network egress
GPU sizing and cost planning workflow. No vendor performance ranking or real-time pricing is implied.

Ollama deployment models compared

Each deployment model has different implications for memory, persistence, networking, and operational responsibility. Choose based on the workload, not the simplest option.

DeploymentBest fitMemoryPersistenceNetworkTradeoff
Local workstation (Mac / PC)Private local inference, development, prototypingLimited to installed RAM/VRAMRuns while the machine is on and Ollama is startedlocalhost only by defaultUptime depends on the workstation. No remote access without additional networking.
Dedicated local machine (e.g. Mac mini, Linux box)Always-on local inference, LAN model serverCan be sized for the workload at purchase timeSurvives reboots if Ollama is configured as a system serviceLAN access; internet exposure requires reverse proxy / VPNYou own all maintenance, power, cooling, backups, and recovery.
CPU VPSSmall quantized models, agent orchestration, light embedding workloadsTypically 4–64 GB system RAM; no GPU VRAMPersistent remote server with provider-managed uptimeInternet-accessible; firewalling and auth requiredLarge-model inference will be slow. CPU-only means no GPU acceleration.
GPU VPS / cloud GPULarger models, faster inference, remote GPU-accelerated workloads24–141+ GB VRAM depending on instance typePersistent if using dedicated instances; ephemeral on spot/serverlessInternet-accessible; firewalling and auth requiredHigher hourly cost. You manage OS, drivers, runtime, and recovery.
Ollama cloud models (preview)Models too large for local hardware; quick access without GPU provisioningRuns on Ollama-hosted infrastructure; no local GPU requiredManaged by Ollama; requires internet and Ollama v0.12+ with sign-inUses the standard Ollama API through localhost; inference runs remotelyData leaves your machine. Pricing and availability may change during preview.

Ollama memory sizing

Ollama loads model weights into GPU memory (or system RAM on CPU-only setups). The Ollama FAQ documents that required RAM scales with the combination of model size, OLLAMA_NUM_PARALLEL (concurrent request slots, default 1), and OLLAMA_CONTEXT_LENGTH (default 4096 tokens). Increasing either parallel slots or context length increases the memory allocation beyond the model weights alone.

TEST PENDING: Actual idle RAM, loaded RAM, model load time, and per-token throughput for specific models on specific hardware have not been measured by Agent Infra Guide. These are future Evidence Layer test specifications.

Ollama model storage

Ollama stores downloaded models locally. Default locations:

Override with the OLLAMA_MODELS environment variable. On a VPS or server, ensure the storage volume has enough space for the models you intend to keep — quantized large models can be 10–50+ GB each. On Linux, the ollama user needs read/write access to the custom directory.

Ollama service persistence and recovery

For a server that should survive reboots and process failures:

Exposing Ollama to the network

By default Ollama binds to 127.0.0.1:11434 and is only accessible from the local machine. To serve other machines:

Ollama cloud models (preview)

As of Ollama v0.12, Ollama supports cloud models that run on Ollama-hosted infrastructure while using the same CLI and API interface. This means an application can use the Ollama API without changes while selected models execute remotely. Access requires signing in with ollama signin.

Currently available cloud models include large models like deepseek-v3.1:671b-cloud and qwen3-coder:480b-cloud that would be impractical to run on most local hardware. This is a preview feature — available models, pricing, and data-handling policies may change.

Architecture difference: Ollama cloud models are not the same as self-hosting Ollama on a VPS or GPU cloud. With cloud models, inference runs on Ollama's servers and your data leaves your machine. With self-hosted Ollama, you control the hardware, data stays on your infrastructure, and you manage the full operational stack.

When to host Ollama on a remote server

Sources

Agent Infrastructure Recommendation Kit

Planning Ollama infrastructure for production use?

The Agent Infrastructure Recommendation Kit helps you define requirements, size memory and storage, compare local, VPS, and GPU deployment options, and document a defensible infrastructure recommendation — before you commit to hardware or a provider.

Get the Recommendation Kit — $19