Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mistake in Chapter 2 - Background #2

Open
cornzz opened this issue Jul 11, 2024 · 0 comments
Open

Mistake in Chapter 2 - Background #2

cornzz opened this issue Jul 11, 2024 · 0 comments

Comments

@cornzz
Copy link

cornzz commented Jul 11, 2024

Hi, I noticed a mistake in the description of cross attention in 2.3. Attention in LLMs:

Cross Attention: It is used in encoder-decoder architectures, where encoder outputs are the queries, and key-value pairs come from the decoder.

In reality it is the other way around, the queries come from the decoder self-attention, while the encoder outputs act as key and value. See also here or here, chapter 3.2.3:

In "encoder-decoder attention" layers, the queries come from the previous decoder layer,
and the memory keys and values come from the output of the encoder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant