model-trainer

Fine-tune language models on Hugging Face Jobs with SFT, DPO, GRPO, and reward modeling.

1|Updated Nov 7, 2025
One-click install
npx skills add https://github.com/POWERFULMOVES/PMOVES-BoTZ --skill model-trainer-powerfulmoves
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: model-trainer
Source: https://github.com/POWERFULMOVES/PMOVES-BoTZ/tree/main/.claude/skills/model-trainer
Command: npx skills add https://github.com/POWERFULMOVES/PMOVES-BoTZ --skill model-trainer-powerfulmoves

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill removes the need for local GPU setup, allowing users to train or fine-tune language models directly on managed Hugging Face infrastructure, simplifying cloud-based model development.

Core Features & Use Cases

  • Cloud-based Training: Leverages Hugging Face Jobs for SFT, DPO, GRPO, and reward modeling.
  • GGUF Conversion: Converts trained models to GGUF format for local deployment (Ollama, LM Studio).
  • Automated Monitoring: Integrates with Trackio for real-time training progress visualization.
  • Use Case: A user wants to fine-tune a Qwen model on a custom dataset using DPO. They can use this Skill to submit a training job to Hugging Face Jobs, monitor its progress via Trackio, and automatically convert the resulting model to GGUF for use with Ollama.

Quick Start

Use the model-trainer skill to fine-tune the Qwen2.5-0.5B model using SFT on the trl-lib/Capybara dataset, pushing the results to the Hugging Face Hub.

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 an LLM on Hugging Face Jobs without local GPUs?

You can fine-tune an LLM on Hugging Face Jobs without local GPUs by submitting SFT, DPO, or GRPO training scripts to managed infrastructure. This requires Hugging Face Hub authentication and a paid plan to execute the jobs.

Can I convert a fine-tuned Hugging Face model to GGUF for local deployment?

Yes, you can convert a fine-tuned Hugging Face model to GGUF format for local deployment. The process supports exporting trained models directly to GGUF, enabling usage with local inference engines like Ollama or LM Studio.

How do I monitor LLM training progress on Hugging Face Jobs in real-time?

You can monitor LLM training progress on Hugging Face Jobs in real-time by integrating Trackio. It provides visualization of training metrics and progress directly from the managed cloud infrastructure during the fine-tuning process.

Does DPO and GRPO training require local GPU setup?

No, DPO and GRPO training do not require local GPU setup. You can execute direct preference optimization and group relative policy optimization directly on managed Hugging Face infrastructure by submitting jobs remotely.

What dependencies are needed for supervised fine-tuning with trl and peft?

Supervised fine-tuning with trl and peft requires dependencies including transformers, accelerate, and sentencepiece. These libraries facilitate model loading, distributed training, and tokenization when running SFT jobs on cloud infrastructure.

Why do I need a paid Hugging Face plan for model training jobs?

You need a paid Hugging Face plan for model training jobs because the infrastructure requires dedicated compute resources. Paid plans unlock the Hugging Face Jobs execution environment needed to run supervised fine-tuning and reward modeling tasks.