Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Serves LLMs via Hugging Face Text Generation Inference with continuous batching, quantization, tensor parallelism, & OpenAI-compatible API.
68% 91%+23 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 15 of 22 without it.
Which default model identifier from Hugging Face Hub is specified in the standard Docker deployment snippet for Text Generation Inference?
The model identifier is Qwen/Qwen2.5-1.5B-Instruct
3 of 3 safety checks passed
Text Generation Inference (TGI) is a production-ready LLM serving solution from Hugging Face. It provides optimized inference with continuous batching, quantization (GPTQ, AWQ), tensor parallelism, flash attention, and an OpenAI-compatible API.
# Docker deployment (recommended)
docker run --gpus all -p 8080:80 -v $HOME/models:/data ghcr.io/huggingface/text-generation-inference:latest --model-id Qwen/Qwen2.5-1.5B-Instruct
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8080/v1", api_key="none")
response = client.chat.completions.create(
model="tgi",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)
stream = client.chat.completions.create(
model="tgi",
messages=[{"role": "user", "content": "Write a poem"}],
stream=True,
)
for chunk in stream:
print(chunk.choices[0].delta.content or "", end="")
Next to this one in the catalogue, plus more from the same author.