Tooluck logoTooluck
SKILL.md

huggingface-llm-trainer

Agent skill fromhuggingface/skills

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 to install huggingface-llm-trainer

install huggingface-llm-trainer
# install the skills pack with the skills CLI
npx skills add huggingface/skills

# or add only this skill to Claude Code: copy the folder

skills/huggingface-llm-trainer/

# into

~/.claude/skills/huggingface-llm-trainer/ (all projects)

.claude/skills/huggingface-llm-trainer/ (one project)

skills/huggingface-llm-trainer/SKILL.md

Apache-2.0Full file
1# TRL Training on Hugging Face Jobs
2
3## Overview
4
5Train 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.
6
7**TRL provides multiple training methods:**
8- **SFT** (Supervised Fine-Tuning) - Standard instruction tuning
9- **DPO** (Direct Preference Optimization) - Alignment from preference data
10- **GRPO** (Group Relative Policy Optimization) - Online RL training
11- **Reward Modeling** - Train reward models for RLHF
12
13**For detailed TRL method documentation:**
14```python
15hf_doc_search("your query", product="trl")
16hf_doc_fetch("https://huggingface.co/docs/trl/sft_trainer") # SFT
17hf_doc_fetch("https://huggingface.co/docs/trl/dpo_trainer") # DPO
18# etc.
19```
20
21**See also:** `references/training_methods.md` for method overviews and selection guidance
22
23## When to Use This Skill
24
25Use this skill when users want to:
26- Fine-tune language models on cloud GPUs without local infrastructure
27- Train with TRL methods (SFT, DPO, GRPO, etc.)
28- Run training jobs on Hugging Face Jobs infrastructure
29- Convert trained models to GGUF for local deployment (Ollama, LM Studio, llama.cpp)
30- Ensure trained models are permanently saved to the Hub
31- Use modern workflows with optimized defaults
32
33### When to Use Unsloth
34
35Use **Unsloth** (`references/unsloth.md`) instead of standard TRL when:
36…

Excerpt shown under the repository's Apache-2.0 license.

More skills in skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates