Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
#Script added by SPDraptor
|
2 |
import spaces
|
3 |
from typing import Optional
|
4 |
-
|
5 |
-
|
6 |
import torch
|
7 |
print("cuda present = ",torch.cuda.is_available())
|
8 |
import os
|
|
|
1 |
#Script added by SPDraptor
|
2 |
import spaces
|
3 |
from typing import Optional
|
4 |
+
import subprocess
|
5 |
+
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
6 |
import torch
|
7 |
print("cuda present = ",torch.cuda.is_available())
|
8 |
import os
|