From 3f21bd81f31985cae2700d49a517a8c6153e2285 Mon Sep 17 00:00:00 2001 From: Gustavo Rocha Dias <91472747+gustrd@users.noreply.github.com> Date: Sun, 23 Apr 2023 02:40:09 -0300 Subject: [PATCH] doc - Better explanation of how to build the libraries at Windows. (#107) --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6a04a69e4..4ceeb22f2 100644 --- a/README.md +++ b/README.md @@ -27,11 +27,12 @@ What does it mean? You get llama.cpp with a fancy UI, persistent stories, editin - If you want to generate the .exe file, make sure you have the python module PyInstaller installed with pip ('pip install PyInstaller'). - Run the script make_pyinstaller.bat at a regular terminal (or Windows Explorer). - The koboldcpp.exe file will be at your dist folder. -- If you wish to use your own version of the additional Windows libraries (clblast, libopenblas or OpenCL), you can: - - Compile then, or download the lastest release from the respective GitHub repository. - - Replace the existing versions of the .dll file located in the project directory root. - - Move any import .lib file to the /lib folder of your project, overwriting the older file. - - Make the project using the instructions. +- If you wish to use your own version of the additional Windows libraries (OpenCL, CLBlast and OpenBLAS), you can do it with: + - OpenCL - tested with https://github.com/KhronosGroup/OpenCL-SDK . If you wish to compile it, follow the repository instructions. You will need vcpkg. + - CLBlast - tested with https://github.com/CNugteren/CLBlast . If you wish to compile it you will need to reference the OpenCL files. It will only generate the ".lib" file if you compile using MSVC. + - OpenBLAS - tested with https://github.com/xianyi/OpenBLAS . + - Move the respectives .lib files to the /lib folder of your project, overwriting the older files. + - Make the KoboldCPP project using the instructions above. ## OSX and Linux - You will have to compile your binaries from source. A makefile is provided, simply run `make`