मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)11k · #11771

hf-cloud-serving-image-selection

यह क्या करती है

यह स्किल मॉडल डिप्लॉय होने से पहले उसके लिए सही serving container चुनती है। यह उन लोगों के लिए है जो open models होस्ट करते हैं और गलत इमेज की वजह से health check की विफलता से बचना चाहते हैं।

कब इस्तेमाल करें

  • ✓जब आप किसी language, embedding या reranker मॉडल को SageMaker endpoint पर डिप्लॉय करना चाहते हैं।
  • ✓जब आपको serving container का मौजूदा image पता चाहिए।
  • ✓जब डिप्लॉयमेंट का health check विफल हो और आपको serving image पर शक हो।

Skill का लिंक

https://github.com/huggingface/skills/blob/main/skills/hf-cloud-serving-image-selection/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/huggingface/skills/blob/main/skills/hf-cloud-serving-image-selection/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“इस embedding मॉडल के लिए SageMaker पर सही serving image चुनिए और उसका मौजूदा पता दीजिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

AI मॉडल के प्रकार में फ़िट होने वाली serving images की तुलना करता है, और जब तक सत्यापित कारण न हो, Hugging Face images को प्राथमिकता देता है। वह AWS की प्रकाशित container सूची में मौजूदा image पता देखता है।

तकनीकी सामग्री (मूल 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 images को प्राथमिकता क्यों देती है?

स्किल इन्हें डिफ़ॉल्ट बनाती है, क्योंकि ये Hugging Face मॉडल के लिए बनी होती हैं।

क्या किसी सामान्य image का नया संस्करण बदलने का कारण है?

नहीं। सिर्फ़ नया संस्करण नंबर कारण नहीं है, क्योंकि मायने यह रखता है कि वह मॉडल के साथ मेल खाती है या नहीं।

image के पते कहाँ से आते हैं?

वे 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
अपडेट की गई
30/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

hf-cli

11k

यह आपके एजेंट को hf कमांड लाइन टूल से Hugging Face पर मॉडल, डेटासेट, Spaces, रिपो और लोकल कैश डाउनलोड करने, अपलोड करने और संभालने में मदद करती है।

डेटामशीन लर्निंग

hf-cloud-aws-context-discovery

11k

यह आपके एजेंट को किसी भी क्लाउड काम से पहले AWS प्रोफ़ाइल, क्षेत्र और खाते का विवरण खोजने में मदद करती है, ताकि वह अंदाज़ा लगाकर खाता न चुने।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

hf-cloud-python-env-setup

11k

यह आपके एजेंट को SageMaker या AWS ऑटोमेशन चलाने से पहले सही Python संस्करण और ताज़ा लाइब्रेरी वाला साफ़ Python वातावरण सेट करने में मदद करती है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

hf-cloud-sagemaker-deployment-planner

11k

यह आपके एजेंट को मॉडल को Amazon SageMaker पर डिप्लॉय करने की योजना बनाने में मदद करती है, real-time, serverless, async या batch होस्टिंग में से सही विकल्प चुनकर।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

मिलती-जुलती skills