No items found.
Start Building
Guide

Ollama in the Cloud: Why You'd Rent a GPU Instead of Running Locally

Most people hit a wall running Ollama locally. Here's when renting a cloud GPU solves it, and why renting often beats buying hardware you'll rarely max out.

Author photo
packet.ai Team
July 17, 2026

Most people start running Ollama on their laptop. Eventually they hit one of four walls: the model no longer fits, responses get painfully slow, teammates need access too, or the machine is tied up doing something else. Renting a GPU solves all four at once, and costs less per hour than most people expect.

Key takeaways

  • Renting a cloud GPU for Ollama is worth it once you outgrow local hardware: model doesn’t fit, laptop is slow, or teammates need access.
  • Ollama installs in one command on any Ubuntu server; the only variable is how much VRAM the instance has.
  • A cloud GPU is available in minutes and billed hourly, so you can test a 70B model for two hours and pay less than $2.
  • The RTX 4090 (24 GB, $0.39/hr on packet.ai) handles 7B to 13B models natively; the L40S (48 GB, $0.92/hr) runs 30B comfortably; the RTX Pro 6000 (96 GB, $0.66/hr) handles 70B at FP8 on a single card.

This guide covers the four reasons teams move Ollama to the cloud, how to pick the right GPU, and how to get a model running in under ten minutes on packet.ai.

Why Run Ollama on a Cloud GPU?

Ollama works fine locally for small models on machines with a modern GPU. The reasons to move it to a cloud instance are specific and predictable.

Model doesn’t fit locally

A 70B model at FP16 needs 140 GB of VRAM. No consumer GPU has that. A cloud instance does.

Local inference is too slow

A MacBook with Apple Silicon can run 7B models, but token throughput on a dedicated GPU is 10 to 50 times faster depending on batch size.

Teammates need access

A cloud instance has a public IP. You can expose Ollama on port 11434 and share access without anyone needing to install anything locally.

Local machine is busy

Running Ollama on your laptop while trying to use it for anything else degrades both. A cloud instance runs in the background without competing for resources.

Picking the Right GPU for Ollama

The GPU decision for Ollama is almost entirely a VRAM question. Ollama loads model weights into GPU memory and keeps them there. If the model doesn’t fit, Ollama falls back to CPU inference, which is orders of magnitude slower.

GPU VRAM Price on packet.ai Best Ollama models
RTX 4090 24 GB $0.39/hr 7B, 13B at Q4
L40S 48 GB $0.92/hr 13B, 30B, 70B at Q4
RTX 6000 Pro 96 GB $0.66/hr 70B at FP8, 30B at FP16
A100 80 GB $0.69/hr 70B at FP8, 30B at FP16
H200 141 GB Coming soon 70B at FP16, 405B at Q4

The RTX 6000 Pro is worth calling out specifically for Ollama: at 96 GB and $0.66/hr, it is currently the cheapest single GPU on packet.ai that runs Llama 3.3 70B at FP8 without spilling to CPU. The A100 (80 GB, $0.69/hr) also fits 70B at FP8, with slightly less headroom for KV cache. For teams that want to run 70B in production at the lowest possible hourly rate, either of those two GPUs is the practical starting point.

Running Ollama on a Cloud GPU: Step by Step

The setup process for Ollama on a cloud GPU is short. packet.ai instances provision with CUDA pre-installed; Ollama itself is a single binary.

Step 1: Launch a GPU instance

Log in to packet.ai, select a GPU (RTX 4090, L40S, A100, or RTX Pro 6000 depending on model size), and launch an on-demand instance. SSH access is available within 5 minutes.

ssh ubuntu@<your-instance-ip>

Step 2: Install Ollama

Ollama provides a one-line install script that detects CUDA automatically and sets up the service.

curl -fsSL https://ollama.com/install.sh | sh

After installation, Ollama runs as a system service on port 11434 and auto-detects the GPU.

Step 3: Pull and run a model

ollama pull llama3.3:70b
ollama run llama3.3:70b

For the 70B model, use llama3.3:70b-instruct-q8_0 (Q8, ~70 GB) on a 96 GB instance or llama3.3:70b-instruct-q4_K_M (Q4, ~40 GB) on a 48 GB instance.

Step 4: Expose the API (optional)

To make Ollama accessible from outside the instance, set the host environment variable before starting the service:

OLLAMA_HOST=0.0.0.0 ollama serve

The API is then available at http://<your-instance-ip>:11434. You can point any OpenAI-compatible client at it by changing the base URL.

Cloud GPU vs Local: Cost Comparison

Running Ollama locally has no hourly cost, but it ties up the machine and caps you at whatever VRAM your local GPU has. A cloud GPU is available in any size, billed by the hour, and leaves your local machine free.

Setup Max model size Hourly cost Machine free? Team access
MacBook M3 Max (48 GB unified) 30B at Q4 $0 No No
RTX 4090 (24 GB) on packet.ai 13B at Q4 $0.39/hr Yes Yes
L40S (48 GB) on packet.ai 70B at Q4 $0.92/hr Yes Yes
RTX Pro 6000 (96 GB) on packet.ai 70B at FP8 $0.66/hr Yes Yes

For a team running Ollama a few hours a day, the economics of a cloud GPU are straightforward: less than the cost of a coffee per session, no machine tied up, and teammates can connect from anywhere.

Frequently asked questions

Ollama itself is free and open source. You pay only for the GPU instance you rent. On packet.ai, that starts at $0.39/hr for an RTX 4090.
At Q4 quantisation, Llama 3.3 70B needs approximately 40 GB of VRAM and fits on an L40S (48 GB, $0.92/hr). At FP8, it needs roughly 70 GB and fits on an A100 (80 GB, $0.69/hr) or RTX Pro 6000 (96 GB, $0.66/hr).
Set OLLAMA_HOST=0.0.0.0 before starting the Ollama service. The API will be available at http://<instance-ip>:11434. Any OpenAI-compatible client can point to that URL.
A full 24-hour day on an RTX 4090 costs $9.36. On an L40S it is $22.08. On an A100 it is $16.56. Most teams run a cloud GPU for a few hours at a time rather than continuously.

Waste less compute.

Same models. Same API. Fraction of the cost. Start free — no credit card required.

Start Building →

More from the blog