multimodalart HF staff commited on
Commit
96c7350
1 Parent(s): 6336980

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -5,9 +5,8 @@ is_spaces = True if os.environ.get("SPACE_ID") else False
5
 
6
  if is_spaces:
7
  import spaces
8
-
9
- # install flash-attention
10
- subprocess.run(["pip", "install", "flash-attention", "--no-build-isolation"])
11
  os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
12
  import sys
13
 
 
5
 
6
  if is_spaces:
7
  import spaces
8
+ subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
9
+
 
10
  os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
11
  import sys
12