Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,9 +19,8 @@ os.system("pip install gradio_image_prompter==0.1.0")
|
|
| 19 |
# os.system("pip install pydantic==2.10.6")
|
| 20 |
os.system("pip install torch==2.4.0 torchvision==0.18.0 --index-url https://download.pytorch.org/whl/cu124")
|
| 21 |
|
| 22 |
-
|
| 23 |
-
os.system(
|
| 24 |
-
|
| 25 |
import sys
|
| 26 |
import threading
|
| 27 |
# os.system("pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu124")
|
|
|
|
| 19 |
# os.system("pip install pydantic==2.10.6")
|
| 20 |
os.system("pip install torch==2.4.0 torchvision==0.18.0 --index-url https://download.pytorch.org/whl/cu124")
|
| 21 |
|
| 22 |
+
os.environ["FLASH_ATTENTION_SKIP_CUDA_BUILD"] = "TRUE"
|
| 23 |
+
os.system("pip install flash-attn==2.7.4.post1 --no-build-isolation")
|
|
|
|
| 24 |
import sys
|
| 25 |
import threading
|
| 26 |
# os.system("pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu124")
|