Skip to content

Use scaled_dot_product_attention_with_weights utility#534

Open
stashuk-olek wants to merge 1 commit intofacebookresearch:mainfrom
stashuk-olek:export-D92574396
Open

Use scaled_dot_product_attention_with_weights utility#534
stashuk-olek wants to merge 1 commit intofacebookresearch:mainfrom
stashuk-olek:export-D92574396

Conversation

@stashuk-olek
Copy link
Copy Markdown

Summary: We have multiple implementations of attention in our codebase, making it hard to migrate between different hardware, pick up SOTA etc. This diff migrates torchmultimodal for the exact same implementation from SDPA. More details can be found here https://docs.google.com/document/d/1XCZkhLtBNXGhxoYZ2-47XVvH7bQDOzPXBNZyL7Q7Fqo/edit?tab=t.0#heading=h.gzjhznhk1ejy

Differential Revision: D92574396

Summary: We have multiple implementations of attention in our codebase, making it hard to migrate between different hardware, pick up SOTA etc. This diff migrates torchmultimodal for the exact same implementation from SDPA. More details can be found here https://docs.google.com/document/d/1XCZkhLtBNXGhxoYZ2-47XVvH7bQDOzPXBNZyL7Q7Fqo/edit?tab=t.0#heading=h.gzjhznhk1ejy

Differential Revision: D92574396
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 8, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Feb 8, 2026

@stashuk-olek has exported this pull request. If you are a Meta employee, you can view the originating Diff in D92574396.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant