Skip to main content
Back to trending

pytorch-original-transformer

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.

  • transformer
  • transformers
  • pytorch-transformer
  • pytorch-transformers
  • attention
  • attention-mechanism
  • attention-is-all-you-need
  • pytorch
  • python
  • jupyter
  • transformer-tutorial
  • deeplearning
  • deep-learning
  • original-transformer
View on GitHub
Stars
1,118
Forks
187
+ today
+1
Created
6y

Ranking data as of November 24, 2026 (UTC).

Star History

Today, hour by hour

1,118 stars
01

Overview

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. It ranks #1862 on GitTiger, gaining +1 star on November 24, 2026 (UTC).

The project is written in Jupyter Notebook and has 187 forks. It was created 6y ago.

Installation
git clone https://github.com/gordicaleksa/pytorch-original-transformer.git
cd pytorch-original-transformer
# see README for setup