hugging-face-model-trainer SKILL.md skillA

hugging-face-model-trainer from tayyabexe/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add tayyabexe/skills/hugging-face-model-trainer@git:20260130.55b11ff

Pins git:20260130.55b11ff in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
tayyabexe/skills
Path
skills/hugging-face-model-trainer/SKILL.md
Versions recorded
4
Latest version
git:20260130.55b11ff, committed Jan 30, 2026
First version recorded
Jan 7, 2026
Size
27,941 bytes
Repository stars
4
License
Apache-2.0

This skill should be used when users want to train or fine-tune language models using TRL (Transformer Reinforcement Learning) on Hugging Face Jobs infrastructure. Covers SFT, DPO, GRPO and reward modeling training methods, plus GGUF conversion for local deployment. Includes guidance on the TRL Jobs package, UV scripts with PEP 723 format, dataset preparation and validation, hardware selection, cost estimation, Trackio monitoring, Hub authentication, and model persistence. Should be invoked…

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# TRL Training on Hugging Face Jobs

## Overview

Train language models using TRL (Transformer Reinforcement Learning) on fully managed Hugging Face infrastructure. No local GPU setup required—models train on cloud GPUs and results are automatically saved to the Hugging Face Hub.

**TRL provides multiple training methods:**
- **SFT** (Supervised Fine-Tuning) - Standard instruction tuning
- **DPO** (Direct Preference Optimization) - Alignment from preference data
- **GRPO** (Group Relative Policy Optimization) - Online RL training
- **Reward Modeling** - Train reward models for RLHF

**For detailed TRL method documentation:**
```python
hf_doc_search("your query", product="trl")
hf_doc_fetch("https://huggingface.co/docs/trl/sft_trainer")  # SFT
hf_doc_fetch("https://huggingface.co/docs/trl/dpo_trainer")  # DPO
# etc.
```

**See also:** `references/training_methods.md` for method overviews and selection guidance

## When to Use This Skill

Use this skill when users want to:
- Fine-tune language models on cloud GPUs without local infrastructure
- Train with TRL methods (SFT, DPO, GRPO, etc.)
- Run training jobs on Hugging Face Jobs infrastructure
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add tayyabexe/skills/hugging-face-model-trainer@sha256:4a0d1a94f8755c96

The line at the top of this page pins the label git:20260130.55b11ff, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_hqgqe4bjh3bze4tc.svg)](https://markdownregistry.com/a/art_hqgqe4bjh3bze4tc)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 4 versions of this file, between Jan 7, 2026 and Jan 30, 2026, about one every 8 days.

versioncommittedcommitsizeaudit
git:20260130.55b11ff latest2026-01-30 55b11ff 27,941 BA view · diff
git:20260130.4084f372026-01-30 4084f37 27,933 BA view · diff
git:20260112.b417fad2026-01-12 b417fad 27,274 BA view · diff
git:20260107.a25b8e52026-01-07 a25b8e5 27,274 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (27941 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

tayyabexe/skills · 4 stars · license Apache-2.0 · pushed 2026-10-14 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_hqgqe4bjh3bze4tc
GET https://markdownregistry.com/api/v1/resolve?ref=tayyabexe/skills/hugging-face-model-trainer
GET https://markdownregistry.com/api/v1/blob/4a0d1a94f8755c9671f8addb44735d374163ecff839ffe685b8a52adcaca026e

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from tayyabexe/skills

AGENTS.md@agents AGENTS.md file
tayyabexe/skills · agents/AGENTS.md
git:20260302.f55e49d · audit A · 4 stars
hf-mcp SKILL.md skill
tayyabexe/skills · hf-mcp/skills/hf-mcp/SKILL.md · Use Hugging Face Hub via MCP server tools. Search models, datasets, Spaces, papers. Get repo details, fetch…
git:20260106.fa7188e · audit A · 4 stars
hugging-face-cli SKILL.md skill
tayyabexe/skills · skills/hugging-face-cli/SKILL.md · Execute Hugging Face Hub operations using the `hf` CLI. Use when the user needs to download models/datasets/spaces…
git:20260109.351508f · audit A · 4 stars
hugging-face-dataset-viewer SKILL.md skill
tayyabexe/skills · skills/hugging-face-dataset-viewer/SKILL.md · Use this skill for Hugging Face Dataset Viewer API workflows that fetch subset/split metadata, paginate rows, search…
git:20260219.1814e63 · audit A · 4 stars
hugging-face-datasets SKILL.md skill
tayyabexe/skills · skills/hugging-face-datasets/SKILL.md · Create and manage datasets on Hugging Face Hub. Supports initializing repos, defining configs/system prompts, streaming…
git:20260112.b417fad · audit A · 4 stars
hugging-face-evaluation SKILL.md skill
tayyabexe/skills · skills/hugging-face-evaluation/SKILL.md · Add and manage evaluation results in Hugging Face model cards. Supports extracting eval tables from README content…
git:20260112.b417fad · audit A · 4 stars
hugging-face-jobs SKILL.md skill
tayyabexe/skills · skills/hugging-face-jobs/SKILL.md · This skill should be used when users want to run any workload on Hugging Face Jobs infrastructure. Covers UV scripts…
git:20260107.a25b8e5 · audit A · 4 stars
hugging-face-paper-publisher SKILL.md skill
tayyabexe/skills · skills/hugging-face-paper-publisher/SKILL.md · Publish and manage research papers on Hugging Face Hub. Supports creating paper pages, linking papers to…
git:20260112.b417fad · audit A · 4 stars
hugging-face-tool-builder SKILL.md skill
tayyabexe/skills · skills/hugging-face-tool-builder/SKILL.md · Use this skill when the user wants to build tool/scripts or achieve a task where using data from the Hugging Face API…
git:20260107.a25b8e5 · audit A · 4 stars
hugging-face-trackio SKILL.md skill
tayyabexe/skills · skills/hugging-face-trackio/SKILL.md · Track and visualize ML training experiments with Trackio. Use when logging metrics during training (Python API), firing…
git:20260227.ec9f530 · audit A · 4 stars
gradio SKILL.md skill
tayyabexe/skills · skills/huggingface-gradio/SKILL.md · Build Gradio web UIs and demos in Python. Use when creating or editing Gradio apps, components, event listeners…
git:20260224.e6fd8b8 · audit A · 4 stars

Every file in tayyabexe/skills

Browse by kind, by grade A, or by owner.