BK-Lee commited on
Commit
ab82892
·
1 Parent(s): 2eb2d02
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -15,6 +15,10 @@ from meteor.load_meteor import load_meteor
15
  from transformers import TextIteratorStreamer
16
  from torchvision.transforms.functional import pil_to_tensor
17
 
 
 
 
 
18
  # accel
19
  accel = Accelerator()
20
 
 
15
  from transformers import TextIteratorStreamer
16
  from torchvision.transforms.functional import pil_to_tensor
17
 
18
+ # flash attention
19
+ import subprocess
20
+ subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
21
+
22
  # accel
23
  accel = Accelerator()
24