pytorch-trainer

Solid

PyTorch model training skill with custom training loops, gradient management, and GPU optimization.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# pytorch-trainer ## Overview PyTorch model training skill with custom training loops, gradient management, GPU optimization, and integration with experiment tracking systems. ## Capabilities - Custom training loop execution - Learning rate scheduling (StepLR, CosineAnnealing, OneCycleLR, etc.) - Gradient clipping and accumulation - Mixed precision training (AMP) - Checkpoint management and resumption - DataLoader optimization - Multi-GPU training (DataParallel, DistributedDataParallel) - Early stopping with patience ## Target Processes - Model Training Pipeline with Experiment Tracking - Distributed Training Orchestration - AutoML Pipeline Orchestration ## Tools and Libraries - PyTorch - PyTorch Lightning (optional) - torchvision, torchaudio, torchtext - CUDA toolkit ## Input Schema ```json { "type": "object", "required": ["modelPath", "dataConfig", "trainingConfig"], "properties": { "modelPath": { "type": "string", "description": "Path to model definition file" }, "dataConfig": { "type": "object", "properties": { "trainPath": { "type": "string" }, "valPath": { "type": "string" }, "batchSize": { "type": "integer" }, "numWorkers": { "type": "integer" } } }, "trainingConfig": { "type": "object", "properties": { "epochs": { "type": "integer" }, "learningRate": { "type": "number" }, "optimizer": { "type": "string" }, "scheduler": { "type":...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills