Best VPS for Local LLMs in 2026: Hostinger vs DigitalOcean vs Hetzner (Cost per Million Tokens)
TL;DR: For one 3B model and one or two users, Hostinger KVM 2 is the cheapest way in: 2 vCPU, 8 GB RAM, NVMe, around $6.49/month on the current promo. For four vCPUs and the best price per core, Hetzner CX32 costs roughly €8.99/month including IPv4. DigitalOcean charges $48/month for the same 8 GB / 4 vCPU tier — you are paying for the ecosystem, not the hardware. None of the three will run a 14B model comfortably in 8 GB; the memory math decides that before the provider does.
This is a buying guide, not a benchmark fantasy. Every number below is either from the provider's public pricing page (checked December 6, 2026) or from math you can reproduce on your own box. Prices move, promos expire, and CPU inference varies by host — so the last section shows how to measure your real ceiling before you commit a year.
If you want the full deployment walkthrough first, it lives here: run open-weight LLMs on a $7 VPS. This post is the purchasing decision around it.
1. The three numbers that actually decide your bill
Most "best VPS for LLM" posts compare RAM only. RAM is necessary but not sufficient. Three numbers decide whether a box is usable and whether it is worth the money:
- RAM after the OS. An 8 GB VPS gives you roughly 7 GB of usable memory. The kernel, systemd, nginx and your monitoring stack eat 0.5–1 GB. If
free -mshows less than 800 MB available after the model loads, you are one request away from the OOM killer. - Decode throughput. This is tokens per second during generation, and it is bound by memory bandwidth, not by the marketing sheet. A 2 vCPU box and a 4 vCPU box can differ by 2–3x on the same model.
- Price per vCPU-hour. This normalizes providers that sell different core counts. A $6 VPS with two cores is not automatically cheaper than a $9 VPS with four.
Compute the third one yourself before you compare monthly stickers:
price_per_vcpu_hour = monthly_price / (vcpu_count × 730)
At the prices below, that produces a surprise: the cheapest monthly plan is not the cheapest per core.
| Provider / plan | vCPU | RAM | Disk | Monthly (Dec 2026) | $ per vCPU-hour |
|---|---|---|---|---|---|
| Hostinger KVM 2 (promo) | 2 | 8 GB | 100 GB NVMe | ~$6.49 | ~$0.0044 |
| Hetzner CX32 + IPv4 | 4 | 8 GB | 80 GB SSD | ~€8.99 (~$9.70) | ~$0.0033 |
| DigitalOcean Basic | 4 | 8 GB | 160 GB SSD | $48.00 | ~$0.0164 |
Read that table twice. Hostinger wins on the absolute monthly bill. Hetzner wins on cost per core by about 25%. DigitalOcean costs roughly five times Hetzner for the same 8 GB / 4 vCPU shape.
Whether that matters depends on your workload. A single-user chat box does not need four cores. A small team hitting the same endpoint does.
2. What 8 GB actually fits in 2026
Before comparing providers, confirm the model fits at all. The budget is:
total RAM ≈ weights + KV cache + runtime overhead (0.5–1.0 GB)
At Q4_K_M, weights are roughly 0.6 bytes per parameter:
| Model | Weights (Q4_K_M) | KV @ 4K (F16) | Total | Verdict on 8 GB |
|---|---|---|---|---|
| 3–4B | ~2.0 GB | ~0.25 GB | ~3.3 GB | comfortable |
| 7–8B | ~4.8 GB | ~0.5 GB | ~6.3 GB | fits, tight |
| 7–8B (Q6_K) | ~6.6 GB | ~0.5 GB | ~8.1 GB | swap thrash |
| 14B | ~8.4 GB | ~0.6 GB | ~10.0 GB | does not fit |

