Cloud Pick Guide

Home / Ollama on Vultr

Run Ollama on a Vultr GPU, step by step

The quickest way to a private LLM on a rented GPU: Ollama on a Vultr A40 or A100. Which GPU to pick, eight short steps, and how to keep the API and the bill under control.

  • 8 steps, about 15 minutes
  • A40 $1.712/h
  • A100 $2.397/h
  • Chat and API

Some links on this page are affiliate links.

On this page
  1. Pick a GPU
  2. Deploy
  3. Check the GPU
  4. Install Ollama
  5. Run a model
  6. Longer context
  7. Use the API
  8. Control cost
  9. Questions people ask

What you will end up with

  • A Vultr GPU server running Ollama, with an open model you can chat with or call from your own code.
  • About 15 minutes of work. Vultr's A40 is $1.712 an hour, the A100 $2.397.
  • Commands follow the Ollama and Vultr docs; download sizes are from Ollama's model library. We have not benchmarked speed.

1. Pick a GPU

Ollama downloads 4-bit versions of most models by default, so a 48 GB GPU runs up to about 32B, and an 80 GB GPU runs 70B models. Vultr opens and closes GPU regions as capacity changes; the deploy page shows what is open:

Vultr GPUMemoryPer hourWhere
A4048 GB$1.7122 regions
A10080 GB$2.397New Jersey

For other models, our VRAM calculator works out the memory.

Create an account with $300 credit

New accounts only; the credit lasts 30 days, about 175 hours of the A40.

2. Deploy the server

  1. New accounts have a spending limit; if the deploy is refused, request a higher limit (how).
  2. In the Vultr console, create an instance: Cloud GPU, the GPU and plan, a location where it is open, and an Ubuntu image.
  3. Add your SSH key and a firewall group that allows only SSH (port 22), ideally from your IP address only.

3. Check the GPU

ssh root@YOUR_SERVER_IP
nvidia-smi

You should see the GPU and its memory. If not, wait a few minutes: the driver installs on first boot.

4. Install Ollama

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

The script installs Ollama as a service that starts on boot. It listens on 127.0.0.1, port 11434.

5. Run a model

ollama run qwen2.5:32b

The first run downloads the model, then opens a chat in the terminal. Type /bye to leave; the model stays available to the API. Download sizes from Ollama's library:

Model tagDownloadFits on
qwen2.5:7b4.7 GBA40 or A100, with room for many users
qwen2.5:14b9.0 GBA40 or A100
qwen2.5:32b20 GBA40 or A100
llama3.3:70b43 GBA100; A40 only with a short context
qwen2.5:72b47 GBA100
qwen2.5:32b-instruct-fp1666 GBA100

6. Give it a longer context

Ollama's FAQ gives 4,096 tokens as the default context. For longer documents, raise it for the service:

systemctl edit ollama
# add under [Service]:
#   Environment="OLLAMA_CONTEXT_LENGTH=16384"
systemctl daemon-reload && systemctl restart ollama

Longer contexts use more GPU memory; the calculator shows how much.

7. Use it from your computer

Open an SSH tunnel so the API is never exposed to the internet:

ssh -L 11434:127.0.0.1:11434 root@YOUR_SERVER_IP

Then call it from your computer:

curl http://127.0.0.1:11434/api/chat -d '{"model": "qwen2.5:32b", "messages": [{"role": "user", "content": "Hello"}], "stream": false}'

Ollama also serves an OpenAI-compatible API at http://127.0.0.1:11434/v1, so most chat apps and SDKs work by changing the base URL.

8. Keep the bill under control

  • Delete when done. A stopped Vultr server is still billed, for every hour it exists.
  • Budget: 8 hours a day for 22 working days is 176 hours, about $301 on the A40 or $422 on the A100.
  • Models are large. Keep them on block storage if you redeploy often, so you don't download them again.

Sources

Questions people ask

Does Ollama use the GPU on Vultr?

Yes. Vultr's standard images install the NVIDIA driver and CUDA at first boot, and Ollama detects the GPU when it installs. Check with nvidia-smi before installing.

Ollama or vLLM?

Ollama is the quickest way to run one model for yourself or a small team, with ready-made 4-bit downloads. vLLM serves many users at once more efficiently. Our vLLM guide covers that setup.

How do I make Ollama reachable from other machines?

Ollama listens only on the server itself by default. Use an SSH tunnel, or set OLLAMA_HOST and put it behind HTTPS with access limited to your addresses: Ollama's API has no password of its own.

Which Vultr GPU should I pick for Ollama?

The A40 (48 GB, $1.712 an hour) runs models up to 32B comfortably; the A100 80 GB ($2.397 an hour) runs 70B models. Vultr sells its A16 for virtual desktops and video.

How do I stop paying?

Delete the server. A stopped Vultr server is still billed.

Up to $300 free creditClaim credit