ml-training-recipes

Configure PyTorch training recipes for model training and fine-tuning.

Updated May 4, 2026
One-click install
npx skills add https://github.com/Supporter09/Face_Anti_Spoofing_Biometric --skill ml-training-recipes-supporter09
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ml-training-recipes
Source: https://github.com/Supporter09/Face_Anti_Spoofing_Biometric/tree/main/.claude/skills/ml-training-recipes
Command: npx skills add https://github.com/Supporter09/Face_Anti_Spoofing_Biometric --skill ml-training-recipes-supporter09

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you train, fine-tune, and debug neural networks with reliable PyTorch recipes instead of reinventing training loops, optimizer setups, and recovery strategies from scratch.

Core Features & Use Cases

  • Training Loop Guidance: Build stable loops with gradient accumulation, mixed precision, clipping, and learning-rate scheduling.
  • Optimization Recipes: Choose and configure optimizers such as AdamW, Muon, or hybrid setups for different parameter types.
  • Debugging and Scaling: Diagnose loss spikes, OOM errors, slow throughput, and distributed training issues across vision, language, diffusion, and biomedical workloads.
  • Use Case: If a model is stalling, diverging, or too slow on GPU, this Skill helps you identify the bottleneck, adjust the recipe, and compare experiments systematically.

Quick Start

Use the ml-training-recipes skill to review my current PyTorch training setup and recommend a stable optimizer, learning-rate schedule, and debugging plan.

Frequently Asked Questions about ml-training-recipes

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix loss spikes and OOM errors during PyTorch model training?

To fix loss spikes and OOM errors during PyTorch model training, you can apply battle-tested recipes for gradient clipping, mixed precision, and memory optimization. This approach diagnoses bottlenecks and adjusts training loops to prevent memory exhaustion and divergence.

What is the best way to configure a PyTorch optimizer for fine-tuning?

The best way to configure a PyTorch optimizer for fine-tuning is to use proven recipes that match optimizers like AdamW or Muon to your specific parameter types. This ensures stable training loops and effective learning-rate scheduling across vision or language workloads.

Does this support distributed training and mixed precision in PyTorch?

Yes, this supports distributed training and mixed precision in PyTorch by providing recipes that integrate gradient accumulation and learning-rate scheduling. These configurations help scale models efficiently across GPUs while maintaining numerical stability.

How do I systematically compare PyTorch training experiments?

To systematically compare PyTorch training experiments, you apply structured recipes that standardize checkpointing and logging. This allows you to evaluate optimizer setups, throughput tuning, and learning-rate schedules side-by-side to identify the best performing configuration.

Why is my neural network training too slow on GPU and how can I tune throughput?

Your neural network training is too slow on GPU due to unoptimized training loops or suboptimal parameter setups. You can tune throughput by applying PyTorch recipes for mixed precision, distributed training, and gradient accumulation to maximize hardware utilization.