Duczer East
Healthcare

In-perimeter AI on governed clinical and operational data.

Financial Services

Private AI and data platforms built to clear model-risk and audit review.

Financial services

Private AI, KYC/AML, API gateways and data governance for banks.

Insurance

Change data capture, governed agents and integration for insurers.

Healthcare

PHI document intelligence, FHIR APIs and in-perimeter AI for health systems and plans.

GuideAI & Data Engineering6 min read

Text Generation Inference explained: container, Kubernetes and air-gapped options

What it does, its current status, and how teams deploy it

On this page
  1. What does TGI do?
  2. What does maintenance mode change?
  3. How do teams deploy TGI?
  4. What controls does a TGI deployment still need?
  5. What do the TGI features mean in plain terms?
  6. Who still uses TGI?
  7. What questions should we ask before keeping TGI?
  8. What should we do next?

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?

OptionHow it worksNotes 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 installClone the repository and build with make install.Hugging Face says this is not the recommended usage. Avoid it in production.
KubernetesRun 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-gappedMirror 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.

Frequently asked questions

What is Text Generation Inference?

TGI is a Hugging Face toolkit for deploying and serving large language models, with continuous batching, tensor parallelism across GPUs, token streaming, Prometheus metrics and OpenTelemetry tracing.

Is TGI still maintained?

Hugging Face says it is in maintenance mode, accepting pull requests for minor bug fixes, documentation improvements and lightweight maintenance tasks, and recommends vLLM, SGLang and local engines going forward.

How do we run TGI?

Hugging Face recommends its official Docker image. The installation guide for NVIDIA GPUs lists H100, A100, A10G and T4 GPUs with CUDA 12.2 or later and the NVIDIA Container Toolkit.

Can TGI run with no internet access?

In practice yes, if the image and model weights are staged inside your network first. Mount approved weights as a volume and mirror the image to an internal registry. Test it with the network blocked.

Should we start a new project on TGI?

We recommend vLLM or another actively developed engine for new work, given the maintenance-mode notice.

Newsletter

The Practitioner's Briefing

Senior-level insights on agentic AI, data engineering and enterprise integration, delivered to your inbox.

One email when there is something worth reading. Unsubscribe any time.

Let's Talk

Want to discuss the ideas raised here?

Tell us what you are working on. A senior practitioner replies, and only your email is required.

Get a quote