You should get an error message:
RuntimeError: Expected object of scalar type Float but got scalar type Double for argument #2 'mat1' in call to _th_addmm

which points to a type mismatch in an operation.
Numpy uses float64 by default, while PyTorch uses float32.
You could either transform the data to float32 via X = X.float(), which would be the usual use case or alternatively you could transform the model parameters to float64 via model = model.double.
Also, Variables are deprecated since PyTorch 0.4.0, so don’t use them.