Spaces:
Runtime error
Runtime error
added flash-attn
Browse files
app.py
CHANGED
@@ -9,6 +9,8 @@ import os
|
|
9 |
from threading import Thread
|
10 |
import spaces
|
11 |
import time
|
|
|
|
|
12 |
|
13 |
token = os.environ["HF_TOKEN"]
|
14 |
|
|
|
9 |
from threading import Thread
|
10 |
import spaces
|
11 |
import time
|
12 |
+
import subprocess
|
13 |
+
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
14 |
|
15 |
token = os.environ["HF_TOKEN"]
|
16 |
|