Spaces:
Runtime error
Runtime error
Update lib/graph_extract.py
Browse files- lib/graph_extract.py +11 -11
lib/graph_extract.py
CHANGED
|
@@ -6,17 +6,17 @@ import warnings
|
|
| 6 |
import spaces
|
| 7 |
|
| 8 |
flash_attn_installed = False
|
| 9 |
-
try:
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
except Exception as e:
|
| 19 |
-
|
| 20 |
|
| 21 |
|
| 22 |
# Suppress specific warnings
|
|
|
|
| 6 |
import spaces
|
| 7 |
|
| 8 |
flash_attn_installed = False
|
| 9 |
+
# try:
|
| 10 |
+
# import subprocess
|
| 11 |
+
# print("Installing flash-attn...")
|
| 12 |
+
# subprocess.run(
|
| 13 |
+
# "pip install flash-attn --no-build-isolation",
|
| 14 |
+
# env={"FLASH_ATTENTION_SKIP_CUDA_BUILD": "TRUE"},
|
| 15 |
+
# shell=True,
|
| 16 |
+
# )
|
| 17 |
+
# flash_attn_installed = True
|
| 18 |
+
# except Exception as e:
|
| 19 |
+
# print(f"Error installing flash-attn: {e}")
|
| 20 |
|
| 21 |
|
| 22 |
# Suppress specific warnings
|