THU-KEG / MetaKGR

Source codes and datasets for EMNLP 2019 paper "Adapting Meta Knowledge Graph Information for Multi-Hop Reasoning over Few-Shot Relations"
115 stars 21 forks source link

experiments.py: error: argument --complex_state_dict_path: expected one argument #3

Closed wj1108114106 closed 4 years ago

wj1108114106 commented 4 years ago

when i run the commond "./experiment-rs.sh configs/fb15k-237-rs.sh --train 0 --few_shot", there exist a wrong: experiments.py: error: argument --complex_state_dict_path: expected one argument. i cannot understand it

davidlvxin commented 4 years ago

Sorry, it was my fault. This bug has been fixed in commits 7aad303.

wj1108114106 commented 4 years ago

thank you for the prompt reply. Now it works.

wj1108114106 commented 4 years ago

I also want to ask a simple question: how many GPUs have you used? because my machine owns only one GPU(1080ti),and i meet problem: out of memory. for this situation, can you give some suggestions? thanks.

davidlvxin commented 4 years ago

I only use one GPU (2080ti). You can reduce batch size to solve this problem (e.g., reduce batch_size and train_batch_size from 16 to 4 in fb15k-237-rs.sh).

wj1108114106 commented 4 years ago

thank you very much!