Home/Inference & Serving/text-generation-inference

text-generation-inference

archived
huggingface/text-generation-inference

Large Language Model Text Generation Inference

11k
Stars
1.3k
Forks
324
Open issues
100
Watchers
3mo
Last push
Python Apache-2.0Created Oct 8, 2022

Overview

A Rust, Python and gRPC server for text generation inference used in production at Hugging Face. Now in maintenance mode.

Capability facts

No sourced capability facts yet. Facts appear after ingest scans repo manifests (Dockerfile, package.json, MCP configs).

Categories

Tags

README

[!CAUTION] text-generation-inference is now in maintenance mode. Going forward, we will accept pull requests for minor bug fixes, documentation improvements and lightweight maintenance tasks.

TGI has initiated the movement for optimized inference engines to rely on a transformers model architectures. This approach is now adopted by downstream inference engines, which we contribute to and recommend using going forward: vllm, SGLang, as well as local engines with inter-compatibility such as llama.cpp or MLX.

Making TGI deployment optimal

Text Generation Inference

GitHub Repo stars Swagger API documentation

A Rust, Python and gRPC server for text generation inference. Used in production at Hugging Face to power Hugging Chat, the Inference API and Inference Endpoints.

Table of contents

  • Get Started
    • Docker
    • API documentation
    • Using a private or gated model
    • A note on Shared Memory (shm)
    • Distributed Tracing
    • Architecture
    • Local install
    • Local install (Nix)
  • Optimized architectures
  • Run locally
    • Run
    • Quantization
  • Develop
  • Testing

Text Generation Inference (TGI) is a toolkit for deploying and serving Large Language Models (LLMs). TGI enables high-performance text generation for the most popular open-source LLMs, including Llama, Falcon, StarCoder, BLOOM, GPT-NeoX, and more. TGI implements many features, such as:

Command menu

Search tools or jump to a page