Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,9 @@ import json
|
|
4 |
import os
|
5 |
# os.system("pip install torch==2.6.0 torchvision==0.21.0 --index-url https://download.pytorch.org/whl/cu124")
|
6 |
os.system("pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu124")
|
7 |
-
# os.system("pip install flash-attn --no-build-isolation")
|
8 |
import subprocess
|
9 |
-
|
10 |
import sys
|
11 |
import threading
|
12 |
|
|
|
4 |
import os
|
5 |
# os.system("pip install torch==2.6.0 torchvision==0.21.0 --index-url https://download.pytorch.org/whl/cu124")
|
6 |
os.system("pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu124")
|
7 |
+
# os.system("pip install flash-attn==2.7.4 --no-build-isolation")
|
8 |
import subprocess
|
9 |
+
subprocess.run('pip install flash-attn==2.7.4 --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
10 |
import sys
|
11 |
import threading
|
12 |
|