Spaces:
Sleeping
Sleeping
v1
Browse files
app.py
CHANGED
@@ -15,6 +15,10 @@ from meteor.load_meteor import load_meteor
|
|
15 |
from transformers import TextIteratorStreamer
|
16 |
from torchvision.transforms.functional import pil_to_tensor
|
17 |
|
|
|
|
|
|
|
|
|
18 |
# accel
|
19 |
accel = Accelerator()
|
20 |
|
|
|
15 |
from transformers import TextIteratorStreamer
|
16 |
from torchvision.transforms.functional import pil_to_tensor
|
17 |
|
18 |
+
# flash attention
|
19 |
+
import subprocess
|
20 |
+
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
21 |
+
|
22 |
# accel
|
23 |
accel = Accelerator()
|
24 |
|