Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,8 @@ from transformers import AutoModel, AutoTokenizer
|
|
3 |
import torch
|
4 |
import torchvision.transforms as T
|
5 |
from torchvision.transforms.functional import InterpolationMode
|
|
|
|
|
6 |
|
7 |
|
8 |
|
@@ -12,7 +14,7 @@ IMAGENET_STD = (0.229, 0.224, 0.225)
|
|
12 |
|
13 |
model_name = "torettomarui/Llava-qw"
|
14 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True, use_fast=False)
|
15 |
-
model =
|
16 |
model_name,
|
17 |
torch_dtype=torch.bfloat16,
|
18 |
trust_remote_code=True,
|
|
|
3 |
import torch
|
4 |
import torchvision.transforms as T
|
5 |
from torchvision.transforms.functional import InterpolationMode
|
6 |
+
from Models.modeling_llavaqw import LlavaQwModel
|
7 |
+
|
8 |
|
9 |
|
10 |
|
|
|
14 |
|
15 |
model_name = "torettomarui/Llava-qw"
|
16 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True, use_fast=False)
|
17 |
+
model = LlavaQwModel.from_pretrained(
|
18 |
model_name,
|
19 |
torch_dtype=torch.bfloat16,
|
20 |
trust_remote_code=True,
|