hf-mcp
Use Hugging Face Hub via MCP server tools. Search models, datasets, Spaces, papers. Get repo details, fetch documentation, run…
Trains and fine-tunes vision models for object detection (D-FINE, RT-DETR v2, DETR, YOLOS), image classification (timm models — MobileNetV3, MobileViT, ResNet, ViT/DINOv3 — plus any Transformers classifier), and SAM/SAM2 segmentation using Hugging Face Transformers on Hugging
Claude Code
$ npx -y skills add huggingface/skills --skill huggingface-vision-trainer --agent claude-code
Codex
$ npx skills add huggingface/skills --skill huggingface-vision-trainer -a codex -y
Cursor
$ npx skills add huggingface/skills --skill huggingface-vision-trainer -a cursor -y
Gemini CLI
$ npx skills add huggingface/skills --skill huggingface-vision-trainer -a gemini-cli -y
GitHub Copilot
$ npx skills add huggingface/skills --skill huggingface-vision-trainer -a github-copilot -y
OpenCode
$ npx skills add huggingface/skills --skill huggingface-vision-trainer -a opencode -y
Windsurf
$ npx skills add huggingface/skills --skill huggingface-vision-trainer -a windsurf -y
name: huggingface-vision-trainer description: Trains and fine-tunes vision models for object detection (D-FINE, RT-DETR v2, DETR, YOLOS), image classification (timm models — MobileNetV3, MobileViT, ResNet, ViT/DINOv3 — plus any Transformers classifier), and SAM/SAM2 segmentation using Hugging Face Transformers on Hugging Face Jobs cloud GPUs. Covers COCO-format dataset preparation, Albumentations augmentation, mAP/mAR evaluation, accuracy metrics, SAM segmentation with bbox/point prompts, DiceCE loss, hardware selection, cost estimation, Trackio monitoring, and Hub persistence. Use when users mention training object detection, image classification, SAM, SAM2, segmentation, image matting, DETR, D-FINE, RT-DETR, ViT, timm, MobileNet, ResNet, bounding box models, or fine-tuning vision models on Hugging Face Jobs.
Train object detection, image classification, and SAM/SAM2 segmentation models on managed cloud GPUs. No local GPU setup required—results are automatically saved to the Hugging Face Hub.
Use this skill when users want to:
Helper scripts use PEP 723 inline dependencies. Run them with `uv run`:
uv run scripts/dataset_inspector.py --dataset username/dataset-name --split train uv run scripts/estimate_cost.py --help
Before starting any training job, verify:
**Validate dataset format BEFORE launching GPU training to prevent the #1 cause of training failures: format mismatches.**
**ALWAYS validate for** unknown/custom datasets or any dataset you haven't trained with before. **Skip for** `cppe-5` (the default in the training script).
**Option 1: Via HF Jobs (recommended — avoids local SSL/dependency issues):**
hf_jobs("uv", {
"script": "path/to/dataset_inspector.py",
"script_args": ["--dataset", "username/dataset-name", "--split", "train"]
})**Option 2: Locally:**
uv run scripts/dataset_inspector.py --dataset username/dataset-name --split train
**Option 3: Via `HfApi().run_uv_job()` (if hf_jobs MCP unavailable):**
from huggingface_hub import HfApi
api = HfApi()
api.run_uv_job(
script="scripts/dataset_inspector.py",
script_args=["--dataset", "username/dataset-name", "--split", "train"],
flavor="cpu-basic",
timeout=300,
)Hugging Face Skills are definitions for AI/ML tasks like dataset creation, model training, and evaluation.
Use Hugging Face Hub via MCP server tools. Search models, datasets, Spaces, papers. Get repo details, fetch documentation, run…
Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and…
Discover the user's local AWS context (active profile, region, account ID, caller identity) at the start of any AWS task. Use…
Set up an isolated Python environment for SageMaker / AWS work, with the right Python version and current boto3. Use this skill…
Plan and coordinate the deployment of a model to Amazon SageMaker AI. Use this skill whenever the user wants to deploy, host,…
Ensure a usable SageMaker execution role exists before deploying or training. Use this skill whenever about to create a SageMaker…
Internals of the Feast codebase — how each component works, where the key abstractions live, and the data flow through the…
Query and browse evaluation results stored in MLflow. Use when the user wants to look up runs by invocation ID, compare metrics…