pytorch-model-recovery
Installation
SKILL.md
PyTorch Model Recovery
This skill provides guidance for tasks involving PyTorch model architecture recovery from state dictionaries, selective layer training, and TorchScript export.
When to Use This Skill
This skill applies when:
- Reconstructing a model architecture from a state dictionary (
.ptor.pthfile containing weights) - Training or fine-tuning specific layers while keeping others frozen
- Converting a recovered model to TorchScript format
- Debugging model loading issues or architecture mismatches
Approach Overview
Model recovery tasks require a systematic, incremental approach with verification at each step. The key phases are: