Model Online / On-Site
Duration
Modules 5 modules

Course Objective & Scope

Text Generation Inference (TGI) is a serving solution built to turn models on the Hugging Face Hub into production endpoints quickly. The programme covers TGI's router/launcher architecture, Docker installation, multi-GPU sharding, bitsandbytes/AWQ/GPTQ/FP8 quantization options and OpenAI-compatible use through the Messages API.

Exercises configure token access to gated models, JSON-schema output with guidance, tool calling and Prometheus metrics. Comparing TGI with vLLM and SGLang, participants prepare a reasoned assessment of which engine fits their organisation's existing stack.

Who Should Attend?

  • ML engineers using Hugging Face Hub and Transformers
  • Platform teams building model serving infrastructure
  • Developers using TGI on Inference Endpoints or SageMaker
  • Prerequisite: Docker and Python

Key Takeaways

  • Run TGI with Docker on single or multiple GPUs
  • Tune quantization and token limits to the hardware
  • Integrate via the Messages API, streaming and structured output
  • Monitor TGI metrics and run load tests
  • Make a reasoned choice between TGI, vLLM and SGLang

Curriculum

TGI Architecture and Ecosystem
  • Router, launcher and model shards
  • Hugging Face Hub, gated models and licences
Installation and Configuration
  • Launching with Docker, sharding and token limits
  • bitsandbytes, AWQ, GPTQ and FP8 quantization options
Using the API
  • Messages API, streaming and chat templates
  • JSON output with guidance and tool calling
Monitoring and Scaling
  • Prometheus metrics and OpenTelemetry tracing
  • Running on Inference Endpoints and Kubernetes
Engine Comparison
  • Benchmarking TGI, vLLM and SGLang on the same model
  • Selection criteria for the organisation's stack

Other Courses in This Category

Get in touch