Update README.md
Browse files
README.md
CHANGED
@@ -94,7 +94,7 @@ inputs = processor(
|
|
94 |
chat_messages,
|
95 |
image,
|
96 |
return_tensors='pt',
|
97 |
-
)
|
98 |
|
99 |
output = model.generate(
|
100 |
**inputs,
|
@@ -134,7 +134,7 @@ with torch.no_grad():
|
|
134 |
)
|
135 |
|
136 |
bos_token = processor.tokenizer.bos_token_id
|
137 |
-
chat_messages = torch.cat([torch.tensor([[bos_token]]),chat_messages],dim=-1)
|
138 |
|
139 |
|
140 |
output = model.generate(
|
|
|
94 |
chat_messages,
|
95 |
image,
|
96 |
return_tensors='pt',
|
97 |
+
)
|
98 |
|
99 |
output = model.generate(
|
100 |
**inputs,
|
|
|
134 |
)
|
135 |
|
136 |
bos_token = processor.tokenizer.bos_token_id
|
137 |
+
chat_messages = torch.cat([torch.tensor([[bos_token]]),chat_messages],dim=-1)
|
138 |
|
139 |
|
140 |
output = model.generate(
|