hf-trainer
Installation
SKILL.md
HuggingFace Trainer Skill
Overview
Use this skill whenever the user needs to train or fine-tune models using the HuggingFace Transformers library. Covers the full training lifecycle: configuration, hyperparameter tuning, distributed training, parameter-efficient fine-tuning (PEFT), evaluation, checkpointing, and experiment tracking.
When to Activate
- User wants to fine-tune a pretrained model (BERT, GPT, LLaMA, etc.).
- User asks about
TrainingArgumentsor theTrainerAPI. - User needs hyperparameter tuning (learning rate, batch size, epochs).
- User asks about distributed training (DDP, DeepSpeed, FSDP).
- User wants mixed precision training (fp16, bf16).
- User asks about LoRA, QLoRA, or PEFT fine-tuning.
- User needs gradient checkpointing or accumulation setup.
- User wants evaluation during training, early stopping, or checkpointing.
- User asks about Weights & Biases (W&B) integration.