Data & Analysis object-detectionimage-classificationimage-segmentationhugging-face-jobstransformerssam2trackio

Hugging Face Vision Trainer

Train detection, classification, and segmentation models on Hugging Face Jobs GPUs and persist the results to the Hub.

FollowSkills review · FSRS-2.0
Not recommended
43/ 100 5-point scale 2.2 / 5
Trust12 / 25 · 2.4/5

The documentation requires passing HF_TOKEN through Job secrets, validating datasets before GPU use, and preserving results on the Hub, giving partial transparency around permissions and data flow. However, it defaults to paid cloud GPU use and Hub pushes without clearly requiring final submission confirmation, private/public repository choice, rollback, or sensitive-data handling; examples also read and pass tokens directly, so points are deducted.

Reliability7 / 20 · 1.8/5

The workflow includes dataset checks, timeout guidance, configuration rules, and troubleshooting, and it explicitly recommends preflight verification. However, the actual training scripts are not present in the supplied evidence, dependency versions are not consistently pinned, the SAM examples risk inconsistent keys such as original_sizes versus original_image_size, and no statically verifiable key-path tests are included; the score therefore remains below the static ceiling.

Adaptability8 / 15 · 2.7/5

The skill covers object detection, classification, and SAM/SAM2, with model lists, dataset schemas, hardware guidance, and semantic trigger terms. Non-fit ranges, abnormal-input behavior, Chinese-language support, and mainland-China network reachability are not described, while core operation depends on Hugging Face cloud services, so points are deducted.

Convention7 / 15 · 2.3/5

The structure, related-skill guidance, prerequisites, quick starts, references, and troubleshooting are useful, and the supplied license metadata is Apache-2.0. Nevertheless, there is no skill version, changelog, explicit maintenance owner or update path, and compatibility across scripts and referenced library versions is insufficiently specified, so points are deducted.

Effectiveness6 / 15 · 2.0/5

The material theoretically covers dataset inspection, training, evaluation, monitoring, Hub persistence, and inference, with parameter examples that are close to directly usable. But the scripts themselves are absent from the evidence, there are no verifiable execution results, and configuration/model/hardware assumptions still require manual review; under static calibration the score is capped at 7 and reduced further for these gaps.

Verifiability3 / 10 · 1.5/5

The documentation supplies substantial code and configuration details that can be inspected, but it contains no committed test suite, CI coverage, real execution logs, or independent reproduction evidence. Key claims therefore remain primarily documentation assertions, warranting only a low score.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 86cdeee824b7
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
Before you use it
  • Submitting a training Job may incur real GPU charges and write models to the Hub; obtain explicit confirmation of budget, repository visibility, and final submission before execution.
  • Do not place real tokens in scripts, logs, or ordinary environment variables; verify secret isolation, token scope, and revocation/rotation procedures.
  • The supplied evidence does not include the scripts directory or tests, and the SAM reference contains a possible field-name inconsistency; validate dependencies, arguments, and batching in an isolated environment first.
  • The core workflow depends on Hugging Face Hub, Jobs, and remote model/data downloads; assess mainland-China reachability and prepare an accessible mirror or local fallback.
Review evidence [1][2][3][4][5][6]
See the full review method →

What does this skill do, and when should you use it?

This skill guides vision-model training with Hugging Face Transformers for object detection, image classification, and SAM/SAM2 segmentation. It combines dataset validation, production-oriented training templates, hardware and cost guidance, evaluation metrics, Trackio monitoring, and Hub persistence. Jobs can be submitted to managed Hugging Face cloud GPUs, while the helper scripts can also be run locally. Adoption requires a paid Hugging Face plan, a write-capable token, and a compatible Hub dataset.

Inspects Hub datasets for image, label, object, mask, and prompt fields; runs dataset_inspector.py to validate formats; prepares object-detection, image-classification, or SAM/SAM2 training jobs; submits jobs through the hf_jobs MCP tool or HfApi().run_uv_job(); configures hardware, timeouts, secrets, and cost estimates; evaluates mAP, mAR, accuracy, and related metrics; pushes trained models to the Hugging Face Hub; and reports job IDs, monitoring links, and Trackio dashboard URLs.

  1. A developer needs to fine-tune D-FINE, RT-DETR v2, DETR, or YOLOS on a custom object-detection dataset without configuring a local GPU.
  2. An ML practitioner needs to train a MobileNetV3, MobileViT, ResNet, ViT/DINOv3, or other Transformers image classifier from a dataset with image and label fields.
  3. A computer-vision team needs to fine-tune SAM or SAM2 for segmentation or image matting using binary masks and bounding-box or point prompts.
  4. A practitioner wants to validate dataset structure, choose cloud hardware, estimate training cost, and preserve the resulting model on the Hub before launching a GPU job.

What are this skill's strengths and limitations?

Pros
  • Covers three substantial vision-training areas: detection, classification, and SAM/SAM2 segmentation.
  • Includes a dataset inspector and ready-to-use training templates addressing common box formats, label mappings, and required fields.
  • Provides concrete guidance for hardware, timeouts, cost estimation, authentication, Hub persistence, monitoring, and failure recovery.
  • Supports managed cloud GPU training and explicitly protects results by pushing them to the Hub.
