diff --git a/src/bindings/python/src/openvino/frontend/pytorch/gptq.py b/src/bindings/python/src/openvino/frontend/pytorch/gptq.py index 9d02c409b0a..fcdff51f74d 100644 --- a/src/bindings/python/src/openvino/frontend/pytorch/gptq.py +++ b/src/bindings/python/src/openvino/frontend/pytorch/gptq.py @@ -32,7 +32,7 @@ def patched_forward(self, *args, **kwargs): x = args[0] dtype = x.dtype outshape = x.shape[:-1] + (self.width,) - x = x.view(-1, x.shape[-1]) + x = x.contiguous().view(-1, x.shape[-1]) groups = self.qzeros.shape[0] height = self.qweight.shape[0]