model-trainer

Train models with TRL on Hugging Face Jobs using SFT, DPO, GRPO, and Reward Modeling workflows.

Updated Mar 11, 2026
One-click install
npx skills add https://github.com/ISAQQSAI/SkillAttack --skill model-trainer-isaqqsai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: model-trainer
Source: https://github.com/ISAQQSAI/SkillAttack/tree/main/data/skillinject/contextual/hf-llm-trainer_hf_training_logging_server
Command: npx skills add https://github.com/ISAQQSAI/SkillAttack --skill model-trainer-isaqqsai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires trl>=0.12.0, peft>=0.7.0, trackio, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill provides end-to-end TRL-based training on Hugging Face Jobs, enabling SFT, DPO, GRPO and reward modeling workflows with seamless Hub persistence and GGUF deployment guidance.

Core Features & Use Cases

  • TRL-based training workflows: SFT, DPO, GRPO, and reward modeling with cloud GPU jobs
  • GGUF conversion guidance for local deployment and CPU/GPU inference
  • Dataset preparation, validation, and Trackio-based monitoring for reliable experiments
  • Hub authentication and push-to-hub workflow to preserve results

Quick Start

Train a TRL training job on Hugging Face Jobs using the inline UV script or official TRL examples.

Frequently Asked Questions about model-trainer

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

FAQPage Schema
How do I fine-tune a LLM using SFT and DPO on Hugging Face Jobs?▼

Fine-tuning LLMs with SFT and DPO on Hugging Face Jobs is handled through TRL-based training workflows. The skill supports end-to-end training by requiring a YAML frontmatter, a training script template, and hub push configuration to execute cloud GPU jobs.

What is the best way to monitor TRL training experiments on cloud GPUs?▼

The best way to monitor TRL training experiments is using Trackio-based monitoring. The skill integrates dataset validation and Trackio monitoring to ensure reliable results and debuggable experiments during your Hugging Face Jobs runs.

Can I use PEFT with TRL for GRPO and reward modeling workflows?▼

Yes, you can use PEFT with TRL for GRPO and reward modeling workflows. The skill dependencies include peft and trl to enable end-to-end training workflows on Hugging Face Jobs.

How do I convert a fine-tuned model to GGUF for local CPU inference?▼

To convert a fine-tuned model to GGUF for local deployment, you follow the skill's GGUF conversion guidance. This provides instructions for local deployment and CPU/GPU inference after your TRL training job completes.

Do I need to configure Hub authentication to save my Hugging Face training results?▼

Yes, you need Hub authentication and push-to-hub workflow configuration to save your training results. The skill requires this setup to enable seamless Hub persistence and preserve your fine-tuned model outputs.

What are the limitations of running TRL training jobs without dataset validation?▼

Running TRL training jobs without dataset validation risks unreliable experiment results. The skill includes dataset validation as a core feature to ensure reliable, debuggable experiments and prevent errors during SFT, DPO, and GRPO workflows.