Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
haotian-liu authored Feb 7, 2024
1 parent 49540fe commit b42a13d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llava/model/llava_arch.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def prepare_inputs_labels_for_multimodal(
if 'unpad' in mm_patch_merge_type:
image_feature = torch.cat((
image_feature,
self.model.image_newline[None]
self.model.image_newline[None].to(image_feature.device)
), dim=0)
new_image_features.append(image_feature)
image_features = new_image_features
Expand Down

0 comments on commit b42a13d

Please sign in to comment.