The KV cache is the part that ambushes people. For a Llama-3.1-8B shape, the cache costs about 128 KB per token. At 32K context that is roughly 4 GB — half your RAM before the model even loads. Cap the context at 4,096 and quantize the cache with -ctk q8_0 -ctv q8_0, and the same conversation costs about 0.25 GB instead.
That single flag is the difference between "8 GB is enough" and "8 GB is a lie". It is also free.
3. Hostinger KVM 2: the cheapest entry point
What you get: 2 vCPU, 8 GB RAM, 100 GB NVMe, full root, KVM virtualization. The current Cyber Week promotion starts at $6.49/month, with renewal at a higher rate — read the renewal price before you buy a long term.
Why it works for a first LLM box: the 3B tier needs about 3.3 GB total, so 8 GB leaves real headroom for nginx, a queue worker and the OS. Two dedicated vCPUs are enough for one or two concurrent users on a 3B Q4_K_M model. You are not sharing a GPU, and you are not paying per token.
Where it hurts: two cores limit decode throughput. Expect the low-to-middle end of the 3B range, roughly 5–10 tokens/s, depending on the host CPU and AVX-512 support. If three people hit the endpoint at once, the queue becomes visible. And promotional pricing is exactly that — promotional.
Who should buy it: a solo operator shipping a private endpoint for a notes app, a Telegram bot, or internal summarization. The flat ~$6.49 is the entire point: 200 requests a day cost the same as 2,000.
Check the current Hostinger VPS price →
If you are adding local storage for GGUF files, a cheap NVMe enclosure is the other half of the build: UGREEN 10 Gbps NVMe enclosure on Amazon. It keeps 5–40 GB model files off the boot disk and makes moving quants between machines painless.
4. Hetzner CX32: the best price per core
What you get: 4 vCPU, 8 GB RAM, 80 GB SSD, 20 TB of traffic, in EU locations. The plan is about €8.39/month, plus roughly €0.60/month for a primary IPv4 address, so budget ~€8.99 (~$9.70).
Why it wins on math: four cores for the price of two Hostinger cores means the per-vCPU cost is the lowest of the three. On a 3B model, the extra cores usually translate into the middle of the 8–20 tokens/s range, and the extra headroom matters the moment a second user arrives.
Where it hurts: the IPv4 surcharge is real and easy to forget. Traffic is generous but the locations are Europe-first; if your users are in Southeast Asia, measure latency before committing. Support is ticket-based, and the control panel is functional rather than friendly.
Who should buy it: anyone in or near Europe who wants the most compute per dollar, or a solo operator who expects to grow from one user to five without changing plans. It is the plan I would pick if the workload is "a real internal tool" rather than "a demo".
5. DigitalOcean: pay for the ecosystem, not the CPU
What you get: 4 vCPU, 8 GB RAM, 160 GB SSD, 5 TB transfer, $48/month on the Basic Droplet tier. You also get the best documentation in the industry, managed databases, load balancers, block storage, snapshots, and a mature API.
Why it can still be the right answer: if your product already lives in DigitalOcean — managed Postgres, Spaces, App Platform — adding an LLM droplet next to it removes a vendor and a billing relationship. The premium buys operational convenience, not tokens per second.
Why it is the wrong first purchase: at $48 versus ~$9.70 for the same 8 GB / 4 vCPU shape, you are paying a 5x premium for hardware you can rent elsewhere. For a pre-revenue side project, that is five months of Hostinger for one month of Droplet.
Who should buy it: teams with existing infrastructure there, or anyone who values managed services enough to pay for them. Not a solo operator testing whether local inference has product-market fit.
6. Cost per million tokens: the comparison nobody publishes
Monthly price is not comparable across different core counts. Cost per million generated tokens is. The method:
- Assume continuous generation at a measured decode rate.
- Convert to tokens per month:
730 hours × 3600 × tok/s. - Divide the monthly price by that token count.
At 10 tokens/s (a realistic mid-range for a 3B Q4_K_M model on 4 vCPU), a box produces about 26.3 million tokens/month if it never idles:
| Plan | Monthly | Tokens/month @10 tok/s | Cost per 1M tokens |
|---|---|---|---|
| Hostinger KVM 2 | $6.49 | 26.3M | $0.25 |
| Hetzner CX32 | ~$9.70 | 26.3M | $0.37 |
| DigitalOcean Basic | $48.00 | 26.3M | $1.83 |
At 5 tokens/s (the low end, or a 7–8B model), the same boxes produce about 13.1 million tokens/month:
| Plan | Monthly | Tokens/month @5 tok/s | Cost per 1M tokens |
|---|---|---|---|
| Hostinger KVM 2 | $6.49 | 13.1M | $0.49 |
| Hetzner CX32 | ~$9.70 | 13.1M | $0.74 |
| DigitalOcean Basic | $48.00 | 13.1M | $3.65 |
![]()
Two honest caveats:
- These are capacity numbers, not bills. Nobody runs a box at 100% utilization. A support bot that answers 200 questions a day uses a tiny fraction of 26M tokens. The flat fee is the feature: your marginal cost is zero, and the idle capacity is the buffer.
- Throughput is not equal across the three. A 2 vCPU Hostinger box will usually decode slower than a 4 vCPU Hetzner box. If you plug 15 tok/s into the Hostinger column, its cost per token drops; if you plug 5, it rises. Measure your own number — the next section shows how.
The honest summary: Hostinger is the cheapest way to start, Hetzner is the cheapest per unit of compute, and DigitalOcean is the most expensive per token but the least operational work.
7. Benchmark the box before you trust any table
Published benchmarks are useless for CPU inference. Every generation of EPYC or Xeon changes the result, and noisy neighbors change it again. Measure your own ceiling with the server's own timings.
#!/usr/bin/env bash
HOST=${HOST:-http://127.0.0.1:8080}
KEY=${LLAMA_API_KEY:-}
read -r -d '' PROMPT <<'EOF'
You are a senior SRE. Write a concise runbook with five numbered steps for
diagnosing a Node.js service that returns 502 behind nginx.
EOF
START=$(date +%s.%N)
RESP=$(curl -s "$HOST/v1/chat/completions" \
-H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' \
-d "$(jq -nc --arg p "$PROMPT" '{model:"local",messages:[{role:"user",content:$p}],max_tokens:256,temperature:0}')")
END=$(date +%s.%N)
GEN=$(echo "$RESP" | jq -r '.usage.completion_tokens')
WALL=$(echo "$END $START" | awk '{print $1-$2}')
echo "completion_tokens=$GEN wall=${WALL}s"
awk -v n="$GEN" -v w="$WALL" 'BEGIN{printf "throughput=%.2f tok/s\n", n/w}'
echo "$RESP" | jq -r '.timings // empty'
Run it three times, take the median, and write the number next to the model, the quant and the context length. Two separate figures matter: prefill (prompt processing, compute-bound and fast) and decode (generation, memory-bandwidth-bound and slow). Users feel decode.
If your measured decode is below 3 tokens/s on a 3B model, something is wrong: check -t (should equal physical cores), confirm AVX2/AVX-512 flags with lscpu, and make sure the box is not swapping.
8. Deploy in about twenty minutes
Whichever provider you pick, the software stack is identical. This is the short version; the full walkthrough with nginx, API keys and hardening is in the llama.cpp VPS guide.
sudo apt update && sudo apt install -y build-essential cmake git curl jq
git clone https://github.com/ggml-org/llama.cpp
cd llama.cpp
cmake -B build -DGGML_NATIVE=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release -j"$(nproc)"
-DGGML_NATIVE=ON compiles for the exact CPU you are on. On an AVX-512 host it is often worth 20–40% over a generic build; the tradeoff is that the binary will not move to another machine.
Pull a chat-tuned GGUF, verify its checksum, then serve it:
mkdir -p /opt/models && cd /opt/models
hf download bartowski/Qwen2.5-3B-Instruct-GGUF \
Qwen2.5-3B-Instruct-Q4_K_M.gguf --local-dir .
sha256sum *.gguf | tee sha256.txt
/opt/llama.cpp/build/bin/llama-server \
-m /opt/models/Qwen2.5-3B-Instruct-Q4_K_M.gguf \
-c 4096 -t 2 --parallel 1 -ctk q8_0 -ctv q8_0 \
--host 127.0.0.1 --port 8080
Put nginx in front for TLS, bind the server to 127.0.0.1, and add a rate limit. Never expose port 8080 directly. A limit_req zone of 12 requests per minute per IP is enough to stop one client from saturating a two-core box.
9. When a VPS is the wrong purchase
A cheap VPS is excellent at three things: a stable private endpoint, data that cannot leave your infrastructure, and flat predictable cost. It is bad at three others:
- Long-context work. 32K+ token documents blow the KV budget on 8 GB. You need 16–32 GB of RAM, or a GPU with enough VRAM for FlashAttention-class kernels.
- Agentic loops. An agent that calls the model 20 times per task at 4 tokens/s produces a four-minute turnaround. Multiply by 50 tasks a day and nobody uses it twice.
- Quality-critical reasoning. A 3B model is good at extraction, classification, rewriting and summarization. It is not a substitute for a frontier model on multi-step reasoning.
The pragmatic split most small teams land on: CPU VPS for the 80% of calls that are simple and high-volume; a GPU box or a hosted fallback for the 20% that are hard. If you are not sure which side you are on, start with the VPS — it is the cheaper mistake.
10. Buying checklist before you pay

- Physical cores, not threads.
-tshould equal physical cores; SMT threads usually cost 10–20% on decode. - AVX2 minimum, AVX-512 preferred. Check with
lscpu | grep -o -E 'avx512f|avx2|fma|f16c'. - 8 GB is the floor, not the target. 16 GB buys you a 7–8B model with a real context window.
- NVMe over SSD. Model load time is disk-bound; 3–8 seconds becomes 30 on slow storage.
- Traffic allowance. A chat endpoint is not a video site, but model downloads count.
- Snapshot or backup. Rebuilding llama.cpp is twenty minutes; losing your systemd and nginx config is an afternoon.
- Refund window. Most providers offer 7–30 days. Benchmark inside it, not after.
- Region latency. Run
pingand acurltiming from where your users actually are.
11. FAQ
Can an 8 GB VPS really run a 7–8B model? Yes, at Q4_K_M with a 4K context and a quantized KV cache, around 6.3 GB total. It is tight. If free -m shows less than 800 MB available after load, drop to a 3B model or move to 16 GB.
Do I need a GPU? No, for 3B models and low concurrency. A GPU becomes worth it when you need 7–8B at 30+ tokens/s, long context, or image generation.
How many users can one box serve? On a 2 vCPU box with a 3B model: one or two concurrent users comfortably, more if requests are short and queued. Set --parallel 1 and let the queue absorb bursts; two slots on two cores halves each slot's speed.
Hostinger or Hetzner? Hostinger if the absolute monthly bill matters and you are serving one model to one or two users. Hetzner if you want four cores and the best price per core, and your users are near Europe.
Is DigitalOcean ever worth 5x? Yes, when the rest of your stack is already there and the operational savings exceed the price difference. For a first LLM box, almost never.
What about free tiers? They are fine for testing, not for a service with an uptime expectation. A $6–9 box is cheaper than an afternoon of debugging a sleeping instance.
Start with the cheapest box that fits the math
The order that works: confirm the model fits in 8 GB, pick the cheapest provider that gives you the cores you need, benchmark inside the refund window, and only then move up. Most people buy 16 GB before they have measured 8.
If you want the exact stack, including the comparison table, deployment commands and the benchmark script, start here: The Exact Stack We Run.
For the storage half of the build, the Kingston NVMe SSD on AliExpress is the cheap option I use for model files.
Disclosure: Hostinger, Amazon and AliExpress links in this article are affiliate partners. They cost you nothing extra and fund the VPS time used for these tests. Prices were checked on December 6, 2026 and change often — always confirm on the provider's page before buying.
If you like the fiction side of this studio, The Glitch Architect is serialized on Patreon, with the first chapter free.
评论
发表评论