pytorch-model-recovery
CommunityRebuild PyTorch models from weights.
Software Engineering#pytorch#cpu optimization#model recovery#state dictionary#architecture inference#weight reconstruction
AuthorZurybr
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the challenge of reconstructing PyTorch models when only weight files or state dictionaries are available, often due to missing source code or corrupted saves.
Core Features & Use Cases
- Architecture Inference: Reconstruct model architecture by analyzing weight tensor shapes and naming conventions.
- Weight Reconstruction: Load and verify state dictionaries against inferred architectures.
- CPU-Optimized Execution: Provides strategies for efficient model recovery in CPU-constrained environments.
- Use Case: Recover a critical machine learning model from a saved
.ptfile when the original Python code defining the model architecture is lost.
Quick Start
Use the pytorch-model-recovery skill to reconstruct a PyTorch model from the provided 'model_weights.pt' file.
Dependency Matrix
Required Modules
torchnumpy
Components
references
💻 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-model-recovery Download link: https://github.com/Zurybr/lefarma-skills/archive/main.zip#pytorch-model-recovery 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.