I’m working on “lesson3-imdb.ipynb”, and when I ran learn = language_model_learner(data_lm, AWD_LSTM, drop_mult=0.3) I got NameError: name 'AWD_LSTM' is not defined.
Any suggestion please?
UPDATE:
I guess this is a bug in the notebook. It should be learn = language_model_learner(data_lm, "AWD_LSTM", drop_mult=0.3). With parentheses around AWD_LSTM.
UPDATE AGAIN:
Turns out the newest fastai library already fix the bug. So if you encounter this problem, just try
It should be like this i.e. without the quotes. At least according to the docs. Certainly worked for me without. Suspect it was because of the version.