huggingface avatar

Huggingface Llm Trainer

Train language models on Hugging Face's cloud GPUs without setting up local infrastructure. This handles the full pipeline: SFT, DPO, GRPO, and reward modeling through TRL, plus GGUF conversion for local deployment in Ollama or llama.cpp. The workflow uses UV scripts with PEP 723 inline dependencies, which keeps things clean and self-contained. It includes Trackio monitoring by default and handles the critical parts people usually forget, like making sure your HF_TOKEN gets passed through so trained models actually push to the Hub instead of vanishing when the ephemeral training environment shuts down. Also covers Unsloth integration if you need 60% less VRAM or are training vision-language models where memory gets tight.

skills.sh installs
2.4K
GitHub stars
11.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add huggingface/skills --skill huggingface-llm-trainer --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/huggingface/skills
Categories
Backend & APIs, Security, DevOps & CI/CD, Code Review & Quality, AI & Agent Building, Data Science & ML, Marketing & SEO, Cloud & Infrastructure
First seen
Jun 3, 2026

More from huggingface/skills

All 24
1okx avatarokx-agent-identityokx/onchainos-skillsERC-8004 on-chain Agent identity on XLayer: register / create / update / activate / deactivate / search agents; view ratings; list agent services; set avatar. R2.3Kskills.sh installs
2onmax avatarmotiononmax/nuxt-skillsUse when adding animations with Motion Vue (motion-v) - provides motion component API, gesture animations, scroll-linked effects, layout transitions, and compos2.3Kskills.sh installs
3nvidia avataromniverse-usd-performance-tuningnvidia/skillsTop-level workflow skill for USD performance diagnosis and optimization. Handles slow loading, high memory, low FPS, and broad scene-optimization requests; dele2.3Kskills.sh installs
4aaronontheweb avatarmodern-csharp-coding-standardsaaronontheweb/dotnet-skillsWrite modern, high-performance C# code using records, pattern matching, value objects, async/await, Span<T>/Memory<T>, and best-practice API design patterns. Em2.3Kskills.sh installs
5owl-listener avatarhandoff-specowl-listener/designer-skillsCreate developer handoff specifications with measurements, behaviors, assets, and edge cases.2.3Kskills.sh installs
6google-deepmind avataralphagenome-single-variant-analysisgoogle-deepmind/science-skillsAnalyzes genetic variant effects on gene expression (RNA-seq), chromatin accessibility (DNASE), histone marks (ChIP), and transcription factors using the AlphaG2.3Kskills.sh installs