marian-nmt / marian

Fast Neural Machine Translation in C++
https://marian-nmt.github.io
Other
1.21k stars 227 forks source link

Error "terminate called after throwing an instance of 'YAML::InvalidNode'" raised in marian-decoder 1.11.0 #391

Closed TingxunShi closed 1 year ago

TingxunShi commented 2 years ago

Bug description

Run marian-decoder and pass in a model trained by 1.10.0, it raises the following error:

> head text | marian-1.11.0/build/marian-decoder --models model.npz.best-bleu.npz --vocabs vocab.src.yaml vocab.tgt.yaml --normalize 0.4 

terminate called after throwing an instance of 'YAML::InvalidNode'
  what():  invalid node; this may result from using a map iterator as a sequence iterator, or vice-versa
Aborted

The same command succeeded in 1.10.0.

Context

Add any other information about the problem here.

ZJaume commented 1 year ago

Faced the same issue. It's solved in marian dev with this commit. Also compiling with -DCOMPILE_CPU=on avoids the issue.

TingxunShi commented 1 year ago

Faced the same issue. It's solved in marian dev with this commit. Also compiling with -DCOMPILE_CPU=on avoids the issue.

Thanks, it works!