Every product was carefully curated by an AI Tool Pipelines editor. We may earn a commission from these links. Here's how we choose products and why you should trust us.
How to Run Ollama on a VPS Without a GPU
By Buyisile Nkwebana · 4 min read · Updated Dec 2, 2026

Yes, you can run Ollama on a VPS with no GPU, and for small models it is usable. Published tests put Llama 3.2 3B at roughly 9 to 21 tokens per second on 2 to 4 vCPUs, which is fine for tagging, extraction and short answers. 7B to 8B models drop to single digits, which feels slow in a chat window. Rent 8 GB of RAM for 3B models and 16 GB for 7B to 8B, and keep Ollama's port closed to the internet.
Key takeaways
- Ollama runs on CPU-only VPS plans. Speed depends on model size, vCPU count and whether the cores are shared.
- A 3B model is the practical choice on 2 to 4 vCPUs. A 7B model works but is slow for chat.
- RAM: 8 GB for 3B models, 16 GB for 7B to 8B, 32 GB for 14B.
- Never expose port
11434publicly. Put Open WebUI or a reverse proxy with authentication in front. - Use a local model for background jobs (classification, extraction), and a hosted API for chat users wait on.
How fast is Ollama on a CPU-only VPS?

| Model | Hardware | Measured speed | Source |
|---|---|---|---|
| Llama 3.2 3B (Q4_K_M) | 4 vCPU VPS | About 21 tokens/s median | DEV Community, "Ollama and n8n on a CPU-only VPS", 2026 |
| Llama 3.2 3B | 2 vCPU, $9 VPS | 8.7 tokens/s | Stackrecipes, local LLM VPS benchmarks, 2026 |
| Llama 3.2 3B | Dedicated vs shared cores | 16.3 vs 7.1 tokens/s | Same tests: shared cores cut speed by more than half |
| Qwen2.5 7B (Q4_K_M) | CPU-only machine | 6.4 tokens/s | Arynwood local-ai-benchmarks on GitHub |
For reference, people read at roughly 5 to 8 tokens per second, so 20 tokens per second feels instant and 6 feels like waiting. For a background job that tags 500 emails overnight, 6 tokens per second is perfectly fine. For a chatbot your customers use, it is not.
How much RAM to rent
- 1B to 3B models (Llama 3.2 3B, Qwen2.5 3B): 8 GB total. The model takes about 2 to 3 GB.
- 7B to 8B models (Llama 3.1 8B, Qwen2.5 7B): 16 GB. Hostinger's own Ollama guide also recommends at least 16 GB and 4 to 8 vCPUs.
- 14B models: 32 GB, and expect low single-digit speeds on CPU.
Install Ollama on the VPS
On Hostinger you can pick the "Ubuntu 24.04 with Ollama" template and skip this section. On any other Ubuntu server it is three commands:
curl -fsSL https://ollama.com/install.sh | sh
ollama pull llama3.2:3b
ollama run llama3.2:3b "Classify this email as sales, support or spam: Where is my order?"Ollama now listens on 127.0.0.1:11434, which only the server itself can reach. Keep it that way. To call it from n8n on the same server, use http://host.docker.internal:11434 from inside Docker (add extra_hosts: ["host.docker.internal:host-gateway"] to the compose service), as covered in our local LLM in n8n guide.
# Firewall: only SSH and HTTPS from the internet
ufw allow OpenSSH
ufw allow 443/tcp
ufw enableWhen a VPS is the wrong place for Ollama
My position: a CPU VPS is a good home for small models doing background work, and a bad home for chat. A composite I keep seeing, call her Mei: in spring 2026 she put an 8B model on an 8 GB VPS for a customer support bot. Replies took 40 to 60 seconds and the server swapped. She moved the bot to a hosted API and kept a 3B model on the same VPS for tagging tickets, which it does overnight at no API cost.
If you need fast answers from big models, compare renting a cloud GPU with buying hardware instead.
“On a CPU, small models do the work and big models do the waiting. Pick the job first, then the model, then the server.”
Frequently asked questions
Frequently asked questions
Can I run Ollama on a VPS without a GPU?
Yes. Ollama runs on CPU. Small 3B models are usable on 2 to 4 vCPUs; 7B and larger models work but are slow.
How much RAM does Ollama need on a VPS?
About 8 GB for 3B models, 16 GB for 7B to 8B models, and 32 GB for 14B models, including room for the operating system.
How many tokens per second does Ollama get on CPU?
Published tests show about 9 to 21 tokens per second for Llama 3.2 3B on 2 to 4 vCPUs, and around 6 for a 7B model. Shared cores can halve that.
Is it safe to expose Ollama to the internet?
No. Ollama has no authentication. Keep port 11434 on localhost and put a reverse proxy with a login, or Open WebUI, in front of it.
Which Ollama model is best for a CPU VPS?
A 3B model such as Llama 3.2 3B or Qwen2.5 3B gives the best speed for extraction and classification on CPU.