The math behind Attention: Keys, Queries, and Values matrices
YouTube Viewers YouTube Viewers
144K subscribers
178,501 views
0

 Published On Aug 31, 2023

This is the second of a series of 3 videos where we demystify Transformer models and explain them with visuals and friendly examples.

Video 1: The attention mechanism in high level    • The Attention Mechanism in Large Lang...  
Video 2: The attention mechanism with math (this one)
Video 3: Transformer models    • What are Transformer Models and how d...  

If you like this material, check out LLM University from Cohere!
https://llm.university

00:00 Introduction
01:18 Recap: Embeddings and Context
04:46 Similarity
11:09 Attention
20:46 The Keys and Queries Matrices
25:02 The Values Matrix
28:41 Self and Multi-head attention
33:54: Conclusion

show more

Share/Embed