-
Notifications
You must be signed in to change notification settings - Fork 10
333 add torch compile uni test #344
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
Conversation
…d test for torch compile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Left a few minor remarks.
Co-authored-by: Max Lübbering <2804731+le1nux@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left two minor comments.
@@ -50,7 +51,7 @@ def gpt2_model(): | |||
attention_norm_config=norm_config, | |||
ffn_norm_config=norm_config, | |||
lm_head_norm_config=norm_config, | |||
use_weight_tying=False, | |||
use_weight_tying=True, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does torch.compile support weight tying now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests run through, as I understand it, compile supports weight tying (and other techniques), they are just not as "performant" as they introduce graph breaks
Co-authored-by: Max Lübbering <2804731+le1nux@users.noreply.github.com>
What does this PR do?
This PR adds test for torch compile and slightly adjusts get_compiled_model to skip module_classes not found.
General Changes
Breaking Changes
Checklist before submitting final PR
python tests/tests.py
)CHANGELOG_DEV.md
)