I do not know if you have tried this already, but since the error code tells you that the object is of the DataParallel class, can you make sure that the module is the class you expect?
Something like:
print(type(model.module))