본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)11k · #11771

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/huggingface/skills/blob/main/skills/hf-cloud-serving-image-selection/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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:

  1. Verified incompatibility — the model needs an architecture/modality/feature no available HuggingFace tag supports, confirmed against the catalog (not assumed).
  2. No HuggingFace tag exists in the target region and mirroring is not an option.
  3. 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