Spaces:
Runtime error
Runtime error
Create setup.sh
Browse files
setup.sh
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
|
3 |
+
# Update and install libstdc++
|
4 |
+
sudo apt-get update
|
5 |
+
sudo apt-get install -y libstdc++6
|
6 |
+
|
7 |
+
# Link CUDA libraries
|
8 |
+
sudo ldconfig /usr/lib64-nvidia
|
9 |
+
sudo ldconfig /usr/local/cuda-12.4 # Replace with your CUDA version
|
10 |
+
|
11 |
+
# Install Python dependencies
|
12 |
+
pip install --upgrade pip
|
13 |
+
pip install -r requirements.txt
|
14 |
+
|
15 |
+
# Verify installations
|
16 |
+
python -m bitsandbytes
|
17 |
+
python -m xformers.info
|