Advertising disclosure: We may earn a commission when you buy through links on this page. It does not change the price you pay or the order of the list.

Guide

How to self-host an LLM on your own server

To self-host an LLM, pick a runtime (Ollama for the easiest start, llama.cpp for CPU-only machines, vLLM for serving many users), check how much memory your model needs with the VRAM calculator, and run it on a server you control. Small models run on a CPU-only VPS; anything interactive or larger than a few billion parameters wants a GPU you can rent by the hour.

🗓️ Published October 28, 2026

Why self-host an LLM at all

The main reason is control. Your prompts and documents never leave a machine you rent, nothing is logged by a third party, and nobody can change or retire the model under you. That matters for customer data, internal documents and anything covered by a contract or privacy law.

The second reason is predictable cost at high, steady volume. A server costs the same whether you send ten requests or ten thousand. The flip side: an idle GPU still bills by the hour, so self-hosting only pays off when you keep it busy or switch it off between jobs.

Ollama, llama.cpp or vLLM: which runtime

All three are free and open source. They differ in who they are built for.

  • Ollama - one install script, then `ollama pull` and `ollama run`. Great for a single user, a small team, or an app that calls a local API. Uses quantized models, so it fits more into less memory.
  • llama.cpp - the engine underneath many tools, including Ollama. Use it directly when you want fine control, CPU-only inference, or the smallest possible footprint.
  • vLLM - a serving engine for GPUs. It batches many requests at once and exposes an OpenAI-compatible API, so it shines when several users or services hit the model at the same time.
  • Put Open WebUI or a similar front end on top if you want a ChatGPT-style chat window.

GPU prices per hour

On-demand prices for one card. A month running 24/7 is about 730 hours.

GPUVRAMProviderper GPU-hour24/7 monthOffer
RTX 4000 Ada20 GBAkamai Cloud (Linode) · on-demand$0.52/hrSeptember 28, 2026$380See plan →
RTX 4000 Ada20 GBDigitalOcean · on-demand$0.76/hrSeptember 28, 2026$555See plan →
L424 GBVast.ai · marketplace-median$0.33/hrSeptember 28, 2026$241See plan →
RTX 409024 GBNovita AI · on-demand$0.34/hrSeptember 28, 2026$245See plan →
RTX 409024 GBRunPod · community$0.34/hrSeptember 28, 2026$248See plan →
L424 GBRunPod · community$0.44/hrSeptember 28, 2026$321See plan →
L424 GBRunPod · secure$0.49/hrSeptember 28, 2026$358See plan →
RTX 409024 GBVast.ai · marketplace-median$0.50/hrSeptember 28, 2026$365See plan →
RTX 409024 GBRunPod · secure$0.74/hrSeptember 28, 2026$540See plan →
Quadro RTX 600024 GBAkamai Cloud (Linode) · on-demand$1.50/hrSeptember 28, 2026$1,095See plan →
RTX 509032 GBVast.ai · marketplace-median$0.60/hrSeptember 28, 2026$438See plan →
RTX 509032 GBRunPod · community$0.69/hrSeptember 28, 2026$504See plan →
RTX 509032 GBRunPod · secure$0.99/hrSeptember 28, 2026$723See plan →
RTX A600048 GBRunPod · community$0.33/hrSeptember 28, 2026$241See plan →
RTX A600048 GBVast.ai · marketplace-median$0.47/hrSeptember 28, 2026$343See plan →
RTX A600048 GBRunPod · secure$0.53/hrSeptember 28, 2026$387See plan →
RTX A600048 GBMassed Compute · on-demand$0.57/hrSeptember 28, 2026$416See plan →
L40S48 GBRunPod · community$0.79/hrSeptember 28, 2026$577See plan →
RTX 6000 Ada48 GBMassed Compute · on-demand$0.79/hrSeptember 28, 2026$577See plan →
L40S48 GBVast.ai · marketplace-median$0.80/hrSeptember 28, 2026$584See plan →
L40S48 GBMassed Compute · on-demand$0.97/hrSeptember 28, 2026$708See plan →
L40S48 GBRunPod · secure$1.09/hrSeptember 28, 2026$796See plan →
RTX A600048 GBLambda · on-demand$1.09/hrSeptember 28, 2026$796See plan →
L40S48 GBDigitalOcean · on-demand$1.57/hrSeptember 28, 2026$1,146See plan →
RTX 6000 Ada48 GBDigitalOcean · on-demand$1.57/hrSeptember 28, 2026$1,146See plan →
L40S48 GBVultr · on-demand$1.67/hrSeptember 28, 2026$1,220See plan →
RTX A600048 GBPaperspace (DigitalOcean) · on-demand$1.89/hrSeptember 28, 2026$1,380See plan →
A100 80GB SXM80 GBVast.ai · marketplace-median$0.83/hrSeptember 28, 2026$606See plan →
A100 80GB PCIe80 GBRunPod · community$1.19/hrSeptember 28, 2026$869See plan →
A100 80GB80 GBMassed Compute · on-demand$1.35/hrSeptember 28, 2026$986See plan →
A100 80GB SXM80 GBRunPod · community$1.39/hrSeptember 28, 2026$1,015See plan →
A100 80GB PCIe80 GBRunPod · secure$1.59/hrSeptember 28, 2026$1,161See plan →
H100 PCIe80 GBRunPod · community$1.99/hrSeptember 28, 2026$1,453See plan →
H100 SXM80 GBRunPod · community$2.69/hrSeptember 28, 2026$1,964See plan →
H10080 GBMassed Compute · on-demand$2.73/hrSeptember 28, 2026$1,993See plan →
H100 SXM80 GBVast.ai · marketplace-median$2.77/hrSeptember 28, 2026$2,022See plan →
H100 PCIe80 GBRunPod · secure$2.89/hrSeptember 28, 2026$2,110See plan →
H100 PCIe80 GBLambda · on-demand$3.29/hrSeptember 28, 2026$2,402See plan →
H100 SXM80 GBRunPod · secure$3.49/hrSeptember 28, 2026$2,548See plan →
H100 SXM80 GBLambda · on-demand$3.99/hrSeptember 28, 2026$2,913See plan →
H10080 GBDigitalOcean · on-demand$4.41/hrSeptember 28, 2026$3,219See plan →
H10080 GBPaperspace (DigitalOcean) · on-demand$5.95/hrSeptember 28, 2026$4,344See plan →
H200141 GBRunPod · community$3.59/hrSeptember 28, 2026$2,621See plan →
H200141 GBDigitalOcean · on-demand$4.47/hrSeptember 28, 2026$3,263See plan →
MI300X192 GBDigitalOcean · on-demand$2.59/hrSeptember 28, 2026$1,891See plan →

