pytorch
Installation
SKILL.md
PyTorch
PyTorch is the foundational deep learning framework for research and production, featuring dynamic computational graphs, torch.compile graph optimization, and distributed GPU training.
When to Use
- State-of-the-Art Deep Learning Research & Production: Training vision, NLP, audio, and generative AI models.
- Model Compilation with torch.compile(): Accelerating model inference and training via TorchDynamo and Triton kernels.
- Distributed Training (DDP / FSDP): Scaling models across multi-GPU and multi-node clusters.
- Hardware Acceleration: Training and executing on NVIDIA CUDA, Apple Silicon MPS, and AMD ROCm.
Quick Start
import torch
import torch.nn as nn