Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,12 @@
|
|
2 |
# PyTorch 2.8 (temporary hack)
|
3 |
import os,subprocess
|
4 |
os.system('pip install --upgrade --pre --extra-index-url https://download.pytorch.org/whl/nightly/cu126 "torch<2.9" spaces')
|
5 |
-
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
|
|
|
|
|
|
|
|
|
|
6 |
import spaces
|
7 |
import argparse
|
8 |
import logging
|
|
|
2 |
# PyTorch 2.8 (temporary hack)
|
3 |
import os,subprocess
|
4 |
os.system('pip install --upgrade --pre --extra-index-url https://download.pytorch.org/whl/nightly/cu126 "torch<2.9" spaces')
|
5 |
+
#subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
6 |
+
subprocess.run(
|
7 |
+
'pip install "flash-attn<2.8.2" --no-build-isolation',
|
8 |
+
env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"},
|
9 |
+
shell=True
|
10 |
+
)
|
11 |
import spaces
|
12 |
import argparse
|
13 |
import logging
|