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

Calculate model size #19

Closed
Mareeta26 opened this issue Sep 14, 2021 · 2 comments
Closed

Calculate model size #19

Mareeta26 opened this issue Sep 14, 2021 · 2 comments

Comments

@Mareeta26
Copy link

Hi,
May I kindly know how to calculate the model sizes/ memory/flops reported in Table 2 and 3 ?
Can you please share the code snippet ?

Thanks!

@wuhaixu2016
Copy link
Collaborator

For the model size and flops, you can calculate them precisely based on the sum of all basic operations.
For the memory, you can record the memory occupation of GPUs (use nvidia-smi to check).
Also, some packages can make this process easier, such as thop.

@Mareeta26
Copy link
Author

Thank you!

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

2 participants