{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/nmt/issues/386","repository_url":"https://api.github.com/repos/tensorflow/nmt","labels_url":"https://api.github.com/repos/tensorflow/nmt/issues/386/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/nmt/issues/386/comments","events_url":"https://api.github.com/repos/tensorflow/nmt/issues/386/events","html_url":"https://github.com/tensorflow/nmt/issues/386","id":357097415,"node_id":"MDU6SXNzdWUzNTcwOTc0MTU=","number":386,"title":"OOM error: Reduced batch size to 32/64 yet getting batch_size=128 in hparams","user":{"login":"SRITANU","id":5100536,"node_id":"MDQ6VXNlcjUxMDA1MzY=","avatar_url":"https://avatars2.githubusercontent.com/u/5100536?v=4","gravatar_id":"","url":"https://api.github.com/users/SRITANU","html_url":"https://github.com/SRITANU","followers_url":"https://api.github.com/users/SRITANU/followers","following_url":"https://api.github.com/users/SRITANU/following{/other_user}","gists_url":"https://api.github.com/users/SRITANU/gists{/gist_id}","starred_url":"https://api.github.com/users/SRITANU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SRITANU/subscriptions","organizations_url":"https://api.github.com/users/SRITANU/orgs","repos_url":"https://api.github.com/users/SRITANU/repos","events_url":"https://api.github.com/users/SRITANU/events{/privacy}","received_events_url":"https://api.github.com/users/SRITANU/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-05T07:23:15Z","updated_at":"2018-10-11T04:03:00Z","closed_at":null,"author_association":"NONE","body":"I have tried both by reducing batch_size default to 64(line 201) on `nmt.py` as well as passing flag `batch_size=64` . In both cases, I am still getting batch_size=128 in my hparams file. What am I doing wrong?"},"comment":{"url":"https://api.github.com/repos/tensorflow/nmt/issues/comments/428813139","html_url":"https://github.com/tensorflow/nmt/issues/386#issuecomment-428813139","issue_url":"https://api.github.com/repos/tensorflow/nmt/issues/386","id":428813139,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODgxMzEzOQ==","user":{"login":"ranjita-naik","id":32549868,"node_id":"MDQ6VXNlcjMyNTQ5ODY4","avatar_url":"https://avatars1.githubusercontent.com/u/32549868?v=4","gravatar_id":"","url":"https://api.github.com/users/ranjita-naik","html_url":"https://github.com/ranjita-naik","followers_url":"https://api.github.com/users/ranjita-naik/followers","following_url":"https://api.github.com/users/ranjita-naik/following{/other_user}","gists_url":"https://api.github.com/users/ranjita-naik/gists{/gist_id}","starred_url":"https://api.github.com/users/ranjita-naik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranjita-naik/subscriptions","organizations_url":"https://api.github.com/users/ranjita-naik/orgs","repos_url":"https://api.github.com/users/ranjita-naik/repos","events_url":"https://api.github.com/users/ranjita-naik/events{/privacy}","received_events_url":"https://api.github.com/users/ranjita-naik/received_events","type":"User","site_admin":false},"created_at":"2018-10-11T04:03:00Z","updated_at":"2018-10-11T04:03:00Z","author_association":"NONE","body":"Have you tried changing it through --batch_size command line argument? It worked for me. I could see \"batch_size\": 64 , in hparams. \r\n\r\npython -m nmt.nmt \r\n--src=vi --tgt=en \r\n--vocab_prefix=/tmp/nmt_data/vocab \r\n--train_prefix=/tmp/nmt_data/train \r\n--dev_prefix=/tmp/nmt_data/tst2012 \r\n--test_prefix=/tmp/nmt_data/tst2013 \r\n--out_dir=/tmp/nmt_model \r\n--num_train_steps=12000 \r\n--steps_per_stats=100 \r\n--num_layers=2 \r\n--num_units=128 \r\n--dropout=0.2 \r\n--metrics=bleu\r\n--batch_size=64"}}
{"actor":{"display_login":"ranjita-naik"}}