OpenNMT issues with Pytorch: cPickle.UnpicklingError: invalid load key, ''
I am trying to run the OpenNMT project using the instruction from the link: http://forum.opennmt.net/t/text-summarization-on-gigaword-and-rouge-scoring/85/6   

I am using Python 2.7 and installed pytorch from the github repository.
I am trying to run the program using the prebuild model of the OpenNMT, which I have downloaded from the following: http://opennmt.net/Models/  

I tried the command:  

python translate.py -model textsum_epoch7_14.69_release.t7 -src data/Giga/input.txt


Got the following error:  

Traceback (most recent call last):
  File "translate.py", line 151, in &lt;module&gt;
    main()
  File "translate.py", line 70, in main
    translator = onmt.Translator(opt)
  File "/home/ubuntu/opennmt/onmt/Translator.py", line 21, in __init__
    checkpoint = torch.load(opt.model)
  File "/usr/local/lib/python2.7/dist-packages/torch/serialization.py", line 229, in load
    return _load(f, map_location, pickle_module)
  File "/usr/local/lib/python2.7/dist-packages/torch/serialization.py", line 367, in _load
    magic_number = pickle_module.load(f)
cPickle.UnpicklingError: invalid load key, ''.


Kindly let me know what I need to do so that I can use the model and check the library OpenNMT.

The model you downloaded is for the Lua version of OpenNMT.

If you are just a user of the project, I recommend you to use this version as it is the most supported and stable.
