pytorch-model-cli
CommunityRun PyTorch models natively, no Python needed.
AuthorZurybr
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill enables the execution of PyTorch models for inference directly within native applications (C/C++/Rust), eliminating Python dependencies and simplifying deployment for performance-critical or resource-constrained environments.
Core Features & Use Cases
- Weight Extraction: Safely extracts model weights from PyTorch's
.pthfiles into formats usable by native languages. - Native Forward Pass Implementation: Guides the implementation of neural network forward passes using extracted weights in C/C++/Rust.
- Standalone Inference Tools: Facilitates the creation of self-contained inference executables without requiring a Python runtime.
- Use Case: Deploying a trained image classification model on an embedded system where Python is not available, by converting the PyTorch model's logic and weights into a C++ executable.
Quick Start
Use the pytorch-model-cli skill to extract weights from 'my_model.pth' and implement its forward pass in C++.
Dependency Matrix
Required Modules
None requiredComponents
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-cli Download link: https://github.com/Zurybr/lefarma-skills/archive/main.zip#pytorch-model-cli 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.