Skip to content

context : always use non-causal attention for encoder graphs #12447

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

Merged
merged 2 commits into from
Mar 18, 2025

Conversation

ggerganov
Copy link
Member

Verified

This commit was signed with the committer’s verified signature.
ggerganov Georgi Gerganov
ggml-ci
@fairydreaming
Copy link
Collaborator

@ggerganov That won't work - the flag will be back to true during set_inputs() call when the mask is created. I think you have to move it to llama_context::encode().

Verified

This commit was signed with the committer’s verified signature.
ggerganov Georgi Gerganov
ggml-ci
Copy link
Collaborator

@fairydreaming fairydreaming left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirm that it fixes the KQ mask problem for T5 encoder.

@ggerganov ggerganov merged commit 8551c44 into master Mar 18, 2025
54 checks passed
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Mar 19, 2025
…g#12447)

* context : always use non-causal attention for encoder graphs

ggml-ci

* context : move the change to llama_context::encode()

ggml-ci
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

Successfully merging this pull request may close these issues.

Eval bug: b4882 broke t5
2 participants