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

Tutorial to compute Transformer FLOPs (Equation 6 in the paper) #210

Open
yuweihao opened this issue May 18, 2024 · 5 comments
Open

Tutorial to compute Transformer FLOPs (Equation 6 in the paper) #210

yuweihao opened this issue May 18, 2024 · 5 comments

Comments

@yuweihao
Copy link
Owner

Hi everyone, Someone asked me how to compute Transformer FLOPs (Equation 6 in the paper). I wrote a tutorial and hope it can help. Feel free to offer feedback so that I can improve it.
transformer_FLOPs

You can also refer to PDF version.

@WowLucy
Copy link

WowLucy commented May 20, 2024

Thank you very much! May I ask how you draw those colored squares for matrices? It looks like latex, but I could not find related latex code online. Thank you again!

@yuweihao
Copy link
Owner Author

Hi @WowLucy, I used draw.io and just clumsily assembled the small squares into a matrix.

@WowLucy
Copy link

WowLucy commented May 20, 2024

Cool. Thank you!

@Yubel426
Copy link

Yubel426 commented Aug 1, 2024

Hi, the tutorial looks great! What tool did you use to create this PDF?

@yuweihao
Copy link
Owner Author

yuweihao commented Aug 1, 2024

Hi @Yubel426 , thank you! I used draw.io to create it.

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

3 participants