huggingface-vision-trainer

huggingface-vision-trainer is a skill for Claude Code from waybarrios/opencode-power-pack. It costs 48 tokens per session (2,855 once invoked), scanned A, original, MIT.

A cloud training tool for adapting computer-vision models on Hugging Face Jobs, a managed service that runs machine-learning work on rented GPUs.

In plain words
What is it for?
Use it to fine-tune object-detection, image-classification, or SAM/SAM2 image-segmentation models on custom datasets, then save results to the Hugging Face Hub.
Why use it?
It removes the need to set up and maintain a local GPU environment for supported vision-model training.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the opencode-power-pack plugin — 54 skills shipped together

Good fit Use it to fine-tune object-detection, image-classification, or SAM/SAM2 image-segmentation models on custom datasets, then save results to the Hugging Face Hub.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/waybarrios/opencode-power-pack/huggingface-vision-trainer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add waybarrios/opencode-power-pack --skill huggingface-vision-trainer
Clone the repo
git clone --depth 1 https://github.com/waybarrios/opencode-power-pack

Made for: Claude Code.

Or install opencode-power-pack, the plugin that ships this one along with the rest of its 54 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for huggingface-vision-trainer

README.md
[![agentmods](https://agentmods.dev/badge/skills/waybarrios/opencode-power-pack/huggingface-vision-trainer.svg)](https://agentmods.dev/skills/waybarrios/opencode-power-pack/huggingface-vision-trainer)
Your own site
<a href="https://agentmods.dev/skills/waybarrios/opencode-power-pack/huggingface-vision-trainer"><img src="https://agentmods.dev/badge/skills/waybarrios/opencode-power-pack/huggingface-vision-trainer.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,855 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.02855
Opus 5 $0.00024 $0.01427
Sonnet 5 $0.00010 $0.00571
Haiku 4.5 $0.00005 $0.00285

Measured 8d ago against content hash 00d83a33ff1d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

huggingface-vision-trainer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/dataset_inspector.py, scripts/estimate_cost.py, scripts/image_classification_training.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/huggingface-vision-trainer/SKILL.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Vision Model Training 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. For text/language model fine-tuning (SFT/DPO/GRPO via TRL), use this pack's huggingface-llm-trainer skill instead.

When to Use

Fine-tuning object detection models (D-FINE, RT-DETR v2, DETR, YOLOS), image classification models (any timm/ model or Transformers classifier), or SAM/SAM2 segmentation models (bbox or point prompts) on custom datasets — locally or on Hugging Face Jobs.

Local Script Execution

Helper scripts use PEP 723 inline dependencies:

uv run scripts/dataset_inspector.py --dataset username/dataset-name --split train
uv run scripts/estimate_cost.py --help

Prerequisites Checklist

  • Hugging Face account with Pro/Team/Enterprise plan (Jobs require a paid plan). Authenticated login (hf auth whoami), token with write permissions passed in job secrets.
  • Object detection: dataset on the Hub with an objects column (bbox, category, optional area). Bboxes in xywh (COCO) or xyxy (Pascal VOC) — auto-detected/converted. Categories can be integers or strings (auto-remapped). image_id optional, auto-generated.
  • Image classification: an image column (PIL images) and a label column (integer or string class IDs, ClassLabel or plain — auto-remapped). Common alt names (labels, class, fine_label) auto-detected.
  • SAM/SAM2 segmentation: an image column, a mask column (binary ground-truth mask), and a prompt — either a prompt column with JSON ({"bbox": [...]} or {"point": [...]}), or dedicated bbox/point columns (xyxy, absolute pixels). Example dataset: merve/MicroMat-mini.
  • Always validate unknown datasets first (see Dataset Validation below).
  • Timeout must exceed expected training time — default 30min is too short, use 2-4h minimum for vision training.
  • Hub push enabled: push_to_hub=True, hub_model_id="username/model-name", token in secrets.

Read the full file on GitHub · 120 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 120 lines · 48 tokens per session scan A 00d83a33ff1d

Subscribe to this mod's changes

huggingface-vision-trainer is a skill published in the GitHub repository waybarrios/opencode-power-pack (495 stars, last pushed today), licensed MIT. It adds 48 tokens to every session and 2,855 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

shipkit-prompt-audit

Audit LLM prompt pipeline architecture — decomposition, parallelization, chain integrity, schema validation, fallback paths. Finds structural issues no linter catches.

stefan-stepzero/shipkit · 36 tokens

review-loop

Run the adversarial verification loop — implement, then hand the change to a fresh checker that did not write it, fix what it finds, and re-dispatch until APPROVE. Use before claiming any behavioural change is done, and on requests like "review loop", "adversarial review", "independent review", "get this verified"…

sangrokjung/claude-forge · 100 tokens

memstack-seo-ai-search-visibility

Use this skill when the user says 'AI search', 'AI visibility', 'ChatGPT ranking', 'Perplexity optimization', 'GEO', 'generative engine optimization', or needs to optimize content for AI-powered search engines and LLM citations. Do NOT use for traditional SEO audits or Google Ads.

cwinvestments/memstack · 71 tokens

ln-11-plan-reviewer

Reviews an implementation plan against repository evidence before execution; identifies missing decisions and risks. Not for completed-code review.

levnikolaevich/claude-code-skills · 29 tokens

ln-25-persistence-auditor

Audits queries, transactions, data-path costs, and persistence resource lifetimes. Not for general performance tuning.

levnikolaevich/claude-code-skills · 31 tokens

ln-71-system-design-baseline-builder

Creates architecture-driving requirements and constraints before design. Not for target design, plan review, or implementation audits.

levnikolaevich/claude-code-skills · 30 tokens