Problems running the MemNN model
See original GitHub issueHello, I am trying to run the training for the MemNN model on the bAbI dialog tasks and receiving the following error. Can someone help?
(parlai) chait@chait:~/ParlAI/examples$ python memnn_luatorch_cpu/full_task_train.py --remote-cmd ~/torch/ -t dialog_babi:Task:1 -nt 8
[port:5555]
[datapath:/home/chait/ParlAI/data]
[parlai_home:/home/chait/ParlAI]
[datatype:train]
[download_path:/home/chait/ParlAI/downloads]
[numthreads:8]
[task:dialog_babi:Task:1]
[dict_language:english]
[num_examples:1000]
[remote_cmd:/home/chait/torch/]
[dict_nulltoken:<NULL>]
[dict_unktoken:<UNK>]
[remote_args:/home/chait/ParlAI/examples/memnn_luatorch_cpu/params_default.lua]
[dict_minfreq:0]
[num_its:100]
[batchsize:1]
[dict_max_ngram_size:-1]
Setting up dictionary.
[creating task(s): dialog_babi:Task:1]
[DialogTeacher initializing.]
[loading fbdialog data:/home/chait/ParlAI/data/dialog-bAbI/dialog-bAbI-tasks/dialog-babi-task1-API-calls-trn.txt]
[creating task(s): dialog_babi:Task:1]
[DialogTeacher initializing.]
[loading fbdialog data:/home/chait/ParlAI/data/dialog-bAbI/dialog-bAbI-tasks/dialog-babi-task1-API-calls-dev.txt]
Dictionary: saving dictionary to /tmp/dict.txt.
Dictionary ready, moving on to training.
Traceback (most recent call last):
File "memnn_luatorch_cpu/full_task_train.py", line 104, in <module>
main()
File "memnn_luatorch_cpu/full_task_train.py", line 72, in main
agent = ParsedRemoteAgent(opt, {'dictionary': dictionary})
File "/home/chait/ParlAI/parlai/agents/remote_agent/agents.py", line 123, in __init__
super().__init__(opt, shared)
File "/home/chait/ParlAI/parlai/agents/remote_agent/agents.py", line 51, in __init__
args=opt.get('remote_args', '')
File "/home/chait/anaconda3/envs/parlai/lib/python3.5/subprocess.py", line 676, in __init__
restore_signals, start_new_session)
File "/home/chait/anaconda3/envs/parlai/lib/python3.5/subprocess.py", line 1282, in _execute_child
raise child_exception_type(errno_num, err_msg)
PermissionError: [Errno 13] Permission denied
I saw this thread on stackoverflow, but was unable to solve the problem myself.
Issue Analytics
- State:
- Created 6 years ago
- Comments:19 (14 by maintainers)
Top Results From Across the Web
MemNN: Memory Networks - Outline - Lili Mou
models. 2. Learning matching models and embeddings by question-answer pairs. How about reasoning? Memory Networks: Reason with inference components combined ...
Read more >The Problem With a Fight Against Toxic Masculinity
Many conservatives allege that charges of toxic masculinity are an attack on manhood itself, at a time when men already face challenges such ......
Read more >The problem with a technology revolution designed ... - Quartz
The underlying design assumption is that girls and women are not normal consumers in their own right, but defective or “wrong sized” ......
Read more >The Problem for Women Is Not Winning. It's Deciding to Run.
“Women are the biggest self-doubters.” When women run for political office, they are just as likely as men to be elected. The main...
Read more >APA issues first-ever guidelines for practice with men and boys
APA's new Guidelines for Psychological Practice With Boys and Men strive to recognize and address these problems in boys and men while remaining...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ah yes–the python threads are blocked because there was an issue launching the lua threads: at the top there, it had trouble opening a required library.
Try
cd {ParlAI}/downloads/memnnlib/KVmemnn/; ./setup.sh
After running setup.sh, verify that everything is working correctly by running
luajit -e "require 'library.PositionalEncoder'"
–if that does not give an error, you’re good.Let me know if that works!
@alexholdenmiller I was able to run
setup.sh
after switching my network. Its training now.