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

[Bugfix] OPTDecoderLayer does not return attentions when gradient_checkpointing and training is enabled. #23367

Merged
merged 1 commit into from
May 15, 2023

Conversation

gmlwns2000
Copy link
Contributor

What does this PR do?

Reorder argument of OPTDecoderLayer.forward

Fixes #23366

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented May 15, 2023

The documentation is not available anymore as the PR was closed or merged.

@amyeroberts
Copy link
Collaborator

cc @younesbelkada @ArthurZucker

Copy link
Contributor

@younesbelkada younesbelkada left a comment

Choose a reason for hiding this comment

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

Thanks for the clean fix and detailing the rootcause of the issue (in #23366)!

@younesbelkada younesbelkada requested a review from amyeroberts May 15, 2023 10:51
Copy link
Collaborator

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

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

Thanks for fixing!

@amyeroberts amyeroberts merged commit 41d47db into huggingface:main May 15, 2023
gojiteji pushed a commit to gojiteji/transformers that referenced this pull request Jun 5, 2023
…checkpointing` and `training` is enabled. (huggingface#23367)

Update modeling_opt.py
novice03 pushed a commit to novice03/transformers that referenced this pull request Jun 23, 2023
…checkpointing` and `training` is enabled. (huggingface#23367)

Update modeling_opt.py
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.

OPTDecoderLayer does not return attentions when gradient_checkpointing and training is enabled.
4 participants