Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,10 +45,7 @@ def install_packages():
|
|
| 45 |
# Upgrade pip
|
| 46 |
run_command("pip install --upgrade pip")
|
| 47 |
|
| 48 |
-
|
| 49 |
-
os.environ["CUDA_HOME"] = "/usr/local/cuda" # Adjust this path if needed
|
| 50 |
-
os.environ["CMAKE_ARGS"] = "-DGGML_CUDA=on -DCUDAToolkit_ROOT=/usr/local/cuda"
|
| 51 |
-
os.environ["FORCE_CMAKE"] = "1"
|
| 52 |
|
| 53 |
# Install all optional dependencies with CUDA support
|
| 54 |
run_command("pip install -e .[all] --verbose")
|
|
@@ -56,7 +53,7 @@ def install_packages():
|
|
| 56 |
run_command("make clean")
|
| 57 |
|
| 58 |
# Reinstall the package with CUDA support
|
| 59 |
-
run_command('
|
| 60 |
|
| 61 |
# Install llama-cpp-agent
|
| 62 |
run_command("pip install llama-cpp-agent")
|
|
|
|
| 45 |
# Upgrade pip
|
| 46 |
run_command("pip install --upgrade pip")
|
| 47 |
|
| 48 |
+
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
# Install all optional dependencies with CUDA support
|
| 51 |
run_command("pip install -e .[all] --verbose")
|
|
|
|
| 53 |
run_command("make clean")
|
| 54 |
|
| 55 |
# Reinstall the package with CUDA support
|
| 56 |
+
run_command('CMAKE_ARGS="-DLLAMA_CUBLAS=on -DCUDA_PATH=/usr/local/cuda-12.2 -DCUDAToolkit_ROOT=/usr/local/cuda-12.2 -DCUDAToolkit_INCLUDE_DIR=/usr/local/cuda-12/include -DCUDAToolkit_LIBRARY_DIR=/usr/local/cuda-12.2/lib64" FORCE_CMAKE=1 pip install -e .')
|
| 57 |
|
| 58 |
# Install llama-cpp-agent
|
| 59 |
run_command("pip install llama-cpp-agent")
|