{"action":"created","issue":{"url":"https://api.github.com/repos/OpenNMT/OpenNMT-py/issues/783","repository_url":"https://api.github.com/repos/OpenNMT/OpenNMT-py","labels_url":"https://api.github.com/repos/OpenNMT/OpenNMT-py/issues/783/labels{/name}","comments_url":"https://api.github.com/repos/OpenNMT/OpenNMT-py/issues/783/comments","events_url":"https://api.github.com/repos/OpenNMT/OpenNMT-py/issues/783/events","html_url":"https://github.com/OpenNMT/OpenNMT-py/pull/783","id":336175812,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk3NjkwNTky","number":783,"title":"Multigpu and change from epoch to step","user":{"login":"vince62s","id":15141326,"node_id":"MDQ6VXNlcjE1MTQxMzI2","avatar_url":"https://avatars3.githubusercontent.com/u/15141326?v=4","gravatar_id":"","url":"https://api.github.com/users/vince62s","html_url":"https://github.com/vince62s","followers_url":"https://api.github.com/users/vince62s/followers","following_url":"https://api.github.com/users/vince62s/following{/other_user}","gists_url":"https://api.github.com/users/vince62s/gists{/gist_id}","starred_url":"https://api.github.com/users/vince62s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vince62s/subscriptions","organizations_url":"https://api.github.com/users/vince62s/orgs","repos_url":"https://api.github.com/users/vince62s/repos","events_url":"https://api.github.com/users/vince62s/events{/privacy}","received_events_url":"https://api.github.com/users/vince62s/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-27T10:45:32Z","updated_at":"2018-07-31T03:04:59Z","closed_at":"2018-07-03T15:37:45Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/OpenNMT/OpenNMT-py/pulls/783","html_url":"https://github.com/OpenNMT/OpenNMT-py/pull/783","diff_url":"https://github.com/OpenNMT/OpenNMT-py/pull/783.diff","patch_url":"https://github.com/OpenNMT/OpenNMT-py/pull/783.patch"},"body":"ready for review\r\n\r\nit still requires some documentation on how to use multi gpu and steps.\r\n\r\nfor multi gpu, there are extra options for future implementation of multi node, I will leave them there.\r\nright now the only thing is \"-gpuid 0 1 2 3\"\r\n"},"comment":{"url":"https://api.github.com/repos/OpenNMT/OpenNMT-py/issues/comments/409079181","html_url":"https://github.com/OpenNMT/OpenNMT-py/pull/783#issuecomment-409079181","issue_url":"https://api.github.com/repos/OpenNMT/OpenNMT-py/issues/783","id":409079181,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTA3OTE4MQ==","user":{"login":"chenzhehuai","id":12264312,"node_id":"MDQ6VXNlcjEyMjY0MzEy","avatar_url":"https://avatars3.githubusercontent.com/u/12264312?v=4","gravatar_id":"","url":"https://api.github.com/users/chenzhehuai","html_url":"https://github.com/chenzhehuai","followers_url":"https://api.github.com/users/chenzhehuai/followers","following_url":"https://api.github.com/users/chenzhehuai/following{/other_user}","gists_url":"https://api.github.com/users/chenzhehuai/gists{/gist_id}","starred_url":"https://api.github.com/users/chenzhehuai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenzhehuai/subscriptions","organizations_url":"https://api.github.com/users/chenzhehuai/orgs","repos_url":"https://api.github.com/users/chenzhehuai/repos","events_url":"https://api.github.com/users/chenzhehuai/events{/privacy}","received_events_url":"https://api.github.com/users/chenzhehuai/received_events","type":"User","site_admin":false},"created_at":"2018-07-31T03:04:59Z","updated_at":"2018-07-31T03:04:59Z","author_association":"NONE","body":"hi @srush @vince62s \r\nI install opennmt-py fd1ec04758855008dbbf7ce1d56d16570544e616 and pytorch 0.4.0\r\ntry the command and get errors as below:\r\n`python ./train.py -gpuid 0 1 2 3 -batch_size 1024 -data data/demo -save_model demo-model\r\nTraceback (most recent call last):\r\n  File \"./train.py\", line 38, in <module>\r\n    main(opt)\r\n  File \"./train.py\", line 23, in main\r\n    multi_main(opt)\r\n  File \"/home/zchen/src/OpenNMT-py/onmt/train_multi.py\", line 20, in main\r\n    mp = torch.multiprocessing.get_context('spawn')\r\nAttributeError: 'module' object has no attribute 'get_context'\r\n`"}}
{"actor":{"display_login":"chenzhehuai"}}