The Annotated Transformer

transformerspytorchteachingattention

Abstraction: Line-by-line runnable PyTorch implementation of Attention Is All You Need

Key points:

Connections: Transformers · Attention Mechanism · Self Attention · Harvard NLP

Source: https://nlp.seas.harvard.edu/annotated-transformer/