Update modeling_internvl_chat.py
Browse files
modeling_internvl_chat.py
CHANGED
@@ -325,6 +325,9 @@ class InternVLChatModel(PreTrainedModel):
|
|
325 |
vit_embeds = visual_features
|
326 |
else:
|
327 |
vit_embeds = self.extract_feature(pixel_values)
|
|
|
|
|
|
|
328 |
input_embeds = self.language_model.get_input_embeddings()(input_ids)
|
329 |
B, N, C = input_embeds.shape
|
330 |
input_embeds = input_embeds.reshape(B * N, C)
|
|
|
325 |
vit_embeds = visual_features
|
326 |
else:
|
327 |
vit_embeds = self.extract_feature(pixel_values)
|
328 |
+
|
329 |
+
print(vit_embeds.shape)
|
330 |
+
|
331 |
input_embeds = self.language_model.get_input_embeddings()(input_ids)
|
332 |
B, N, C = input_embeds.shape
|
333 |
input_embeds = input_embeds.reshape(B * N, C)
|