Could you check the types of your model and self.args.grad_clipping?
One argument is a DoubleTensor while it should be a FloatTensor or vice versa.
This is a common issue, if you use numpy arrays and transform them to torch.tensors, as numpy uses float64 as the default dtype.