model-trainer

Automate TRL-based model training on Hugging Face Jobs with Trackio monitoring.

2|Updated May 20, 2026
One-click install
npx skills add https://github.com/Dianshu-Liao/SkilLGuard --skill model-trainer-dianshu-liao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: model-trainer
Source: https://github.com/Dianshu-Liao/SkilLGuard/tree/main/data/skills/hf-llm-trainer
Command: npx skills add https://github.com/Dianshu-Liao/SkilLGuard --skill model-trainer-dianshu-liao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires transformers, peft, torch, accelerate, huggingface_hub, sentencepiece, protobuf, gguf, numpy, trackio, and includes scripts (resource) and references (resource) components.

What problem does it solve?

It eliminates the manual, failure-prone process of setting up cloud GPU training for fine-tuning LLMs, from scripting to dataset validation and Hub publishing.

Core Features & Use Cases

  • TRL Training on Hugging Face Jobs: Submit SFT, DPO, GRPO, and reward-modeling training jobs on managed cloud GPUs without local GPU setup.
  • Reliability Guardrails: Enforce Trackio monitoring, dataset format validation guidance, and safer timeout/HF Hub push requirements to reduce wasted runs.
  • GGUF Conversion for Local Deployment: Convert fine-tuned LoRA models into GGUF with quantization options for llama.cpp, Ollama, and LM Studio.

Quick Start

Use the model-trainer skill to submit an SFT training job on Hugging Face Jobs for a dataset the user provides, then report the job ID and monitoring URL for Trackio.

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 model on Hugging Face Jobs without a local GPU?

You can fine-tune models on Hugging Face Jobs by submitting TRL-based training workflows for SFT, DPO, GRPO, and reward modeling using inline Python scripts. The process automates cloud GPU setup, includes Trackio monitoring, and persists results to Hugging Face Hub.

Does TRL support SFT, DPO, and GRPO training on managed cloud GPUs?

Yes, TRL supports SFT, DPO, GRPO, and reward modeling on managed cloud GPUs. The training jobs are submitted via the hf_jobs() MCP tool, eliminating local GPU requirements and automating the workflow setup.

Can I convert a fine-tuned LoRA model to GGUF for local inference?

Yes, you can convert fine-tuned LoRA models into GGUF format with quantization options. This allows local deployment using inference engines like llama.cpp, Ollama, and LM Studio after the Hugging Face Jobs training completes.

Do I need an HF_TOKEN to push fine-tuned models to the Hugging Face Hub?

Yes, an HF_TOKEN secret is required to ensure results are persisted via Hugging Face Hub pushes. The token enables secure authentication when saving fine-tuned models and training artifacts directly from the cloud GPU jobs.

What is the best way to monitor LLM training jobs and validate datasets?

The best way to monitor LLM training jobs is using Trackio for real-time tracking alongside built-in dataset format validation guidance. These reliability guardrails enforce safer timeout and Hub push requirements to reduce wasted cloud GPU runs.

Why does my Hugging Face Jobs training run fail before pushing to the Hub?

Training runs may fail due to invalid dataset formats, missing HF_TOKEN secrets, or timeout issues. The skill enforces dataset validation guidance, Trackio monitoring, and safer Hub push requirements to prevent these common failure points.