eswardivi commited on
Commit
deaeb85
1 Parent(s): c7f7d96

added flash-attn

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -9,6 +9,8 @@ import os
9
  from threading import Thread
10
  import spaces
11
  import time
 
 
12
 
13
  token = os.environ["HF_TOKEN"]
14
 
 
9
  from threading import Thread
10
  import spaces
11
  import time
12
+ import subprocess
13
+ subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
14
 
15
  token = os.environ["HF_TOKEN"]
16