gordicaleksa/pytorch-original-transformer resource
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. 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-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2144
- days_rel: n/a
- days_push: 2075
- n_releases_24m: 0
Adoption not part of the score
1111 stars · 188 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
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.
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
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
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
Facets
learning-resource · maturity maintenance
deep-learning machine-learning nlp deep-learning tutorials python transformer pytorch attention attention-is-all-you-need educational machine-translation positional-encodings jupyter-notebook natural-language-processing
2 sources
- readme: https://github.com/gordicaleksa/pytorch-original-transformer · fetched 2026-08-28 · 3d53bc1714d6
- homepage: https://youtube.com/c/TheAIEpiphany · fetched 2026-08-29 · a49038ff34c1
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| gordicaleksa/pytorch-original-transformer | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="gordicaleksa/pytorch-original-transformer")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem