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

Add the inline_inbuilt_nn_modules option #1617

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

Conversation

chaojun-zhang
Copy link
Contributor

@chaojun-zhang chaojun-zhang commented Dec 17, 2024

Disabling the inline_inbuilt_nn_modules switch will restore ALBERT-XXL's performance to PyTorch 2.4 levels

What does this PR do?

Fixes # (issue)

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

@chaojun-zhang chaojun-zhang marked this pull request as draft December 17, 2024 01:20
…ing to performance degradation in certain models(e.g. ALBERT_XXL). A configuration option has been introduced to turn off this behavior
@chaojun-zhang chaojun-zhang marked this pull request as ready for review December 17, 2024 01:25
Copy link
Collaborator

@ssarkar2 ssarkar2 left a comment

Choose a reason for hiding this comment

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

Adding notes for my understanding

without this change:
torch._dynamo.config.inline_inbuilt_nn_modules = True
https://github.com/pytorch/pytorch/blob/main/torch/_dynamo/config.py#L412C33-L412C42

with this change we give an option to set it to True or False. We set it to false in case of albert

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