Video wird geladen...
Video konnte nicht geladen werden
[Self-Attention] by Hand ✍️ Self-attention is what enables LLMs to understand context. How does it work? This exercise demonstrates how to calculate a 6-3 attention head by hand. Note that if we have two instances of this, we get 6-6 attention (i.e., multi-head attention, n=2). -- 𝗚𝗼𝗮𝗹 -- Transform... show more
101,213 Aufrufe • vor 2 Jahren •via X (Twitter)
9 Kommentare

[Transformer] by Hand✍️

Thank you, awesome. Will you cover the backward pass?

Yes. I am working on better animation now and will share it soon.

Ok, but in the context of calculating self-attention, after obtaining the attention weight matrix (A) through the scaled dot-product attention, how does the inclusion of relative positional encoding influence the attention scores, especially when considering the linear transformations (WQ, WK, WV) in the presence of long-range dependencies? Additionally, could you elaborate on the potential impact of this positional encoding on the convergence behavior during training and the overall interpretability of the attention weights?

Any plan to post xLSTM?

I posted yesterday. 😀 High-level concept only, not hand calculations.

wonderful

Wow, great illustration and explanation. 👏👏

Learning is about understanding things in your own way. Even if others find it hard, you can find a better way to make it simple. By explaining things in an easy manner, you make learning easier for everyone. thanks 😍😍

