$npx skillfedfor your agent

huggingface-llm-trainer

Train language models on managed Hugging Face infrastructure using TRL's supervised fine-tuning, preference optimization, and reinforcement learning methods. The skill handles cloud GPU job submission, dataset validation, hardware selection, and automatic model persistence to the Hub, with optional GGUF conversion for local deployment via Ollama or llama.cpp.

huggingface-llm-trainer lets you fine-tune language models on cloud GPUs using TRL methods like SFT and DPO without local infrastructure.

AI-generated summary based on this skill's SKILL.md

10,878 720 Apache-2.0updated by huggingface

Decision gist · record as of 2026-07-27

huggingface-llm-trainer lets you fine-tune language models on cloud GPUs using TRL methods like SFT and DPO without local infrastructure. Train language models on managed Hugging Face infrastructure using TRL's supervised fine-tuning, preference optimization, and reinforcement learning methods. The skill handles cloud GPU job submission, dataset validation, hardware selection, and automatic model persistence to the Hub, with optional GGUF conversion for local deployment via Ollama or llama.cpp.

manual: git clone https://github.com/huggingface/skills → cp -r skills/skills/huggingface-llm-trainer ~/.claude/skills/huggingface-llm-trainer
skills/huggingface-llm-trainer/SKILL.md · version 4a2e1b04

Use it when

  • Yes.
  • huggingface-llm-trainer supports three core TRL training methods: SFT (supervised fine-tuning) for instruction alignment.

Verify before relying

Read SKILL.md below before installing (19 files). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

huggingface/skills/huggingface-llm-trainer · repository language: Python

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I fine-tune a language model on Hugging Face cloud?

huggingface-llm-trainer enables fine-tuning on Hugging Face's managed infrastructure using TRL methods. You define your dataset, select cloud GPU hardware, and submit a training job through Hugging Face Jobs. The skill handles supervised fine-tuning (SFT), preference optimization (DPO, GRPO), and reinforcement learning workflows, then automatically saves your trained model to the Hub.

Can I train LLM with TRL without a local GPU?

Yes. huggingface-llm-trainer is designed for cloud-based training on Hugging Face infrastructure, eliminating the need for local GPU hardware. You submit TRL training jobs to Hugging Face's managed GPUs, monitor progress with Trackio, and retrieve results without maintaining expensive local compute resources.

What is SFT DPO GRPO training on Hugging Face Jobs?

huggingface-llm-trainer supports three core TRL training methods: SFT (supervised fine-tuning) for instruction alignment, DPO (direct preference optimization) for preference learning without reward models, and GRPO (group relative policy optimization) for reinforcement learning. Each runs as a cloud job on Hugging Face infrastructure with automatic result persistence to the Hub.

How do I convert my trained model to GGUF for Ollama?

huggingface-llm-trainer includes GGUF conversion functionality to prepare trained models for local deployment. After training completes and your model is saved to the Hub, you can convert it to GGUF format for use with Ollama or llama.cpp, enabling efficient local inference without cloud dependencies.

How can I validate datasets and estimate training costs?

huggingface-llm-trainer provides dataset validation and cost estimation tools before submitting GPU jobs. These features help you verify data quality, check format compatibility, and preview hardware pricing so you can optimize your training budget and avoid expensive failed runs.

Can huggingface-llm-trainer train vision models with reduced VRAM?

Yes. huggingface-llm-trainer integrates Unsloth for efficient vision model training, significantly reducing VRAM requirements. This allows you to train vision language models (VLMs) on smaller or more cost-effective cloud GPUs while maintaining training speed and model quality.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

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

(truncated - see the full file via the links below)

