Dakerqi commited on
Commit
efd52f1
·
verified ·
1 Parent(s): 91fc896

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -1,6 +1,10 @@
1
  import subprocess
2
 
3
- subprocess.run("pip install --upgrade pip && pip install flash-attn --no-build-isolation", shell=True, check=True)
 
 
 
 
4
 
5
  import argparse
6
  import os
 
1
  import subprocess
2
 
3
+ whl_url = "https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.4.post1/flash_attn-2.7.4.post1+cu12torch2.2cxx11abiTRUE-cp311-cp311-linux_x86_64.whl"
4
+
5
+ subprocess.run(f"pip install {whl_url}", shell=True, check=True)
6
+
7
+ print("Flash Attention installed successfully!")
8
 
9
  import argparse
10
  import os