Spaces:
Sleeping
Sleeping
Commit
•
96c7350
1
Parent(s):
6336980
Update app.py
Browse files
app.py
CHANGED
@@ -5,9 +5,8 @@ is_spaces = True if os.environ.get("SPACE_ID") else False
|
|
5 |
|
6 |
if is_spaces:
|
7 |
import spaces
|
8 |
-
|
9 |
-
|
10 |
-
subprocess.run(["pip", "install", "flash-attention", "--no-build-isolation"])
|
11 |
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
|
12 |
import sys
|
13 |
|
|
|
5 |
|
6 |
if is_spaces:
|
7 |
import spaces
|
8 |
+
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
9 |
+
|
|
|
10 |
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
|
11 |
import sys
|
12 |
|