Guideschevron_rightServers

Servers · 8 min read · Updated

How to Run an LLM on a CPU Server Without a GPU

You can run a large language model on a server with no GPU: install Ollama (built on llama.cpp), pull a 4-bit quantized model and chat with it over its local API. What decides the server is memory: the model must fit in RAM with a few gigabytes to spare, about 5 GB for an 8B model, 43 GB for a 70B model and 243 GB for a 405B one. Speed follows memory bandwidth, so EPYC servers with eight or twelve memory channels generate faster than two-channel chips. Expect slower answers than on a GPU, with your data never leaving the server.

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.

Large language models that fit in each dedicated server's memory
ServerMemory8B (e.g. Llama 3.1 8B)70B (e.g. Llama 3.1 70B)405B (e.g. Llama 3.1 405B)From
AMD Ryzen 9 5950X128 GBFitsFitsToo large$399.00/mo
AMD EPYC 4585PX128 GBFitsFitsToo large$849.00/mo
AMD Ryzen 9 9950X192 GBFitsFitsToo large$669.00/mo
AMD EPYC 7443P512 GBFitsFitsFits$969.00/mo
AMD EPYC 9455P512 GBFitsFitsFits$999.00/mo
AMD Dual EPYC 7702512 GBFitsFitsFits$1,099.00/mo
AMD EPYC 9455512 GBFitsFitsFits$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 example 24h) 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.

Common Questions

  • Can you run an LLM without a GPU?

    Yes. llama.cpp and Ollama run quantized models on the processor alone. The model has to fit in memory, and answers come more slowly than on a graphics card: fine for batch jobs, private documents, testing and a few users, not for serving many people at once.

  • How much RAM does a model need?

    Roughly the size of the model file plus a few gigabytes for the conversation and the system. At 4-bit quantization that is about 5 GB for an 8B model, about 43 GB for a 70B model and about 243 GB for a 405B model, before the headroom.

  • What makes CPU inference faster?

    Memory bandwidth more than core count: every word the model writes reads the whole model from memory. Servers with more memory channels, such as the larger EPYC models, generate faster than processors with two channels. Smaller and more heavily quantized models are faster too.

  • Is my data sent anywhere?

    No. The model runs on your server, and Ollama only listens on the server itself unless you change that. Your prompts and documents stay on hardware you rent.

Plans and prices

Dedicated Servers

Dedicated servers with the memory to hold large models, billed monthly.

See all plans
  • AMD Ryzen 9 5950X

    16 Cores · 128 GB RAM · 2x 1TB NVMe

    Ashburn, VA · Dallas, TX · 50 TB transfer · 10 GigE

    $399.00/mo

  • AMD Ryzen 9 9950X

    16 Cores · 192 GB RAM · 2x 2 TB NVMe

    Ashburn, VA · Dallas, TX · 50 TB transfer · 10 GigE

    $669.00/mo

  • AMD EPYC 4585PX

    16 Cores · 128 GB RAM · 2x 6.4TB NVMe Gen4

    Dallas, TX · 200 TB transfer · 50 Gbps

    $849.00/mo

  • AMD EPYC 7443P

    24 Cores · 512 GB RAM · 2x 2TB NVMe

    Dallas, TX · Ashburn, VA · 50 TB transfer · 10 GigE

    $969.00/mo

Keep Reading

All guides