Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,9 +11,11 @@ is_shared_ui = True if "innova-ai/YuE-music-generator-demo" in os.environ['SPACE
|
|
| 11 |
def install_flash_attn():
|
| 12 |
try:
|
| 13 |
print("Installing flash-attn...")
|
|
|
|
| 14 |
subprocess.run(
|
| 15 |
-
|
| 16 |
-
|
|
|
|
| 17 |
)
|
| 18 |
print("flash-attn installed successfully!")
|
| 19 |
except subprocess.CalledProcessError as e:
|
|
|
|
| 11 |
def install_flash_attn():
|
| 12 |
try:
|
| 13 |
print("Installing flash-attn...")
|
| 14 |
+
# Install flash attention
|
| 15 |
subprocess.run(
|
| 16 |
+
"pip install flash-attn --no-build-isolation",
|
| 17 |
+
env={"FLASH_ATTENTION_SKIP_CUDA_BUILD": "TRUE"},
|
| 18 |
+
shell=True,
|
| 19 |
)
|
| 20 |
print("flash-attn installed successfully!")
|
| 21 |
except subprocess.CalledProcessError as e:
|