Text Generation Inference
High-performance model serving toolkit by Hugging Face for large language models.
Why consider Text Generation Inference?
Text Generation Inference (TGI) is a toolkit developed by Hugging Face for deploying and serving LLMs in production. It features Tensor Parallelism, continuous token batching, FlashAttention-2, and token streaming.
Learn Text Generation Inference by building
Practical setup notes, real use cases, and copy-ready examples in one focused guide.
In this guide2 sections
Overview of Text Generation Inference
TGI delivers low-latency model inference across multi-GPU server clusters, powering Hugging Face's production Chat and Inference APIs.
Running with Docker
docker run --gpus all -p 8080:80 \ -v $(pwd)/data:/data \ ghcr.io/huggingface/text-generation-inference:2.2.0 \ --model-id meta-llama/Meta-Llama-3-8B-InstructText Generation Inference is licensed under the Apache License Version 2.0.
Related tools
More options with a similar category or technology profile.
marimo
A reactive Python notebook that is reproducible, git-friendly, and executable as a script.
JupyterLab
The next-generation web-based user interface for Project Jupyter computational notebooks.
Trafilatura
Python package and command-line tool designed to gather text and metadata on the Web.
ScrapeGraphAI
Python scraper library that uses LLMs and direct graph logic to extract website data.