You need to pass TextLearner a model. AWD_LSTM is a function that will help you create a model, but isn’t a model by itself.
You should be able to do something like this (with your real values):
model = AWD_LSTM(vocab_sz=10, emb_sz=10, n_hid=10, n_layers=10)