DeepMount00 commited on
Commit
46da343
1 Parent(s): da784c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -8,6 +8,11 @@ import torch
8
  from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
9
  import subprocess
10
 
 
 
 
 
 
11
 
12
  DESCRIPTION = '''
13
  <div>
 
8
  from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
9
  import subprocess
10
 
11
+ subprocess.run(
12
+ "pip install flash-attn --no-build-isolation",
13
+ env={"FLASH_ATTENTION_SKIP_CUDA_BUILD": "TRUE"},
14
+ shell=True,
15
+ )
16
 
17
  DESCRIPTION = '''
18
  <div>