Dive into Deep Learning Slides are at http://courses.d2l.ai The book is at http://d2l.ai 5. Attention and Transformers 5.1 Attention Mechanism 5.2 Transformers 5.3 BERT and friends
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.