Attention is all you need (Transformer) - Model explanation (including math), Inference and Training

Поділитися
Вставка

КОМЕНТАРІ • 693

  • @umarjamilai
    @umarjamilai  Рік тому +105

    Slides' PDF: github.com/hkproj/transformer-from-scratch-notes

    • @bhaskartripathi
      @bhaskartripathi 10 місяців тому +2

      I am not able to download the pdf file. My friends also tried. Will it be possible to put it on a downloadable link please? your content is too good and needs to be read again and again.

    • @mahek6110
      @mahek6110 9 місяців тому

      its getting downloaded@@bhaskartripathi

  • @gabrielnsionu8583
    @gabrielnsionu8583 11 місяців тому +205

    This is arguably the best explaination of the multi-head attention in the internet hands down. Very thorough and most important to folks like me using attention mechanism as my underpinning mechanism in developing my novel neural architecture to be applied to my deep reinforcement learning architecture. Sir, pls never stop making this type of videos.

    • @umarjamilai
      @umarjamilai  11 місяців тому +11

      You're welcome! 🤓

    • @csikel22
      @csikel22 11 місяців тому +3

      I couldn't agree more. Best video on transformers I have seen so far. I doesn't get clearer than this. It would be very interesting to give some insight why this whole thing works and what are other variations and alternative architectures.

    • @rkbshiva
      @rkbshiva 11 місяців тому +2

      ​@@umarjamilaibro you're a legend!!!!

    • @pablofe123
      @pablofe123 7 місяців тому +1

      There are still a couple of things that are not explained well in the video. Q, K and V matrixs are the same matrix? and where do the parameters matrix Wq, Wk and Wv comes from?
      Besides that, excellent video.

    • @peregudovoleg
      @peregudovoleg 6 місяців тому +3

      @@pablofe123 21:25 "QKV are the same matreces". As for W matrices, he only says that they are "parameter matrices", and parameters is something we train during training process.

  • @DembaDiop-om3gv
    @DembaDiop-om3gv 11 місяців тому +47

    The best explanation of "Attention is all you need" from my point of view, guys "This explanation is all you need". Thank you very much

  • @utkarshashinde9167
    @utkarshashinde9167 7 місяців тому +4

    I cannot tell you how grateful I am for this explanation provided by you .............. nowhere I find this detailed and easy-to-understand description, a go-to video for every interview preparing students

  • @JulianHarris
    @JulianHarris 6 місяців тому +12

    I'm so glad I found this again. Do NOT rely on UA-cam watch history it doesn't look at all your history. This is definitely the best explanation of transformers and attention and believe me I've watched quite a few! Kudos again Umar.

    • @umarjamilai
      @umarjamilai  6 місяців тому +3

      You should subscribe to the channel to never lose it 😇 thanks for the kind words.

  • @prancingpony2785
    @prancingpony2785 14 днів тому +1

    i want to appreciate the fact that you started from basics and explain each and every step in detail , this is so great and so much needed for beginners.

  • @sushantpenshanwar8038
    @sushantpenshanwar8038 Рік тому +41

    You did the best job of describing the complicated details in a fluid manner. Sat, watched and took notes in one sitting. Hands down best one so far.

  • @sinaabdi8033
    @sinaabdi8033 4 місяці тому +8

    I have read and watched a lot to understand the Transformer architecture. However, this is the best one of them so far. Nobody went to this level of minute details as you went. Thank you. Please keep it up.

  • @hackie321
    @hackie321 6 місяців тому +14

    The best Transformer explanation on internet till now and I have seen almost all of it. Kudos! You are a true teacher. I dare to compare you with Andrew NG. Please become a professor and not a corporate slave.

    • @laodrofotic7713
      @laodrofotic7713 5 місяців тому

      I think Dr. Umar Jamil is way better than Andrew NG, and I did his courses and think he is great too, but this person is way better.

    • @uditapatel778
      @uditapatel778 2 місяці тому

      Way better than Andrew NG for sure at least for my learning style. Prof Andrew is great too though.

  • @euro_trucker-r2v
    @euro_trucker-r2v 13 днів тому +1

    This is the clearest explanation video I've ever seen for Attention and Transformer Architecture. Thank you very much! Please continue making such awesome videos.

  • @NJCLM
    @NJCLM 10 місяців тому +9

    This video is surely among the top 3 among the 50 videos that I watched to understand this subject.
    We are very grateful to you, keep the energy, UA-cam numbers will follow !

    • @marsupilami125
      @marsupilami125 8 місяців тому +2

      Can you tell me the other 2?🙏

  • @saravanannatarajan6515
    @saravanannatarajan6515 4 місяці тому +3

    What a gem of a video! I would request people to read the paper and then come back here so that you will understand the value we get from the instructor. Awesome work, keep it up!

  • @rajatadimeti2398
    @rajatadimeti2398 2 місяці тому +2

    This is one of the best, compact, precise explanation of transformer architecture that I could find on UA-cam. Thanks for all the effort you have put.

  • @lucasmolter1040
    @lucasmolter1040 Місяць тому +1

    One cannot say it for sure because there is an infinite amount of explanations on UA-cam... but I can say that this is the best I have seen. Congrats for the great quality and congrats for all the effort that you clearly put into the material.

  • @hamzaomari7052
    @hamzaomari7052 8 місяців тому +2

    This is the best explanation, it took me 4 hours, to take notes and revise stuff, and going with you word by word, with intuitions, and now I feel that I truly understand the transformer architecture and the mathematical intuition behind every detail.
    A thing that you cannot find in any other video.
    Thank you so much sir, this is very instructif and helpful.

  • @ua1bbf
    @ua1bbf 14 днів тому +1

    I understood all of this pretty well. I have no experience in any of the math here, but the way you explained all the relational logic made it very easy to follow.

  • @xray788
    @xray788 Місяць тому +2

    These kinds of videos just makes MIT videos look like rookies. Thank you Umar, may God bless you.

  • @Jafar801
    @Jafar801 2 місяці тому +3

    You deserve a larger following and more recognition in the ML community.

  • @ChadieRahimian
    @ChadieRahimian 26 днів тому

    Best explanation of the paper on UA-cam. I love your style which is tailored for people who know the basics on an academic level. It’s like sitting in a really good graduate level course at university. You are such a good teacher!

  • @_seeker423
    @_seeker423 8 місяців тому +6

    The clearest explanation of a very important breakthrough paper that I have seen on UA-cam. Thank you!

    • @_seeker423
      @_seeker423 8 місяців тому +1

      One thing that I felt was missing is the logical explanation of what is the role of value vector (V).

  • @ajithshenoy5566
    @ajithshenoy5566 Рік тому +12

    Bless you Umar One of the finest tutorials out there. Please don't ever stop. We're willing to support you in every way possible.

  • @mculabs
    @mculabs 10 місяців тому +4

    Probably the best explanation of the paper and the encoder and decoder sub layers. Kudos!!

  • @nabanitadash7085
    @nabanitadash7085 3 місяці тому +1

    I have been religiously watching your videos and it has helped me understand difficult papers so smoothly. Kudos 👏 you are doing a great job. It feels like you are the next Andrej Karpathy.

  • @snehotoshbanerjee1938
    @snehotoshbanerjee1938 5 місяців тому +5

    Umar, you are a great teacher. I have not seen such a great explanation of transformer. Your transformer from scratch coding is also awesome. So, basically you understand which part needs more explanation. Thanks for your effort.

  • @calewang3713
    @calewang3713 Рік тому +105

    Oh Man, you deserve a Turing Award.....

  • @barretvermilion6359
    @barretvermilion6359 3 місяці тому +1

    Your video has clarified and tied together the missing pieces from reading papers and watching other videos, and is the best explanation I've seen. My background is in psychology and psychometrics, so learning tranformer architectures for my dissertation has been a slog - but you've saved me a lot of time wasted on confusing explanations. Thank you so much!

  • @muyassarabdullah1504
    @muyassarabdullah1504 8 днів тому +1

    This is the best explanation I have found so far on internet. Thanks Umar

  • @jamesmina7258
    @jamesmina7258 4 місяці тому +5

    the best laid out presentation of Transformers, thank you Umar Jamil🥰

  • @rachadlakis1
    @rachadlakis1 5 місяців тому +2

    Wow, this is an incredibly detailed explanation of the Transformer Model! Thank you for sharing all the insights and resources. Understanding the layers and processes involved is crucial for anyone working with this model. Keep up the great work!

  • @kerrykilian9127
    @kerrykilian9127 6 місяців тому +6

    best explanation of the paper on the whole internet

  • @Udayanverma
    @Udayanverma Рік тому +2

    I would understand much deeper with your explanation. Rest of the world is scarying with diagrams and tables without explaining practical implementation. thank you dear!

  • @vrvlbl
    @vrvlbl 9 місяців тому +3

    Amazing explanation. I struggled too long to understand the architecture until I landed on your video. Way to go!!

  • @brunogatti383
    @brunogatti383 7 місяців тому +4

    Best video for attention mechanism hands down

  • @keithchua1723
    @keithchua1723 8 місяців тому +2

    Spent days trying to understand this and I wished I had come across this video first because now I understand everything fully. Immediately subscribed, keep it up!!

  • @BowenXie-b7b
    @BowenXie-b7b 10 місяців тому +3

    The best video explaining the Transformer so clearly I have ever seen. Thanks very much for your efforts. I really appreciate your methods of explaining every steps with a concrete examples and explicitly give the shapes of every matrices that involve. The shapes of matrices in each step are the most confusing part for me to understand Transformer models, and you make it so clear for me. Thanks a lot Umar.

    • @umarjamilai
      @umarjamilai  10 місяців тому +1

      不客气!你们可以在领英交流

  • @bsuhaib
    @bsuhaib Рік тому +2

    This is called decoding a transformer. What I really liked was explaining each chunk. That was really helpful for this topic and surely taught me the approach to decode any problem.
    Jazaakallah ul Khair

  • @keviny2
    @keviny2 5 місяців тому +2

    Thanks Umar for the amazing video. This is the most comprehensive yet understandable walkthrough of the transformer architecture that I came across. Super helpful. I feel like I have a good foundation for tackling more complex LLMs because of it.

  • @blacksword06
    @blacksword06 Місяць тому +1

    the best explanation I have ever seen about transformer architecture. Thanks a lot.

  • @parthvadera1
    @parthvadera1 3 місяці тому

    I love the way you’ve explained it using matrices. Had some doubts after watching Andrej’s video, this clears it. Thank you so much!

  • @silasnginyo7744
    @silasnginyo7744 11 місяців тому +1

    So far the best laid out presentation of Transformers I have ever walked through

  • @AbhinavSharma-dc3kv
    @AbhinavSharma-dc3kv 7 місяців тому +2

    the best explanation for attention architecture. kudos to you sir!

  • @AIVidya
    @AIVidya 11 місяців тому +2

    One of the best transforrmers videos encountered so far.

  • @laodrofotic7713
    @laodrofotic7713 5 місяців тому +2

    I must say it started off a bit bad when you started writing with the red stick, I almost tuned out. Turns out I have to agree this is the best explanation of self attention I have seen on youtube, congratulations, this is really good and properly explained, specially the QKV

  • @Patrick-wn6uj
    @Patrick-wn6uj 8 місяців тому +2

    This is the most important channel I have come across on youtube. keep creating these long form videos you are saving our lives in a huge away

  • @abhilashbalachandran7160
    @abhilashbalachandran7160 Рік тому +7

    super useful. I really loved how you explain this with linear algebra. Very insightful. actually easier to understand than a lot of lectures at universities

  • @lethnisoff
    @lethnisoff 7 місяців тому +2

    Finally, after a lot of articles and videos i found a video a could understand. Thank you, sir. I am not strong in math but i think i understood a lot with this explanation

  • @mail2say
    @mail2say 3 місяці тому +1

    Very clear, precise explanation! Went through many articles and videos, but was never clear of concept. Well thought-out presentation. Now eager to go through your other videos. 👍

  • @jocemarnicolodijunior2851
    @jocemarnicolodijunior2851 2 місяці тому +1

    Honestly, the best video about the article I have seen!

  • @ayeshanaikodi6764
    @ayeshanaikodi6764 27 днів тому +1

    My favorite explanation of Transformer model! Thank you!

  • @haoming3430
    @haoming3430 7 місяців тому +2

    Your video is very helpful and easy to follow. I have to say this is the best tutorial about transformer I've seen.

  • @KunalTiwariBCI
    @KunalTiwariBCI 6 місяців тому +2

    Bro, legit the best explanation I have ever seen so far.

  • @shuchenwu170
    @shuchenwu170 8 місяців тому +1

    This tutorial translates complex and terse structures into intuitions. A masterpiece of tutorials!

  • @ameyadesai6382
    @ameyadesai6382 Рік тому +4

    The best explanation on this paper, can't wait to see the other videos on this topic.

  • @profyao
    @profyao 7 місяців тому +1

    Absolutely the best explanation for multi-head attention so far!

  • @megatroneata9911
    @megatroneata9911 9 місяців тому +1

    After watching this video and the stable diffusion video, I can say forsure that you are an amazing teacher. Extremely digestible content and easy to follow along.

  • @NazerkeSafina
    @NazerkeSafina 7 місяців тому +1

    This is brilliant. Thank you Umar for your hard work. Please keep new videos coming. You are helping immensely. May you live long and happy and healthy

  • @gauravmalik3911
    @gauravmalik3911 9 місяців тому +1

    Detailed explanation, did great work on explaining difficult topic by dividing in chunks, I don't think any part is missed in explanation. Best Explanation

  • @victorariasvanegas7407
    @victorariasvanegas7407 4 місяці тому +1

    The best explanation in all internet, such a wonderful work!

  • @abc-by1kb
    @abc-by1kb Рік тому +15

    Such a great video! Explained all the key concepts so clearly and precisely while giving very nice intuition!

  • @Stephanfreund
    @Stephanfreund 11 місяців тому

    Awesome explanation for those who seek to truly understand the fundamentals of the most important paper of this decade

  • @yuk-hoiyiu7023
    @yuk-hoiyiu7023 10 місяців тому +1

    The only video that explains the difference between training and inference in the Transformer model!

  • @ddstar
    @ddstar 9 місяців тому +1

    Excellent. You answered a lot of questions I had about where the weights come from and how they were updated

  • @IsaacKLusuku
    @IsaacKLusuku 4 місяці тому +3

    we love you Umar...never stop delivering

  • @0x1h0b
    @0x1h0b 4 місяці тому +1

    This is by far the best explanation ever ...

  • @dalilabdouraman3557
    @dalilabdouraman3557 10 місяців тому +2

    Definetely the best explanation of the mutli head attention with the transformer ...just awesome

  • @tariqkhan1518
    @tariqkhan1518 6 місяців тому +2

    TBH The best Explanation of Attention in whole Internet.

  • @ltbd78
    @ltbd78 8 місяців тому +1

    You are incredible. Please continue making these type of tutorials.

  • @Nereus22
    @Nereus22 11 місяців тому +3

    This is really a great video, exactly what I was searching for! Everything that you mentionned was explained in details (others are skipping a lot).

  • @tgyawali
    @tgyawali Рік тому +1

    Thank you, so much for putting together such a detailed video. This helps technical people who do not have a lot of experience in research but have some background in machine learning to understand this very important and historic paper in AI.

  • @ishaanjoshi6959
    @ishaanjoshi6959 10 місяців тому +1

    The best explanation of attention based mechanism I found online , thank you so much Umar for making this video.

  • @atrijpaul4009
    @atrijpaul4009 11 місяців тому

    Best explanation of Attention throughout UA-cam!!!!! Thank you sir for making this video and helping us..

  • @skc909887u
    @skc909887u Рік тому +1

    This is the best explanation for an engineer for sure .love this

  • @vitoroliveiradesouza4214
    @vitoroliveiradesouza4214 6 місяців тому +2

    I'm really glad to have found your video! Congratulations on the clean and yet detailed explanation

  • @saima6759
    @saima6759 8 місяців тому +1

    transformer model never got so clear to me! thank you Umar!

  • @nithinma8697
    @nithinma8697 2 місяці тому +1

    This is the best Explanation I have ever come across about Transfomers. Thank you For sharing. Expecting more such Quality Contents😊😊😊😊😊

  • @zeeshanmehdi3994
    @zeeshanmehdi3994 8 місяців тому +1

    can't thank you enough, this is the best explanation of transformers i could find after trying for days to understand it. Thank you ❤

  • @sanskargupta7085
    @sanskargupta7085 5 місяців тому +1

    I feel lucky enough to have come across this channel, amazing stuff!

  • @BritskNguyen
    @BritskNguyen 8 місяців тому

    this is the best lecture on transformer one can get, period.

  • @SagarVibhute
    @SagarVibhute 11 місяців тому +3

    Kudos on the commendable work, and simplified explanation! I appreciate that you are also trying to explain the intuition behind each step and not just math. I'll view and re-view this a few times to understand more with successive passes. Thank you!

  • @AkGautam_1904
    @AkGautam_1904 6 місяців тому +1

    Best Explanation Ever Existed in the whole Universe !!

  • @shawkontzu642
    @shawkontzu642 Рік тому +1

    Super on the explaining the differences between training and inferencing, that clears my confusion also in "time step = 1"

    • @umarjamilai
      @umarjamilai  Рік тому

      That was the biggest source of confusion for myself as well. Glad it helped.

  • @cristinaballesteros93
    @cristinaballesteros93 9 місяців тому

    I have watched a lot of videos about transformers, and this is by far the best one. I finally understand how they work. Thank you so much!

  • @shakibyazdani9276
    @shakibyazdani9276 11 місяців тому +1

    best video on transformers I've seen so far

  • @MaheshFernando-h5u
    @MaheshFernando-h5u 5 місяців тому +1

    this is the Best explanation that i saw from all the resourses including even paid coursera courses.❤❤

  • @70152136
    @70152136 10 місяців тому +1

    your presentation skill are simply amazing!!! best video on transformers I've seen so far

  • @atulsain6170
    @atulsain6170 Рік тому +1

    Wow.. Thank you so much.❤
    I was banging my head in different papers, books, and videos for the last two days.
    Its the best explanation I could find.

    • @umarjamilai
      @umarjamilai  Рік тому +1

      Thanks! You should watch my other video on how to code the Transformer from scratch, that will also give you practical experience.

  • @andreicristea997
    @andreicristea997 Рік тому +2

    Finally the fancy "black box" called transformer became more understandable for me. Really interested in the other content you are making. Thanks for the explanation.

  • @laodrofotic7713
    @laodrofotic7713 5 місяців тому +1

    THis is amazing! I just finished the whole video and I trully understand it now, thank you Umar Jamil, you are the greatest!!!!!!!!!!!!

  • @daviskipchirchir1357
    @daviskipchirchir1357 2 місяці тому +1

    This is the best. "This explanation is all you need '

  • @sedthh
    @sedthh Рік тому +10

    Thank you, this was really helpful! One minor correction: the LayerNorm does not normalize to a 0-1 range rather it standardizes to 0 mean with unit variance.

    • @umarjamilai
      @umarjamilai  Рік тому +1

      You're right! Thanks for pointing out.

  • @andreyklepikov7084
    @andreyklepikov7084 5 днів тому +1

    One of the best videos on the subject

  • @PPVAI-t9z
    @PPVAI-t9z 9 днів тому +1

    Best explanation I've seen. Thanks very, very much !!!!

  • @limpub
    @limpub 21 день тому +1

    ❤ Best explanation of transformers. Thanks you so much! 最清晰的transformer讲解,非常感谢!

  • @ActualCode0
    @ActualCode0 Рік тому

    I like how u used examples and drew out the matrices to show what was going on in the attention block. It rly helped me understand the concept better

  • @debjyotimukherjee8275
    @debjyotimukherjee8275 7 місяців тому +2

    Excellent video gave a complete description with a great explanation. Looking forward to more such amazing content!

  • @oleksandrasaskia
    @oleksandrasaskia 8 місяців тому +1

    Thank you SO MUCH for your humane, empathic explanation! This means a lot! Keep it up!

  • @ariffahla482
    @ariffahla482 10 місяців тому +1

    I seldom comment in a youtube video.. but this is just too good to pass. Thank you Umar for your relatively easy and comprehensible video on such a complex subject. It helps me a lot! You are awesome!

  • @abdulmajid8731
    @abdulmajid8731 11 місяців тому +3

    It would be harsh if not rated on top. Absolutely the best explaination so far around the 'world'. Thanks Umar for your efforts. Keep the good work up.

  • @channel8048
    @channel8048 Рік тому +1

    This is very clear! Better than anything I have read up till now. Grazie!

  • @saravanannatarajan6515
    @saravanannatarajan6515 9 місяців тому +1

    One of the best videos I have seen on this topic. Thanks a lot for making it easy for us. Great effort, hats off!