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

Fixed the missing token normalization for cross-attention computation #82

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

goutamyg
Copy link

@goutamyg goutamyg commented Jul 31, 2023

For a downstream task, I see better training convergence upon normalizing both x and x_prev during the computation of cross-attention here: https://github.com/apple/ml-cvnets/blob/main/cvnets/modules/transformer.py#L258

Currently, I am conducting model training with and without the proposed normalization of x_prev and will share the results for the two cases. In the meantime, if this change makes sense, kindly include it. Let me know if you need any related info.

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.

None yet

1 participant