Huggingface Llm Trainer skill for Claude
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.
When Claude uses it
Use for tasks involving cloud GPU training, GGUF conversion, or when users mention training on Hugging Face Jobs without local GPU setup.
Huggingface Llm Trainer SKILL.md
A preview of the skill file from huggingface/skills (Complete terms in LICENSE.txt).
TRL Training on Hugging Face Jobs
Overview
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:
- SFT (Supervised Fine-Tuning) - Standard instruction tuning
- DPO (Direct Preference Optimization) - Alignment from preference data
- GRPO (Group Relative Policy Optimization) - Online RL training
- Reward Modeling - Train reward models for RLHF
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
When to Use This Skill
Use this skill when users want to:
How to install Huggingface Llm Trainer
Claude Code
Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):
npx degit huggingface/skills/skills/huggingface-llm-trainer#main ~/.claude/skills/huggingface-llm-trainerCodex
npx degit huggingface/skills/skills/huggingface-llm-trainer#main ~/.codex/skills/huggingface-llm-trainerClaude.ai and Claude Desktop
Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.
Frequently asked questions
+What does the Huggingface Llm Trainer skill do?
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.
+How do I install Huggingface Llm Trainer in Claude Code?
Copy the skill folder into ~/.claude/skills/huggingface-llm-trainer, for example with "npx degit huggingface/skills/skills/huggingface-llm-trainer#main ~/.claude/skills/huggingface-llm-trainer". Claude Code loads it automatically and uses it when a task matches.
+Does Huggingface Llm Trainer work with ChatGPT or Codex?
Yes. Huggingface Llm Trainer uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/huggingface-llm-trainer. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.
+Is Huggingface Llm Trainer free?
Huggingface Llm Trainer is published on GitHub by huggingface under the Complete terms in LICENSE.txt license; check the license terms before using it.