Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,11 +23,6 @@ from transformers import (
|
|
| 23 |
TextIteratorStreamer,
|
| 24 |
)
|
| 25 |
|
| 26 |
-
from transformers.image_utils import load_image
|
| 27 |
-
|
| 28 |
-
import subprocess
|
| 29 |
-
subprocess.run('pip install flash-attn==2.6.3 --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
| 30 |
-
|
| 31 |
# Constants for text generation
|
| 32 |
MAX_MAX_NEW_TOKENS = 2048
|
| 33 |
DEFAULT_MAX_NEW_TOKENS = 1024
|
|
|
|
| 23 |
TextIteratorStreamer,
|
| 24 |
)
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
# Constants for text generation
|
| 27 |
MAX_MAX_NEW_TOKENS = 2048
|
| 28 |
DEFAULT_MAX_NEW_TOKENS = 1024
|