training_hub: Skill for Claude Code

.claude/skills/training-hub-guide/SKILL.md

training-hub-guide is a skill for Claude Code from Red-Hat-AI-Innovation-Team/training_hub. It costs 88 tokens per session (2,635 once invoked), scanned A, original, Apache-2.0.

A guide to Training Hub, a single interface for fine-tuning language models with methods such as supervised fine-tuning, OSFT, and LoRA. Fine-tuning adapts an existing model to a particular task or dataset.

In plain words
What is it for?
Use it when setting up or running post-training, selecting an algorithm, tuning hyperparameters, interpreting loss curves, or troubleshooting CUDA and out-of-memory errors.
Why use it?
It helps you choose a training method, install the needed components, adjust settings, and diagnose common GPU-memory and training problems.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is Red-Hat-AI-Innovation-Team/training_hub's own configuration. It tells Claude Code how to work on training_hub itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything training_hub configures →

Part of the training-hub plugin — 4 skills shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to Red-Hat-AI-Innovation-Team/training_hub. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Red-Hat-AI-Innovation-Team/training_hub/main/.claude/skills/training-hub-guide/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Red-Hat-AI-Innovation-Team/training_hub

Made for: Claude Code.

Or install training-hub, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for training-hub-guide

README.md
[![agentmods](https://agentmods.dev/badge/skills/red-hat-ai-innovation-team/training_hub/training-hub-guide/github.svg)](https://agentmods.dev/skills/red-hat-ai-innovation-team/training_hub/training-hub-guide)
Your own site
<a href="https://agentmods.dev/skills/red-hat-ai-innovation-team/training_hub/training-hub-guide"><img src="https://agentmods.dev/badge/skills/red-hat-ai-innovation-team/training_hub/training-hub-guide/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for training-hub-guide

Your own site · 80×15
<a href="https://agentmods.dev/skills/red-hat-ai-innovation-team/training_hub/training-hub-guide"><img src="https://agentmods.dev/badge/skills/red-hat-ai-innovation-team/training_hub/training-hub-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,635 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00088 $0.02635
Opus 5 $0.00044 $0.01318
Sonnet 5 $0.00018 $0.00527
Haiku 4.5 $0.00009 $0.00264

Measured 12d ago against content hash 1bbaa8a4daf6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

training-hub-guide scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/training-hub-guide/SKILL.md · 214 lines

How it starts

The opening of the file, as written. The whole thing — 214 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Training Hub Guide

Training Hub is an abstraction layer for LLM post-training algorithms. It packages SFT, OSFT, and LoRA behind a unified interface so users do not need to learn multiple backend APIs. Backends are wired together internally; users interact with a single API surface.

For API reference and conceptual overviews, consult the live documentation at https://ai-innovation.team/training_hub/#/ and the docs/ directory in the repo root. This skill covers practical knowledge, decision frameworks, and troubleshooting that supplements the official docs.

Installation

Install targets

# Minimal (no backends, no GPU training)
uv pip install training_hub

# SFT + OSFT (high-scale distributed fine-tuning via CUDA backends)
# IMPORTANT: base install MUST come first, then [cuda] with --no-build-isolation
uv pip install training_hub && uv pip install training_hub[cuda] --no-build-isolation

# LoRA (budget-friendly, single/few-GPU via Unsloth — does NOT require [cuda])
uv pip install training_hub[lora]

The [cuda] extra is only needed for SFT and OSFT algorithms. LoRA uses the Unsloth backend which handles its own CUDA dependencies through [lora].

The two-step install for [cuda] is required because flash-attn and other CUDA packages need torch and packaging to already be present at build time.

Third-party loggers

Loggers are not bundled. Install separately as needed:

uv pip install wandb       # Weights & Biases
uv pip install mlflow      # MLflow
uv pip install tensorboard # TensorBoard

Fixing CUDA/kernel import errors

When users encounter errors like cannot import from flash_attn: unknown symbol or similar issues with optimized kernels (flash attention, liger, causal-conv1d, mamba-ssm), the root cause is usually stale cached builds. Fix with:

  1. uv cache clean
  2. Remove GPU-related caches from ~/.cache/ (torch, triton, flash_attn, vllm, and similar)
  3. Remove ~/.triton/ if it exists (triton kernel cache)
  4. Delete the current venv and recreate it fresh
  5. Reinstall with the two-step process above

Read the full file on GitHub · 214 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 214 lines · 88 tokens per session scan A 1bbaa8a4daf6

Subscribe to this mod's changes

training-hub-guide is a skill published in the GitHub repository Red-Hat-AI-Innovation-Team/training_hub (95 stars, last pushed today), licensed Apache-2.0. It adds 88 tokens to every session and 2,635 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

implementing-llms-litgpt

Implements and trains LLMs using Lightning AI's LitGPT with 20+ pretrained architectures (Llama, Gemma, Phi, Qwen, Mistral). Use when need clean model implementations, educational understanding of architectures, or production fine-tuning with LoRA/QLoRA. Single-file implementations, no abstraction layers.

davila7/claude-code-templates · 77 tokens

nanogpt

Educational GPT implementation in 300 lines. Reproduces GPT-2 (124M) on OpenWebText. Clean, hackable code for learning transformers. By Andrej Karpathy. Perfect for understanding GPT architecture from scratch. Train on Shakespeare (CPU) or OpenWebText (multi-GPU).

davila7/claude-code-templates · 65 tokens

ml-training-recipes

Battle-tested PyTorch training recipes for all domains — LLMs, vision, diffusion, medical imaging, protein/drug discovery, spatial omics, genomics. Covers training loops, optimizer selection (AdamW, Muon), LR scheduling, mixed precision, debugging, and systematic experimentation. Use when training or fine-tuning…

Orchestra-Research/AI-Research-SKILLs · 88 tokens

tao-run-automl

Run container-backed AutoML / hyperparameter optimization (HPO) for NVIDIA TAO networks using AutoMLRunner. Handles algorithm selection (bayesian, hyperband, asha, bohb, llm, hybrid, autoresearch), WandB experiment tracking, job execution on any TAO SDK platform, result interpretation, and per-rec custom evaluation…

NVIDIA-TAO/tao-skill-bank · 235 tokens

unsloth

Expert guidance for fast fine-tuning with Unsloth - 2-5x faster training, 50-80% less memory, LoRA/QLoRA optimization.

davila7/claude-code-templates · 39 tokens

implementing-llms-litgpt

Implements and trains LLMs using Lightning AI's LitGPT with 20+ pretrained architectures (Llama, Gemma, Phi, Qwen, Mistral). Use when need clean model implementations, educational understanding of architectures, or production fine-tuning with LoRA/QLoRA. Single-file implementations, no abstraction layers.

OpenLAIR/dr-claw · 77 tokens