marcelotduarte/cx_Freeze

Reducing the Size of PyTorch-Based Executable

hwy1992129 opened this issue · 14 comments

Hi,

I'm working on converting a Python program that uses PyTorch to an executable file. However, the folder for the app is too large. I've noticed that the original torch2.3+cu118 in conda is around 5GB, and the torch library in the app is about 4GB.

I'm wondering how to use torch while keeping the executable file small. Specifically, how do others create standalone binary executables that are only 200-300 MB in size?

Any advice or suggestions would be greatly appreciated. Thank you!

If you try to make it setup files with innostup or zeep your exe you will see size of file 3 time smaller...