Cloud Pick Guide

Home / vLLM on Vultr

Run vLLM on a Vultr GPU, step by step

From an empty Vultr account to an open model answering through an OpenAI-compatible API: which GPU to pick, the commands to run, how to keep it private and how to keep the bill small.

  • 8 steps, about 30 minutes
  • A40 $1.712/h
  • A100 $2.397/h
  • OpenAI-compatible API

Some links on this page are affiliate links.

On this page
  1. Pick a GPU
  2. Account limit
  3. Deploy
  4. Check the GPU
  5. Install vLLM
  6. Start the model
  7. Send a request
  8. Control cost
  9. Questions people ask

What you will end up with

  • A Vultr GPU server running vLLM, serving an open model through an OpenAI-compatible API.
  • About 30 minutes of work and a few dollars of GPU time: the A40 is $1.712 an hour, the A100 $2.397.
  • Commands follow the vLLM and Vultr docs. We have not benchmarked speed on these servers.

1. Pick a GPU and region

vLLM loads the whole model into GPU memory, so pick by memory. These are the Vultr GPUs suited to it. Vultr opens and closes GPU regions as capacity changes, so check the deploy page for what is open:

Vultr GPUMemoryPer hourWhereGood for
A4048 GB$1.7122 regionsQwen2.5 7B/14B at 16-bit, 32B with AWQ 4-bit
A10080 GB$2.397New Jersey32B at 16-bit, 70B with AWQ 4-bit

To size another model, use our VRAM calculator. Prices for every Vultr GPU are on our Vultr GPU pricing page. Just want to chat with a model yourself? Ollama is quicker to set up.

2. Check your account limit

New Vultr accounts have a cap on what their servers can cost. A100 time adds up to about $1,750 for a month, so the deploy may be refused. If it is, open the account limits page and request an increase, saying what you plan to run. Vultr's instructions.

Create an account with $300 credit

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

3. Deploy the server

  1. In the Vultr console, open Compute and create an instance.
  2. Choose Cloud GPU, then the GPU and the plan, then a location where it is available.
  3. Choose an Ubuntu image. Vultr's standard images install the NVIDIA driver and CUDA toolkit at first boot.
  4. Add your SSH key, and attach a firewall group that allows only SSH (port 22), ideally only from your IP address.
  5. Deploy, wait for the status to show running, and copy the IP address.

4. Check the GPU

Log in and confirm the driver sees the GPU:

ssh root@YOUR_SERVER_IP
nvidia-smi

You should see the GPU name and its memory. If the command is missing, wait a few minutes: the driver installs on first boot. Vultr's troubleshooting page covers the rest.

5. Install vLLM

apt-get update && apt-get install -y python3-venv
python3 -m venv ~/vllm
source ~/vllm/bin/activate
pip install --upgrade pip
pip install vllm

The install downloads a few gigabytes. vLLM's own docs list the Python and CUDA versions each release supports.

6. Start the model

This serves Qwen2.5 7B Instruct, an Apache-licensed model that needs no sign-in to download, on the local interface only, with an API key:

export VLLM_API_KEY=$(openssl rand -hex 16); echo $VLLM_API_KEY
vllm serve Qwen/Qwen2.5-7B-Instruct --host 127.0.0.1 --port 8000 \
  --api-key $VLLM_API_KEY --max-model-len 8192

The first start downloads the model (about 15 GB). When the log says the server is running, it is ready.

  • Bigger model on an A40: Qwen/Qwen2.5-32B-Instruct-AWQ, a 4-bit version of about 20 GB.
  • Out of memory? Lower --max-model-len, or use a smaller or 4-bit model.
  • Gated models such as Llama need a Hugging Face account and token: accept the licence on the model page, then export HF_TOKEN=... before starting.

7. Send a request

Open an SSH tunnel from your computer, so the API is never exposed to the internet:

ssh -L 8000:127.0.0.1:8000 root@YOUR_SERVER_IP

Then, in another terminal on your computer:

curl http://127.0.0.1:8000/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" \
  -d '{"model": "Qwen/Qwen2.5-7B-Instruct", "messages": [{"role": "user", "content": "Hello"}]}'

Any OpenAI-compatible client works: point its base URL at http://127.0.0.1:8000/v1 and use your key. To serve other machines, put vLLM behind HTTPS and open the port in the firewall group only to the addresses that need it.

8. Keep the bill under control

  • Delete when done. A stopped Vultr server is still billed. Vultr bills GPU servers for every hour they exist.
  • Budget in hours: 8 hours a day for 22 working days is 176 hours, about $301 on the A40 or $422 on the A100.
  • Keep the model cache on block storage if you redeploy often, so you don't download it each time.

Sources

Questions people ask

Does Vultr install NVIDIA drivers on GPU servers?

Yes. Vultr says its standard images install the licensed NVIDIA driver and the CUDA toolkit when the server first boots. Run nvidia-smi to check before you install anything.

Which Vultr GPU is best for vLLM?

The A40 (48 GB, $1.712 an hour) for models up to about 14B at 16-bit or 32B at 4-bit; the A100 80 GB ($2.397 an hour) for bigger ones. Vultr sells the A16 for virtual desktops and video, not for this.

Why can't I deploy a GPU on a new Vultr account?

New accounts have a cap on what their servers can cost, and GPU servers are expensive per month. Request a higher limit from the account limits page, saying what you will run.

How do I stop paying for the GPU?

Delete the server. A stopped server is still billed on Vultr. Copy anything you need off it first.

Is vLLM free?

Yes. vLLM is open-source (Apache 2.0). You pay only for the server. Some models have their own licences; check the model card.

Up to $300 free creditClaim credit