The 5-minute startup
TGI ships as a Docker image. The standard recipe: pick a model, mount a volume for weights cache, expose port 8080, set --model-id. The container pulls weights on first start (slow), then warm-starts on subsequent runs (fast).
Knobs you'll actually tune
--model-id— HF repo id or local path.--quantize—awq | gptq | bitsandbytes | bitsandbytes-nf4 | fp8. Mix-and-match with the right model variant.--max-concurrent-requests— how many requests can be in flight simultaneously. Default is conservative; bump for higher throughput.--max-input-length,--max-total-tokens— pre-allocates KV cache. Higher = more GPU memory budget per request, fewer concurrent requests.--num-shard— tensor-parallel shards across GPUs.
Endpoints that come for free
POST /generate, POST /generate_stream, POST /v1/chat/completions (OpenAI-compatible), GET /info, GET /health, GET /metrics (Prometheus).