pytorch/examples

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

24,034

stars

772

commits

Python

primary language

Sep 1, 2025

updated

pytorch.org/examples

README

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.

Available models

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

Contributing

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

Contributors

(top 30 of 258)

soumith

101 commits

bmccann

66 commits

msaroufim

62 commits

adamlerer

34 commits

pytorch/examples

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

24,034

stars

772

commits

Python

primary language

Sep 1, 2025

updated

pytorch.org/examples

README

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.

Available models

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

Contributing

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

Contributors

(top 30 of 258)

soumith

101 commits

bmccann

66 commits

msaroufim

62 commits

adamlerer

34 commits

Languages

Python

83.1%

C++

11.1%

Shell

4.6%

CMake

1.2%