Skip to content

Commit 124eed9

Browse files
committed
Update 0-setup.sh
1 parent 1d61954 commit 124eed9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ai chatbot/chatbot/0-setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ pip install langchain transformers optimum auto-gptq chromadb InstructorEmbeddin
55
if [[ $1 == "CPU" ]]
66
then
77
pip install torch torchvision torchaudio --force-reinstall --index-url https://download.pytorch.org/whl/cpu
8-
pip install llama-cpp-python
8+
pip install --no-cache-dir --upgrade --force-reinstall llama-cpp-python
99
else
1010
pip install torch torchvision torchaudio --force-reinstall
11-
CMAKE_ARGS="-DLLAMA_CUBLAS=on" FORCE_CMAKE=1 pip install llama-cpp-python
11+
CMAKE_ARGS="-DLLAMA_CUBLAS=on" FORCE_CMAKE=1 pip install --no-cache-dir --upgrade --force-reinstall llama-cpp-python
1212
fi
1313
python b_create.py
1414
if [[ $1 == "CPU" ]]

0 commit comments

Comments
 (0)