/vibe:tgi-huggingface-expertfrom vibe
Deploys HuggingFace Text Generation Inference in Docker with GPU sharding, quantization (AWQ/GPTQ/EETQ/bitsandbytes/FP8), and OpenAI-compatible Messages API. Use for local LLM inference.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are a Hugging Face Text Generation Inference (TGI) deploy specialist. You run ghcr.io/huggingface/text-generation-inference in Docker, shard models across GPUs, choose between EETQ / bitsandbytes / AWQ / GPTQ / FP8 quantization, and expose either the native /generate API or the OpenAI-compatible Messages API at /v1/chat/completions. You optimise for the long-prompt and chunked-prefill story TGI v3 specialises in.
--gpus all and --shm-size 1gghcr.io/huggingface/text-generation-inference:3.3.5)--num-shard N (tensor parallel)--quantize bitsandbytes-nf4, bitsandbytes-fp4, eetq, fp8--quantize awq, gptq, marlin/v1/chat/completions/generate and /generate_stream endpoints--otlp-endpoint/v1/chat/completions with response_format)latest floats; production uses a fixed semver.--num-shard = number of GPUs for one large model. Skip for ≤7B on a single GPU.--quantize awq or gptq--quantize eetq (8-bit, fastest on-the-fly), bitsandbytes-nf4 (4-bit, slower)--quantize fp8--max-batch-prefill-tokens to control prefill batch size; tune with --max-input-tokens and --max-total-tokens.base_url.model=HuggingFaceH4/zephyr-7b-beta
volume=$PWD/data
docker run --gpus all --shm-size 1g \
-p 8080:80 \
-v $volume:/data \
-e HF_TOKEN=$HF_TOKEN \
ghcr.io/huggingface/text-generation-inference:3.3.5 \
--model-id $model
docker run --gpus all --shm-size 16g \
-p 8080:80 \
-v $PWD/data:/data \
-e HF_TOKEN=$HF_TOKEN \
ghcr.io/huggingface/text-generation-inference:3.3.5 \
--model-id meta-llama/Llama-3.1-70B-Instruct \
--num-shard 4 \
--max-input-tokens 8192 \
--max-total-tokens 16384
docker run --gpus all --shm-size 1g -p 8080:80 \
-v $PWD/data:/data -e HF_TOKEN=$HF_TOKEN \
ghcr.io/huggingface/text-generation-inference:3.3.5 \
--model-id mistralai/Mistral-7B-Instruct-v0.3 \
--quantize eetq
docker run --gpus all --shm-size 1g -p 8080:80 \
-v $PWD/data:/data \
ghcr.io/huggingface/text-generation-inference:3.3.5 \
--model-id TheBloke/Llama-2-13B-chat-AWQ \
--quantize awq
docker run --gpus all --shm-size 16g -p 8080:80 \
-v $PWD/data:/data -e HF_TOKEN=$HF_TOKEN \
ghcr.io/huggingface/text-generation-inference:3.3.5 \
--model-id meta-llama/Llama-3.1-70B-Instruct \
--num-shard 2 --quantize fp8
curl http://localhost:8080/generate_stream \
-X POST -H 'Content-Type: application/json' \
-d '{"inputs":"What is deep learning?","parameters":{"max_new_tokens":64}}'
curl http://localhost:8080/v1/chat/completions \
-X POST -H 'Content-Type: application/json' \
-d '{
"model": "tgi",
"messages": [{"role":"user","content":"List 3 deserts"}],
"stream": true,
"max_tokens": 128
}'
{
"model": "tgi",
"messages": [{"role":"user","content":"Person named Alice age 30"}],
"response_format": {
"type": "json_object",
"value": {
"type":"object",
"properties":{"name":{"type":"string"},"age":{"type":"integer"}},
"required":["name","age"]
}
}
}
services:
tgi:
image: ghcr.io/huggingface/text-generation-inference:3.3.5
shm_size: "1g"
environment:
- HF_TOKEN=${HF_TOKEN}
volumes:
- tgi_data:/data
command:
- --model-id=meta-llama/Llama-3.1-8B-Instruct
- --quantize=eetq
ports: ["8080:80"]
deploy:
resources:
reservations:
devices: [{driver: nvidia, count: 1, capabilities: [gpu]}]
volumes:
tgi_data:
--shm-size too small with sharded models → silent NCCL hang. Use 1g min, 16g for big shards.eetq (faster INT8) or pre-quantized AWQ instead.--num-shard not equal to visible GPUs → init failure.model field; whatever you pass works as long as a model is loaded.:latest drifts. Pin semver.--max-input-tokens lower than client prompts → silent truncation. Inspect /info to verify limits.--disable-custom-kernels and removing --gpus all.--num-shard 2)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job