File tree — 15 files
skills/huggingface-llm-trainer/SKILL.md
skills/huggingface-llm-trainer/references/gguf_conversion.md
skills/huggingface-llm-trainer/references/hardware_guide.md
skills/huggingface-llm-trainer/references/hub_saving.md
skills/huggingface-llm-trainer/references/local_training_macos.md
skills/huggingface-llm-trainer/references/reliability_principles.md
skills/huggingface-llm-trainer/references/trackio_guide.md
skills/huggingface-llm-trainer/references/training_methods.md
skills/huggingface-llm-trainer/references/training_patterns.md
skills/huggingface-llm-trainer/references/troubleshooting.md
skills/huggingface-llm-trainer/references/unsloth.md
skills/huggingface-llm-trainer/scripts/convert_to_gguf.py
skills/huggingface-llm-trainer/scripts/dataset_inspector.py
skills/huggingface-llm-trainer/scripts/estimate_cost.py
skills/huggingface-llm-trainer/scripts/hf_benchmarks.py

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Fine-tune or train language models on cloud GPUs using TRL methods”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

hugging-face-model-trainer
by synthetic-sciences · synthetic-sciences/openscience

Fine-tune language models on managed Hugging Face infrastructure without local GPU setup using TRL's supervised fine-tuning, preference optimization, and reinforcement learning methods. The skill handles dataset preparation, hardware selection, real-time monitoring via Trackio, and automatic model persistence to the Hub, with built-in support for GGUF conversion to deploy trained models locally.

Apache-2.0updated Jul 2026
★ 2,896repo stars
unsloth-buddy
by TYH-labs · TYH-labs/unsloth-buddy

Unsloth-buddy guides you through optimized language model training using the Unsloth library, delivering 2x speedup and up to 80% VRAM reduction compared to standard approaches. It covers SFT, DPO, GRPO, vision, TTS, and embedding fine-tuning across Apple Silicon, NVIDIA, and Windows environments. The skill orchestrates a complete 7-phase lifecycle from project setup through deployment, managing templates, dashboards, and hardware detection automatically.

MITupdated Jun 2026
★ 269repo stars
fine-tuning-with-trl
by NousResearch · NousResearch/hermes-agent

This skill teaches post-training techniques for aligning language models to human preferences. It covers supervised fine-tuning, direct preference optimization (DPO), and online reinforcement learning methods like RLOO and GRPO, with complete workflows and practical examples.

MITupdated Jul 2026
★ 221,503repo stars
huggingface-local-models
by huggingface · huggingface/skills

Discover GGUF-compatible models on Hugging Face Hub and run them locally using llama.cpp across CPU, Mac Metal, CUDA, and ROCm hardware. The skill guides you through searching the Hub, selecting the right quantization, and launching models with llama-cli or llama-server, with fallback paths for custom file naming and conversion from Transformers weights when needed.

Apache-2.0updated Jul 2026
★ 10,878repo stars
fine-tuning-with-trl
by moltis-org · moltis-org/moltis

This skill teaches you to apply reinforcement learning techniques for aligning language models with human preferences. It covers supervised fine-tuning for instruction following, direct preference optimization for preference alignment, PPO and GRPO for reward-based training, and reward model development—all integrated with HuggingFace Transformers.

MITupdated Jul 2026
★ 2,795repo stars
fine-tuning-with-trl
by Orchestra-Research · Orchestra-Research/AI-Research-SKILLs

Fine-tuning with TRL provides post-training methods to align language models with human preferences through multiple approaches. Train models on instruction data with SFT, optimize for preference alignment via DPO without a separate reward model, or run full RLHF pipelines combining supervised fine-tuning, reward modeling, and PPO optimization. GRPO offers memory-efficient online reinforcement learning for resource-constrained setups.

MITupdated Jun 2026
★ 11,165repo stars

More skills llm-fine-tuning (MIT) · Unsloth Training Skill (unlicensed) · Unsloth Training (unlicensed)

Tags
cloud-gpu-trainingmodel-fine-tuningreinforcement-learning-traininginference-optimizationdistributed-trainingparameter-efficient-learningpreference-alignmentcost-estimationmodel-quantizationtraining-monitoring