Based on the error message it seems that your model expects more inputs to its forward method than the provided tensor.
Could you check, where ilens and ys_pad are used in your model?
Also, Variables are deprecated since PyTorch 0.4 so you can use tensors now.