Spaces:
Paused
Paused
IceClear
commited on
Commit
·
de5b2a1
1
Parent(s):
a6ea067
update
Browse files
app.py
CHANGED
@@ -61,6 +61,13 @@ from pathlib import Path
|
|
61 |
from urllib.parse import urlparse
|
62 |
from torch.hub import download_url_to_file, get_dir
|
63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
result = subprocess.run(
|
65 |
["bash", "setup.sh"],
|
66 |
capture_output=True,
|
|
|
61 |
from urllib.parse import urlparse
|
62 |
from torch.hub import download_url_to_file, get_dir
|
63 |
|
64 |
+
subprocess.run(
|
65 |
+
"pip install flash-attn --no-build-isolation",
|
66 |
+
env={"FLASH_ATTENTION_SKIP_CUDA_BUILD": "TRUE"},
|
67 |
+
shell=True,
|
68 |
+
)
|
69 |
+
|
70 |
+
|
71 |
result = subprocess.run(
|
72 |
["bash", "setup.sh"],
|
73 |
capture_output=True,
|
setup.sh
CHANGED
@@ -1,7 +1,4 @@
|
|
1 |
#!/bin/bash
|
2 |
-
pip install --upgrade pip setuptools wheel
|
3 |
-
pip install --no-build-isolation flash-attn==2.5.9.post1
|
4 |
-
|
5 |
git clone https://github.com/NVIDIA/apex
|
6 |
cd apex
|
7 |
# if pip >= 23.1 (ref: https://pip.pypa.io/en/stable/news/#v23-1) which supports multiple `--config-settings` with the same key...
|
|
|
1 |
#!/bin/bash
|
|
|
|
|
|
|
2 |
git clone https://github.com/NVIDIA/apex
|
3 |
cd apex
|
4 |
# if pip >= 23.1 (ref: https://pip.pypa.io/en/stable/news/#v23-1) which supports multiple `--config-settings` with the same key...
|