torch-export

Community

Export PyTorch models for deployment

Authoryunseo-kim
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the challenge of converting trained PyTorch models into a deployable format that can run efficiently across various platforms and runtimes, abstracting away the complexities of model serialization and optimization.

Core Features & Use Cases

  • Symbolic Tracing: Captures PyTorch nn.Module into an ExportedProgram using symbolic tracing.
  • Dynamic Shape Support: Allows for models that handle variable input dimensions.
  • Control Flow Handling: Manages static, shape-dependent, and data-dependent control flow within the exported graph.
  • Debugging Tools: Provides mechanisms like draft_export and verbose logging for troubleshooting export failures.
  • Use Case: Deploying a custom PyTorch image classification model to a mobile device or an edge server by exporting it to a format compatible with inference engines like ONNX or TensorRT.

Quick Start

Export the provided PyTorch model using default settings.

Dependency Matrix

Required Modules

None required

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: torch-export
Download link: https://github.com/yunseo-kim/agent-toolbox/archive/main.zip#torch-export

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.