Update modeling_got.py
Browse files- modeling_got.py +2 -2
modeling_got.py
CHANGED
|
@@ -558,7 +558,7 @@ class GOTQwenForCausalLM(Qwen2ForCausalLM):
|
|
| 558 |
|
| 559 |
inputs = tokenizer([prompt])
|
| 560 |
|
| 561 |
-
image_tensor_1 = image_processor_high(image)
|
| 562 |
|
| 563 |
input_ids = torch.as_tensor(inputs.input_ids).to(device)
|
| 564 |
|
|
@@ -842,7 +842,7 @@ class GOTQwenForCausalLM(Qwen2ForCausalLM):
|
|
| 842 |
|
| 843 |
inputs = tokenizer([prompt])
|
| 844 |
|
| 845 |
-
input_ids = torch.as_tensor(inputs.input_ids).
|
| 846 |
|
| 847 |
stop_str = conv.sep if conv.sep_style != SeparatorStyle.TWO else conv.sep2
|
| 848 |
keywords = [stop_str]
|
|
|
|
| 558 |
|
| 559 |
inputs = tokenizer([prompt])
|
| 560 |
|
| 561 |
+
image_tensor_1 = image_processor_high(image).to(device)
|
| 562 |
|
| 563 |
input_ids = torch.as_tensor(inputs.input_ids).to(device)
|
| 564 |
|
|
|
|
| 842 |
|
| 843 |
inputs = tokenizer([prompt])
|
| 844 |
|
| 845 |
+
input_ids = torch.as_tensor(inputs.input_ids).to(device)
|
| 846 |
|
| 847 |
stop_str = conv.sep if conv.sep_style != SeparatorStyle.TWO else conv.sep2
|
| 848 |
keywords = [stop_str]
|