Once a business decides to run its own language model, the next choice is the software that serves it. That software, the inference engine, loads the model onto the GPU, takes requests and returns answers. vLLM, SGLang and Ollama are three open-source engines our clients ask about most. This page compares what each project says it is built for, what it supports and how we decide between them, based on the projects' own documentation, code repositories and papers, read on 26 November 2026. It is written by Brand Media Works, which builds private LLMs for ecommerce brands.

The three engines at a glance

vLLM, SGLang and Ollama compared from each project's own documentation, read 26 November 2026. Engines in alphabetical order.
OllamaSGLangvLLM
What the project says it isA way to run open models "locally or in the cloud"An inference framework "optimized for agentic workloads, large-scale serving, and RL rollouts""a fast and easy-to-use library for LLM inference and serving"
Key techniqueBuilds on the llama.cpp projectRadixAttention for KV cache reusePagedAttention for KV cache memory
APIREST API on the local machinePython frontend language plus a serving runtimeOpenAI-compatible API server
Hardware named in the docsNVIDIA GPUs (compute capability 5.0 and up) and AMD GPUs through ROCmGPUs, TPUs, NPUs, CPUs and Apple SiliconNVIDIA, AMD and Intel GPUs, and x86, ARM and PowerPC CPUs
Spanning several GPUs or machinesCan be limited to chosen GPUs on one machineTensor and expert parallelism across hosts (on TPU)Tensor and pipeline parallelism across GPUs and nodes
LicenseMITApache-2.0Apache-2.0

vLLM: built to keep the GPU full

vLLM came out of research on a specific problem. Its 2023 paper explains that "High throughput serving of large language models (LLMs) requires batching sufficiently many requests at a time." The memory each request needs for its working state, the KV cache, grows and shrinks as the answer is written, and "When managed inefficiently, this memory can be significantly wasted by fragmentation and redundant duplication, limiting the batch size." The authors' answer was PagedAttention, an approach borrowed from how operating systems manage memory. The paper reports that vLLM "improves the throughput of popular LLMs by 2-4" times compared with the systems it was tested against in 2023.

The project's code repository lists the features that matter for a production deployment, including "Continuous batching of incoming requests, chunked prefill, prefix caching", an "OpenAI-compatible API server, plus Anthropic Messages API and gRPC support" and "Tensor, pipeline, data, expert, and context parallelism for distributed inference". Its documentation gives a simple rule for large models: when a model fits on one machine but not one GPU, use tensor parallelism, and when it does not fit on one machine, "combine" tensor parallelism with pipeline parallelism.

In our view, the OpenAI-compatible server is vLLM's most practical feature for a business. Tools already written against the OpenAI API can usually point at a vLLM server instead, which makes moving off a public API a configuration change rather than a rebuild.

SGLang: built for programs that call the model many times

SGLang started from a different observation. Its paper describes "a system for efficient execution of complex language model programs", meaning agents, multi-step reasoning and chats where many calls share the same opening text. The project's blog explains the central technique: "KV cache reuse means different prompts with the same prefix can share the intermediate KV cache and avoid redundant memory and computation." Rather than throwing that work away, SGLang "retains the KV cache for both prompts and generation results in a radix tree."

The runtime also uses "compressed finite state machines for faster structured output decoding", which matters when a model must return valid JSON every time, as it does when it feeds a product feed or an order system. The SGLang authors report up to 5 times higher throughput in their January 2024 blog tests and up to 6.4 times in their paper. These are the authors' own benchmarks against the versions of other systems they tested at the time, not independent results.

Ollama: built for one machine

Ollama is the easiest of the three to start with. Its repository describes a tool to "Access the latest releases locally or in the cloud with complete privacy" and documents that "Ollama has a REST API for running and managing models." It builds on the llama.cpp project and ships as an official Docker image. Its GPU documentation lists support for NVIDIA cards from compute capability 5.0 upward, which includes the H100 and H200, and AMD cards through ROCm.

In our view, Ollama's strength is speed of setup: a developer can have a model answering on a laptop or a single GPU server in minutes. Its documentation does not describe the multi-node serving and batching features that vLLM and SGLang are built around, so we do not use it where many users send requests at the same time. Ollama also offers a cloud option, so for a private deployment we check that models run only on the client's own machine.

How we choose between them

These are the questions we ask on a private LLM build, in the order we ask them. The answers are our own working rules, not the projects' recommendations.

  1. Is this a prototype or a service? For a proof of concept on one machine, we start with Ollama. For anything staff or customers will use every day, we move to vLLM or SGLang.
  2. How much do requests share? If most requests start with the same long instructions, product catalog extract or chat history, SGLang's prefix reuse tends to pay off. If requests are short and varied, vLLM is our default.
  3. Does the output have to follow a strict format? Both serving engines support structured output. vLLM lists "Generation of structured outputs using xgrammar or guidance", and SGLang builds it into its runtime. We test both on the client's real schema.
  4. Does the model fit on one GPU? If not, we size the parallelism first. Our H100 price and GPU cloud providers pages cover the hardware side.
  5. What do existing tools expect? If the client's tools already call the OpenAI API, vLLM's compatible server shortens the move.

We benchmark the shortlisted engine on the client's own prompts before committing. Published throughput figures come from the authors' chosen models, GPUs and workloads, and a brand's real traffic rarely looks like a benchmark.

Frequently asked questions

Should I use vLLM or Ollama?

They solve different problems. vLLM is a serving engine for many concurrent users on data center GPUs. Ollama is designed to make running a model on one machine simple. We use both, at different stages of a project.

Can SGLang and vLLM run the same models?

Often, but check first. vLLM's repository says it "seamlessly supports 200+ model architectures on Hugging Face". SGLang keeps its own supported-model list. We check the specific model and version against both lists before choosing.

Are these engines free to use commercially?

The code is open source. vLLM and SGLang are released under the Apache-2.0 license and Ollama under the MIT license. The model you run has its own license, which needs checking separately.

Do I need a data center GPU?

Not to start. Ollama runs on a single workstation GPU. For production traffic from a team or customers, we size data center GPUs to the model and the expected load.

Book a discovery call