CPU or GPU: what your server needs

Memory decides whether a model runs at all; the processor decides how fast. On a CPU-only VPS the model sits in regular RAM, which is cheap, but answers come slowly. That is fine for background jobs such as summaries, tagging or automations that nobody watches in real time.

For chat that feels instant, for larger models, or for more than one person at a time, you want the model in GPU memory (VRAM). Don't guess the number: open the VRAM calculator, pick the model and the quantization, and it tells you how much memory the weights and the context need and which cards fit.

Remember that the context window costs memory too. Long documents and many parallel chats can push a model that barely fits over the edge.

Renting a GPU by the hour

You do not need to buy a graphics card. GPU clouds rent single cards or whole multi-GPU machines by the hour, and many offer ready templates with Ollama, vLLM or a notebook already installed. The GPU table below shows current hourly prices for the cards we track.

Two habits keep the bill sane. First, stop or delete the instance when you are done - a month of 24/7 running is about 730 hours, so a forgotten pod adds up fast. Second, keep model files on a persistent volume so you do not download tens of gigabytes every time you start.

When an API is the cheaper choice

Be honest about your volume. If you send a few hundred requests a day, paying per token to a hosted model is usually cheaper than keeping a GPU warm, and you get a stronger model with no maintenance. Self-hosting wins when usage is heavy and steady, when data cannot leave your control, or when you need a specific open model.

Our Self-host vs API tool does the math for you: enter your expected tokens per month and it compares an hourly GPU against current API prices.

A simple first setup

Start small and grow only when you hit a limit.

  • Rent a Linux server or GPU pod sized with the VRAM calculator.
  • Install Ollama (or start a vLLM container) and pull one model.
  • Keep the model port closed to the internet; reach it through a VPN, SSH tunnel or a web UI with a login.
  • Add a reverse proxy with HTTPS if an app or teammates need access.
  • Watch memory and response times for a week before you upgrade.
VRAM calculator
Will this LLM fit on your GPU - and which GPU to rent
Try the tool →

Questions people ask

Can I self host an LLM without a GPU?

Yes. Small quantized models run on a CPU-only VPS with Ollama or llama.cpp. They answer slowly, so this suits background tasks rather than live chat. Check the memory you need in the VRAM calculator - on a CPU it applies to regular RAM.

Is Ollama good enough for production?

For one user, a small team or a low-traffic app, yes. When many people use the model at the same time, a serving engine such as vLLM handles parallel requests much better.

Is self-hosting an LLM cheaper than using an API?

Only at high, steady volume or when privacy rules force it. For light use an API is usually cheaper. The Self-host vs API tool compares both for your numbers.

Is my data private when I self-host?

Your prompts stay on the server you rent and are not sent to a model provider. You still trust the hosting company with the machine, so pick one whose location and terms fit your needs, and keep the server patched and closed to the public.

More guides

Related