Lesson 4 IMDB: can't run the training code

Apparently there can be some problems related to the torch and fastai versions: Lesson 4 IMDB Test Part Fails - #2 by EinAeffchen

I just used the installation commands on fastai’s github.
Conda says that the following are my installed packages:

fastai 1.0.28 py_1 fastai
pytorch-nightly 1.0.0.dev20181121 py3.6_cuda9.0.176_cudnn7.4.1_0 pytorch
torchvision-nightly 0.2.1 py_0 fastai
torchtext 0.3.1