Spaces:
Build error
Build error
Miquel Farre
commited on
Commit
·
fbe9168
1
Parent(s):
c10075f
using transformers to handle the model
Browse files
app.py
CHANGED
|
@@ -8,6 +8,7 @@ from pathlib import Path
|
|
| 8 |
from transformers import AutoProcessor, AutoModelForVision2Seq
|
| 9 |
import subprocess
|
| 10 |
import logging
|
|
|
|
| 11 |
|
| 12 |
logging.basicConfig(level=logging.INFO)
|
| 13 |
logger = logging.getLogger(__name__)
|
|
|
|
| 8 |
from transformers import AutoProcessor, AutoModelForVision2Seq
|
| 9 |
import subprocess
|
| 10 |
import logging
|
| 11 |
+
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
| 12 |
|
| 13 |
logging.basicConfig(level=logging.INFO)
|
| 14 |
logger = logging.getLogger(__name__)
|