salesforce / awd-lstm-lm

LSTM and QRNN Language Model Toolkit for PyTorch
BSD 3-Clause "New" or "Revised" License
1.96k stars 488 forks source link

Unable to load model from different directory #44

Open aleSuglia opened 6 years ago

aleSuglia commented 6 years ago

Hi there,

I'm trying to load a trained language model from another project. Unfortunately, I'm not able to load it because it requires the definition of the model module. As far as I know, this is a known problem for PyTorch model saved using torch.save (as discussed here: https://github.com/pytorch/pytorch/issues/3678). How do you deal with this problem?

Thank you in advance!

Alessandro

ChristineBasta commented 6 years ago

Hey, have you found a solution, because this is currently my problem