Visualizing Attention, a Transformer’s Heart | Chapter 6, Deep Learning
Demystifying attention, the key mechanism inside transformers and LLMs.
Instead of sponsored ad reads, these lessons are funded directly by viewers:
Special thanks to these supporters: #thanks
An equally valuable form of support is to simply share the videos.
Demystifying self-attention, multiple heads, and cross-attention.
Instead of sponsored ad reads, these lessons are funded directly by viewers:
The first pass for the translated subtitles here is machine-generated, and therefore notably imperfect. To contribute edits or fixes, visit
------------------
Here are a few other relevant resources
Build a GPT from scratch, by Andrej Karpathy
If you want a conceptual understanding of language models from the ground up, @vcubingx just started a short series of videos on the topic:
If you’re interested in the herculean task of interpreting what these large networks might actually be doing, the Transformer Circuits posts by Anthropic are great. In particular, it was only after reading one of these that I started thinking of the combination of the value and output matrices as being a combined low-rank map from the embedding space to itself, which, at least in my mind, made things much clearer than other sources.
Site with exercises related to ML programming and GPTs
History of language models by Brit Cruise, @ArtOfTheProblem
An early paper on how directions in embedding spaces have meaning:
------------------
Timestamps:
0:00 - Recap on embeddings
1:39 - Motivating examples
4:29 - The attention pattern
11:08 - Masking
12:42 - Context size
13:10 - Values
15:44 - Counting parameters
18:21 - Cross-attention
19:19 - Multiple heads
22:16 - The output matrix
23:19 - Going deeper
24:54 - Ending
------------------
These animations are largely made using a custom Python library, manim. See the FAQ comments here:
#manim
All code for specific videos is visible here:
The music is by Vincent Rubinetti.
------------------
3blue1brown is a channel about animating math, in all senses of the word animate. If you’re reading the bottom of a video description, I’m guessing you’re more interested than the average viewer in lessons here. It would mean a lot to me if you chose to stay up to date on new ones, either by subscribing here on YouTube or otherwise following on whichever platform below you check most regularly.
Mailing list:
Twitter:
Instagram:
Reddit:
Facebook:
Patreon:
Website:
6 просмотров
449
142
7 месяцев назад 00:03:16 1
Sunfall - Broken Mirrors // Lies (Official Music Video)
7 месяцев назад 00:03:22 1
Ananda Project - Where The Music Takes You (King Street Sounds Visualizer)
7 месяцев назад 00:12:53 5
Tracking and merging 3D objects into footage in Cinema 4D (C4D)
7 месяцев назад 01:00:19 1
Triwizard Maze [ASMR] Harry potter Goblet of fire inspired Ambience 🌲Wind blowing ✨ Relax Study Read
7 месяцев назад 01:01:04 1
Merpeople in the Black Lake [ASMR] Harry potter & the Goblet of Fire inspired Ambience⚡Water Sounds
7 месяцев назад 00:27:14 1
But what is a GPT? Visual intro to transformers | Chapter 5, Deep Learning
7 месяцев назад 00:05:13 1
ACTIVATION PORTALS 8 APRIL 2024 ECLIPSE
7 месяцев назад 00:21:27 1
АСМР Альтушка с госуслуг изменит твою жизнь | Ролевая игра
7 месяцев назад 00:01:57 1
ZillaKami - NOT WORTH IT (Official Music Video)
7 месяцев назад 00:01:09 1
Popeye The Sailor Man - Teaser Trailer | Conor McGregor
7 месяцев назад 00:01:09 1
Imagining SHREK™ Massive Open World Game
7 месяцев назад 00:01:58 1
Donald Trump Solar Eclipse Ad ☀️ | #blux
8 месяцев назад 00:10:36 1
Ванлав | Oneluv | Animated Short Film
8 месяцев назад 00:58:32 1
Progressive House & Melodic Techno Mix 2024 | Miss Monique • RÜFÜS DU SOL • Olivier Giacomotto
8 месяцев назад 01:31:01 1
deadmau5 pres. mau5trap radio 224: we are friends vol. 11
8 месяцев назад 00:26:10 1
Visualizing Attention, a Transformer’s Heart | Chapter 6, Deep Learning
8 месяцев назад 00:04:45 1
HELLOWEEN - I Want Out (Official Music Video)
8 месяцев назад 00:04:38 1
MODERN Animated PowerPoint Slide Tutorial
8 месяцев назад 08:37:09 1
⋆ ˚🍄🧚♀️。 Fairy Village in the Forest 🍁˚。 Ambience & Soft Music 🍄 Nature sounds ASMR
8 месяцев назад 00:30:17 1
Rio de Janeiro, BRAZIL — Best Sunset in the World【4K】🌞 🇧🇷