pytorch
Installation
SKILL.md
PyTorch
Use PyTorch when model artifacts are tensors first and everything else second.
When to use PyTorch
Use PyTorch when you need to:
- load
.ptor.pthcheckpoints safely onto CPU or GPU - inspect
state_dictkeys, module hierarchy, and parameter shapes - switch a model into stable inference mode for probing
- script quick tensor statistics or output checks against a checkpoint
Quick Start
import torch