seq2seq icon indicating copy to clipboard operation
seq2seq copied to clipboard

Issues in nmt_medium and nmt_large config files

Open kadir-gunel opened this issue 8 years ago • 2 comments

I try to execute prepared config files for nmt but seems that can not run all but nmt_small only. When I try to run them I get NotFoundError : Key model/att_seq2seq/OptimizeLoss/model/att_seq2seq/decode/attention_decoder/decoder/extended_multi_rnn_cell/cell_3/lstm_cell/weights/Adam_1 not found in checkpoint

Tried to locate where model/att_seq2seq/.../ is but could not manage to find it. Probably it refers to the tensorflow lib., right?

Since I can run nmt_small, I assume that everything is properly installed on my pc(btw it passes the tests). Any help ?

kadir-gunel avatar Jul 21 '17 08:07 kadir-gunel

My guess is that you are running the nmt_medium/nmt_large models with the same output_dir you used for training the nmt_small model. Therefore, seq2seq is trying to initialize your nmt_medium/nmt_large model with a checkpoint created from the nmt_small model, which won't have parameters for cell_3.

Try something like python -m bin.train --ouput_dir nmt_medium_model ... python -m bin.train --ouput_dir nmt_large_model ...

geert-heyman avatar Aug 02 '17 09:08 geert-heyman

Maybe you made mistake in writing this part: --input_pipeline_train " class: ParallelTextInputPipeline params: source_files: - $TRAIN_SOURCES target_files: - $TRAIN_TARGETS" \ --input_pipeline_dev " class: ParallelTextInputPipeline params: source_files: - $DEV_SOURCES target_files: - $DEV_TARGETS" \ removing - or putting \t instead of space make some problems.

dadashkarimi avatar Sep 05 '17 19:09 dadashkarimi