Remsky commited on
Commit
9f46400
·
verified ·
1 Parent(s): 50901f1

Update lib/graph_extract.py

Browse files
Files changed (1) hide show
  1. 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
- 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
 
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