Fix llava with multi-image inputs (#12384)
This commit is contained in:
parent
27152476e1
commit
1158f91648
1 changed files with 1 additions and 1 deletions
|
|
@ -727,7 +727,7 @@ class LowBitLinear(nn.Linear):
|
|||
# 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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue