Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

hf-cloud-serving-image-selection

Skill by huggingface

Picks the right serving container for a SageMaker model deployment and finds its current image URI. Built for developers deploying LLMs, embedding models, or rerankers to SageMaker endpoints.

  • Score 94
  • 11k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install hf-cloud-serving-image-selection

Built from the published package, never by AI.

git clone --depth 1 https://github.com/huggingface/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/hf-cloud-serving-image-selection ~/.claude/skills/hf-cloud-serving-image-selection

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install hf-cloud-serving-image-selection in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill helps an assistant choose the serving container for a SageMaker model deployment and find its current image URI. It sets a rule that HuggingFace-curated Deep Learning Containers come first, including HuggingFace vLLM, vLLM-Omni, TEI and HF Inference Toolkit. Generic images such as AWS vLLM, DJL-LMI and SGLang are used only when no HuggingFace image is compatible. The skill says to read URIs from the AWS catalog page rather than from memory, and never to default to TGI.

It also covers details that often break deployments. It separates encoder cross-encoders, which go to TEI, from generative rerankers, which go to HuggingFace vLLM. It lists the AMI setting needed for CUDA 13 vLLM images and the SM_VLLM environment variables to configure. It is written for developers deploying LLMs, embedding models, or rerankers to SageMaker endpoints.

Written from the project's SKILL.md and checked against it.

What it can do

  • Choose a container familyMaps a model type, such as an LLM, embedding model or reranker, to the right serving image family.
  • Find the image URIReads the current image URI from the AWS Deep Learning Containers catalog page for the user's region.
  • Pick TEI GPU or CPU variantChooses the GPU or CPU TEI image based on the instance type, such as ml.g* or ml.c*.
  • Check reranker architectureReads config.json to decide whether a reranker should run on TEI or HuggingFace vLLM.
  • Set the vLLM AMI versionGives the InferenceAmiVersion to pass for vLLM images tagged cu130 or later.
  • Configure vLLM environment variablesLists required SM_VLLM settings such as SM_VLLM_HOST, which must be 0.0.0.0.

What you need

  • An AWS region for the SageMaker deployment
  • A HuggingFace token for gated models
  • Network access to huggingface.co to read model config files

Try asking

  • Which SageMaker container should I use to deploy Qwen3-Reranker?
  • Find the current HuggingFace vLLM image URI for my AWS region.
  • Check whether this reranker needs TEI or vLLM before I deploy it.

Good to know

  • Says not to use TGI because it is archived.
  • Says TEI support for some architectures covers embeddings only.
  • TEI account IDs can vary by region, so the region availability page must be checked.
  • CUDA 13 vLLM images need a specific AMI setting, and the source gives no other AMI options.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/hf-cloud-serving-image-selection/SKILL.md, skills/hf-cloud-serving-image-selection/scripts/mirror_image.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md18 KB
  • references/model-to-image.md11 KB
  • scripts/mirror_image.py5 KB

Alternatives to hf-cloud-serving-image-selection

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

hf-cloud-serving-image-selection: common questions

Should I use TGI to serve models on SageMaker?

No. The source says Text Generation Inference is archived and that models such as Qwen3 fail health checks on it. It recommends vLLM instead.

Which container should I use for a generative reranker?

Use HuggingFace vLLM, deployed like a text-generation LLM. The source says TEI rejects these models, even though the SageMaker SDK routes text-ranking tasks to TEI.

Why does my vLLM endpoint fail without creating logs?

The source says vLLM images with CUDA 13 or higher need InferenceAmiVersion set to al2-ami-sagemaker-inference-gpu-3-1. Without it, the container can die on startup before logs are created.

How do I install hf-cloud-serving-image-selection?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is hf-cloud-serving-image-selection free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is hf-cloud-serving-image-selection safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to hf-cloud-serving-image-selection?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

hf-cloud-serving-image-selection Install

Add to stack

Loading.