Skip to content

Conversation

@Aidyn-A
Copy link
Collaborator

@Aidyn-A Aidyn-A commented Sep 19, 2025

Copy link
Collaborator

@crcrpar crcrpar left a comment

Choose a reason for hiding this comment

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

Generally this deprecation looks good to me though was there some discussion or something while I'm virtually on vacation in the last weeks?

Comment on lines +36 to +41
from apex import deprecated_warning
deprecated_warning(
"`apex.contrib.fmha` is deprecated and will be removed in March 2026. "
"We encourage you to migrate to PyTorch native MultiheadAttention"
"The documentation is available in https://docs.pytorch.org/docs/main/generated/torch.nn.MultiheadAttention.html"
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

@Aidyn-A shouldn't we propose F.scaled_dot_product_attention instead? as this is torch.autograd.Function

or, have this warning in custom nn.Module.__init__

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.

2 participants