vLLM vs TGI, Which Inference Server Wins on Throughput and Latency

Every team putting a language model into production hits the same fork. The model is chosen, the GPU is rented, and someone must pick the engine that serves the tokens. For three years the shortlist had two names, vLLM from UC Berkeley and Text Generation Inference, Hugging Face’s own server. In 2026 the honest comparison carries a fact no benchmark can soften, and this article will not bury it.
This comparison walks two workloads through both engines, a support chat at peak hour and an overnight document batch. It does the memory arithmetic that decides how many requests one GPU can hold, and ends with a scorecard.
Key Takeaways
- vLLM is the active default. It leads on throughput at high concurrency, serves more model types, and gets new architectures first.
- TGI still runs well where it is installed, and in a November 2025 study it answered first tokens faster at low concurrency. Its problem is direction, not competence.
- Hugging Face has archived the TGI repository, and its own notice recommends vLLM and SGLang for what comes next. A greenfield deployment needs a specific reason to pick the frozen engine.
If the serving engine is one piece of an AI product you are building, our AI product development work starts with the inference layer and the product together, so the engine fits the traffic you expect.
The short version
The short answer first. vLLM is the default for new deployments. TGI is the incumbent you keep only where it already earns its place.
| Axis | vLLM | TGI |
|---|---|---|
| Project status | Actively developed, releases land constantly | Archived by Hugging Face, maintenance mode only |
| Throughput at high concurrency | Leads, 2.1 to 3.7x in the study below | Saturates earlier, strong at low concurrency |
| First token at low concurrency | Competitive | Faster in the same study, 1.3 to 2x lower |
| Model scope | Generation, embeddings, reranking, classification, multimodal | Text generation only |
What vLLM is
vLLM is an inference engine built at UC Berkeley’s Sky Computing Lab, released in 2023 with the PagedAttention paper. Its insight is that serving is a memory problem before it is a compute problem. Every request carries a key-value cache, the stored attention state for its tokens, and it is large and grows unpredictably. The team measured existing systems wasting 60 to 80 percent of it to fragmentation and over-reservation.
PagedAttention treats the cache the way an operating system treats RAM. Each sequence’s cache is cut into fixed-size blocks that can live anywhere in GPU memory, mapped through a block table and allocated on demand. Waste shrinks to the last block of each sequence, under 4 percent in the team’s measurements, and the freed memory becomes batch capacity, which becomes throughput. At launch, on LLaMA models with ShareGPT request lengths, vLLM delivered up to 3.5x TGI’s throughput and up to 24x Hugging Face Transformers’.
Around that core sits continuous batching, requests joining and leaving the running batch token by token, plus chunked prefill, prefix caching and speculative decoding. The scope has widened past chat, too. The same deployment also serves embedding, reranking and classification models and multimodal inputs, which matters when a product needs one inference layer, not three.
The hardware list is the widest of the two. NVIDIA is home turf, and documented backends cover AMD ROCm, Intel GPUs and CPUs, Google TPUs and more through plugins, with depth that varies by backend. Quantisation covers AWQ, GPTQ, FP8, INT8 and INT4 paths and GGUF. The project is Apache 2.0 licensed, and new architectures appear within days, because the ecosystem treats it as the reference target.
What TGI is
Text Generation Inference is Hugging Face’s production server, a Rust, Python and gRPC system that powered Hugging Chat, the Hugging Face Inference API and Inference Endpoints. Its architecture splits three ways. A Rust router takes the HTTP traffic and runs continuous batching and queue management. A launcher starts one model server per GPU shard. The shards generate tokens and report back over gRPC, with streaming returned as server-sent events.
TGI was never a naive baseline. It adopted Flash Attention and paged attention on the popular architectures, shards models across GPUs with tensor parallelism, loads safetensors weights, and supports speculative decoding and guided JSON. Its quantisation shelf is genuinely good, bitsandbytes, GPTQ, AWQ, Marlin kernels, EETQ and FP8. Hardware covers NVIDIA, AMD, AWS Inferentia, Intel GPUs, Gaudi and TPUs, per the repository.
Then there is the fact this comparison has to lead with. The TGI repository on GitHub is archived. Hugging Face’s own notice at the top of the project says text-generation-inference is now in maintenance mode, that it will now accept only minor fixes and documentation improvements, and that the engines Hugging Face contributes to and recommends are vLLM and SGLang. The license on current releases is Apache 2.0, the same as vLLM, so licensing is not the issue. Direction is.
None of that makes a running TGI deployment bad. It makes a new one a decision to take with your eyes open, because every new architecture and hardware backend will now arrive somewhere else first.

