hf-cloud-serving-image-selection
하는 일
이 스킬은 모델을 SageMaker에 배포하기 전에 올바른 서빙 컨테이너를 고릅니다. 잘못된 이미지 때문에 상태 확인이 실패하는 것을 피하려는 오픈 모델 호스팅 사용자를 위한 스킬입니다.
사용하는 경우
- ✓언어, 임베딩 또는 리랭커 모델을 SageMaker 엔드포인트에 배포하고 싶을 때.
- ✓서빙 컨테이너의 현재 이미지 주소를 찾아야 할 때.
- ✓배포가 상태 확인에 실패했고 서빙 이미지가 의심될 때.
스킬 링크
https://github.com/huggingface/skills/blob/main/skills/hf-cloud-serving-image-selection/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 임베딩 모델을 위한 SageMaker 서빙 이미지를 골라서 현재 주소를 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
AI는 모델 유형에 맞는 서빙 이미지를 비교하고, 검증된 이유가 없는 한 Hugging Face 이미지를 우선합니다. AWS가 공개한 컨테이너 목록에서 현재 이미지 주소를 찾습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
왜 Hugging Face 이미지를 우선하나요?
Hugging Face 모델을 위해 만들어졌으므로, 스킬은 이를 기본값으로 삼습니다.
일반 이미지의 새 버전이 전환할 이유가 되나요?
아닙니다. 중요한 것은 모델과의 호환성이며, 새 버전 번호만으로는 이유가 되지 않습니다.
이미지 주소는 어디서 오나요?
AWS가 공개한 Deep Learning Containers 목록에서 옵니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 11k
- 순위
- #11771
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 10. 30.
댓글
- …
이 저장소의 다른 스킬
hf-cli
11k에이전트가 hf 명령줄 도구로 Hugging Face Hub의 모델, 데이터셋, Space, 저장소를 내려받고 올리며 로컬 캐시를 관리하도록 돕습니다.
hf-cloud-aws-context-discovery
11k에이전트가 클라우드 작업 전에 AWS 프로필, 리전, 계정 정보를 찾아, 어느 계정을 쓸지 추측하지 않도록 돕습니다.
hf-cloud-python-env-setup
11k에이전트가 SageMaker나 AWS 자동화를 실행하기 전에 적절한 Python 버전과 최신 라이브러리가 있는 깔끔한 Python 환경을 만들도록 돕습니다.
hf-cloud-sagemaker-deployment-planner
11k에이전트가 모델을 Amazon SageMaker에 배포하는 방법을 계획하고, 실시간, 서버리스, 비동기, 배치 호스팅 중 합리적인 기본값으로 고르도록 돕습니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.