Build reproducible PyTorch models
pytorch-patternsskillsetup L2★0
Sheshiyer/skill-clusters ↗What it does
Write reproducible PyTorch models and training loops
Best for
Building deep learning code that runs reproducibly across devices and captures shape contracts explicitly
Inputs
- · model architecture sketch
- · dataset schema
Outputs
- · nn.Module class
- · training loop code
Requires
- · torch
- · torch.cuda
Preconditions
CUDA/MPS available for device-agnostic code
Failure modes
- · Hardcoded device crashes on CPU-only machines
- · Non-deterministic weight init across runs
- · GPU OOM from untracked tensor shapes
Trust signals
- · Device-agnostic code pattern
- · Explicit seed management
- · Shape annotations in forward()