Workload one, the support chat at peak hour
Take one workload through both. Illustrative example, a SaaS product adds an AI support chat. Traffic is quiet at night and brutal at peak, a few hundred users asking at once, each with a long history in the prompt and a short answer expected. Two numbers decide the experience, time to first token, and aggregate throughput, how many users one GPU can carry before the queue becomes the product.
At the top of the peak, vLLM’s memory discipline is the whole game. Hundreds of live conversations mean hundreds of key-value caches competing for the same memory. Paged blocks pack those caches tightly, so more conversations stay resident, the batch stays large, and a large batch is where the throughput lives. In the November 2025 arXiv study of both engines on LLaMA-2 models, vLLM served 15,243 tokens per second on the 7B model at 100 concurrent requests against TGI’s 4,156, and 3,245 against 1,544 on the 70B model across four GPUs. One study is not a law. The direction matches the architecture.
At the bottom of the peak, the same study hands TGI a real win. With few requests in flight, TGI’s time to first token measured 1.3 to 2x lower than vLLM’s. A private deployment serving a handful of users may never queue enough requests for vLLM’s batching to matter, and its users will feel the snappier first token instead. That is the honest shape of it. vLLM wins the crowd, TGI can win the quiet room, and your traffic decides which room you are in.
Workload two, the overnight document batch
Now the opposite shape. Illustrative example, a team processes a document backlog every night, summarising and extracting fields from fifty thousand files before morning. Nobody is watching a screen. Latency per request is irrelevant, cost per million tokens is the only metric, and the job runs against a deadline, not a user.
This is offline work, and vLLM treats it as a first-class case. Its Python API runs the whole prompt list through the same continuously batched engine, with prefix caching absorbing the instruction block that heads every document. TGI is an HTTP server first, so you pay the network and serialisation toll on every request for a job that never needed a network.
Run the study’s numbers through your own cloud quote. Illustrative calculation, price assumption stated, at 15,243 tokens per second one GPU hour yields about 54.9 million tokens, so at an assumed 2 dollars per GPU hour the batch costs about 0.04 dollars per million tokens. At 4,156 tokens per second the same hour yields about 15.0 million, about 0.13 dollars per million at the same price. Your numbers will differ. The method, tokens per second into tokens per hour into cost per million, is the part to keep.
The memory maths that decides concurrency
Throughput charts are downstream of one calculation, worth doing once by hand. Illustrative calculation, assumptions stated, take Llama 3 8B in FP16. The model has 32 layers and 8 key-value heads per layer, each of dimension 128. Every token therefore stores 32 times 8 times 128 values for keys and the same again for values, at 2 bytes each. That is 131,072 bytes, about 128 KB of key-value cache per token, per request.
Now scale it. A conversation carrying 8,192 tokens of context holds about 1 GB of cache. On an 80 GB GPU the FP16 weights take about 16 GB, leaving roughly 60 GB for cache after overhead, room for roughly 55 to 60 full-length conversations at once. Halve the context and you double the residents. Quantise the weights to FP8 and they halve too, freeing more room. Concurrency is not a setting you tune after the fact, it is this arithmetic, the same arithmetic behind the launch paper’s 1.7 GB single-sequence cache figure for LLaMA-13B.
Both engines page their caches today. The practical difference is headroom. In the November 2025 study, peak GPU memory at 50 concurrent requests on the 7B model measured 24.3 GB on vLLM against 31.7 GB on TGI. On a smaller card, that 7 GB gap is the difference between the model fitting with a working batch and not fitting at all.

