added build tools
Browse files
app.py
CHANGED
|
@@ -124,7 +124,11 @@ else:
|
|
| 124 |
#os.system(f'echo "Installing xformers..."')
|
| 125 |
#os.system(f"pip install --no-cache-dir xformers==0.0.25 --extra-index-url https://download.pytorch.org/whl/cu118")
|
| 126 |
|
| 127 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
os.system(f'echo "Cloning xformers repo..."')
|
| 129 |
os.system(f'git clone https://github.com/facebookresearch/xformers.git /home/user/app/xformers')
|
| 130 |
|
|
|
|
| 124 |
#os.system(f'echo "Installing xformers..."')
|
| 125 |
#os.system(f"pip install --no-cache-dir xformers==0.0.25 --extra-index-url https://download.pytorch.org/whl/cu118")
|
| 126 |
|
| 127 |
+
os.system(f'echo "Installing build dependencies..."')
|
| 128 |
+
os.system(f'pip install ninja packaging wheel')
|
| 129 |
+
os.system(f'apt-get update && apt-get install -y build-essential cmake git')
|
| 130 |
+
|
| 131 |
+
# Building xformers from source
|
| 132 |
os.system(f'echo "Cloning xformers repo..."')
|
| 133 |
os.system(f'git clone https://github.com/facebookresearch/xformers.git /home/user/app/xformers')
|
| 134 |
|