Skills for Real Engineers. Straight from my .agents directory.
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
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)
1# TRL Training on Hugging Face Jobs23## Overview45Train 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.67**TRL provides multiple training methods:**8- **SFT** (Supervised Fine-Tuning) - Standard instruction tuning9- **DPO** (Direct Preference Optimization) - Alignment from preference data10- **GRPO** (Group Relative Policy Optimization) - Online RL training11- **Reward Modeling** - Train reward models for RLHF1213**For detailed TRL method documentation:**14```python15hf_doc_search("your query", product="trl")16hf_doc_fetch("https://huggingface.co/docs/trl/sft_trainer") # SFT17hf_doc_fetch("https://huggingface.co/docs/trl/dpo_trainer") # DPO18# etc.19```2021**See also:** `references/training_methods.md` for method overviews and selection guidance2223## When to Use This Skill2425Use this skill when users want to:26- Fine-tune language models on cloud GPUs without local infrastructure27- Train with TRL methods (SFT, DPO, GRPO, etc.)28- Run training jobs on Hugging Face Jobs infrastructure29- Convert trained models to GGUF for local deployment (Ollama, LM Studio, llama.cpp)30- Ensure trained models are permanently saved to the Hub31- Use modern workflows with optimized defaults3233### When to Use Unsloth3435Use **Unsloth** (`references/unsloth.md`) instead of standard TRL when:36…
Excerpt shown under the repository's Apache-2.0 license.
More skills in skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
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
