Fix_word_vecs option stored in the model?

I just added a note in my previous post here:

In fact, it seems that, in the second part of my test, the embeddings are not really changing. I certainly have inverted 2 files.

Are the fix_word_vecs options stored in the model, thus restored when no more defined on the command line ?

:worried:

You are right, embeddings remain fixed after a retraining. This does not seem like a good behavior (unless you are using -continue of course). I will look into it.

1 Like

Perhaps these 2 fix_word_vecs options may be defined with 0/1 explicit values on the command line, rather than set/omitted with implicit values when omitted.

https://github.com/OpenNMT/OpenNMT/commit/4efad84a7ad8c1700b6617a531aa0369247dd98b

When -continue is not used, -fix_word_vecs_enc and -fix_word_vecs_dec are correctly applied.

1 Like

FYI, this approach is now on master.

1 Like