Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
E

examples

> 编程语言
Open source

A set of examples around pytorch in Vision, Text, Reinforcement Learning, etc.

24.0K stars0 likes1 views
WebsiteGitHub

About

A set of examples around pytorch in Vision, Text, Reinforcement Learning, etc.

PyTorch Examples

https://pytorch.org/examples/

pytorch/examples is a repository showcasing examples of using PyTorch. The goal is to have curated, short, few/no dependencies high quality examples that are substantially different from each other that can be emulated in your existing work.

  • For tutorials: https://github.com/pytorch/tutorials
  • For changes to pytorch.org: https://github.com/pytorch/pytorch.github.io
  • For a general model hub: https://pytorch.org/hub/ or https://huggingface.co/models
  • For recipes on how to run PyTorch in production: https://github.com/facebookresearch/recipes
  • For general Q&A and support: https://discuss.pytorch.org/

Available models

  • Image classification (MNIST) using Convnets
  • Word-level Language Modeling using RNN and Transformer
  • Training Imagenet Classifiers with Popular Networks
  • Generative Adversarial Networks (DCGAN)
  • Variational Auto-Encoders
  • Superresolution using an efficient sub-pixel convolutional neural network
  • Hogwild training of shared ConvNets across multiple processes on MNIST
  • Training a CartPole to balance with actor-critic
  • Natural Language Inference (SNLI) with GloVe vectors, LSTMs, and torchtext
  • Time sequence prediction - use an LSTM to learn Sine waves
  • Implement the Neural Style Transfer algorithm on images
  • Reinforcement Learning with Actor Critic and REINFORCE algorithms on OpenAI gym
  • PyTorch Module Transformations using fx
  • Distributed PyTorch examples with Distributed Data Parallel and RPC
  • Several examples illustrating the C++ Frontend
  • Image Classification Using Forward-Forward
  • Language Translation using Transformers

Additionally, a list of good examples hosted in their own repositories:

  • Neural Machine Translation using sequence-to-sequence RNN with attention (OpenNMT)

Contributing

If you'd like to contribute your own example or fix a bug please make sure to take a look at CONTRIBUTING.md.

Issues· 254 open

View all issuesOpen on GitHub
  • #1112

    word_language_model with torch.nn.modules.transformer

    good first issuenlpdocsUpdated Sep 22, 2026
  • #1426

    tsting

    Updated Sep 20, 2026
  • #391

    Example code (mnist) does not work under torch.utils.bottleneck

    good first issueUpdated Sep 17, 2026
  • #1425

    improvement for examples/mnist_forward_forward

    Updated Aug 30, 2026
  • #1015

    torch.multiprocessing subprocess receives tensor with zeros rather than actual data

    bugdistributedUpdated Feb 28, 2026
  • #976

    Update all examples to latest versions of pytorch

    enhancementgood first issuedistributedUpdated Feb 3, 2026
  • #793

    Add nn.SyncBatchNorm in ImageNet example

    good first issueUpdated Dec 8, 2025
  • #1405

    examples/language_translation/src/data.py Code iterators will fail.

    Updated Dec 8, 2025
  • #1404

    fsdp2 example.py: checkpoint error

    Updated Nov 20, 2025
  • #1403

    Can not fetch mnist data set

    Updated Nov 19, 2025

> Tags

Python

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言