gokaygokay
commited on
Commit
•
830098e
1
Parent(s):
da1f3e6
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,8 @@ from diffusers import DiffusionPipeline
|
|
7 |
import random
|
8 |
import numpy as np
|
9 |
import os
|
|
|
|
|
10 |
|
11 |
# Initialize models
|
12 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
7 |
import random
|
8 |
import numpy as np
|
9 |
import os
|
10 |
+
import subprocess
|
11 |
+
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
12 |
|
13 |
# Initialize models
|
14 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|