pytorch/examples
Official PyTorch repository with curated examples covering vision, NLP, reinforcement learning, and generative models.

This repository contains high-quality, minimal-dependency examples demonstrating how to use PyTorch for various machine learning tasks. Examples cover image classification, language modeling with RNNs and transformers, generative adversarial networks, variational autoencoders, neural style transfer, reinforcement learning with actor-critic methods, distributed training, and the C++ frontend. Each example is designed to be short and emulated in existing projects.