Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,8 @@ import time
|
|
6 |
from PIL import Image
|
7 |
import torch
|
8 |
import spaces
|
|
|
|
|
9 |
|
10 |
tokenizer = AutoTokenizer.from_pretrained(
|
11 |
'qnguyen3/nanoLLaVA',
|
|
|
6 |
from PIL import Image
|
7 |
import torch
|
8 |
import spaces
|
9 |
+
import subprocess
|
10 |
+
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
11 |
|
12 |
tokenizer = AutoTokenizer.from_pretrained(
|
13 |
'qnguyen3/nanoLLaVA',
|