This seems to be a Python issue rather than PyTorch-related.
I assume models.py is not in your current working directory, which would throw this error.
Have a look at the Import system in Python 95 for a detailed description.