defog-ai / sqlcoder

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

ModuleNotFoundError: No module named 'llama_cpp' #71

Closed szymonk92 closed 6 months ago

szymonk92 commented 6 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 6 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 6 months ago

I am using Intel i7 with Windows

rishsriv commented 6 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]"