vLLM, TGI and Ollama Benchmarked on GPU Memory, Throughput and Batching
A comparison of three LLM inference systems, vLLM, Hugging Face's TGI and Ollama, measures their GPU memory use, throughput and batching behavior. vLLM is described as a throughput-optimized engine built on PagedAttention and continuous batching, while TGI pairs a Rust front end with tuned kernels and Hugging Face model hub integration. Ollama, a llama.cpp-based local runner using quantized GGUF models, is presented as suited to single-user development rather than concurrent production serving. Benchmarks on Llama-3-8B show vLLM reaching about 3,480 tokens per second in aggregate versus roughly 2,910 for TGI and 96 for Ollama at 65 concurrent requests. The article also explains how PagedAttention reduces KV-cache fragmentation by allocating memory in fixed-size blocks, improving the number of sequences that fit on a single GPU.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in