/annotated-transformer

http://nlp.seas.harvard.edu/2018/04/03/attention.html

Primary LanguageJupyter NotebookMIT LicenseMIT

The Annotated Transformer

Code for The Annotated Transformer blog post:

http://nlp.seas.harvard.edu/2018/04/03/attention.html


We, SkoltechNLP group, revisited this notebook in April 2021 and made some adjusments to make it runnable like "Run All Cells" with updated required packages. Open In Colab

Aslo, we add some clarifing images from the amazing resources about Transformers that emerged during these years:

We believe that will add some additional understanding of the main idea and code. Enjoy your Transformer!