Which Models Fit on Which Server
Each model's 4-bit download size plus 8 GB for the conversation and the system, against the largest memory option of each of our dedicated servers today.
| Server | Memory | 8B (e.g. Llama 3.1 8B) | 70B (e.g. Llama 3.1 70B) | 405B (e.g. Llama 3.1 405B) | From |
|---|---|---|---|---|---|
| AMD Ryzen 9 5950X | 128 GB | Fits | Fits | Too large | $399.00/mo |
| AMD EPYC 4585PX | 128 GB | Fits | Fits | Too large | $849.00/mo |
| AMD Ryzen 9 9950X | 192 GB | Fits | Fits | Too large | $669.00/mo |
| AMD EPYC 7443P | 512 GB | Fits | Fits | Fits | $969.00/mo |
| AMD EPYC 9455P | 512 GB | Fits | Fits | Fits | $999.00/mo |
| AMD Dual EPYC 7702 | 512 GB | Fits | Fits | Fits | $1,099.00/mo |
| AMD EPYC 9455 | 512 GB | Fits | Fits | Fits | $2,299.00/mo |
For small models, a VPS may be enough: our largest has 24 GB of memory, which fits an 8B model. Its vCPUs are shared with other servers, so expect slower answers than on a dedicated server.
1. Install Ollama
curl -fsSL https://ollama.com/install.sh | sh systemctl status ollama # runs as a service, listening on 127.0.0.1:11434
2. Pull and Run a Model
ollama pull llama3.1:8b ollama run llama3.1:8b "Summarise the GPL in three sentences." ollama ps # loaded models and the memory they use
Start small to check everything works, then pull the largest model your memory allows. Download sizes are listed on each model's page in the Ollama library; compare them with free -h.
3. Call It From Your Applications
Ollama has an HTTP API on the server itself:
curl http://127.0.0.1:11434/api/generate -d '{
"model": "llama3.1:8b",
"prompt": "Write a haiku about servers.",
"stream": false
}'It also answers OpenAI-style requests at http://127.0.0.1:11434/v1/, so most tools that take an OpenAI base URL work with it. Apps on the same server can call it directly. From your computer, use an SSH tunnel rather than opening the port to the internet:
ssh -N -L 11434:127.0.0.1:11434 [email protected] # then use http://127.0.0.1:11434 on your computer
The API has no password of its own. If other servers must reach it, put it on a private network or behind a reverse proxy with authentication, never straight on a public address.
4. Make It Faster
- Pick the right size. A smaller model, or a more heavily quantized one, reads less memory per word and answers faster. Many tasks do well on 8B to 30B models.
- Mind memory bandwidth. The larger EPYC servers have eight or twelve memory channels per processor, against two on Ryzen and EPYC 4005; EPYC vs Ryzen explains the difference.
- Keep the model loaded. Loading a large model from disk takes time; set
OLLAMA_KEEP_ALIVE(for example24h) in the service's environment so it stays in memory between requests. - Shorter context. Long conversations need more memory and slow each answer; send only what the model needs.
To run it alongside other self-hosted tools, see self-hosting n8n, which can call Ollama for AI workflows. For many users at once or much faster answers, a GPU is the next step: see how much VRAM a model needs and serving an LLM API on a GPU server.