{"adoption": {"forks": 1564, "observed_at": "2026-08-28T04:10:00.010905+00:00", "stars": 7459}, "canonical_url": "https://ross.abutalabs.com/products/annotated-transformer", "card": {"archived": false, "artifact_type": "learning-resource", "description": "An annotated implementation of the Transformer paper.", "domain": ["deep-learning", "tutorials"], "enriched": true, "function": ["deep-learning", "nlp", "machine-learning"], "health_score": 20, "homepage": "http://nlp.seas.harvard.edu/annotated-transformer", "language": "Jupyter Notebook", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["harvardnlp/annotated-transformer"], "name": "harvardnlp/annotated-transformer", "platform": ["python", "cross-platform"], "pushed_at": "2024-04-07T09:58:46+00:00", "repo": "harvardnlp/annotated-transformer", "stars": 7459, "tags": ["annotated-implementation", "jupyter-notebook", "transformer-architecture", "educational", "attention-mechanism", "natural-language-processing"], "topics": ["annotated", "notebook", "python"], "urls": [], "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"], "what_it_is": "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.", "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"], "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"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/annotated-transformer", "repo": "harvardnlp/annotated-transformer", "role": "main", "score": 32}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:10:00.010905+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T17:37:39.106220+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f253666294cb24b5888f1cb0ced0b5a68f769ac89cae7774a944050d0d1a27d3", "fetched_at": "2026-08-28T04:10:00.010905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/harvardnlp/annotated-transformer"}, {"content_hash": "2c95b7c9309cc54b268600a039bbfdd7a36d1d066be21cc6ed2906d3ee9efb6d", "fetched_at": "2026-08-29T08:33:04.824200+00:00", "kind": "homepage", "missing": false, "url": "http://nlp.seas.harvard.edu/annotated-transformer"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:10:00.010905+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T17:37:39.106220+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f253666294cb24b5888f1cb0ced0b5a68f769ac89cae7774a944050d0d1a27d3", "fetched_at": "2026-08-28T04:10:00.010905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/harvardnlp/annotated-transformer"}, {"content_hash": "2c95b7c9309cc54b268600a039bbfdd7a36d1d066be21cc6ed2906d3ee9efb6d", "fetched_at": "2026-08-29T08:33:04.824200+00:00", "kind": "homepage", "missing": false, "url": "http://nlp.seas.harvard.edu/annotated-transformer"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T17:37:39.106220+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f253666294cb24b5888f1cb0ced0b5a68f769ac89cae7774a944050d0d1a27d3", "fetched_at": "2026-08-28T04:10:00.010905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/harvardnlp/annotated-transformer"}, {"content_hash": "2c95b7c9309cc54b268600a039bbfdd7a36d1d066be21cc6ed2906d3ee9efb6d", "fetched_at": "2026-08-29T08:33:04.824200+00:00", "kind": "homepage", "missing": false, "url": "http://nlp.seas.harvard.edu/annotated-transformer"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:10:00.010905+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:10:00.010905+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:10:00.010905+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T17:37:39.106220+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f253666294cb24b5888f1cb0ced0b5a68f769ac89cae7774a944050d0d1a27d3", "fetched_at": "2026-08-28T04:10:00.010905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/harvardnlp/annotated-transformer"}, {"content_hash": "2c95b7c9309cc54b268600a039bbfdd7a36d1d066be21cc6ed2906d3ee9efb6d", "fetched_at": "2026-08-29T08:33:04.824200+00:00", "kind": "homepage", "missing": false, "url": "http://nlp.seas.harvard.edu/annotated-transformer"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:10:00.010905+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:10:00.010905+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T17:37:39.106220+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f253666294cb24b5888f1cb0ced0b5a68f769ac89cae7774a944050d0d1a27d3", "fetched_at": "2026-08-28T04:10:00.010905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/harvardnlp/annotated-transformer"}, {"content_hash": "2c95b7c9309cc54b268600a039bbfdd7a36d1d066be21cc6ed2906d3ee9efb6d", "fetched_at": "2026-08-29T08:33:04.824200+00:00", "kind": "homepage", "missing": false, "url": "http://nlp.seas.harvard.edu/annotated-transformer"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:10:00.010905+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:10:00.010905+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:10:00.010905+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T17:37:39.106220+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f253666294cb24b5888f1cb0ced0b5a68f769ac89cae7774a944050d0d1a27d3", "fetched_at": "2026-08-28T04:10:00.010905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/harvardnlp/annotated-transformer"}, {"content_hash": "2c95b7c9309cc54b268600a039bbfdd7a36d1d066be21cc6ed2906d3ee9efb6d", "fetched_at": "2026-08-29T08:33:04.824200+00:00", "kind": "homepage", "missing": false, "url": "http://nlp.seas.harvard.edu/annotated-transformer"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:10:00.010905+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:10:00.010905+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T17:37:39.106220+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f253666294cb24b5888f1cb0ced0b5a68f769ac89cae7774a944050d0d1a27d3", "fetched_at": "2026-08-28T04:10:00.010905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/harvardnlp/annotated-transformer"}, {"content_hash": "2c95b7c9309cc54b268600a039bbfdd7a36d1d066be21cc6ed2906d3ee9efb6d", "fetched_at": "2026-08-29T08:33:04.824200+00:00", "kind": "homepage", "missing": false, "url": "http://nlp.seas.harvard.edu/annotated-transformer"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T17:37:39.106220+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f253666294cb24b5888f1cb0ced0b5a68f769ac89cae7774a944050d0d1a27d3", "fetched_at": "2026-08-28T04:10:00.010905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/harvardnlp/annotated-transformer"}, {"content_hash": "2c95b7c9309cc54b268600a039bbfdd7a36d1d066be21cc6ed2906d3ee9efb6d", "fetched_at": "2026-08-29T08:33:04.824200+00:00", "kind": "homepage", "missing": false, "url": "http://nlp.seas.harvard.edu/annotated-transformer"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T17:37:39.106220+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f253666294cb24b5888f1cb0ced0b5a68f769ac89cae7774a944050d0d1a27d3", "fetched_at": "2026-08-28T04:10:00.010905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/harvardnlp/annotated-transformer"}, {"content_hash": "2c95b7c9309cc54b268600a039bbfdd7a36d1d066be21cc6ed2906d3ee9efb6d", "fetched_at": "2026-08-29T08:33:04.824200+00:00", "kind": "homepage", "missing": false, "url": "http://nlp.seas.harvard.edu/annotated-transformer"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T17:37:39.106220+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f253666294cb24b5888f1cb0ced0b5a68f769ac89cae7774a944050d0d1a27d3", "fetched_at": "2026-08-28T04:10:00.010905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/harvardnlp/annotated-transformer"}, {"content_hash": "2c95b7c9309cc54b268600a039bbfdd7a36d1d066be21cc6ed2906d3ee9efb6d", "fetched_at": "2026-08-29T08:33:04.824200+00:00", "kind": "homepage", "missing": false, "url": "http://nlp.seas.harvard.edu/annotated-transformer"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 3087, "days_push": 878, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 32, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}