hf-mcp
Use Hugging Face Hub via MCP server tools. Search models, datasets, Spaces, papers. Get repo details, fetch documentation, run…
Train or fine-tune language and vision models using TRL (Transformer Reinforcement Learning) or Unsloth with Hugging Face Jobs infrastructure. Covers SFT, DPO, GRPO and reward modeling training methods, plus GGUF conversion for local deployment. Includes guidance on the TRL Jobs
Claude Code
$ npx -y skills add huggingface/skills --skill huggingface-llm-trainer --agent claude-code
Codex
$ npx skills add huggingface/skills --skill huggingface-llm-trainer -a codex -y
Cursor
$ npx skills add huggingface/skills --skill huggingface-llm-trainer -a cursor -y
Gemini CLI
$ npx skills add huggingface/skills --skill huggingface-llm-trainer -a gemini-cli -y
GitHub Copilot
$ npx skills add huggingface/skills --skill huggingface-llm-trainer -a github-copilot -y
OpenCode
$ npx skills add huggingface/skills --skill huggingface-llm-trainer -a opencode -y
Windsurf
$ npx skills add huggingface/skills --skill huggingface-llm-trainer -a windsurf -y
name: huggingface-llm-trainer description: Train or fine-tune language and vision models using TRL (Transformer Reinforcement Learning) or Unsloth with Hugging Face Jobs infrastructure. Covers SFT, DPO, GRPO and reward modeling training methods, plus GGUF conversion for local deployment. Includes guidance on the TRL Jobs package, UV scripts with PEP 723 format, dataset preparation and validation, hardware selection, cost estimation, Trackio monitoring, Hub authentication, model selection/leaderboards and model persistence. Use for tasks involving cloud GPU training, GGUF conversion, or when users mention training on Hugging Face Jobs without local GPU setup. license: Complete terms in LICENSE.txt
Train language models using TRL (Transformer Reinforcement Learning) on fully managed Hugging Face infrastructure. No local GPU setup required—models train on cloud GPUs and results are automatically saved to the Hugging Face Hub.
**TRL provides multiple training methods:**
**For detailed TRL method documentation:**
hf_doc_search("your query", product="trl")
hf_doc_fetch("https://huggingface.co/docs/trl/sft_trainer") # SFT
hf_doc_fetch("https://huggingface.co/docs/trl/dpo_trainer") # DPO
# etc.**See also:** `references/training_methods.md` for method overviews and selection guidance
Use this skill when users want to:
Use **Unsloth** (`references/unsloth.md`) instead of standard TRL when:
See `references/unsloth.md` for complete Unsloth documentation and `scripts/unsloth_sft_example.py` for a production-ready training script.
When assisting with training jobs:
1. **ALWAYS use `hf_jobs()` MCP tool** - Submit jobs using `hf_jobs("uv", {...})`, NOT bash `trl-jobs` commands. The `script` parameter accepts Python code directly. Do NOT save to local files unless the user explicitly requests it. Pass the script content as a string to `hf_jobs()`. If user asks to "train a model", "fine-tune", or similar requests, you MUST create the training script AND submit the job immediately using `hf_jobs()`.
2. **Always include Trackio** - Every training script should include Trackio for real-time monitoring. Use example scripts in `scripts/` as templates.
3. **Provide job details after submission** - After submitting, provide job ID, monitoring URL, estimated time, and note that the user can request status checks later.
4. **Use example scripts as templates** - Reference `scripts/train_sft_example.py`, `scripts/train_dpo_example.py`, etc. as starting points.
Repository scripts use PEP 723 inline dependencies. Run them with `uv run`:
uv run scripts/estimate_cost.py --help uv run scripts/dataset_inspector.py --help
Before starting any training job, verify:
references your actual token value)
**⚠️ IMPORTANT: Training jobs run asynchronously and can take hours**
**When user requests training:** 1. **Create the training script** with Trackio included (use `scripts/train_sft_example.py` as template) 2. **Submit immediately** using `hf_jobs()` MCP tool with script content inline - don't save to file unless user requests 3. **Report submission** with job ID, monitoring URL, and estimated time 4. **Wait for user** to request status checks - don't poll automatically
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…