Alternatives To Tutorials
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Pytorch Tutorial25,860
15 days ago88mitPython
PyTorch Tutorial for Deep Learning Researchers
6 days ago107
坚持分享 GitHub 上高质量、有趣实用的开源技术教程、开发者工具、编程网站、技术资讯。A list cool, interesting projects of GitHub.
Awesome Pytorch List13,786
a month ago2
A comprehensive list of pytorch related content on github,such as different models,implementations,helper libraries,tutorials etc.
Nlp Tutorial12,146
20 days ago33mitJupyter Notebook
Natural Language Processing Tutorial for Deep Learning Researchers
The Incredible Pytorch9,479
25 days ago1mit
The Incredible PyTorch: a curated list of tutorials, papers, projects, communities and more relating to PyTorch.
Haystack7,53229 hours ago29July 06, 2022349apache-2.0Python
:mag: Haystack is an open source NLP framework to interact with your data using Transformer models and LLMs (GPT-3 and alike). Haystack offers production-ready tools to quickly build ChatGPT-like question answering, semantic search, text generation, and more.
Pytorch Tutorial7,372
3 days ago28mitJupyter Notebook
Build your neural network easy and fast, 莫烦Python中文教学
17 hours ago190bsd-3-clausePython
PyTorch tutorials.
Machine Learning Collection4,993
4 days ago88mitPython
A resource for learning about Machine learning & Deep Learning
Pytorch Seq2seq4,356
6 days ago52mitJupyter Notebook
Tutorials on implementing a few sequence-to-sequence (seq2seq) models with PyTorch and TorchText.
Alternatives To Tutorials
Select To Compare

Alternative Project Comparisons

PyTorch Tutorials

All the tutorials are now presented as sphinx style documentation at:


We use sphinx-gallery's notebook styled examples to create the tutorials. Syntax is very simple. In essence, you write a slightly well formatted Python file and it shows up as an HTML page. In addition, a Jupyter notebook is autogenerated and available to run in Google Colab.

Here is how you can create a new tutorial (for a detailed description, see

  1. Create a Python file. If you want it executed while inserted into documentation, save the file with the suffix tutorial so that the file name is
  2. Put it in one of the beginner_source, intermediate_source, advanced_source directory based on the level of difficulty. If it is a recipe, add it to recipes_source. For tutorials demonstrating unstable prototype features, add to the prototype_source.
  3. For Tutorials (except if it is a prototype feature), include it in the toctree directive and create a customcarditem in index.rst.
  4. For Tutorials (except if it is a prototype feature), create a thumbnail in the index.rst file using a command like .. customcarditem:: beginner/your_tutorial.html. For Recipes, create a thumbnail in the recipes_index.rst

If you are starting off with a Jupyter notebook, you can use this script to convert the notebook to Python file. After conversion and addition to the project, please make sure that section headings and other things are in logical order.

Building locally

The tutorial build is very large and requires a GPU. If your machine does not have a GPU device, you can preview your HTML build without actually downloading the data and running the tutorial code:

  1. Install required dependencies by running: pip install -r requirements.txt.

If you want to use virtualenv, in the root of the repo, run: virtualenv venv, then source venv/bin/activate.

  • If you have a GPU-powered laptop, you can build using make docs. This will download the data, execute the tutorials and build the documentation to docs/ directory. This might take about 60-120 min for systems with GPUs. If you do not have a GPU installed on your system, then see next step.
  • You can skip the computationally intensive graph generation by running make html-noplot to build basic html documentation to _build/html. This way, you can quickly preview your tutorial.

If you get ModuleNotFoundError: No module named 'pytorch_sphinx_theme' make: *** [html-noplot] Error 2 from /tutorials/src/pytorch-sphinx-theme or /venv/src/pytorch-sphinx-theme (while using virtualenv), run python install.

Building a single tutorial

You can build a single tutorial by using the GALLERY_PATTERN environment variable. For example to run only, run:

GALLERY_PATTERN="" make html


GALLERY_PATTERN="" sphinx-build . _build

The GALLERY_PATTERN variable respects regular expressions.

About contributing to PyTorch Documentation and Tutorials

  • You can find information about contributing to PyTorch documentation in the PyTorch Repo file.
  • Additional information can be found in PyTorch
Popular Tutorials Projects
Popular Pytorch Projects
Popular Learning Resources Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Pytorch Tutorial