NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Transformers Explained Visually (poloclub.github.io)
andblac 26 minutes ago [-]
Nicely done. For me the most fascinating thing about attention heads is the place where Attention matrix is already computed and is getting multiplied by Value vector. It behaves exactly like pushing Value vector through Dense layer of ordinary network where Attention matrix forms weights of that layer. So attention head is trained to construct this small single layer network dynamically during inference from Key and Query. And that's the point. That's rarely underlined in explanations of LLMs architecture and for me it's quite amazing that it works so well. This mechanism easy to observe in this particular visualization if you click through it.
encrux 2 minutes ago [-]
Welch Labs has a beautiful visualization in their YouTube video about Vision Language Action Models, where the attention of the prompt can be traced to the exact origin pixels in the image from one of those matrices.
bilsbie 5 minutes ago [-]
Can you explain this more, maybe dumb it down a little? Sounds important. I have t quite been able to get the attention section to click for me.
bilsbie 6 minutes ago [-]
I never understood the thinking behind the separate key query value matrixes? What are they doing exactly?
E-Reverance 14 minutes ago [-]
I get that this is for explaining GPT-2, but I really hope laymen don't use it as an example of how modern models work (ex. absolute positional encoding is no longer used)

edit: I know that it mentions its not modern, but these kinds of details have major implications in terms of the representations a model can learn, which is in many ways the most important part!

utopcell 45 minutes ago [-]
Great site, intuitive description. I also found [1] very useful in the past.

[1] https://bbycroft.net/llm

gyanchawdhary 8 minutes ago [-]
this is awesome, thanks for sharing
jwpapi 52 minutes ago [-]
Damn that page took down my Chromebook, never happened before..
shagie 29 minutes ago [-]
Text under the "Examples" section...

"Try examples while GPT-2 model is being downloaded (600MB)"

That's a hefty chunk of download and likely compute too.

jwpapi 47 minutes ago [-]
twice...
tanseydavid 53 minutes ago [-]
Nice work. I really appreciate this tool for enhancing my limited understanding the mechanism(s) behind attention and LLMs.
esseph 45 minutes ago [-]
This is not at all what I was hoping for. Expected a lot more Unicron.
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 21:53:51 GMT+0000 (Coordinated Universal Time) with Vercel.