NolanoOrg / cformers

SoTA Transformers with C-backend for fast inference on your CPU.
MIT License
311 stars 29 forks source link

OSError encountered due to a line in the interface.py file on Windows. #31

Closed Etrama closed 1 year ago

Etrama commented 1 year ago

OSError: [WinError 193] %1 is not a valid Win32 application.

The line in the interface.py file which causes the issue is (Line 176): process = Popen(command, stdout=PIPE, stderr=PIPE)

I'm trying to fix this myself but I'm sort of a noob, so please excuse any oversights.

HCBlackFox commented 1 year ago

https://github.com/NolanoOrg/cformers/issues/19 Point 5: Change line 127(or where is it in this version) in interface.py to

command = ["./cpp/main.exe", self.cpp_model_name, 
Etrama commented 1 year ago

This worked out, the .zip file was a life saver! Thanks @HCBlackFox !