PyTorch Patterns
CommunityMaster PyTorch for production ML.
Software Engineering#model training#deep learning#pytorch#ml engineering#data loading#neural networks
AuthorHermeticOrmus
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides expert patterns and best practices for building robust, efficient, and production-ready PyTorch models and data pipelines, addressing common pitfalls in deep learning development.
Core Features & Use Cases
- Custom Datasets & DataLoaders: Implement advanced data loading with augmentation and weighted sampling for imbalanced datasets.
- nn.Module Design: Structure PyTorch modules with proper parameter/buffer registration and weight initialization.
- Model Surgery: Techniques for fine-tuning pre-trained models, including freezing backbones and progressive unfreezing.
- Custom Autograd: Define custom backward passes for numerical stability or performance optimizations.
- DataLoader Profiling: Benchmark data pipelines to ensure they are not a bottleneck during training.
- Use Case: When developing a new image classification model, use the custom Dataset pattern to integrate Albumentations for data augmentation and WeightedRandomSampler to handle class imbalance, ensuring efficient and effective training.
Quick Start
Apply the PyTorch Patterns skill to create a custom Dataset with transforms and weighted sampling for an image classification task.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: PyTorch Patterns Download link: https://github.com/HermeticOrmus/LibreMLOps-Claude-Code/archive/main.zip#pytorch-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.