Fastai text - get_preds() vs predict() in inference

In case you are still facing this issue, have a look at this thread.
Copying or reloading the test data before running predict()seems to align the prediction categories.