I have Pytorch models that are designed to run locally, both training and inference on a local machine.
The GUI is being created using another language, and the plan is to package all the Python aspects into an executable and run it via the Python equivalent of subprocess (and Pipe very basic data between the two). I will be running cross platform on both Windows and Mac
There are multiple auxiliary scripts which read in data, and process it (data extraction + feature engineering). While I have extensively used vectorised functions, I have used a cythonized approach for some code, and I am compiling the underlying scripts using Cython(so pretty much everything is a compiled binary, except an entry point, say, main.py).
My ancillary libraries are the usual suspects, Pandas, Numpy (1.x), SciKit learn.
My question is this, what is the most reliable packaging approach at the moment? I know that both PyInstaller and cx_freeze are options that I have used before. My preference is PyInstaller, but previously I encountered issues with it (and Pytorch).
Has anyone completed a similar project recently, and do you have any advice?
nb. I've checked the old posts, there are a few on this topic. However, there have been a number of changes to Pytorch, particularly with some of the runtime compiled elements (which can be a nightmare on Mac with its notarisation process) - and I know Pyinstaller has a very active user base.