Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,10 @@
|
|
1 |
import subprocess
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
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
|