How to load a saved model trained on pytorch 0.3.1+ python 2.7 on pyorch 1.0+ python 3.7

I have trained a model on server that used pytorch 0.3.1 and python 2.7. I downloaded the model to my PC that use pytorch 1.0 and python 3.7. How to load the model trained on server, in my PC. This is what I done but it has error

checkpoint_dict = torch.load('model.pth', map_location='cuda:0')
model.load_state_dict(checkpoint_dict['state_dict'])

result = unpickler.load()
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe4 in position 1: ordinal not in range(128)

I tried the solution

with open(myfile, 'rb') as f:
    data = pickle.load(f, encoding='latin1')

But it need to work more if we want to load it to pytorch. How should I do ?

This patch should solve it: https://github.com/pytorch/pytorch/pull/14743