Skip to content

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

Open
goutamyg wants to merge 1 commit intoapple:mainfrom
goutamyg:fix_cross_attention_LinearAttnFFN
Open

Fixed the missing token normalization for cross-attention computation#82
goutamyg wants to merge 1 commit intoapple:mainfrom
goutamyg:fix_cross_attention_LinearAttnFFN

Conversation

@goutamyg
Copy link
Copy Markdown

@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.

1 participant