harvardnlp/annotated-transformer resource
An annotated implementation of the Transformer paper. observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3087
- days_rel: n/a
- days_push: 878
- n_releases_24m: 0
Adoption not part of the score
7459 stars · 1564 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
An annotated, line-by-line Jupyter notebook implementation of the 'Attention Is All You Need' Transformer paper from Harvard NLP. It pairs explanatory prose with working PyTorch code to teach the Transformer architecture.
Use cases
- learn how the transformer architecture works
- understand self-attention with code
- study an annotated implementation of the attention is all you need paper
- teach deep learning concepts with a runnable notebook
- reference implementation of transformer encoder and decoder
When to choose
- you want to deeply understand the Transformer paper through code
- you prefer learning from annotated notebooks with explanations
- you need a minimal, readable PyTorch Transformer implementation
When to avoid
- you need a production-ready or optimized Transformer library
- you want pre-trained models or training pipelines
- you need features like tokenizers, distributed training, or model serving
Facets
learning-resource · maturity stable
deep-learning nlp machine-learning deep-learning tutorials python cross-platform annotated-implementation jupyter-notebook transformer-architecture educational attention-mechanism natural-language-processing
2 sources
- readme: https://github.com/harvardnlp/annotated-transformer · fetched 2026-08-28 · f253666294cb
- homepage: http://nlp.seas.harvard.edu/annotated-transformer · fetched 2026-08-29 · 2c95b7c9309c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| harvardnlp/annotated-transformer | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="harvardnlp/annotated-transformer")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem