model-trainer

Train TRL-based language models on Hugging Face Jobs with cloud GPUs and GGUF conversion.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Nymbo/Skills --skill model-trainer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: model-trainer
Source: https://github.com/Nymbo/Skills/tree/main/model-trainer
Command: npx skills add https://github.com/Nymbo/Skills --skill model-trainer

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill automates cloud-based TRL training workflows on Hugging Face Jobs, enabling SFT, DPO, GRPO and reward modeling training without local GPU infrastructure, plus GGUF conversion for local deployment.

Core Features & Use Cases

  • Cloud TRL training: Run TRL methods (SFT, DPO, GRPO, Reward Modeling) on Hugging Face Jobs infrastructure.
  • GGUF conversion: Convert trained models to GGUF format for local inference with Ollama, llama.cpp, etc.
  • End-to-end workflow: Include dataset preparation/validation, hardware selection, hub authentication, Trackio monitoring, and cost estimation.
  • Guided execution: Use hf_jobs() MCP tool to submit training scripts; Trackio for real-time monitoring; Hub push to persist results.

Quick Start

Submit a complete training job via hf_jobs() using the template script (e.g., scripts/train_sft_example.py) for your model, dataset, and preferred hardware. The job will run on cloud GPUs, monitor via Trackio, and push results to the Hub.

Frequently Asked Questions about model-trainer

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

FAQPage Schema
How do I train large language models on cloud GPUs without local infrastructure?

Train language models using TRL on Hugging Face Jobs, which handles cloud GPU provisioning, monitoring via Trackio, and automatic model persistence to the Hub. Submit training scripts for SFT, DPO, GRPO, or reward-model workflows directly through hf_jobs().

Can I convert trained models to GGUF format for local deployment?

Yes, GGUF conversion is included in the end-to-end workflow, enabling local inference with Ollama or llama.cpp after cloud training completes. The skill handles conversion automatically as part of model persistence.

What TRL training methods are supported on Hugging Face Jobs?

The skill supports SFT (Supervised Fine-Tuning), DPO (Direct Preference Optimization), GRPO (Group Relative Policy Optimization), and reward-model training, all executable on cloud GPUs with hardware selection and cost estimation included.

Do I need to validate datasets before submitting training jobs?

Dataset validation is built into the workflow to ensure format compatibility before cloud execution. The skill verifies dataset structure as part of the end-to-end pipeline, reducing failed job submissions.

How do I monitor training progress and track costs on Hugging Face Jobs?

Trackio integration provides real-time monitoring of training metrics and resource usage, while built-in cost estimation helps forecast GPU expenses. Hub authentication ensures secure result persistence and monitoring continuity.

Can I use TRL training workflows without writing custom training scripts?

Template scripts (e.g., scripts/train_sft_example.py) are provided for common workflows; customize model, dataset, and hardware selection without writing scripts from scratch. PEP 723 compliant dependencies headers simplify execution.