1. Home
  2. Insights
  3. Self-hosted LLMs
Self-hosted LLMs

vLLM vs Ollama vs llama.cpp: choosing how to serve a language model

By the Timeus Lab team · · 2 min read

Two technicians mount a GPU server in a rack in a new server room

A model file alone does not answer questions. It needs a serving engine that loads it onto the hardware, accepts requests, manages memory and streams answers back. The engine affects speed, the number of users one server can handle and how easy the system is to operate.

At Timeus Lab we deploy self-hosted LLMs with the engine that fits each case. Here is how the three best known open options compare.

What do serving engines do?

Serving engines load model weights into memory, schedule incoming requests, manage the KV cache, run the computation on GPUs or CPUs and expose an API, often compatible with the OpenAI API format. Good engines serve many users at once by batching requests together.

How do they compare?

TopicvLLMOllamallama.cpp
Main strengthHigh throughput for many usersVery easy setupRuns almost anywhere, efficient on CPUs and small GPUs
Typical useProduction servers with data centre GPUsWorkstations, tests, small teamsEdge devices, laptops, mixed hardware
Model formatsStandard weights, many quantised formatsGGUF models from its library or your ownGGUF
Multi-GPUYes, for large modelsLimitedPossible, less focus
APIOpenAI compatibleOwn API and OpenAI compatibleOpenAI compatible server included

Ollama is built on top of llama.cpp, so they share many strengths. Other engines, such as SGLang and vendor-specific servers, are also worth testing for large deployments.

Which should a company use?

For a shared service used by many employees, vLLM or a similar high-throughput engine is usually the right choice, because it serves many conversations on the same GPUs efficiently. For a pilot, a single team or a laptop, Ollama gets a model running in minutes. For edge devices and machines without strong GPUs, llama.cpp is often the most practical.

What else is needed around the engine?

A production service needs more than the engine:

  • sign-in through the company identity system and per-team limits;
  • a gateway that routes requests to models and logs usage;
  • monitoring of speed, errors and GPU load;
  • the RAG layer for company documents;
  • update procedures for models and software.

Questions

Can we switch engines later?

Yes. If applications use a standard API, the engine behind it can be changed without rewriting them.

Do engines affect answer quality?

The model decides quality. Engines can differ slightly through quantisation and settings, so test with your own prompts.

Which engine runs DeepSeek or Kimi models?

The largest mixture-of-experts models are usually served with high-throughput engines on multi-GPU servers. Check current support for the exact model version.