huggingface-llm-trainer

Automate TRL and Unsloth training workflows on Hugging Face Jobs.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires trl>=0.12.0, peft>=0.7.0, transformers>=4.36.0, accelerate>=0.24.0, trackio, datasets, unsloth, huggingface_hub[hf_transfer], tensorboard, trl==0.22.2, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Train or fine-tune language and vision models using TRL or Unsloth on Hugging Face Jobs, with guidance on dataset prep, hardware selection, Trackio monitoring, hub authentication, and GGUF conversion for local deployment.

Core Features & Use Cases

  • Supports TRL methods (SFT, DPO, GRPO) and reward modeling, plus Unsloth options for memory-efficient training.
  • Includes turnkey training templates and references for common patterns, cost estimation, and hub-based workflows with Trackio monitoring and hub authentication.
  • Use for cloud-based training with automated hub pushes and local GGUF export for deployment.

Quick Start

Paste a production-ready training script inline or use the provided templates to start a TRL/Unsloth job and push the final model to the Hub.

Frequently Asked Questions about huggingface-llm-trainer

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

FAQPage Schema
How do I automate TRL training workflows on Hugging Face Jobs?

Automate TRL training workflows on Hugging Face Jobs by using inline templates that manage setup, monitoring, and deployment. The process covers SFT, DPO, and GRPO methods while integrating Trackio for monitoring and automating hub pushes.

Can I use Unsloth for memory-efficient fine-tuning with Hugging Face?

Unsloth is supported for memory-efficient fine-tuning alongside standard TRL methods. This enables training large language models with reduced VRAM overhead while maintaining hub authentication and Trackio monitoring integration.

How do I export a fine-tuned model to GGUF format for local deployment?

Export fine-tuned models to GGUF format for local deployment using the built-in conversion workflow. This step follows the TRL or Unsloth training phase and prepares the model for offline inference environments.

Does this workflow support both language and vision model training?

The workflow supports training for both language and vision models. It applies TRL methods including SFT, DPO, and GRPO, as well as reward modeling, across various model architectures.

What's the best way to monitor Hugging Face training jobs and estimate costs?

Monitor Hugging Face training jobs and estimate costs using integrated Trackio monitoring and provided cost estimation guidelines. The templates include hardware selection criteria to balance performance requirements against cloud training expenses.

Do I need specific dependencies to run TRL and Unsloth training jobs?

Dependencies including trl, peft, transformers, accelerate, and unsloth are required to run the training jobs. The environment also uses trackio for monitoring, datasets for data handling, and huggingface_hub for authentication and model persistence.