Skip to main content
← Runners

Text Generation Inference(TGI)

Hugging Face
Open source Apache-2.0 Inference serving Hugging Face ecosystem Some axes open Archived Checked 2026-10-30

Read the two badges separately: the first is whether this page is backed by evidence, the second is whether the product is still maintained. An archived product can have complete evidence; complete evidence does not mean the product is active.

30-second check: should it make your shortlist?

Upstream archived
In one line

TGI is Hugging Face's official serving-inference server: weights, clients and docs in…

How you use it

Local / self-hosted · CLI

Licence / commercial use

Open licence

Read the original licence before commercial use
Mainland China

Blocked · Not in filing list

These four cards help you rule things out, not decide for you. The real differences are in the eight questions and sources below.

Information not confirmed

  • The current state of the supported-architecture matrix (not inventoried item by item)
  • Whether any security-patch channel remains after archiving (no official statement — the repo is read-only, so plan for none)
  • MCP support status (no official statement verified)

TGI is Hugging Face's official serving-inference server: weights, clients and docs in one ecosystem, Apache-2.0. Honest note: last push 2026-03-21 (API snapshot) — current serving heat is with vLLM/SGLang; check the cadence before choosing.

When to use it, when not to

Fits: HF-Hub-heavy serving deployments, official Docker/client pairing. Not a fit: casual single-machine use; default new-project serving choice (compare vLLM/SGLang cadence first).

China availability domestic / direct access / CAC filing · snapshot 2026-10-21

Origin
foreign-made Hugging Face (US).
Direct access
direct blocked huggingface.co measured 000 direct (network-limited, not a death verdict; 200 via proxy).
CAC filing
not in filing list:not in the CAC public registry (searched 2026-10-21); the open-source project does not serve the mainland public, so filing does not apply.

Filing status is quoted from the CAC public registry (updated batch by batch; this site copies the number and does not interpret it). "Direct access" is this site's own reachability measurement from a mainland network, not a vendor promise. GitHub-hosted sites fluctuated on the measurement day — the note says so.

8 questions, one table

8 questions, each comparable item by item with its peers.

Model & openness

Native hookup to HF Hub weights (Hugging Face's own product line); safetensors-first; the supported model/architecture matrix follows the official docs, not inventoried item by item.

Where it runs

A serving inference server (the Rust+Python hybrid line); GitHub 10,880★, last push 2026-03-21; the repository was archived read-only by the owner on 2026-03-21 (GitHub API verified 2026-10-30: archived=true, page banner "archived by the owner on Mar 21, 2026. It is now read-only").

Local files

Self-hosted deployment, data in your own environment; pulling weights from HF Hub goes over the network, inference data stays inside the deployment environment.

Tasks after shutdown

The product form is a resident service; continuous batching and streaming output are the official docs' main axes, queue details not verified item by item.

Tools & extensions

The text-generation client line includes tool calling; MCP not verified item by item.

Context & memory

Context length is set by model and deployment configuration; the current default switches of optimizations like prefix caching and chunked prefill not verified item by item.

Permissions & limits

Self-hosted with no account system; API authentication configured by the deploying party; the token permission surface of HF Hub interactions not verified item by item.

Best for

Fits: continuing existing TGI deployments inside the HF ecosystem (weights/clients/docs through one door), wanting the official Docker line. Does not fit: new-project selection — the official notice names vLLM/SGLang and llama.cpp/MLX as the recommended alternatives; the repository is archived read-only.

Licence and terms of use

Apache-2.0 (GitHub API verified 2026-10-21).

Top misconception

  • Assuming 'made by HF' means 'default recommendation' — on the serving track vLLM/SGLang currently carry more heat; check repo cadence
  • Last push 2026-03-21 (API snapshot) — verify current maintenance before choosing
  • Treating GGUF as first-class — TGI's main line is safetensors

Evidence sources

Checked 2026-10-30,Content updated 2026-10-30。This is the date of the entry, not a claim that every field was rechecked that day.

TypeNameLink
repohuggingface/text-generation-inference · repo (Apache-2.0; 10,880★, last push 2026-03-21; archived read-only on 2026-03-21, GitHub API verified 2026-10-30 archived=true)https://github.com/huggingface/text-generation-inference
docsTGI · official docshttps://huggingface.co/docs/text-generation-inference/index
changeloghuggingface/text-generation-inference · Releases (changelog)https://github.com/huggingface/text-generation-inference/releases

Test notes

This site has not completed measured runs. The models-site guides serving-deep-dive.md has covered the serving-inference comparison framing; no runner-specific test protocol exists on this site yet.

Related entries

  • llama.cppThe two current poles of serving inference; TGI is the official option inside the HF ecosystem.
  • OpenAI Agents SDKOther layer · Frameworks & runtimes

Same-category peers

Look at these three before reading further

Selected by overlap in jobs, not ranked. Compare where it runs, licence and status first; if one of the three fails, skip it.

ObjectWhereLicenceEvidence / statusWhat it is for
ExLlamaV3Local / self-hostedOpen licence8 questions checked
Active
The successor to ExLlamaV2: low-latency local inference on NVIDIA GPUs u
llama.cppLocal / self-hostedOpen licence8 questions checked
Active
llama.cpp is the bedrock of the entire local-inference ecosystem: GGUF i
LocalAILocal / self-hostedOpen licence8 questions checked
Active
LocalAI is the 'change the URL and go local' multimodal runtime: a singl

Same vendor

More from Hugging Face

One vendor’s products are often split across categories. This list puts them together so you do not have to assemble them across five sites.

This page is generated from the ai-handbook data layer (CC BY 4.0). For the judging criteria and method notes, see METHODOLOGY.md.