FlowQA icon indicating copy to clipboard operation
FlowQA copied to clipboard

EOFError: Ran out of input

Open zou-longkun opened this issue 6 years ago • 5 comments

When I execute python train_QuAC.py,there are errors as following: Traceback (most recent call last): File "train_QuAC.py", line 324, in main() File "train_QuAC.py", line 175, in main model = QAModel(opt, train_embedding) File "/home/zoulongkun/project/FlowQA-master/QA_model/model_QuAC.py", line 30, in init self.network = FlowQA(opt, embedding) File "/home/zoulongkun/project/FlowQA-master/QA_model/detail_model.py", line 47, in init self.CoVe = layers.MTLSTM(opt, embedding) File "/home/zoulongkun/project/FlowQA-master/QA_model/layers.py", line 161, in init state_dict = torch.load(opt['MTLSTM_path']) File "/home/zoulongkun/anaconda3/lib/python3.7/site-packages/torch/serialization.py", line 358, in load return _load(f, map_location, pickle_module) File "/home/zoulongkun/anaconda3/lib/python3.7/site-packages/torch/serialization.py", line 532, in _load magic_number = pickle_module.load(f) EOFError: Ran out of input

Your help will be highly appreciated!

zou-longkun avatar Feb 16 '19 10:02 zou-longkun

I met the same problem with, have you resolved it? @zou-longkun

GrassBro avatar Feb 27 '19 10:02 GrassBro

@TinyGrass I have resolved it .The reason for this problem is that the file MT-LSTM.path is empty, you need to download this file again. You can excute the command line which could be found in download.sh : wget https://s3.amazonaws.com/research.metamind.io/cove/wmtlstm-b142a7f2.pth -O glove/MT-LSTM.pth

zou-longkun avatar Feb 27 '19 14:02 zou-longkun

@TinyGrass I have resolved it .The reason for this problem is that the file MT-LSTM.path is empty, you need to download this file again. You can excute the command line which could be found in download.sh : wget https://s3.amazonaws.com/research.metamind.io/cove/wmtlstm-b142a7f2.pth -O glove/MT-LSTM.pth

Thanks, @zou-longkun . I resolved it as you said.

GrassBro avatar Feb 28 '19 14:02 GrassBro

@zou-longkun , yes, That's the problem.

gmt710 avatar Apr 21 '21 07:04 gmt710