Solved by albanD in post #3 
              
              
                Hi, 
Few things I think: 

du -h  actually counts the size of the folder as well. Running “ls -lha” will show you that the empty folder takes 4K, not the .pth file which is only 515bytes.
sys.getsizeof() measure the size of the Python object. So it is very unreliable for most pytorch elements.
The s…