Data & AnalyticsOfficial · huggingface

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:

Read the full SKILL.md on GitHub →

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-trainer

Codex

npx degit huggingface/skills/skills/huggingface-llm-trainer#main ~/.codex/skills/huggingface-llm-trainer

Claude.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.

Related data & analytics skills

  1. Analytics

    When the user wants to set up or audit analytics, or asks whether a metric or number is calculated right, what to track, or how to name…

    coreyhaines31/marketingskills★ 61k
  2. Statistical Analysis

    Guided statistical analysis for research data - test selection, assumption checking, effect sizes, power analysis, Bayesian alternatives,…

    K-Dense-AI/scientific-agent-skills★ 58k
  3. Dashboard Chat Best Practices

    Apply dashboard-grade chat UX patterns in the Eve chat template.

    thedotmack/claude-mem★ 118k
  4. Huggingface Local Models

    Official

    Use to select models to run locally with llama.cpp and GGUF on CPU, Mac Metal, CUDA, or ROCm.

    huggingface/skills★ 11k
  5. Huggingface Lora Space Builder

    Official

    Build and publish a Gradio demo on Hugging Face Spaces for a user-provided LoRA.

    huggingface/skills★ 11k
  6. Huggingface Spaces

    Official

    Build, deploy, and maintain applications on Hugging Face Spaces — Gradio / Docker / Static SDKs, ZeroGPU and dedicated hardware, model…

    huggingface/skills★ 11k
  7. Huggingface Tool Builder

    Official

    Use this skill when the user wants to build tool/scripts or achieve a task where using data from the Hugging Face API would help.

    huggingface/skills★ 11k
  8. Huggingface Trackio

    Official

    Track and visualize ML training experiments with Trackio. Use when logging metrics during training (Python API), firing alerts for training…

    huggingface/skills★ 11k
  9. Huggingface Vision Trainer

    Official

    Trains and fine-tunes vision models for object detection (D-FINE, RT-DETR v2, DETR, YOLOS), image classification (timm models —…

    huggingface/skills★ 11k

See all data & analytics skills →

More skills from huggingface

  1. Huggingface Paper Publisher

    Official

    Publish and manage research papers on Hugging Face Hub. Supports creating paper pages, linking papers to models/datasets, claiming…

    huggingface/skills★ 11k

All skills by huggingface →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.