Update start.py
Browse files
start.py
CHANGED
@@ -6,9 +6,9 @@ import sys
|
|
6 |
# subprocess.run(uninstall_command, shell=True)
|
7 |
|
8 |
# Install llama-cpp-python with CUDA support
|
9 |
-
install_command = ["pip"
|
10 |
-
install_command_cmake_args = ["CMAKE_ARGS=-DLLAMA_CUBLAS=on"
|
11 |
-
|
12 |
subprocess.run(install_command, shell=True)
|
13 |
|
14 |
# Start the Hugging Face Space
|
|
|
6 |
# subprocess.run(uninstall_command, shell=True)
|
7 |
|
8 |
# Install llama-cpp-python with CUDA support
|
9 |
+
install_command = ["pip" + " install" + " --upgrade" + " --force-reinstall" + " llama-cpp-python"+ " --no-cache-dir"]
|
10 |
+
install_command_cmake_args = ["CMAKE_ARGS=-DLLAMA_CUBLAS=on" + " FORCE_CMAKE=1"]
|
11 |
+
install_command_cmake_args.extend(install_command)
|
12 |
subprocess.run(install_command, shell=True)
|
13 |
|
14 |
# Start the Hugging Face Space
|