{"enrichment":{"faq":[{"a":"pytorch-deployment teaches you to move trained models from notebooks into production by mastering serialization formats like TorchScript and ONNX export. The skill covers exporting models for C++ inference via libtorch, deploying to mobile and edge devices, and optimizing through quantization and pruning to reduce size and accelerate inference speed.","q":"How do you deploy PyTorch models to production?"},{"a":"pytorch-deployment explains that TorchScript tracing records tensor operations by running your model once with sample inputs, capturing the execution graph\u2014ideal for models with fixed control flow. Scripting, by contrast, parses Python code directly into TorchScript, preserving dynamic control flow and loops, making it better for models with conditional logic.","q":"What's the difference between TorchScript tracing vs scripting?"},{"a":"pytorch-deployment covers ONNX export as a key serialization strategy for cross-platform inference. You use torch.onnx.export() to convert your model into the ONNX interchange format, enabling deployment in non-Python environments and runtime engines like ONNX Runtime, TensorRT, and others without requiring PyTorch.","q":"How do you export a PyTorch model to ONNX format?"},{"a":"pytorch-deployment teaches quantization strategies\u2014particularly INT8 quantization\u2014to shrink model size and boost inference speed. These techniques reduce floating-point weights and activations to lower precision, cutting memory footprint and latency on edge and mobile devices while maintaining acceptable accuracy.","q":"What quantization techniques reduce PyTorch model size?"},{"a":"pytorch-deployment shows how to deploy neural networks in non-Python environments using libtorch (C++ API) or ONNX Runtime. Export your model via TorchScript or ONNX, then load and run inference in C++, mobile apps, or edge platforms like Jetson, eliminating the Python runtime dependency.","q":"How can you run PyTorch inference without Python?"},{"a":"pytorch-deployment covers mobile optimization by combining serialization (TorchScript export), quantization to reduce model size, and the PyTorch Mobile interpreter for efficient on-device inference. These techniques enable fast, lightweight model execution on smartphones and embedded devices with limited compute and memory.","q":"What's the best approach for PyTorch mobile deployment?"}],"shadow_tags":["model-serialization","inference-optimization","cross-platform-deployment","edge-computing","production-readiness","hardware-acceleration","model-compression","runtime-performance"],"summary_rewrite":"Move trained PyTorch models from notebooks to production environments by mastering serialization formats like TorchScript (via tracing or scripting) and ONNX export. Learn quantization and pruning strategies to shrink model size and accelerate inference across C++, mobile, and edge devices."},"files":[{"bytes":5603,"path":"skills/pytorch-deployment/SKILL.md","sha256":"3122a35a3fe4c26d3e5e81219dcf33d5644429a85d42597b4de6d66d9907fe25","url":"https://skillfed.io/files/tondevrel/scientific-agent-skills/pytorch-deployment/eb189dc7/SKILL.md"}],"id":"tondevrel/scientific-agent-skills/pytorch-deployment","links":{"html":"https://skillfed.io/tondevrel/scientific-agent-skills/pytorch-deployment","md":"https://skillfed.io/tondevrel/scientific-agent-skills/pytorch-deployment.md","repo":"https://github.com/tondevrel/scientific-agent-skills"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":2,"language":null,"last_updated":"2026-02-01","license":"MIT","name":"pytorch-deployment","publisher":"tondevrel","stars":19},"relations":{"similar":[{"id":"Aznatkoiny/zAI-Skills/cpp-reinforcement-learning"},{"id":"JosiahSiegel/claude-plugin-marketplace/ml-inference-optimization"},{"id":"pluginagentmarketplace/custom-plugin-data-engineer/deep-learning"},{"id":"pytorch/pytorch/triaging-issues"},{"id":"matlab/matlab-agentic-toolkit/matlab-import-external-ai-model"},{"id":"tondevrel/scientific-agent-skills/pytorch"},{"id":"dpearson2699/swift-ios-skills/apple-on-device-ai"},{"id":"matlab/matlab-agentic-toolkit/matlab-deploy-embedded-ai"},{"id":"synthetic-sciences/openscience/tensorboard"},{"id":"foryourhealth111-pixel/Vibe-Skills/tensorboard"}]},"slug":{"owner":"tondevrel","repo":"scientific-agent-skills","skill":"pytorch-deployment"},"version":"eb189dc7"}
