Transformers (how LLMs work) explained visually | DL5

  Рет қаралды 4,093,644

3Blue1Brown

3Blue1Brown

Күн бұрын

Пікірлер
@3blue1brown
@3blue1brown 8 ай бұрын
Edit: The finalized version of the next chapter is out kzbin.info/www/bejne/m37PqWice7Oij8U Early feedback on video drafts is always very important to me. Channel supporters always get a view of new videos before their release to help inform final revisions. Join at 3b1b.co/support if you’d like to be part of that early viewing group.
@bbrother92
@bbrother92 8 ай бұрын
@3Blue1Brown thanks explaining these things - it is very hard for web programmer to undestand math
@JohnSegrave
@JohnSegrave 8 ай бұрын
Grant, this is so good! I've worked in ML about 8 years and this is one of the best descriptions I've seen. Very nicely done. Big 👍👍👍
@deker0954
@deker0954 8 ай бұрын
Is this worth understanding?
@bbrother92
@bbrother92 8 ай бұрын
@@JohnSegrave sir, could you recomend video analysis framework any video description model?
@didemyldz1317
@didemyldz1317 8 ай бұрын
Could you share the name of the model that is used for text-to-speech generation ? Me and my teammate are working on a Song Translator as a senior design project. This might be very helpful. Thanks in advance :)
@iau
@iau 8 ай бұрын
I graduated from Computer Science in 2017. Back then, the cutting edge of ML were Recurrent Neural Networks, in which I based my thesis. This video (and I'm sure the rest of this series) just allowed me to catch up to years of advancements in so little time. I cannot describe how important your teaching style is to the world. I've been reading articles, blogs, papers on embeddings and these topics for years now and I never got it quite like I got it today. In less than 30 minutes. Imagine a world in which every teacher taught like you. We would save millions and millions of man hours every hour. You truly have something special with this channel and I can only wish more people started imitating you with the same level of quality and care. If only this became the standard. You'd deserve a Noble Prize for propelling the next thoustand Nobel Prizes.
@lucascorreaaa
@lucascorreaaa 8 ай бұрын
Second that!
@kyo250996
@kyo250996 8 ай бұрын
Same, I did a thesis about vectorize word back in 2017 and no one ever talked about the whole vector of word gives rise to meaning and context when you generate phrases. Too bad since noone was interested in ML back then, I leaned on web development and drop the ML :(
@iankrasnow5383
@iankrasnow5383 8 ай бұрын
Funny enough, the other 6 videos in this series all came out in 2017, so you probably didn't miss much.
@XMysticHerox
@XMysticHerox 8 ай бұрын
Well transformers were first developed in 2017 so it was the cutting edge exactly when you graduated ^^
@rock_sheep4241
@rock_sheep4241 8 ай бұрын
This is explained in layman terms, but in reality is more complicated than this
@billbill1235
@billbill1235 8 ай бұрын
I was trying to understand chatGPT through videos and texts on the Internet. I always said: I wish 3b1b releases a video about it, it's the only way for someone inexperienced to understand, and here it is. Thank you very much for your contributions to youtube!!
@lmao8207
@lmao8207 8 ай бұрын
no even the other videos are kinda meh, even if youre not inexperienced because they dont go in depth, i feel here people get a nice understanding of the concepts captured by the models instead of just the architecture of the models
@goldeer7129
@goldeer7129 8 ай бұрын
It's kind of true, but if I had to recommend a good place to actually understand transformers and even other machine learning things I would definitely recommend StatQuest, its levels of clearly explaining what's going on are very high. But I'm also very excited to see how 3B1B is going to render all that visually as always
@himalayo
@himalayo 8 ай бұрын
I was also just looking into transformers due to their extreme takeover in computer vision!
@baconheadhair6938
@baconheadhair6938 8 ай бұрын
shoulda just asked chatgpt
@ironmancloud9759
@ironmancloud9759 8 ай бұрын
NLP specialization by Andrew covered everything 😅
@DynestiGTI
@DynestiGTI 8 ай бұрын
Grant casually uploading the best video on Transformers on KZbin
@drgetwrekt869
@drgetwrekt869 8 ай бұрын
i was expecting froggin electromagnets to be honest :-)
@brandonmoore644
@brandonmoore644 8 ай бұрын
This video was insanely good!
@shoam2103
@shoam2103 8 ай бұрын
Even having a basic understanding of what it is, this was still extremely helpful!
@yigitpolat
@yigitpolat 8 ай бұрын
yeah but it did not talk about transformers in this chapter
@stefchristensen47
@stefchristensen47 8 ай бұрын
I wish I could retweet this post.
@metapoynter
@metapoynter 3 ай бұрын
The best lecture I have ever seen on the intro to Transformers. These videos complement the book "Build a Large Language Model (From Scratch) - Sebastian Raschka" really well.
@haorancheng4870
@haorancheng4870 8 ай бұрын
I listened to my professor explaining the crazy equation of softmax for a semester already, and you explained it so well with how temperature also plays a role there. Big RESPECT!
@Silent_Knife
@Silent_Knife 8 ай бұрын
The return of the legend! This series is continuing, that is the best surprise of KZbin, thanks Grant, you have no idea how much the young population of academia is indebted to you.
@kikiroy5178
@kikiroy5178 8 ай бұрын
I'm 26, young engineer. Thinking the same. Well said.
@youonlytubeonce
@youonlytubeonce 8 ай бұрын
I liked your comment because I'm sure you're right but don't be ageist! 😊 Us olds love him too!
@samad.chouihat4222
@samad.chouihat4222 8 ай бұрын
Young and seniors alike
@robertwilsoniii2048
@robertwilsoniii2048 7 ай бұрын
And by logic, Grant is indebted to his 2015 era Stanford education. That was a high point in the faculty and curriculum in general there.
@tempo511
@tempo511 8 ай бұрын
The fact that meaning behind tokens is embedded into this 12000 dimensional space, and you get relationships in terms of coordinates and direction, that exists across topics is mind blowing. Like, Japan -> sushi is similar to Germany -> bratwurst is just so darn neat
@amarissimus29
@amarissimus29 8 ай бұрын
And it makes the absurdly ham fisted model tampering behind debacles like the Gemini launch look even more absurd. I can hear the troglodytes mobbing in the nth dimension.
@dayelu2679
@dayelu2679 8 ай бұрын
I‘ve come to this realization long time ago then I want to find isomorphic structures of concepts across different disciplines
@TheKoekiemonster1234
@TheKoekiemonster1234 8 ай бұрын
@@dayelu2679🤓
@stefchristensen47
@stefchristensen47 8 ай бұрын
You can actually try this out in your nearest large language model, like ChatGPT, CoPilot, Gemini, or Mistral. Just ask it to do vector math on the words. Since there isn't a predefined vector word calculus in English, the LLM defaults to just using a version of its own internal representation, and so it can eke out pretty results. I was able to duplicate Hitler - Germany + Italy = Mussolini and sushi - Japan + Germany = sausage (or bratwurst, bother score highly) in GPT-3.5-Turbo Complete. It also figured out sushi - Japan + Lebanon = shawarma; sushi - Japan + Korea = kimchi; Hitler - Germany + Spain = Franco; and Hitler - Germany + Russia = Stalin.
@Flako-dd
@Flako-dd 8 ай бұрын
Super disappointed. The German Sushi is called Rollmops.
@nicholaitukanov1162
@nicholaitukanov1162 8 ай бұрын
I have been working on transformers for the past few years and this is the greatest visualization of the underlying computation that I have seen. Your videos never disappoint!!
@brian8507
@brian8507 8 ай бұрын
So if we "stop" you... then we avoid judgement day? We should meet for coffee
@giacomobarattini1130
@giacomobarattini1130 8 ай бұрын
​@@brian8507 "judgement day" 😭
@beProsto
@beProsto 8 ай бұрын
​@@brian8507 bro's got underlying psychological issues
@talharuzgarakkus7768
@talharuzgarakkus7768 8 ай бұрын
I agree with you . Visualization is perfect way to understanding transformer architecture. Specifically attention mechanism
@jawokenn8766
@jawokenn8766 8 ай бұрын
@@giacomobarattini1130its later than you thinj
@fvsfn
@fvsfn 4 ай бұрын
I am a math teacher and one of my classes is about AI. I am making watching this mini-series a mandatory requirement. This is just what my students need. Thanks for the exceptional quality of the content on your channel.
@StacyMcCabe
@StacyMcCabe 3 ай бұрын
What class and grade do you teach?
@fvsfn
@fvsfn 3 ай бұрын
It is a master 2 class on the mathematical foundations of AI.
@goatknight777
@goatknight777 Ай бұрын
This channel also has a linear algebra course which is also pretty good!
@ananthkamath1995
@ananthkamath1995 2 ай бұрын
Your teaching is an incredible way to stimulate my curiosity
@parenchyma
@parenchyma 8 ай бұрын
I don't even know how many times I'm going to rewatch this.
@chlodnia
@chlodnia 8 ай бұрын
True
@RaoBlackWellizedArman
@RaoBlackWellizedArman 8 ай бұрын
3B1B doens't need to be saved in watch later folder because all his videos are worth watching later.
@synthclub
@synthclub 8 ай бұрын
What will you set your weights n biases too?
@oofsper
@oofsper 8 ай бұрын
same
@arthurgames9610
@arthurgames9610 4 ай бұрын
Me fr
@yashizuko
@yashizuko 8 ай бұрын
Its astonishing, amazing that this kind of info and explaination quality is available for free, this is way better than a University would explain it
@lonnybulldozer8426
@lonnybulldozer8426 8 ай бұрын
Universities are buildings. Buildings can't talk. Therefore, they cannot explain.
@DaxSudo
@DaxSudo 8 ай бұрын
Writing my first academically published paper on AI rn and I have to say as a engineer in this space, this is one of the most complete and well nuanced explanations of these tools. Gold, nay platinum standard for educational content on this topic for decades to come.
@mahdimoradkhani6610
@mahdimoradkhani6610 7 ай бұрын
The genius in what you do is taking complicated concepts and making them easy to digest. That's truly impressive!
@xiangzhang5279
@xiangzhang5279 8 ай бұрын
I have always been blown away by how great your visualization is for explaining ML concepts. Thanks a lot!
@lucasamadsen
@lucasamadsen 8 ай бұрын
2 years ago I started studying transformers, backpropagation and the attention mechanism. Your videos were a corner stone for my understanding of those concepts! And now, partially thanks to you, I can say: “yeah, relatively smooth to understand”
@lewebusl
@lewebusl 8 ай бұрын
This is heaven for visual learners. Animations are correlated smoothly with the intended learning point ...
@gorgolyt
@gorgolyt 8 ай бұрын
There's no such thing as visual learners. Other than the blind, all humans are visual creatures. It's heaven for anyone who wants to learn.
@lewebusl
@lewebusl 8 ай бұрын
@@gorgolyt You are right. The human get input from 5 senses , but 90 percent of the brain receptors are directly connected to optical and auditory nerves. That is where the visual dominates the other senses ... For blind people the auditory dominates...
@rinkashikachi
@rinkashikachi 6 ай бұрын
@@lewebusl you said an obvious fact and then made a nonsensical bs conclusion out of it. there are no visual learners and it is a proven scientific fact
@HydrogenAlpha
@HydrogenAlpha 6 ай бұрын
@@gorgolyt Yeah Veritasium did an excellent video debunking the pop-science nonsense behind this very commonly held misconception / fake science.
@keesdekarper
@keesdekarper 8 ай бұрын
This video is gonna blow up. The visualizations will help many people that aren't familiar with NN's or Deep Learning to at least grasp a little bit what is happening under the hood. And with the crazy popularity of LLM's nowadays, this will for sure interest a lot of people
@TheScarvig
@TheScarvig 8 ай бұрын
as someone who gave a lot of fellow students lessons in stem field classes i can tell you that the sheer amount of numbers arranged in matrices will immediately shut down the average persons brain...
@lesselp
@lesselp 8 ай бұрын
No, normal people just want to party.
@kalashshah6234
@kalashshah6234 8 ай бұрын
This is absolutely one of the best videos for explaining the workings of LLMs. Love the visualisation and the innate ease with which the concepts were explained. Hats off!!
@ogginger
@ogginger 8 ай бұрын
You are such an AMAZING teacher. I feel like you've really given thought to the learners perception and are kind enough to take the time and address asides and gotchas while you meticulously build components and piece them together all with a very natural progression that's moving towards "something" (hopefully comprehension). Thank you so much for your time, effort, and the quality of your work.
@shubhamz2464
@shubhamz2464 8 ай бұрын
This series should continue. I thought it was dead after the 4th video. Lots of love and appreciation for your work
@The_Quaalude
@The_Quaalude Ай бұрын
These videos probably take a long time to make
@chase_like_the_bank
@chase_like_the_bank 8 ай бұрын
You *must* turn the linguistic vector math bit into a short. -Japan+sushi+germany=bratwurst is pure gold.
@XMysticHerox
@XMysticHerox 8 ай бұрын
I am slightly offended it did not result in "Fischbrötchen".
@marshmellominiapple
@marshmellominiapple 8 ай бұрын
@@XMysticHerox It was trained in English words only.
@XMysticHerox
@XMysticHerox 8 ай бұрын
@@marshmellominiapple ChatGPT supports 95 languages. Not all equally well. But as a German yes it works just as well with german as it does with english.
@-Meric-
@-Meric- 8 ай бұрын
@@marshmellominiapple Word2Vec and other vector embeddings of words like glove or whatever don't care about language. They don't "understand" the meaning of the words, they just eventually find patterns in unstructured data to create the embeddings. It works in any language and GPT has a ton of other languages in its training data
@stefchristensen47
@stefchristensen47 8 ай бұрын
You can actually try this out in your nearest large language model, like ChatGPT, CoPilot, Gemini, or Mistral. Just ask it to do vector math on the words. Since there isn't a predefined vector word calculus in English, the LLM defaults to just using a version of its own internal representation, and so it can eke out pretty results. I was able to duplicate Hitler - Germany + Italy = Mussolini and sushi - Japan + Germany = sausage (or bratwurst, bother score highly) in GPT-3.5-Turbo Complete. It also figured out sushi - Japan + Lebanon = shawarma; sushi - Japan + Korea = kimchi; Hitler - Germany + Spain = Franco; and Hitler - Germany + Russia = Stalin.
@JustinLe
@JustinLe 8 ай бұрын
here's to hoping this is not an April fools
@anuragpranav
@anuragpranav 8 ай бұрын
it is - you would be a fool to not watch this video
@tinku-n8n
@tinku-n8n 8 ай бұрын
It's 2nd April here
@TheUnderscore_
@TheUnderscore_ 8 ай бұрын
@@anuragpranavEven if you already know the subject? 😂
@me0101001000
@me0101001000 8 ай бұрын
@@TheUnderscore_ it's never a bad idea to review what you know
@anuragpranav
@anuragpranav 8 ай бұрын
@@TheUnderscore_ you are almost certainly limiting what you might know with that approach
@luca_previ0o
@luca_previ0o 2 ай бұрын
I love how clean and natural the transaction from “the difference between men and women is almost the same as the one between all kinds of gender-related words” to “the difference between Italy and Germany is almost the same as the one from the vector representation of a certain couple of very powerful, influent and somewhat worldwide famous moustached-people that lived in those countries in the 1940s” was. Being italian myself, this is utterly hilarious, even more than it could have been alone. This is a brilliant show of how simple things can be if explained in a very simple way. You hide some details that are tough to explain as they are, building step by step simple analogies that help you through a robust comprehension of the overall topic. And this, my friends, is a brilliant showoff of teaching knowledge at its finests. This man is just perfect for this job. Very good work indeed.
@claudiazeng5668
@claudiazeng5668 6 ай бұрын
I am a non-AI software engineer and I’ve been watching multiple transformer and LLM talks from OpenAI, Stanford online, NLP PhDs, and even some AI founding researchers. Some with code, some with the encoder-decoder diagram, some with Attention is all you need paper, some with ML histories. Still, visualization helps the best when incorporating everything in mind. It’s just beautiful, and love the way you organize the academic terminologies. Salute to this series 100%!
@PiercingSight
@PiercingSight 8 ай бұрын
Straight up the best video on this topic. The idea that the dimensions of the embedding space represent different properties of a token that can be applied across tokens is just SO cool!
@JonnySolomon
@JonnySolomon 8 ай бұрын
i felt that
@MagicGonads
@MagicGonads 8 ай бұрын
orienting and ordering the space (called the 'latent' space) so that the most significant directions come first is called 'principal component analysis' (useful for giving humans the reigns to some degree since we get to turn those knobs and see something interesting but vaguely predictable happen)
@andrewdunbar828
@andrewdunbar828 8 ай бұрын
I agree. I starting writing about that in a comment about 2 seconds into the video before I knew how well he was going to cover it since it's usually glossed over way too much in other introductions to these topics.
@avishshah2186
@avishshah2186 8 ай бұрын
You made my day!! This topic was taught at my grad school and I needed some intuition today and you have uploaded the video!!! It seems you heard me!!Thanks a ton!! Please upload video of Vision Transformers, if possible
@punkdigerati
@punkdigerati 8 ай бұрын
I appreciate that you explain tokenization correctly and the usefulness of simplifying it. Many explanations skip all that and just state that the tokens are words.
@pw7225
@pw7225 8 ай бұрын
Apart from the fact that tokens CAN actually be longer than a word, too. :) Sub-word token does not mean that tokens must be smaller than a word.
@ratvomit874
@ratvomit874 8 ай бұрын
There is a related idea here in how Roombas navigate houses. They clearly are forming a map of your house in their memory, but there is no guarantee they see it the same way we do i.e. the different zones they see in your house may not correspond nicely to the actual rooms in the house. In the end, though, it doesn't really matter, as long as the job gets done correctly
@jaafars.mahdawi6911
@jaafars.mahdawi6911 8 ай бұрын
Man! You never fail to enlighten, entertain, and inspire us, nor do we get enough of your high-quality, yet very digestible, content! Thank you, Grant!
@setarehami23
@setarehami23 5 ай бұрын
Shame on Ruhollah Khomeini! He destroyed my country. He is a terrorist; a wolf in sheep's clothing.
@bewaterbewater
@bewaterbewater 8 ай бұрын
This is by far the most organized explanation i've seen about transformers.
@Kargalagan
@Kargalagan 8 ай бұрын
I wish i had a friend as passionate as this channel is. It's like finding my family I've always wanted to have
@katech6020
@katech6020 8 ай бұрын
I wish the same thing
@sumedh-girish
@sumedh-girish 8 ай бұрын
become friends already you both
@TheXuism
@TheXuism 8 ай бұрын
here we are 3b1bro now
@cagataydemirbas7259
@cagataydemirbas7259 8 ай бұрын
Lets become friends
@NishantSingh-zx3cd
@NishantSingh-zx3cd 7 ай бұрын
Be that friend to the younger people in your family.
@Mutual_Information
@Mutual_Information 8 ай бұрын
Grant shows just how creative you can get with linear algebra. Who would have guessed language (?!) was within its reach?
@abrokenmailbox
@abrokenmailbox 8 ай бұрын
Look up "Word2Vec", it's an interestingly explored idea.
@Jesin00
@Jesin00 8 ай бұрын
Linear algebra would not be enough, but a nonlinear activation function (even one as simple as max(x, 0)) makes it enough to approximate anything you want just by adding more neurons!
8 ай бұрын
Given words are descriptors and numbers are just arbitrarily precise adjectives... aka descriptions...
@Mutual_Information
@Mutual_Information 8 ай бұрын
@@Jesin00 Yes, lin alg alone isn't enough.
@psychic8872
@psychic8872 8 ай бұрын
Well ML uses linear algebra and he just explains it
@TheMuffinMan
@TheMuffinMan 8 ай бұрын
Im a mechanical engineering student, but I code machine learning models for fun. I was telling my girlfriend just last night that your series on dense neural networks is the best to gain an intuitive understanding on the basic architecture of neural networks. You have no idea what a pleasant surprise it was to wake up to this!
@baconheadhair6938
@baconheadhair6938 8 ай бұрын
good man
@keesdekarper
@keesdekarper 8 ай бұрын
It doesn't have to be just for fun. I was also in Mechanical Engineering, picked a master in control theory. And now I get to use Deep learning and NN's for intelligent control systems. Where you learn a model or a controller by making use of machine learning
@timur.shhhhh
@timur.shhhhh 27 күн бұрын
finally this channel has an audio track in another language
@SreenivasNaalla
@SreenivasNaalla 4 ай бұрын
Thanks! This is nothing when compared to what has been taught in this channel when institutions charge hefty amount and able to explain the concepts visually
@codediporpal
@codediporpal 8 ай бұрын
<a href="#" class="seekto" data-time="1125">18:45</a> This the the clearest layman explanation of how attention works that I've ever seen. Amazing.
@jerryanyu8467
@jerryanyu8467 8 ай бұрын
Thank you! You're so late 3Blue1Brown, it took me 10 hours of videos + blogs last year to understand what a transformer is! This is the long waited video! I'm sending this to all my friends.
@SidharthSisawesome
@SidharthSisawesome 8 ай бұрын
The idea of describing a vector basis as a long list of questions you need to answer is exactly the teaching tool I needed in my kit!! I love that perspective!
@Tonya-Haines
@Tonya-Haines 7 ай бұрын
The fact that meaning behind tokens is embedded into this 12000 dimensional space, and you get relationships in terms of coordinates and direction, that exists across topics is mind blowing. Like, Japan -> sushi is similar to Germany -> bratwurst is just so darn neat
@krishivsinghal1566
@krishivsinghal1566 8 ай бұрын
I think what makes these videos so good is just how naturally thought-provoking and inspiring they are
@1bird_d
@1bird_d 8 ай бұрын
I always thought when people in the media say, "NO ONE actually understands how chat GPT works" they were lying, but no one was ever able to explain it in layman's terms regardless. I feel like this video is exactly the kind of digestible info that people need, well done.
@alexloftus8892
@alexloftus8892 8 ай бұрын
Machine learning engineer here - plenty of people understand how the architecture of chatGPT works on a high level. When people in the media say that, what they mean is that nobody understands the underlying processing that the parameters are using to go from a list of tokens to a probability distribution over possible next tokens.
@kevinscales
@kevinscales 8 ай бұрын
It's not a lie, it's just not very precise. No one can tell you exactly why one model decided the next word is "the" while another decided the next word is "a" and in that sense no one understands how a particular model works. The mechanism for how you train and run the model are understood however.
@lolololo-cx4dp
@lolololo-cx4dp 8 ай бұрын
​@@kevinscalesyeah just like any deep ANN
@metachirality
@metachirality 8 ай бұрын
Think of it as the difference between knowing how genetics and DNA and replication works vs. knowing why a specific nucleotide in the human genome is adenine rather than guanine. There is an entire field of machine learning research dedicated to understanding how neural nets work beyond the architecture called AI interpretability.
@KBRoller
@KBRoller 8 ай бұрын
No one fully understands what the learned parameters mean. Many people understand the process by which they were learned.
@owenleynes7086
@owenleynes7086 8 ай бұрын
this channel is so good at making math interesting, all my friends think im wack for enjoying math videos but its not hard to enjoy when you make them like this
@eloyfernandez8668
@eloyfernandez8668 8 ай бұрын
The best video explaining the transformer architecture that I've seen so far... and there are really good videos covering this topic. Thank you!!
@skinwalker_
@skinwalker_ 5 күн бұрын
I can not explain how apperciative I am of this video and how the combination of visuals with the explanation explain what goes into AI. I am a software engeneer with many years this explanation is the best I have ever seen or read. 👍👏
@CODE7X
@CODE7X 8 ай бұрын
Im in highschool, and i only knew broken pieces of how it works , but you really connected all the pieces together and added the missing ones
@ai_outline
@ai_outline 8 ай бұрын
We need more Computer Science education like this! Amazing 🔥
@examforge
@examforge 8 ай бұрын
Honestly I hope that in future, AI can produce such great content. This will probably tend to take a couple of years more, but I guess its possible. Even better: You got your own Curriculum based on your strengthens and weaknesses. For me this would be a combination of fireship and 3blue1brown content...
@cone10ceramics
@cone10ceramics 8 ай бұрын
I know the material of this chapter very well. Still, I watched it in its entirety just for the pleasure of watching a masterful presentation, the restful and authoritative cadence of the voice, and the gorgeous animation. Well done, Grant, yet again.
@Skyace13
@Skyace13 8 ай бұрын
So you’re telling me computer models can quantify “a few” or “some” based on how close the value is to a given word of a number from its usage from training data? I love this
@andrewdunbar828
@andrewdunbar828 8 ай бұрын
Well, a bit.
@XMysticHerox
@XMysticHerox 8 ай бұрын
Well it can encode any semantic meaning only really limited by the number of parameters and quality of training data.
@gpt-jcommentbot4759
@gpt-jcommentbot4759 8 ай бұрын
@@XMysticHerox quantity*
@conanf129
@conanf129 Ай бұрын
I graduated with a masters in Machine learning 10 years ago, and wrote a paper on filtering outliers from results of a genetic algorithms implementation. I worked as a software developer since then and now that I am trying to go back to the field, it felt like I had much to catch up. Your videos make my life easier. much thanks!
@Ari_speaks
@Ari_speaks 2 ай бұрын
Your videos are amazing! Anyone that can explain large complex subjects into short, fun, visual smart videos has master the subject. Thank you for sharing your knowledge with the world 🌎
@connorgoosen2468
@connorgoosen2468 8 ай бұрын
This couldn't have come at a better time for me! I'm very excited for this continuation of the series. Thanks Grant!
@shaqtaku
@shaqtaku 8 ай бұрын
I can't believe Sam Altman has become a billionaire just by multiplying some matrices
@Dr.Schnizzle
@Dr.Schnizzle 8 ай бұрын
You'd be surprised at how many billionaires got there from multiplying some matrices
@tiborsaas
@tiborsaas 8 ай бұрын
It's too much reduction, he added value on a higher level. But yeah, when you look deep enough, everything stops looking like magic.
@FinnishSuperSomebody
@FinnishSuperSomebody 8 ай бұрын
@@tiborsaas And that is a good thing in many cases, it casts away illogical fears when you understand that there is no any kind of magic or thinking behind this. In practice it is just overhpyed guessing machine what word normally might come after X.
@kylev.8248
@kylev.8248 8 ай бұрын
@@FinnishSuperSomebody this concept comes from 2017. We should actually be very very worried and keeping our eye closely on the progress that AI is making. The amount of progress they have made since the 2017 paper 📝 “Attention is all you need “ is insane.
@TheRevAlokSingh
@TheRevAlokSingh 8 ай бұрын
He doesn’t own any shares in OpenAI. His money is from before
@MaxGuides
@MaxGuides 8 ай бұрын
Amazing work, your simple explanations in other videos in this series really helped me get a better understanding of what my masters classes were covering. Glad to see you’re continuing this series! ❤
@y337
@y337 8 ай бұрын
This guy taught me how to build a neural network from scratch, I was waiting for this video, I even posted a request for it in the subreddit for this channel. I’m very glad this finally exists
@junjalapeno7773
@junjalapeno7773 8 ай бұрын
As someone working in IT, I can imagine how much blood, sweat and tears were involved in coding and testing this, the number of meetings and arguments with the product owner, project manager and the management to come up with this complex and beautiful infrastructure. We can't even deploy a fucking CRM in peace
@StephaneDesnault
@StephaneDesnault 8 ай бұрын
Thank you so much for the immense work and talent that goes into your videos!
@RyNiuu
@RyNiuu 8 ай бұрын
ok, you read my mind. From all of the channels, I am so glad, it's you explaining Transformers.
@LambdaMotivation
@LambdaMotivation 8 ай бұрын
I wish I had you as a teacher. You make math so much more fun than I know it already❤
@TusharPhondge
@TusharPhondge 5 ай бұрын
I came across your channel in way of exploring/understanding Bayesian Statistics and was blown away by your 15 mins visual method video. Your way of teaching is amazing and I just couldn't stop on one. Saw your TED talk on Math and how it be engaging by ways of visual story telling where one forgets about the "Where am I going to use this...?" question. I am really glad I ran in your channel.. and now on to exploring many visually engaging stories and learning from you. Thank you for all your work!! 🙏🙏
@DrPillePalle
@DrPillePalle 8 ай бұрын
Grant is the best math teacher on the internet. ❤
@ranajakub
@ranajakub 8 ай бұрын
this is the best series from you by far. excited for its revival
@Astronomer6573
@Astronomer6573 8 ай бұрын
Your explanation tends to always be the best! Love how you visualise all these.
@ahmedivy
@ahmedivy 8 ай бұрын
Without watching i can say that this is going to be the best transformers video on yt
@robertwiebe
@robertwiebe 8 ай бұрын
Right you are.
@Musthafamum
@Musthafamum 8 ай бұрын
It is
@deildegast
@deildegast 17 күн бұрын
Finally an easy to grasp explanation of this, and at a speed that is just right. Thanks !
@looppp
@looppp 8 ай бұрын
The word embedding difference example is.. incredible I never thought about it this way Thank you so much for this!
@scolton
@scolton 8 ай бұрын
Most exciting part of my week by far
@tomasretamalvenegas9294
@tomasretamalvenegas9294 8 ай бұрын
CHILE MENTIONED 🇨🇱🇨🇱❤️❤️🇨🇱🇨🇱🇨🇱 COME TO SANTIAGO GRANT!!!
@actualBIAS
@actualBIAS 8 ай бұрын
OH MY GOODNESS Your timing is just right! I'm learning about deep neural nets and transformers will be my next topic this week. I'M SO EXCITED, I JUST CAN'T HIDE IT! I'M ABOUT TO LOSE MY MIND AND I THINK I LIKE IT!
@ramanathreyan
@ramanathreyan 2 ай бұрын
I’ve always sought teachings that succinctly capture the essence of a subject and connect it back to the main point of the story. Often, I’ve felt lost three lectures into a topic, mainly because I couldn’t grasp its core essence. You are the first teacher I’ve encountered who truly accomplishes this. While concepts like math and matrix multiplication are fascinating, understanding their real-world applications-the ‘so what’-is something very few educators have provided throughout my college and graduate studies. I still vividly remember your back-propagation video from several years ago; it has stayed fresh in my mind. I often base my discussion points on it during interviews or conversations with senior engineers. Thank you for everything you’re doing.
@justinjohnson4516
@justinjohnson4516 2 ай бұрын
Your ability to add clarity to an incredibly complicated topic, and do it in an efficient way is just incredible. Thank you for your videos.
@BobbyL2k
@BobbyL2k 8 ай бұрын
As an ML researcher this is an amazing video ❤. But please allow me to nitpick a little at <a href="#" class="seekto" data-time="1305">21:45</a> It’s important to note that while the “un-embedding layer” of a Transformer typically have a different set of weights from the embedding layer, in OpenAI’s GPT model each vector for each word in the un-embedding layer is exactly the same vector as ones in the embedding layer. This is not the case for Transformer models that has the output be in a different domain than the input (e.g, translating to a different language), but since the video is specifically talking about GPT. This is the specific of the implementation detailed in the “Improving Language Understanding by Generative Pre-Training” paper by OpenAI. The reusing weights make sense here because each the vector from the embedding is a sort of “context free” representation of the word. So there is not need to learn another set of weights.
@davidm2.johnston684
@davidm2.johnston684 8 ай бұрын
Hello 3b1b, I wanted to say a huge thank you for this specific video. This was exactly what I've been needing. Every now and again, I thought to myself, as someone who's been interested in machine learning for my whole adult life, that I should really get a deep understanding of how a transformer works, to the point that I could implement a functional, albeit not efficient, one myself. Well, I'm on my way to that, this is at least a great introduction (and knowing your channel I really mean GREAT), and I really wanted to thank you for that! I know this is not much, but I'm not in a position to support this channel in a more meaningful way at the moment. Anyways, take care, and thanks again!
@3blue1brown
@3blue1brown 8 ай бұрын
I'm glad you enjoyed. In case some how you haven't already come across them, I'd recommend the videos Andrej Karpathy does on coding up a GPT. In general, anything he makes is gold.
@newxceo
@newxceo 8 ай бұрын
Those who watched more than once gather here 😂
@ethanmccormick3271
@ethanmccormick3271 8 ай бұрын
I'm on my first watch but I'll be back
@ThaiNguyen-je4gu
@ThaiNguyen-je4gu 8 ай бұрын
This is gold
@douglaswolfen7820
@douglaswolfen7820 2 ай бұрын
Yup, I'll need to watch most of these multiple times. But with 3B1B, the animations are so beautiful and the explanations are so good that I'm always happy to rewatch
@Wandfigur
@Wandfigur 29 күн бұрын
Yes!
@sandeepaleti-w6g
@sandeepaleti-w6g 3 күн бұрын
5 times 😂
@jucom756
@jucom756 8 ай бұрын
The funny thing about encoding in a "very high dimentional space" is that we are encoding vector spaces in the rationals, so this high dimentional space could just be represented as a subset of the reals (though it is not a very understandable representation since the UI also processes the representation into a rational approximation).
@hosamtalbi9740
@hosamtalbi9740 6 күн бұрын
I watch youtube everyday for hours since 2005 and you're my 3rd subscription, simply amaing!
@viola_case
@viola_case 8 ай бұрын
Deep learning is back baby!
@kevinscales
@kevinscales 8 ай бұрын
A short 6 year 5 month wait!
@bridgeon7502
@bridgeon7502 8 ай бұрын
Hang on, I thought this series was done! I'm delighted!
@Jackson_Zheng
@Jackson_Zheng 8 ай бұрын
YOU DID IT! I emailed you about this video idea about 8 months ago and I've been patiently waiting for you to release this since!
@enpassant-d3y
@enpassant-d3y 8 ай бұрын
wow, great idea!
@melihozcan8676
@melihozcan8676 8 ай бұрын
YOU DID IT JACKSON! I texted you to email him this idea about 9 months ago. Now the bab- video is there!
@alyssachen1297
@alyssachen1297 6 ай бұрын
Blown away by the elegance - both visually and conceptually - in which this extremely complicated topic was taught! I never comment but was moved to express my sincerest gratitude! Thank you for all the time put into these beautiful videos.
@roncho
@roncho 7 ай бұрын
You never cease to amaze me. This is a must watch for any engineer or data scientist. You deserve to be the top one youtube channel. Thank you brother
@Hateusernamearentu
@Hateusernamearentu 4 ай бұрын
Things need clear up. 1.The embedding matrix and unembedding matrix are only used at first and last layer. 2.And these two are trained under supervised. It will not be inside our process of middle layer processes. Embedding matrix is turing text into number, unembedding is doing the opposite way. I thought these two unsupervised. Becoz deep learning is unsupervised. Took me long enough to figure out. Also, 3. embedding matrix is not used for dot product calculation, which is not specfically mentioned, so I was confused for a long long time. The use of embedding matrix is just "search". Like use "loop up" or "map" to find the column vector for a particular word.
@undertheshadow
@undertheshadow 26 күн бұрын
Thanks, I was burning my braincell on how a 12,288D "embedding vector " can be multiplied with a 12,288x50,257 "embedding matrix" without having a huge freakin chunk of absent data.
@jortand
@jortand 8 ай бұрын
Damit nice April fools joke, I got fooled into learning something.
@dhruvshah3909
@dhruvshah3909 8 ай бұрын
I started my deep learning journey from your original videos on deep learning. They inspired me to work in this field. I am about to start my first internship as a researcher in this field. Thank you 3blue1brown for this.
@dhruvshah3909
@dhruvshah3909 8 ай бұрын
Also this is the best video that I have seen through my many hundred videos from when I was stuck in tutorial hell on many of these concepts
8 ай бұрын
Just in time to be replaced by them >:).
@thedermotify
@thedermotify Ай бұрын
Without doubt, the clearest and most "down to Earth" explanation of embeddings I have come across - amazing work.
@KCM25NJL
@KCM25NJL 5 ай бұрын
This my friend, is visualisation heaven! I personally.... like I imagine many people.... struggle to conceptualise the inner workings of machine learning processes. But this right here demystifies so so much in so little time! A true benchmark in teaching!
@S8EdgyVA
@S8EdgyVA 2 ай бұрын
Does nobody find it odd that an understanding of language can be created using matrices in a way that is eerily similar to our own?
@katielui131
@katielui131 Ай бұрын
Think it’s fine because it’s just learning information that exists in the thing inherently? So it has no implication on how it’s similar to humans because we have used systems available to us as tools and engineered a way for them to extract information from the things in the world, ie language in this case. Even if we reach a point where we get a model that models our way of learning/understanding a language perfectly, I think that just means we have created the perfect model? Which I’m not sure if there’s even such a thing(!)
@z-beeblebrox
@z-beeblebrox 8 ай бұрын
3blue1brown released a normal video today. So did Numberphile. So did nearly all the channels in my subsd. There's no wacky bullshit on the google homepage. No stupid gimmick feature in Maps. Have we done it? Have we finally killed off the lamest holiday? Is it finally dead?
@minds_and_molecules
@minds_and_molecules 8 ай бұрын
The different sampling has to do with the search algorithm, like beam search, or any search involving topk or some tally of probabilities for the final score of the output. Any temperature will not change that the most probable token is the most probable token, so in a greedy search the temperature does not affect the output. This is a very common misconception, I'm a bit disappointed that it was slightly misleading here.
@alfredwindslow1894
@alfredwindslow1894 8 ай бұрын
agree, what he said wasn’t logically complete and didn’t really make sense because of it
@minds_and_molecules
@minds_and_molecules 8 ай бұрын
To be clear, rest of the video was great!
@a_desired_turtle
@a_desired_turtle Ай бұрын
The first 50 seconds of the video got me super impressed and engaged.
@BehrangKhaki-Seddigh
@BehrangKhaki-Seddigh 8 ай бұрын
This is, with no exaggeration, the best video series I have ever seen diving deep into the architecture of transformers and large language models. Thank you infinitely.
@christianquintili
@christianquintili 7 ай бұрын
This video is an act of democracy. Thank you
@André-b3w
@André-b3w 8 ай бұрын
So sad that so many people think AI picks bits of text and images directly from data and just makes a collage...
@guillermoe.sanchezguaida3787
@guillermoe.sanchezguaida3787 8 ай бұрын
There's no blackbox, it's just math
@josuecharles9087
@josuecharles9087 8 ай бұрын
The black box here is that the weights can't be individually interpreted. What's the contribution of each weight in the output, given an input? Or How does each weight explain such an output? What's the explicative power of that weight?
@samelliott1791
@samelliott1791 2 ай бұрын
This teaching style with the visuals is so incredible. I cannot describe how thankful I am for them.
@EriX-AI-FREE-Team
@EriX-AI-FREE-Team 2 ай бұрын
This video is so beautiful. I am an AI Engineer, and figured out some of the AI idea these years, but all of them were in my head. This contnet gave me the opportunities to review my imagination about how things are going on in the deep neural networks. Very appreciate your hardworking on this masterpiece. Thanks!
@adnan7698
@adnan7698 8 ай бұрын
First
@advaykumar9726
@advaykumar9726 8 ай бұрын
No one cares
@theJesai
@theJesai 8 ай бұрын
thank you so much. as a highschool student who's deeply intrigued by LLMs and deep learning, this was so much better than me trying to interpret the "attention is all you need" paper myself (with LLMs to help, ironically) haha. this is hands down the best resource on the transformer architecture and deep learning I've ever found - and I've been through a LOT. thank you :)
@justchary
@justchary 8 ай бұрын
The quality of these videos and depth of openings of the deeper meaning is simply mind blowing
@cyberstellus5357
@cyberstellus5357 2 ай бұрын
Yet another classic explainer video .. THANKYOU THANKYOU for educating the tech community As I mentioned 5/6 years ago If there is a Nobel prize , you certainly deserve one, I really mean it, no one in my life time has shown such a mastery of teaching very complex subjects in a way anyone can understand That is your master stoke!!!
Attention in transformers, visually explained | DL6
26:10
3Blue1Brown
Рет қаралды 1,9 МЛН
But what is a neural network? | Deep learning chapter 1
18:40
3Blue1Brown
Рет қаралды 18 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Google’s Quantum Chip: Did We Just Tap Into Parallel Universes?
9:34
2024's Biggest Breakthroughs in Math
15:13
Quanta Magazine
Рет қаралды 406 М.
Every Developer Needs a Raspberry Pi
27:27
Sam Meech-Ward
Рет қаралды 1 МЛН
Large Language Models explained briefly
8:48
3Blue1Brown
Рет қаралды 903 М.
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 1,4 МЛН
Watching Neural Networks Learn
25:28
Emergent Garden
Рет қаралды 1,4 МЛН
The Simple Math Problem That Revolutionized Physics
32:44
Veritasium
Рет қаралды 8 МЛН
ChatGPT Explained Completely.
27:39
Kyle Hill
Рет қаралды 1,2 МЛН
AI can't cross this line and we don't know why.
24:07
Welch Labs
Рет қаралды 1,4 МЛН
Visualizing transformers and attention | Talk for TNG Big Tech Day '24
57:45
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН