hugging-face-model-trainer

Train or finetune language models with TRL on Hugging Face Jobs.

55|7|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/wp931120/tiny_agent --skill hugging-face-model-trainer-wp931120
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hugging-face-model-trainer
Source: https://github.com/wp931120/tiny_agent/tree/main/workspace/skills/hugging-face-model-trainer
Command: npx skills add https://github.com/wp931120/tiny_agent --skill hugging-face-model-trainer-wp931120

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires trl>=0.12.0, peft>=0.7.0, transformers>=4.36.0, accelerate>=0.24.0, trackio, torch>=2.0.0, huggingface_hub>=0.20.0, sentencepiece>=0.1.99, protobuf>=3.20.0, numpy, gguf, unsloth, datasets, trl==0.22.2, huggingface_hub[hf_transfer], tensorboard, transformers==4.57.3, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill helps users train or fine-tune language models using Transformer Reinforcement Learning (TRL) on Hugging Face Jobs infrastructure, providing end-to-end guidance and templates.

Core Features & Use Cases

  • SFT, DPO, GRPO, and reward-modeling training workflows on cloud GPUs
  • GGUF conversion guidance for local deployment and model export
  • Hub authentication, Trackio monitoring, dataset validation, and cost estimation
  • Production-ready scripts and references for reproducible results

Quick Start

Submit a training job using hf_jobs or uv run with one of the production templates to start SFT, DPO, or GRPO training on Hugging Face Jobs.

Frequently Asked Questions about hugging-face-model-trainer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fine-tune an LLM with TRL on Hugging Face Jobs?

Fine-tune an LLM with TRL on Hugging Face Jobs by submitting production-ready script templates for SFT, DPO, or GRPO via hf_jobs. The skill provides end-to-end guidance for running training workflows on cloud GPUs with Hub authentication.

Can I convert my trained Hugging Face model to GGUF for local deployment?

Yes, you can convert trained models to GGUF for local deployment. The skill provides GGUF conversion guidance and templates to export your fine-tuned language models from Hugging Face Jobs infrastructure.

Do I need to set up Hub authentication before starting TRL training workflows?

Yes, Hub authentication is required before starting TRL training workflows. The skill includes Hub authentication setup alongside dataset validation, hardware guidance, and cost estimation for reproducible results on cloud GPUs.

What is the best way to monitor TRL training runs on Hugging Face Jobs?

Monitor TRL training runs on Hugging Face Jobs using Trackio. The skill integrates Trackio monitoring with production-ready scripts to track SFT, DPO, GRPO, and reward-modeling workflows.

Does this skill support GRPO and reward modeling in addition to SFT and DPO?

Yes, this skill supports GRPO and reward modeling alongside SFT and DPO. It provides production-ready script templates covering these training workflows on Hugging Face Jobs infrastructure with cloud GPUs.

How do I estimate cloud GPU costs for TRL training jobs?

Estimate cloud GPU costs for TRL training jobs using the skill's built-in cost estimation guidance. It provides hardware guidance and production-ready scripts to ensure reproducible results on Hugging Face Jobs.