Spaces:
Running
on
Zero
Running
on
Zero
gokaygokay
commited on
Commit
•
c26cea9
1
Parent(s):
b126ef0
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,9 @@ import re
|
|
9 |
import random
|
10 |
import numpy as np
|
11 |
|
|
|
|
|
|
|
12 |
# Initialize models
|
13 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
14 |
dtype = torch.float16
|
|
|
9 |
import random
|
10 |
import numpy as np
|
11 |
|
12 |
+
import subprocess
|
13 |
+
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
14 |
+
|
15 |
# Initialize models
|
16 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
17 |
dtype = torch.float16
|