cx_Freeze icon indicating copy to clipboard operation
cx_Freeze copied to clipboard

Reducing the Size of PyTorch-Based Executable

Open hwy1992129 opened this issue 9 months ago • 1 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!

hwy1992129 avatar May 21 '24 12:05 hwy1992129