-
Notifications
You must be signed in to change notification settings - Fork 6.1k
[Tests] Improve transformers model test suite coverage - Hunyuan DiT #8916
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
The model use |
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.
Thanks! I think it's okay to skip the xformers tests for this model.
sequence_length = 77 | ||
sequence_length_t5 = 256 |
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.
These two could be further reduced?
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.
I tried but it cause the tests to fail
"sample_size": 16, | ||
"patch_size": 2, | ||
"in_channels": 4, | ||
"num_layers": 2, |
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.
Perhaps we can fix the num_layers
to 1?
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.
Sure
… into test_model_hunyuan
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.
Two additional comments. Thanks for your changes related to xformers.
"in_channels": 4, | ||
"num_layers": 1, | ||
"attention_head_dim": 8, | ||
"num_attention_heads": 3, |
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.
We can keep it to 2, I guess?
"cross_attention_dim": 32, | ||
"cross_attention_dim_t5": 32, | ||
"pooled_projection_dim": 16, | ||
"hidden_size": 24, |
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.
Further reduction possible?
… into test_model_hunyuan
Hi @sayakpaul could you help me if this PR is ok? |
Oh sorry. I think the PR is very nice. Will merge once the CI is green. |
…8916) * add hunyuan model test * apply suggestions * reduce dims further * reduce dims further * run make style --------- Co-authored-by: Sayak Paul <[email protected]>
What does this PR do?
Part of #8907
@DN6 @sayakpaul
Before submitting
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.