hf-cloud-serving-image-selection
O que ela faz
Esta skill escolhe o contêiner de serving correto para um modelo antes de ele ser implantado no SageMaker. É para pessoas que hospedam modelos abertos e querem evitar falhas no health check causadas por uma imagem errada.
Quando usar
- ✓Quando você quer implantar um modelo de linguagem, de embeddings ou de reranking em um endpoint do SageMaker.
- ✓Quando você precisa encontrar o endereço atual da imagem de um contêiner de serving.
- ✓Quando uma implantação falha no health check e você suspeita da imagem de serving.
Link da skill
https://github.com/huggingface/skills/blob/main/skills/hf-cloud-serving-image-selection/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Escolha a imagem de serving certa para este modelo de embeddings no SageMaker e me passe o endereço atual dela.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A IA compara as imagens de serving que se encaixam no tipo do modelo e dá preferência às imagens da Hugging Face, a menos que exista um motivo verificado para não usá-las. Ela consulta o endereço atual da imagem no catálogo publicado pela AWS.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Serving Image Selection
The serving container is the single thing most likely to break a SageMaker deployment that "looked correct on paper". Wrong container, stale tag, or the wrong AMI — all produce the same opaque Failed to pass health check error.
Rule zero: HuggingFace images always win
When both a HuggingFace-curated family (huggingface-vllm, huggingface-vllm-omni, huggingface-sglang, tei, huggingface-pytorch-inference) and a generic family (vllm, vllm-omni, sglang, djl-inference) can serve the model, the HuggingFace one is mandatory, not preferred. The only valid reasons to use a generic image:
- Verified incompatibility — the model needs an architecture/modality/feature no available HuggingFace tag supports, confirmed against the catalog (not assumed).
- No HuggingFace tag exists in the target region and mirroring is not an option.
- The HuggingFace image is in "Known-broken images" below.
A newer version number on the generic repo is not a reason. The AWS vllm repo often publishes a higher vLLM version than huggingface-vllm; an older-but-compatible huggingface-vllm tag still wins. "Latest vLLM" is not a requirement anyone stated — compatibility with the model is. If you fall back, record in the deployment log which of the three reasons applied.
Where image URIs come from
Primary source: AWS's official Deep Learning Containers catalog.
URL: https://aws.github.io/deep-learning-containers/reference/available_images/
This page is AWS-maintained and lists every image family with example URIs, tags, CUDA versions, Python versions, and platform (SageMaker vs EC2/ECS/EKS). When picking a URI for a deployment, read it from this page directly — copy the example URL, substitute <region> with the user's region, and pass it to deploy.py --image-uri.
The example URLs use 763104351884 as the account ID for most regions. A few regions use different accounts (e.g. eu-south-1 uses 692866216735). Check the Region Availability page when in doubt.
Exception: none currently. Every image family used by this workflow is now on the AWS catalog page (TEI was added in late 2026). If you encounter a new family that isn't there, mirror it via mirror_image.py and pass the resulting URI directly.
Quick decision
| Model | Container family | How to get the URI |
|---|---|---|
| HuggingFace text-generation LLM (Llama, Qwen, Mistral, etc.) | HuggingFace vLLM | AWS catalog → "HuggingFace vLLM Inference" (ECR repo huggingface-vllm) |
| Same as above, multimodal | HuggingFace vLLM-Omni | AWS catalog → "HuggingFace vLLM-Omni Inference" (ECR repo huggingface-vllm-omni) |
| HuggingFace embeddings | TEI | AWS catalog → "HuggingFace Text Embeddings Inference" |
Encoder / cross-encoder rerankers (BERT-family *ForSequenceClassification) |
TEI | Same as embeddings |
| Generative rerankers (causal-LM, e.g. Qwen3-Reranker) | HuggingFace vLLM | Same as text-generation LLMs — not TEI, see "Rerankers: TEI or vLLM?" |
| Text-to-image / diffusion (Stable Diffusion, FLUX) | DJL Inference | AWS catalog → "DJL Inference" — not HF Inference Toolkit, see "Known-broken images" |
| HuggingFace classifiers, NER, QA, summarization | HF Inference Toolkit (CPU) | AWS catalog → "HuggingFace PyTorch Inference"; GPU tags currently broken — see "Known-broken images" |
| User specifically wants SGLang | HuggingFace SGLang | AWS catalog → "HuggingFace SGLang Inference" |
No compatible huggingface-vllm tag (verified incompatibility or region gap — see "Rule zero") |
vLLM (AWS) | AWS catalog → "vLLM" section — fallback only, never for version freshness |
| User specifically wants DJL-LMI | DJL Inference | AWS catalog → "DJL Inference" |
| Amazon Nova | SageMaker JumpStart | Use JumpStart, not raw endpoint creation |
| Custom inference code | BYOC | User provides URI |
HuggingFace-curated DLCs are mandatory when one is compatible (see "Rule zero"). huggingface-vllm is layered directly on the AWS vLLM DLC — identical SM_VLLM_* env contract and the same cu130 AMI rule — and adds current transformers, current huggingface_hub + hf_xet (avoids the XET-CDN 403 download failures older images hit), and HF performance defaults. It is also what SageMaker SDK v3 auto-routes to. The AWS vllm image is a compatibility escape hatch only; it usually shows a higher vLLM
Perguntas frequentes
Por que ela dá preferência às imagens da Hugging Face?
A skill as define como padrão, porque elas são feitas para modelos da Hugging Face.
Uma versão mais nova de uma imagem genérica é motivo para trocar?
Não. Um número de versão mais novo, por si só, não é motivo, já que o que importa é a compatibilidade com o modelo.
De onde vêm os endereços das imagens?
Eles vêm do catálogo publicado pela AWS de Deep Learning Containers.
Detalhes
Descrição original do autor
Pick the right serving container for a SageMaker model deployment and find its current image URI. Use this skill whenever about to deploy a model to a SageMaker endpoint and an image URI needs to be chosen — including when the user says "deploy this LLM", "host this HuggingFace model", "serve this fine-tuned model", "deploy this embedding model", "host a reranker", "serve a sentence-transformers model", or when about to hardcode any container URI in deployment code. HuggingFace-curated Deep Learning Containers are ALWAYS preferred: HuggingFace vLLM (LLMs and generative rerankers), HuggingFace
repo: huggingface/skills
Popularidade
- Estrelas no GitHub
- 11 mil
- Posição no ranking
- #11771
- Licença
- Apache-2.0
- Atualizada em
- 30/10/2026
Comentários
- …
Mais skills deste repositório
hf-cli
11 milAjuda seu agente a usar a ferramenta de linha de comando da Hugging Face para baixar, enviar e gerenciar modelos, datasets, Spaces, repositórios e o cache local.
hf-cloud-aws-context-discovery
11 milAjuda seu agente a encontrar seu perfil, região e dados da conta AWS antes de qualquer trabalho na nuvem, para que ele não adivinhe qual conta usar.
hf-cloud-python-env-setup
11 milAjuda seu agente a montar um ambiente Python limpo, com uma versão adequada e bibliotecas atuais, antes de executar automações do SageMaker ou da AWS.
hf-cloud-sagemaker-deployment-planner
11 milAjuda seu agente a planejar a implantação de um modelo no Amazon SageMaker, escolhendo hospedagem em tempo real, sem servidor, assíncrona ou em lote, com padrões sensatos.
Skills parecidas
openclaw-update
394 milAjuda seu agente a atualizar um OpenClaw Gateway existente, escolhendo o método que combina com a instalação e mantendo sua sessão funcionando.
diagnose-gateway
394 milAjuda seu agente a descobrir por que seu OpenClaw Gateway está falhando, verificando configurações, canais e portas sem alterar nada.
crabbox-apps
394 milAjuda seu agente a abrir e executar um app em uma máquina temporária na nuvem e depois mostrar a visualização dele no painel lateral do seu chat.