8000 Fix OpenBLAS Docker build · hackensun/llama-cpp-python@3e77eea · GitHub
[go: up one dir, main page]

Skip to content

Commit 3e77eea

Browse files
authored
Fix OpenBLAS Docker build
Current build produces the following: `RuntimeError: Failed to load shared library '/usr/local/lib/python3.11/site-packages/llama_cpp/libllama.so': /usr/local/lib/python3.11/site-packages/llama_cpp/libllama.so: undefined symbol: cblas_sgemm`
1 parent ffa8121 commit 3e77eea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/openblas_simple/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ COPY . .
99
RUN apt update && apt install -y libopenblas-dev ninja-build build-essential
1010
RUN python -m pip install --upgrade pip pytest cmake scikit-build setuptools fastapi uvicorn sse-starlette pydantic-settings
1111

12-
RUN LLAMA_OPENBLAS=1 pip install llama_cpp_python --verbose
12+
RUN CMAKE_ARGS="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS" pip install llama_cpp_python --verbose
1313

1414
# Run the server
1515
CMD python3 -m llama_cpp.server

0 commit comments

Comments
 (0)
0