r/learnmachinelearning • u/Effective_Potato_990 • 6d ago
can anyone help me understand
i ve 5+ years of experience in nodejs
i'm learning from 'build an llm from strach - Sebastian Raschka' ... chapter 3 has 'attention mechanism' .. i'm hitting the wall ..
most of the article and youtube vidoes .. it does that it does this ... i wanna understand what is happening .. any experience guys can help me out here ?
3
Upvotes
4
u/UnderstandingOwn2913 6d ago
what is your question?
2
u/Ok-Library1020 6d ago
Since you already code a lot, run the chapter's attention code on a short sentence and print the weights matrix. Seeing which token attends to which, and the shapes at each step, usually makes the QKV idea click faster than reading explanations.
1
u/[deleted] 6d ago
[removed] — view removed comment