Calculate model size
Mareeta26 opened this issue · 2 comments
Mareeta26 commented
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 commented
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 commented
Thank you!