Limitations
  • Requires a Hugging Face Pro, Team, or Enterprise plan and a token with write permissions.
  • Cloud GPU usage is billed hourly, with cost and duration dependent on the dataset, model, hardware, and configuration.
  • Depends on Hugging Face Jobs, Hub datasets, and the referenced Python training environment; it is not documented as a fully offline workflow.
  • The supplied material does not provide a standalone test suite or evidence of broad platform testing.

How do you install this skill?

Get the repository from https://github.com/huggingface/skills and copy or symlink skills/huggingface-vision-trainer into a standard Codex .agents/skills directory such as $REPO_ROOT/.agents/skills. The README also documents the Hugging Face CLI method: hf skills add huggingface-vision-trainer.

How do you use this skill?

After installation, prompt your coding agent with a request such as: “Use the Hugging Face vision trainer to fine-tune a D-FINE detector on my Hub dataset with Hugging Face Jobs and push the result to the Hub.” The documented workflow verifies the account and token, runs uv run scripts/dataset_inspector.py --dataset username/dataset-name --split train, chooses dataset size and hardware, prepares the relevant training script, submits the job, and waits for the user to request status checks.

How does this skill compare with similar options?

This skill focuses on vision-model training. The README identifies hugging-face-jobs as the companion skill for general Jobs infrastructure such as tokens, hardware, secrets, timeouts, and persistence. It identifies hugging-face-model-trainer as the skill for TRL-based language-model training, rather than an alternative for these vision workflows.

FAQ

Do I need a local GPU?
No. The primary workflow uses managed Hugging Face Jobs cloud GPUs, although the helper scripts also document local execution.
Why validate the dataset before training?
The skill identifies format mismatches as a leading cause of training failures and provides `dataset_inspector.py` to catch them before GPU time is spent.
How do I prevent results from disappearing when the cloud job ends?
Enable `push_to_hub`, set `hub_model_id`, and place a write-capable HF token in the job secrets.
Does the skill automatically monitor submitted jobs?
No. It instructs the agent to report the job ID, logs or monitoring links, and wait for the user to request status checks.

More skills from this repository

All from huggingface/skills

Data & Analysis

Hugging Face LLM Trainer

Train, fine-tune, and preserve models on Hugging Face cloud GPUs.

Data & Analysis

Hugging Face Local Evaluator

Run controlled inspect-ai or lighteval evaluations for Hugging Face Hub models on local hardware.

Data & Analysis

Trackio Experiment Tracking

Log, monitor, and query machine-learning experiments with dashboards, diagnostic alerts, and automation-ready output.

Data & Analysis

Sentence Transformers Training Assistant

Train retrieval, similarity, reranking, and sparse-search models with Sentence Transformers.

Dev & Engineering

Hugging Face MCP Assistant

Connect agents to Hugging Face Hub for searchable models, datasets, documentation, apps, and compute jobs.

Dev & Engineering

Hugging Face ZeroGPU Builder

Build dependable Gradio AI demos and GPU workloads on Hugging Face ZeroGPU.

Dev & Engineering

LoRA Space Demo Builder

Build and publish a tailored Gradio Space for a Hugging Face LoRA.

Dev & Engineering

Hugging Face Spaces Builder

Build, deploy, debug, and maintain machine-learning apps on Hugging Face Spaces.

Data & Analysis

Hugging Face Dataset Explorer

Explore, query, and extract Hugging Face datasets through the Dataset Viewer API.

Dev & Engineering

Hugging Face Paper Research Assistant

Read AI papers and retrieve structured metadata from Hugging Face paper pages.

Data & Analysis

Hugging Face Model Memory Estimator

Estimate inference memory without downloading model weights.

Dev & Engineering

Hugging Face Local Model Runner

Choose compatible GGUF quantizations from Hugging Face and run them locally with llama.cpp.

Dev & Engineering

Hugging Face Hub CLI Skill

Give agents command-line control over Hugging Face Hub models, datasets, Spaces, jobs, and infrastructure.

Data & Analysis

Hugging Face Model Finder

Recommends AI models by task, benchmark performance, and available device memory.

Dev & Engineering

Hugging Face API Tool Builder

Turn Hugging Face API calls into reusable, composable command-line tools.

Writing & Content

Hugging Face Paper Publisher

Publish, connect, and manage research papers on the Hugging Face Hub.

Data & Analysis

Transformers.js Inference Skill

Run Hugging Face models directly inside JavaScript applications.

Automation & Ops

AWS Context Discovery

Resolve the active AWS environment before any account operation.

Automation & Ops

SageMaker Deployment Planner

Choose a practical Amazon SageMaker deployment path for your model, traffic pattern, and latency needs.

Automation & Ops

SageMaker Python Environment Setup

Build an isolated, version-aligned Python environment for SageMaker and AWS automation.

Related skills