Thanks for the information.
It seems the nn.LSTM might use too much memory for your device, as it would need ~9GB.
However, the error message is wrong and yields a wrong number. We’ve recently fixed a similar issue for convolutions, so I’ll check it with the latest master build.