Skip to content

Commit

Permalink
Fix llava with multi-image inputs (#12384)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscilloscope98 authored Nov 13, 2024
1 parent 2715247 commit 1158f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/llm/src/ipex_llm/transformers/low_bit_linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ def forward(self, x: torch.Tensor):
# return empty tensor with output shape, x.dtype and x.device
return torch.empty(new_shape, dtype=x.dtype, device=x.device)

x_2d = x.view(-1, x_shape[-1])
x_2d = x.contiguous().view(-1, x_shape[-1])

if self.act_order:
x_2d = x_2d[:, self.g_idx_map]
Expand Down

0 comments on commit 1158f91

Please sign in to comment.