# jadore801120/attention-is-all-you-need-pytorch

A PyTorch implementation of the Transformer model in "Attention is All You Need".

Repository: https://github.com/jadore801120/attention-is-all-you-need-pytorch
Canonical: https://ross.abutalabs.com/products/attention-is-all-you-need-pytorch
Language: Python
License: MIT
License Family: permissive
Topics: attention, deep-learning, attention-is-all-you-need, pytorch, nlp, natural-language-processing
Last push: 2024-04-16T07:27:13+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3367, "days_push": 869, "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 9784, forks 2096 (observed 2026-08-28T04:10:37.137120+00:00)

## What it is
A PyTorch implementation of the Transformer model from the paper 'Attention Is All You Need', including training and translation scripts for sequence-to-sequence tasks. It serves as a reference implementation for learning how self-attention-based models work.

## Use cases
- implement the transformer model from scratch in pytorch
- learn how self-attention works
- train a sequence-to-sequence translation model
- study the attention is all you need paper with code
- reproduce the wmt 2014 english-to-german translation results

## When to choose
- you want a readable, minimal reference implementation of the original Transformer architecture
- you are learning deep learning and want to study self-attention code
- you need a starting point for seq2seq translation experiments in PyTorch

## When to avoid
- you need a production-grade, well-maintained transformer library
- you want optimized inference or the latest model variants
- you need BPE-based training pipelines, which are incomplete and untested

## Facets
- artifact type: library
- maturity: maintenance
- function: machine-learning, deep-learning, nlp
- domain: deep-learning, machine-learning
- platform: python
- tags: transformer, self-attention, sequence-to-sequence, machine-translation, pytorch, research-code, attention-mechanism, natural-language-processing

## Member repositories
- jadore801120/attention-is-all-you-need-pytorch (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:37.137120+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-29T17:21:01.696537+00:00, confidence not recorded.
  - readme: https://github.com/jadore801120/attention-is-all-you-need-pytorch (fetched 2026-08-28T04:10:37.137120+00:00, sha c6ddebad4788)
- Data as of 2026-08-30T08:39:29.467469+00:00.
