Replies: 3 comments 5 replies
-
Yeah that is possible. When running you can copy the temp folder out to somewhere else in your PC, and run it from there (using Koboldcpp.py) |
Beta Was this translation helpful? Give feedback.
-
The koboldcpp.py is still not extracted today. I wish we could do it without such hacks. My primary idea on why is because koboldcpp will extract a literal gigabyte every time it is run, which is annoying when you run it many times with differrent models. Can't be good for ssd longevity either (though mine has literal petabytes of MTBW, so... okay I guess.) The ROCM version has a zip file with the python script and the DLLs, could this one maybe not also have one? EDIT: Wait, the .py is now in the directory on the current version. But using the extracted version with my system python 3.12 also doesnt work, as "ImportError: Module use of python38.dll conflicts with this version of Python." and if I remove python38.dll, I get "ImportError: DLL load failed while importing _ctypes:" instead, huh... Removing the PYDs and trying to get it by requirements.txt gives me trouble with "Getting requirements to build wheel did not run successfully.". So I guess I need a conda at python 3.8 for this? getting more and more complicated... EDIT: Extracting a ZIP copy of regular python 3.8 into the same folder just works (tm) lol EDIT: I have a batch script now. first one to extract the pyinstaller (koboldcpp_cu12.exe) using pyinstxtractor-ng. This needs an extracted verion of python 3.8 (currently) embedded in the subdir
second one to start it
I had to also set the TK and TCL library, I'm not sure how this is done by pyinstaller, it probably sets this environment after all, but eh... |
Beta Was this translation helpful? Give feedback.
-
Not sure if you're aware, in modern KoboldCpp versions there is a self-extract option. You don't have to jump through hoops to get the files anymore. |
Beta Was this translation helpful? Give feedback.
-
Hey there
I was wondering if there is a way to make the Koboldcpp.exe extract its files and run from there instead of extracting thousand files to temp folder and deleting them on every use.
Beta Was this translation helpful? Give feedback.
All reactions