Text Generation Inference (TGI) is a Hugging Face toolkit for serving large language models. It batches requests, spreads a model across GPUs and exposes metrics. Hugging Face now lists it as in maintenance mode and recommends vLLM, SGLang and local engines for new work. This guide explains what it does and how teams deploy it, including inside a closed network.
What does TGI do?
The Text Generation Inference documentation lists continuous batching, tensor parallelism for multi-GPU serving, token streaming with server-sent events, quantization with bitsandbytes and GPT-Q, safetensors weight loading, and production features: Prometheus metrics and distributed tracing with OpenTelemetry (checked December 1, 2026). It serves popular open models such as Llama and Falcon through a simple launcher.
What does maintenance mode change?
The notice at the top of the documentation says Hugging Face will accept pull requests for minor bug fixes, documentation improvements and lightweight maintenance tasks, and points to vLLM, SGLang, llama.cpp and MLX (checked December 1, 2026). Plan on that basis: an existing TGI service is a candidate for a managed move, and a new service should start elsewhere. See vLLM vs TGI for the comparison.
How do teams deploy TGI?
| Option | How it works | Notes for regulated teams |
|---|---|---|
| Container (recommended by Hugging Face) | Run the official Docker image with --gpus all, a port mapping and a volume for model weights. The docs example mounts a data folder at /data. | Needs the NVIDIA Container Toolkit. Docs list H100, A100, A10G and T4 GPUs with CUDA 12.2 or later. The example uses image tag 3.3.5; pin the tag you test. |
| Source install | Clone the repository and build with make install. | Hugging Face says this is not the recommended usage. Avoid it in production. |
| Kubernetes | Run the same container image as a deployment with GPU scheduling. | Our guidance, not a Hugging Face procedure. Pin the image digest, mount weights from a controlled volume, and probe the service. |
| Air-gapped | Mirror the image to an internal registry and stage approved weights on a volume before start. | Our guidance. Test with the network blocked, and confirm nothing tries to download at start. |
Rows two to four rest on the TGI installation guide for NVIDIA GPUs for the container route and on our own practice for Kubernetes and closed networks. Hugging Face does not publish a Kubernetes or air-gapped procedure on the pages we checked (checked December 1, 2026).
What controls does a TGI deployment still need?
The engine serves models; it does not replace your platform controls. Keep a gateway in front for identity and quotas, a registry for approved weights, central logs, and a rehearsed rollback. Most of the checklist in our vLLM production checklist applies to any engine, so reuse it. Do not expose the container port directly to users.
What do the TGI features mean in plain terms?
- Continuous batching: new requests join a running batch, so the GPU stays busy and more users share one model.
- Tensor parallelism: one model is split across several GPUs, so models too large for one card can be served.
- Token streaming: words appear as they are generated, which makes a chat interface feel faster.
- Quantization: smaller number formats cut memory use, at some cost to quality that you should test.
- Metrics and tracing: Prometheus metrics and OpenTelemetry traces let operations teams see load and slow requests.
These are the same ideas other engines use. What differs is project health, and that is why the maintenance-mode notice matters more than any single feature.
Who still uses TGI?
The documentation names projects that use it in production, among them Hugging Chat. Many enterprise teams adopted it early because it came from the same company as the model hub, so you may find it in an estate you inherit. If you do, treat it as a known quantity with a clear plan: inventory it, front it with a gateway, and schedule the move.
What questions should we ask before keeping TGI?
- Which models does it serve, and does the current release load the newer versions we want?
- Who on our side can fix an incident in it, given the project is in maintenance mode?
- What do our third-party risk policies say about components in maintenance mode?
- How long would a move to vLLM take if we started today?
If the answers are unclear, that is the reason to run the inventory now and not during an incident.
What should we do next?
If you run TGI, inventory it and plan the move. If you are choosing, start with vLLM vs Ollama and the decision table on our private LLM hosting page.


