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

[Question Again] Why DiT-XL/2 takes 119 GFlops to generate 256x256 images? #99

Open
zheweijushi opened this issue Sep 8, 2024 · 1 comment

Comments

@zheweijushi
Copy link

According to Issue #67 , it can be inferred that when B=1, approximately 119 GFLOPs are needed (in fact, this represents the number of MACs).

However, in the DiT code, when calculating attention, it seems that an additional B empty classes are added to the calculation.

image

Therefore, when estimating the computational load of the DiT block, it should be calculated as B*2.

Generating a 256x256 image should require 1 (B=1) * 2 (adding empty classes) * 119 GFLOPs ?

Is there a problem with my understanding? I hope you can answer this question. Thank you very much

@zheweijushi
Copy link
Author

@wpeebles @s9xie @ictzyqq @void-main
could you please kindly take a look, thank you very much!

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

No branches or pull requests

1 participant