Closed CorentinWicht closed 1 year ago
Looks like openblas was not installed correctly, as the library was not found. Did the package manager install it correctly? Are there other packages with different names that you can try, such as openblas-devel
or openblas-static
? Make sure the library paths are correct too.
Alternatively, maybe try getting it from here: https://rhel.pkgs.org/7/epel-x86_64/openblas-devel-0.3.3-2.el7.x86_64.rpm.html
Looks like openblas was not installed correctly, as the library was not found. Did the package manager install it correctly? Are there other packages with different names that you can try, such as
openblas-devel
oropenblas-static
? Make sure the library paths are correct too.Alternatively, maybe try getting it from here: https://rhel.pkgs.org/7/epel-x86_64/openblas-devel-0.3.3-2.el7.x86_64.rpm.html
Thanks for your prompt reply.
The installation went smoothly running yum install openblas openblas-devel
and the libraries are correctly installed:
$ yum list installed
[...]
openblas.x86_64 0.3.21-2.el9 @rhel-9-for-x86_64-appstream-rpms
openblas-devel.x86_64 0.3.21-2.el9 @codeready-builder-for-rhel-9-x86_64-rpms
openblas-openmp.x86_64 0.3.21-2.el9 @rhel-9-for-x86_64-appstream-rpms
openblas-openmp64.x86_64 0.3.21-2.el9 @codeready-builder-for-rhel-9-x86_64-rpms
openblas-openmp64_.x86_64 0.3.21-2.el9 @codeready-builder-for-rhel-9-x86_64-rpms
openblas-serial.x86_64 0.3.21-2.el9 @rhel-9-for-x86_64-appstream-rpms
openblas-serial64.x86_64 0.3.21-2.el9 @codeready-builder-for-rhel-9-x86_64-rpms
openblas-serial64_.x86_64 0.3.21-2.el9 @codeready-builder-for-rhel-9-x86_64-rpms
openblas-srpm-macros.noarch 2-11.el9 @rhel-9-for-x86_64-appstream-rpms
openblas-threads.x86_64 0.3.21-2.el9 @codeready-builder-for-rhel-9-x86_64-rpms
openblas-threads64.x86_64 0.3.21-2.el9 @codeready-builder-for-rhel-9-x86_64-rpms
openblas-threads64_.x86_64 0.3.21-2.el9 @codeready-builder-for-rhel-9-x86_
[...]
Nevertheless, my openblas packages version (0.3.21) in RHEL9 are older than the one you are suggesting in pgks.org (0.3.3) though your link is for RHEL 7, could that be the problem?
Strangely, when I go to the RHEL9 repository, openblas is not in the list: https://rhel.pkgs.org/9/epel-x86_64/
That's the problem with linux to be honest, there are so many different packages with different names and versions for each distro haha. often times, the only way is to figure it out by trial and error. I have no idea which one is supposed to be the best one - I don't use RHEL myself and have not personally tested it there.
That's the problem with linux to be honest, there are so many different packages with different names and versions for each distro haha. often times, the only way is to figure it out by trial and error. I have no idea which one is supposed to be the best one - I don't use RHEL myself and have not personally tested it there.
Indeed that's pretty messy...
I was able to make it work now, I realized that I was missing package openblas-static.x86_64
.
Thus, I can confirm that openblas runs fine in RHEL9.1 with the following packages installed:
$ yum list installed | grep openblas
openblas.x86_64 0.3.21-2.el9 @rhel-9-for-x86_64-appstream-rpms
openblas-devel.x86_64 0.3.21-2.el9 @codeready-builder-for-rhel-9-x86_64-rpms
openblas-openmp.x86_64 0.3.21-2.el9 @rhel-9-for-x86_64-appstream-rpms
openblas-openmp64.x86_64 0.3.21-2.el9 @codeready-builder-for-rhel-9-x86_64-rpms
openblas-openmp64_.x86_64 0.3.21-2.el9 @codeready-builder-for-rhel-9-x86_64-rpms
openblas-serial.x86_64 0.3.21-2.el9 @rhel-9-for-x86_64-appstream-rpms
openblas-serial64.x86_64 0.3.21-2.el9 @codeready-builder-for-rhel-9-x86_64-rpms
openblas-serial64_.x86_64 0.3.21-2.el9 @codeready-builder-for-rhel-9-x86_64-rpms
openblas-srpm-macros.noarch 2-11.el9 @rhel-9-for-x86_64-appstream-rpms
openblas-static.x86_64 0.3.21-2.el9 @codeready-builder-for-rhel-9-x86_64-rpms
openblas-threads.x86_64 0.3.21-2.el9 @codeready-builder-for-rhel-9-x86_64-rpms
openblas-threads64.x86_64 0.3.21-2.el9 @codeready-builder-for-rhel-9-x86_64-rpms
openblas-threads64_.x86_64 0.3.21-2.el9 @codeready-builder-for-rhel-9-x86_64-rpms
This is what I get now when I run the python koboldcpp.py [PARAMS]
:
***
Welcome to KoboldCpp - Version 1.43
Attempting to use OpenBLAS library for faster prompt ingestion. A compatible libopenblas will be required.
Initializing dynamic library: koboldcpp_openblas.so
==========
Namespace(model=None, model_param='models/llama-2-7b.Q4_K_M.gguf', port=5001, port_param=8008, host='', launch=False, lora=None, config=None, threads=7, blasthreads=7, psutil_set_threads=False, highpriority=False, contextsize=2048, blasbatchsize=512, ropeconfig=[0.0, 10000.0], stream=True, smartcontext=False, unbantokens=False, bantokens=None, usemirostat=None, forceversion=0, nommap=False, usemlock=False, noavx2=False, debugmode=0, skiplauncher=False, hordeconfig=None, noblas=False, useclblast=None, usecublas=None, gpulayers=0, tensor_split=None)
==========
Loading model: /home/wichtco/koboldcpp-1.43/models/llama-2-7b.Q4_K_M.gguf
[Threads: 7, BlasThreads: 7, SmartContext: False]
Best, C.
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Expected Behavior
Running command
sudo make LLAMA_OPENBLAS=1
to compile binary in RHEL9.1.Current Behavior
Command returned an error related to openblas library (see below). Compiling works without 'LLAMA_OPENBLAS=1`' argument though.
Steps to Reproduce
Failure Logs
Environment and Context
Please provide detailed information about your computer setup. This is important in case the issue is not reproducible except for under certain specific conditions.
Linux XXX.domain.XXX 5.14.0-284.30.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 25 09:13:12 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux