Complete AI TrainingYourJobSkills for your job

Skills / ai-ml

hugging-face-model-trainer

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.

AI & Automation

TRL Training on Hugging Face Jobs

Detailed Guide

Read [the detailed guide](references/detailed-guide.md) before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.

When to Use This Skill

Use this skill when users want to:

  • Fine-tune language models on cloud GPUs without local infrastructure
  • Train with TRL methods (SFT, DPO, GRPO, etc.)
  • Run training jobs on Hugging Face Jobs infrastructure
  • Convert trained models to GGUF for local deployment (Ollama, LM Studio, llama.cpp)
  • Ensure trained models are permanently saved to the Hub
  • Use modern workflows with optimized defaults

When to Use Unsloth

Use Unsloth (references/unsloth.md) instead of standard TRL when:

  • Limited GPU memory - Unsloth uses ~60% less VRAM
  • Speed matters - Unsloth is ~2x faster
  • Training large models (>13B) - memory efficiency is critical
  • Training Vision-Language Models (VLMs) - Unsloth has FastVisionModel support

See references/unsloth.md for complete Unsloth documentation and scripts/unsloth_sft_example.py for a production-ready training script.

Prerequisites Checklist

Before starting any training job, verify:

Account & Authentication

  • Huggi

Subscribers only

The full skill, its 20 bundled files and every download is included with every paid Complete AI plan.

Details

Sourcehuggingface/skills
LicenseApache-2.0
Risk labelcritical ("critical" means the skill may run commands or touch files — read before use)
FilesSKILL.md, references/detailed-guide.md, references/gguf_conversion.md, references/hardware_guide.md, references/hub_saving.md, references/local_training_macos.md, references/reliability_principles.md, references/trackio_guide.md, references/training_methods.md, references/training_patterns.md, references/troubleshooting.md, references/unsloth.md, scripts/convert_to_gguf.py, scripts/dataset_inspector.py, scripts/estimate_cost.py, scripts/hf_benchmarks.py, scripts/train_dpo_example.py, scripts/train_grpo_example.py, scripts/train_sft_example.py, scripts/unsloth_sft_example.py
Added2026-07-01

Related skills

advanced-evaluation

This skill should be used when the user asks to "implement LLM-as-judge", "compare model outputs", "create evaluation rubrics", "mitigate evaluation bias", or mentions direct scoring, pairwise comparison, position bias, evaluation pipelines, or automated quality assessment.

agent-creator

Create custom AI subagents with proper plugin structure, persona generation, and companion routing skills.

agent-framework-azure-ai-py

Build persistent agents on Azure AI Foundry using the Microsoft Agent Framework Python SDK.

agent-memory

A hybrid memory system that provides persistent, searchable knowledge management for AI agents.

agent-memory-mcp

A hybrid memory system that provides persistent, searchable knowledge management for AI agents (Architecture, Patterns, Decisions).

agent-orchestration-improve-agent

Systematic improvement of existing agents through performance analysis, prompt engineering, and continuous iteration.