# pytorch/examples

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

Repository: https://github.com/pytorch/examples
Canonical: https://ross.abutalabs.com/products/examples
Homepage: https://pytorch.org/examples
Language: Python
License: BSD-3-Clause
License Family: permissive
Last push: 2025-09-01T17:21:47+00:00

## Health v2 (maintenance only)
Score: 50/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 39, release rhythm 35, longevity 100
- inputs: {"age_days": 3661, "days_push": 366, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 24015, forks 9824 (observed 2026-08-28T04:11:35.503187+00:00)

## What it is
A curated repository of short, high-quality PyTorch example projects covering vision, text, reinforcement learning, and distributed training. Each example is minimal and dependency-light, intended to be emulated in users' own work.

## Use cases
- learn pytorch by example
- mnist image classification example code
- train a dcgan in pytorch
- pytorch distributed data parallel example
- reinforcement learning cartpole pytorch example
- word-level language model rnn transformer example
- neural style transfer pytorch implementation

## When to choose
- you want short, curated, runnable PyTorch code to copy patterns from
- you need canonical examples of DDP/RPC distributed training
- you are learning deep learning concepts like VAEs, GANs, or RL with minimal dependencies

## When to avoid
- you need full tutorials or step-by-step explanations (use pytorch/tutorials)
- you need production-ready recipes (use facebookresearch/recipes)
- you need pretrained models or a model hub (use PyTorch Hub or Hugging Face)

## Facets
- artifact type: learning-resource
- maturity: active
- function: machine-learning, deep-learning, computer-vision, nlp, reinforcement-learning
- domain: deep-learning, machine-learning, computer-vision, tutorials
- platform: python, cross-platform
- tags: pytorch, example-code, mnist, gan, transformers, distributed-training, sample-code, natural-language-processing

## Member repositories
- pytorch/examples (main) score 50

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:35.503187+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:56:18.293619+00:00, confidence not recorded.
  - readme: https://github.com/pytorch/examples (fetched 2026-08-28T04:11:35.503187+00:00, sha 31102942ecc9)
  - homepage: https://pytorch.org/examples (fetched 2026-08-29T07:54:05.986627+00:00, sha f1bdaf5ef5da)
  - site_page: https://pytorch.org/docs/stable/index.html (fetched 2026-08-29T07:54:06.005699+00:00, sha a9a24195924a)
  - site_page: https://pytorch.org/foundation (fetched 2026-08-29T07:54:06.012322+00:00, sha 826b32be4d07)
  - site_page: https://pytorch.org/ecosystem (fetched 2026-08-29T07:54:05.996483+00:00, sha b1e60b6a50af)
  - site_page: https://discuss.pytorch.org/ (fetched 2026-08-29T07:54:05.998573+00:00, sha 5a4b54973661)
  - site_page: https://pytorch.org/edge (fetched 2026-08-29T07:54:06.000437+00:00, sha f163d0fd8a9e)
  - site_page: https://pytorch.org/executorch/stable/index.html (fetched 2026-08-29T07:54:06.003121+00:00, sha ed8dcff0982a)
  - site_page: https://pytorch.org/pytorch-domains (fetched 2026-08-29T07:54:06.008222+00:00, sha 7c14ee568014)
- Data as of 2026-08-30T08:39:29.467469+00:00.
