How to reduce the size of the PyTorch package after using PyInstaller with -D option, resulting in a 3GB size for the torch file?

How to reduce the size of the PyTorch package after using PyInstaller with -D option, resulting in a 3GB size for the torch file?

Hey,

I’m not very familiar with PyInstaller, is it pulling in all dependencies? Also you should be careful if you build with CUDA to limit which architecture it uses as that can quickly increase the binary size.