RobbieJ avatar

training-hub

Fine-tune LLMs using Red Hat training-hub library with SFT, LoRA, and OSFT algorithms. Use when prep

提供方 RobbieJ|开源

Training Hub Skills for Claude Code

A Claude Code skill for fine-tuning LLMs using Red Hat training-hub.

Features

  • Three training algorithms: SFT, LoRA/QLoRA, and OSFT (continual learning)
  • Hardware profiles: Optimized configs for RTX 4090/5090, DGX Spark, A100, H100, H200
  • Scale support: Single GPU to multi-node datacenter clusters (Slurm, Kubernetes)
  • Utility scripts: Memory estimation, config recommendation, dataset validation
  • Full workflow: Dataset prep → Training → Evaluation → Inference serving

Installation

As a Claude Code Plugin (Recommended)

claude plugins add github:robbiej/training-hub-skills

Manual Installation

Clone to your personal skills directory:

git clone https://github.com/robbiej/training-hub-skills ~/.claude/skills/llm-training

Or for a specific project:

git clone https://github.com/robbiej/training-hub-skills .claude/skills/llm-training

Quick Start

Once installed, Claude Code automatically uses this skill when you ask about:

  • Fine-tuning LLMs with training-hub
  • Preparing JSONL datasets
  • Configuring training for specific hardware
  • Scaling to multi-GPU or multi-node setups
  • Evaluating models with lm-eval
  • Serving models with vLLM

Example Prompts

"Help me fine-tune Llama 3.1 8B on my RTX 5090"

"What's the best config for training a 70B model on 8 H100s?"

"Convert my CSV dataset to JSONL for training-hub"

"How do I evaluate my fine-tuned model?"

Utility Scripts

# Get optimal config for your hardware
python scripts/recommend_config.py --model meta-llama/Llama-3.1-8B-Instruct --hardware rtx-5090

# Check memory requirements
python scripts/estimate_memory.py --model meta-llama/Llama-3.1-70B-Instruct --method lora --hardware h100

# Validate dataset before training
python scripts/validate_dataset.py ./training_data.jsonl

# Convert from other formats
python scripts/convert_to_jsonl.py alpaca input.json output.jsonl

Documentation

FileDescription
SKILL.mdMain skill entry point
HARDWARE.mdHardware-specific configurations
ALGORITHMS.mdSFT, LoRA, OSFT parameter reference
DATA-FORMATS.mdJSONL format and conversion
SCALE.mdMulti-node, Slurm, Kubernetes
EVALUATION.mdlm-evaluation-harness integration
INFERENCE.mdvLLM serving and deployment
ADVANCED.mdGradient checkpointing, flash attention
MODELS.mdPre-tested model configurations
TROUBLESHOOTING.mdCommon issues and solutions

Supported Hardware

HardwareVRAMBest For
RTX 409024GB7B LoRA, 34B QLoRA
RTX 509032GB8B LoRA, 70B QLoRA
DGX Spark128GB70B SFT
A100 80GB80GB14B SFT, 70B LoRA
H100 80GB80GB14B SFT, 70B LoRA
H200 141GB141GB32B SFT, 140B LoRA
8×H100640GB70B SFT
8×H2001.1TB140B+ SFT

Requirements

License

Apache 2.0

Contributing

Contributions welcome! Please open issues or PRs on GitHub.