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.
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-selectionRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install hf-cloud-serving-image-selection in Claude Code
git clone --depth 1 https://github.com/huggingface/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/hf-cloud-serving-image-selection ~/.gemini/antigravity-cli/skills/hf-cloud-serving-image-selectionAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install hf-cloud-serving-image-selection in Antigravity CLI
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
ANo 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 →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
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.
