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

[Question] Why apply the causal mask to image tokens in the attention operations of LLM? #1529

Open
yubin1219 opened this issue May 28, 2024 · 1 comment

Comments

@yubin1219
Copy link

Question

In the attention operations of the LLM, text tokens must use the causal mask to predict the next text tokens for the answer. However, the image features are also masked by a causal mask rather than by a bidirectional mask in the attention operations of the LLM, even though the bidirectional mask allows access to more visual information than the causal mask. Is there a particular reason for this making?

@Yebulabula
Copy link

I have the same question.

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

2 participants