Blog · AI engineering

Choosing an LLM inference engine for private and sovereign AI: TGI, vLLM and SGLang in 2026

Hugging Face TGI is now in maintenance mode and recommends vLLM or SGLang. What that means for serving models on your own hardware, and a checklist for choosing and hardening an engine for private and air-gapped AI.

The inference engine is the part of a private AI stack that turns model weights into a service. It decides how many users one GPU can serve, how fast answers start, and what leaves your network while it runs.

In July 2025 we compared Hugging Face Text Generation Inference (TGI) and vLLM for serving models on our own hardware. Much has changed since. This update keeps the angle that matters to us: choosing an engine for private and sovereign deployments.

What changed: TGI is in maintenance mode

The TGI repository now states that the project is in maintenance mode, accepting only minor bug fixes, documentation and lightweight maintenance. Hugging Face recommends downstream engines instead: vLLM and SGLang, and local engines such as llama.cpp or MLX. The repository was archived (read-only) in March 2026.

A TGI service that works today will keep working, but it will not gain support for new model architectures or receive more than minor fixes. For a new deployment, and for anything you expect to run for years, plan on another engine.

The engines now worth evaluating

EngineWhat it isWhere it fits
vLLMOpen-source serving engine from UC Berkeley, a PyTorch Foundation hosted project since May 2025; PagedAttention and continuous batchingGeneral-purpose GPU serving at high concurrency; the safe default
SGLangHigh-performance serving framework hosted by the non-profit LMSYS; RadixAttention and prefix cachingWorkloads with shared prompts, long contexts and agent loops
llama.cppLightweight C/C++ engine for quantised modelsCPU, edge and small sites; disconnected laptops and test rigs
TGIHugging Face's original serving engineExisting deployments only, while you migrate

vLLM and SGLang both serve an OpenAI-compatible API, so applications can usually switch between them without code changes.

Our July 2025 post said vLLM needed extra work for monitoring. That is no longer true: vLLM exposes Prometheus metrics on /metrics and supports OpenTelemetry tracing.

What we learned serving models on our own hardware

Throughput and latency pull against each other. Continuous batching serves many users well but can raise time to first token for each one. Decide which matters more for each workload: an analyst chat needs fast first tokens; overnight document processing needs throughput.

Memory is the real limit. The model's weights and its key-value cache share GPU memory. Quantisation and prefix caching let one GPU serve more users or a larger model. Test quality after quantising; accuracy loss varies by model and task.

Long contexts are expensive. A long prompt costs memory for every concurrent user. Retrieval that sends only the relevant passages is usually cheaper and more accurate than filling the context window.

Test with real traffic. Published benchmarks use other models, hardware and request patterns. Replay a sample of your own prompts in staging before choosing.

What sovereign deployment adds

Speed is only half the decision. On a private or air-gapped estate, check how the engine behaves operationally:

  1. Telemetry off. vLLM collects anonymous usage data by default; set VLLM_NO_USAGE_STATS=1 or DO_NOT_TRACK=1. Check every engine and library for similar defaults.
  2. Offline operation. Stage model weights locally and stop runtime downloads; for Hugging Face libraries, set HF_HUB_OFFLINE=1. Mirror container images to an internal registry.
  3. Pinned versions. Pin the engine version, the container digest and the model revision, so you can name what answered any request and roll back.
  4. Your own metrics. Send metrics and traces to your own monitoring, never to a hosted service.
  5. Access control. Put the engine behind your own gateway with authentication and request logging; the engines themselves offer little.
  6. A migration path. Keep the application on an OpenAI-compatible interface so you can change engines without a rewrite, as TGI users now must.

Where to start

If you run TGI, list what depends on it and test the same models on vLLM or SGLang with your own traffic. If you are starting fresh, begin with vLLM, evaluate SGLang for agent-heavy or shared-prompt workloads, and harden whichever you choose with the checklist above.

In our stack, models run locally by default, or on any OpenAI-compatible endpoint you approve, so the choice of engine stays yours. Autonous Government runs fully air-gapped, with no telemetry, callback or internet dependency.

All posts