Spaces:
Runtime error
Runtime error
Gabriel C
commited on
Commit
β’
07c7ebd
1
Parent(s):
ed5b8f0
Update app.py
Browse files
app.py
CHANGED
@@ -11,11 +11,7 @@ from transformers import (
|
|
11 |
)
|
12 |
|
13 |
# Load model and processor
|
14 |
-
model = LlavaNextForConditionalGeneration.from_pretrained("llava-hf/llava-v1.6-mistral-7b-hf"
|
15 |
-
torch_dtype=torch.float16,
|
16 |
-
low_cpu_mem_usage=True,
|
17 |
-
use_flash_attention_2=True,
|
18 |
-
use_flash_attention_2=True)
|
19 |
model.to("cuda:0")
|
20 |
processor = LlavaNextProcessor.from_pretrained("llava-hf/llava-v1.6-mistral-7b-hf")
|
21 |
|
|
|
11 |
)
|
12 |
|
13 |
# Load model and processor
|
14 |
+
model = LlavaNextForConditionalGeneration.from_pretrained("llava-hf/llava-v1.6-mistral-7b-hf")
|
|
|
|
|
|
|
|
|
15 |
model.to("cuda:0")
|
16 |
processor = LlavaNextProcessor.from_pretrained("llava-hf/llava-v1.6-mistral-7b-hf")
|
17 |
|