defog-ai / sqlcoder

SoTA LLM for converting natural language questions to SQL queries
Apache License 2.0
3.42k stars 218 forks source link

ModuleNotFoundError: No module named 'llama_cpp' #71

Closed szymonk92 closed 9 months ago

szymonk92 commented 9 months ago

Running sqlcoder launch I am getting: ModuleNotFoundError: No module named 'llama_cpp'

Python 3.10.13 Env: Conda

EDIT Intel i7 Windows only integrated GPU

rishsriv commented 9 months ago

Hi there, have you followed the setup instructions for Apple Silicon?

CMAKE_ARGS="-DLLAMA_METAL=on" pip install "sqlcoder[llama-cpp]"

szymonk92 commented 9 months ago

I am using Intel i7 with Windows

rishsriv commented 9 months ago

Ah, in that case, use the following and you should be good to go!

$env:CMAKE_ARGS = "-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS"
pip install "sqlcoder[llama-cpp]"