{"adoption": {"forks": 188, "observed_at": "2026-08-28T04:03:37.616678+00:00", "stars": 1111}, "canonical_url": "https://ross.abutalabs.com/products/pytorch-original-transformer", "card": {"archived": false, "artifact_type": "learning-resource", "description": "My implementation of the original transformer model (Vaswani et al.). I've additionally included the playground.py file for visualizing otherwise seemingly hard concepts. Currently included IWSLT pretrained models.", "domain": ["deep-learning", "tutorials"], "enriched": true, "function": ["deep-learning", "machine-learning", "nlp"], "health_score": 20, "homepage": "https://youtube.com/c/TheAIEpiphany", "language": "Jupyter Notebook", "license": "MIT", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["gordicaleksa/pytorch-original-transformer"], "name": "gordicaleksa/pytorch-original-transformer", "platform": ["python"], "pushed_at": "2020-12-27T12:27:21+00:00", "repo": "gordicaleksa/pytorch-original-transformer", "stars": 1111, "tags": ["transformer", "pytorch", "attention", "attention-is-all-you-need", "educational", "machine-translation", "positional-encodings", "jupyter-notebook", "natural-language-processing"], "topics": ["transformer", "transformers", "pytorch-transformer", "pytorch-transformers", "attention", "attention-mechanism", "attention-is-all-you-need", "pytorch", "python", "jupyter", "transformer-tutorial", "deeplearning", "deep-learning", "original-transformer"], "urls": [], "use_cases": ["learn how the original transformer architecture works", "visualize positional encodings and attention concepts", "understand the attention is all you need paper with code", "run a pretrained transformer for machine translation", "study a clean pytorch transformer implementation", "teach deep learning concepts like label smoothing and lr schedules"], "what_it_is": "A PyTorch implementation of the original Transformer model from the 'Attention Is All You Need' paper (Vaswani et al.), designed as a learning resource with well-commented code. It includes a playground.py for visualizing hard-to-grasp concepts like positional encodings and learning rate schedules, plus pretrained IWSLT machine translation models.", "when_to_avoid": ["you need state-of-the-art transformer models or modern LLM architectures", "you want a production-ready library like Hugging Face Transformers for training or inference at scale", "you need active maintenance or support for recent PyTorch versions"], "when_to_choose": ["you want to learn or teach how transformers work from first principles", "you need a readable, well-commented reference implementation rather than a production library", "you want visual explanations of positional encodings and custom learning rate schedules"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/pytorch-original-transformer", "repo": "gordicaleksa/pytorch-original-transformer", "role": "main", "score": 32}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:03:37.616678+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T06:43:23.569497+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3d53bc1714d60169fb3eaf3203d81ca8e6fd2c211916b5ee30081834242adf09", "fetched_at": "2026-08-28T04:03:37.616678+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gordicaleksa/pytorch-original-transformer"}, {"content_hash": "a49038ff34c19648206a718fb552dd0d82ad738f50c134ffad28ceb12d6ad5f0", "fetched_at": "2026-08-29T12:46:59.774534+00:00", "kind": "homepage", "missing": false, "url": "https://youtube.com/c/TheAIEpiphany"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:03:37.616678+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T06:43:23.569497+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3d53bc1714d60169fb3eaf3203d81ca8e6fd2c211916b5ee30081834242adf09", "fetched_at": "2026-08-28T04:03:37.616678+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gordicaleksa/pytorch-original-transformer"}, {"content_hash": "a49038ff34c19648206a718fb552dd0d82ad738f50c134ffad28ceb12d6ad5f0", "fetched_at": "2026-08-29T12:46:59.774534+00:00", "kind": "homepage", "missing": false, "url": "https://youtube.com/c/TheAIEpiphany"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T06:43:23.569497+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3d53bc1714d60169fb3eaf3203d81ca8e6fd2c211916b5ee30081834242adf09", "fetched_at": "2026-08-28T04:03:37.616678+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gordicaleksa/pytorch-original-transformer"}, {"content_hash": "a49038ff34c19648206a718fb552dd0d82ad738f50c134ffad28ceb12d6ad5f0", "fetched_at": "2026-08-29T12:46:59.774534+00:00", "kind": "homepage", "missing": false, "url": "https://youtube.com/c/TheAIEpiphany"}], "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:03:37.616678+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:03:37.616678+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:03:37.616678+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T06:43:23.569497+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3d53bc1714d60169fb3eaf3203d81ca8e6fd2c211916b5ee30081834242adf09", "fetched_at": "2026-08-28T04:03:37.616678+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gordicaleksa/pytorch-original-transformer"}, {"content_hash": "a49038ff34c19648206a718fb552dd0d82ad738f50c134ffad28ceb12d6ad5f0", "fetched_at": "2026-08-29T12:46:59.774534+00:00", "kind": "homepage", "missing": false, "url": "https://youtube.com/c/TheAIEpiphany"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:03:37.616678+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:03:37.616678+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T06:43:23.569497+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3d53bc1714d60169fb3eaf3203d81ca8e6fd2c211916b5ee30081834242adf09", "fetched_at": "2026-08-28T04:03:37.616678+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gordicaleksa/pytorch-original-transformer"}, {"content_hash": "a49038ff34c19648206a718fb552dd0d82ad738f50c134ffad28ceb12d6ad5f0", "fetched_at": "2026-08-29T12:46:59.774534+00:00", "kind": "homepage", "missing": false, "url": "https://youtube.com/c/TheAIEpiphany"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:03:37.616678+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:03:37.616678+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:03:37.616678+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T06:43:23.569497+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3d53bc1714d60169fb3eaf3203d81ca8e6fd2c211916b5ee30081834242adf09", "fetched_at": "2026-08-28T04:03:37.616678+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gordicaleksa/pytorch-original-transformer"}, {"content_hash": "a49038ff34c19648206a718fb552dd0d82ad738f50c134ffad28ceb12d6ad5f0", "fetched_at": "2026-08-29T12:46:59.774534+00:00", "kind": "homepage", "missing": false, "url": "https://youtube.com/c/TheAIEpiphany"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:03:37.616678+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:03:37.616678+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T06:43:23.569497+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3d53bc1714d60169fb3eaf3203d81ca8e6fd2c211916b5ee30081834242adf09", "fetched_at": "2026-08-28T04:03:37.616678+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gordicaleksa/pytorch-original-transformer"}, {"content_hash": "a49038ff34c19648206a718fb552dd0d82ad738f50c134ffad28ceb12d6ad5f0", "fetched_at": "2026-08-29T12:46:59.774534+00:00", "kind": "homepage", "missing": false, "url": "https://youtube.com/c/TheAIEpiphany"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T06:43:23.569497+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3d53bc1714d60169fb3eaf3203d81ca8e6fd2c211916b5ee30081834242adf09", "fetched_at": "2026-08-28T04:03:37.616678+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gordicaleksa/pytorch-original-transformer"}, {"content_hash": "a49038ff34c19648206a718fb552dd0d82ad738f50c134ffad28ceb12d6ad5f0", "fetched_at": "2026-08-29T12:46:59.774534+00:00", "kind": "homepage", "missing": false, "url": "https://youtube.com/c/TheAIEpiphany"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T06:43:23.569497+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3d53bc1714d60169fb3eaf3203d81ca8e6fd2c211916b5ee30081834242adf09", "fetched_at": "2026-08-28T04:03:37.616678+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gordicaleksa/pytorch-original-transformer"}, {"content_hash": "a49038ff34c19648206a718fb552dd0d82ad738f50c134ffad28ceb12d6ad5f0", "fetched_at": "2026-08-29T12:46:59.774534+00:00", "kind": "homepage", "missing": false, "url": "https://youtube.com/c/TheAIEpiphany"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T06:43:23.569497+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3d53bc1714d60169fb3eaf3203d81ca8e6fd2c211916b5ee30081834242adf09", "fetched_at": "2026-08-28T04:03:37.616678+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gordicaleksa/pytorch-original-transformer"}, {"content_hash": "a49038ff34c19648206a718fb552dd0d82ad738f50c134ffad28ceb12d6ad5f0", "fetched_at": "2026-08-29T12:46:59.774534+00:00", "kind": "homepage", "missing": false, "url": "https://youtube.com/c/TheAIEpiphany"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2144, "days_push": 2075, "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}}