Running them in production
Neither engine is hard to start. The difference is what month six looks like, and month six is where the maintenance notice stops being trivia.
A vLLM deployment asks for a tuning habit. Its knobs are exposed and documented, and the fast release cadence makes upgrading a recurring task. In exchange you get the ecosystem’s centre of gravity. New architectures and hardware support land here first, Kubernetes stacks treat vLLM as a first-class runtime, and the hiring pool has standardised on it.
A TGI deployment is the boring option, in the good sense, for exactly as long as nothing changes. The single Docker image is simple to run, the router’s queueing is well understood, and a team already operating it has runbooks that work. The bill arrives when something must change, a new architecture the frozen codebase does not optimise, a new GPU generation, a dependency fix. Maintenance mode means minor fixes, and everything beyond that is yours to carry.
This is why the inference layer is an architecture decision in our custom software development work, not a Dockerfile line. The choice sets your cost per token, your upgrade path and your ceiling.
Where each one loses
vLLM loses at the quiet end. The November 2025 study gives TGI the faster first token at low concurrency, and a small internal tool will never assemble the batches vLLM is built to feed. It also loses on surface area. The flexibility that makes it the reference engine makes it the engine with a hundred flags, and teams that do not need them inherit the complexity anyway. Its pace cuts both ways, constant releases mean constant upgrades, and teams feel every rough edge the week it ships.
TGI loses on the future, and it is not close. An archived repository means no new optimized architectures, no new hardware backends, no performance work, from the people who know the codebase best. It loses on throughput at the concurrency production chat actually reaches, 2.1 to 3.7x behind in the November 2025 study, which noted saturation beyond about 50 concurrent requests on the 7B test. It loses on memory headroom in the same study. And it loses on scope. A modern AI product soon needs embeddings or a reranker beside the chat model, and vLLM serves those from the same engine while TGI stays a text generation server.
Our Prisma vs Drizzle breakdown met the same pattern from the other side, a well-built tool can still be the wrong bet when its centre of gravity moves.
Pick by the workload you actually run
Find your workload, start with the named engine, then score it with the scorecard below.
| Your workload | Start with | Why |
|---|---|---|
| Public chat or API with spiky, high concurrency | vLLM | Paged memory and continuous batching turn peaks into throughput |
| Overnight batch generation and document processing | vLLM | The offline API and prefix caching fit work nobody watches |
| An existing TGI deployment that meets its targets | TGI, for now | Paid for and understood, plan the migration, do not rush it |
| Embeddings, reranking and chat behind one inference layer | vLLM | One engine serves the whole model shelf |
| A tiny internal tool with a handful of users | Either, TGI if it is already known | At this scale the operator’s familiarity beats the benchmark |
Workloads between two rows deserve a deliberate call, and it usually turns on one question, whether your concurrency will grow. Growth is the normal case in our SaaS startups work, where the inference bill and the user count arrive together.
Score both on your own traffic
Score both engines on your own traffic, 0, 1 or 2 per line. Use your real prompts, context lengths and peak, not the launch benchmarks. A zero on project direction or concurrency ends the evaluation whatever the total says.
| Test | What earns a 2 |
|---|---|
| Peak concurrency | Your measured peak runs inside your latency budget, on one GPU |
| First token | First-token latency at normal load meets the number your product promised |
| Memory fit | Your model and context fit with at least a fifth of the card left for cache growth |
| Cost per million tokens | Your tokens per second, through your GPU quote, beat your current serving bill |
| Project direction | The engine you pick is actively maintained, with fixes landing now |
Mistakes that quietly cost teams
- Choosing on a launch benchmark. The 24x and 3.5x figures are from 2023, on 2023 versions of both engines. Benchmarks age faster than the hardware they ran on, so rerun the prompts that resemble your traffic before you commit.
- Ignoring the maintenance notice because the demo ran fine. TGI serving your test model proves TGI works today. It says nothing about the architecture you will want next year.
- Sizing the GPU on weights alone. Weights are the smaller half of the memory story at long context. Do the per-token cache arithmetic for your real context length before you rent the card.
- Leaving default settings in production. Both engines ship conservative defaults. The gap between a default deployment and a tuned one is routinely larger than the gap between the engines.
- Migrating everything at once. Move the busiest service first, where the gain pays for the work, and let the quiet services follow on evidence.
The rule to keep
Keep the direction question first. Throughput gaps can be tuned or rented around. A frozen engine cannot. If both serve your workload today, pick the one whose maintainers will still be improving it when your traffic doubles, and make the incumbent prove a measured reason to stay.
If you want the serving layer reviewed before the traffic arrives, let’s discuss your project. Write to sales@denebly.com or call +1 (214) 896-2906.
Questions engineers ask
Is vLLM faster than TGI?
At production concurrency, yes. The November 2025 arXiv study measured 2.1 to 3.7x higher throughput for vLLM across LLaMA-2 models, the gap growing with concurrency because PagedAttention keeps more requests resident. At low concurrency the same study gives TGI the faster first token, so a quiet deployment can feel quicker on TGI while serving fewer people.
Should we migrate off TGI now?
Not in a panic, and not never. A TGI deployment meeting its targets is a working asset, and maintenance mode still accepts minor fixes. Plan it around a trigger chosen in advance, a model upgrade, a hardware refresh, or the first architecture TGI does not optimize, and move the busiest service first.
Why did Hugging Face archive TGI?
Its own notice gives the reasoning. TGI started the shift to building optimized inference on transformers architectures, downstream engines adopted it, and Hugging Face now recommends those engines, naming vLLM and SGLang. So it put its own server into maintenance mode and pointed users at the successors.
Does vLLM work with our existing OpenAI client code?
Yes. The vLLM server implements the OpenAI API format, so chat completions clients move across by changing the base URL and model name. TGI’s Messages API covers the same shape, so moving between these engines is a server decision, not an application rewrite.
How much GPU memory does a request actually need?
More than the weights suggest. Every live request also carries a key-value cache of about 128 KB per token on an 8B model in FP16, so a long-context request can hold around 1 GB by itself.
What about SGLang and TensorRT-LLM?
They are real alternatives, and Hugging Face names SGLang alongside vLLM in its own notice. SGLang rivals vLLM on throughput and structured generation, and TensorRT-LLM squeezes NVIDIA hardware hardest at a heavier build cost. If neither fits, benchmark SGLang next, on your own prompts.
Sources
- vLLM project blog, vLLM, Easy, Fast, and Cheap LLM Serving with PagedAttention, blog.vllm.ai, 20 June 2023. Launch benchmarks and the memory waste measurements.
- Kwon et al, Efficient Memory Management for Large Language Model Serving with PagedAttention, Proceedings of SOSP 2023, ACM.
- Comparative Analysis of Large Language Model Inference Serving Systems, arXiv paper 2511.17593, November 2025. Throughput, first token and memory figures.
- Hugging Face, text-generation-inference repository, github.com, read 15 November 2026. The maintenance notice, the vLLM and SGLang recommendation, architecture and license.
- vLLM documentation, docs.vllm.ai, read 15 November 2026. Features and hardware backends.
- vLLM repository, github.com, read 15 November 2026. Apache 2.0 license.

WRITTEN BY
Arslan Mushtaq
Founder, Denebly
Arslan founded Denebly in 2018 and leads its AI development work for startups and mid-size businesses, across AI chatbots, agentic workflows, RAG systems, machine learning and automation. Denebly has delivered 100+ projects from Dallas, Texas.
Ready to Solve Your Business Problems With AI?
Tell us what you are trying to build, automate or fix. You will get an honest assessment within one business day, not a sales pitch.