How can use -start_epoch in OpenNMT-py?

pytorch

(Maplewizard) #1

I found that -start_epoch can be found in the train.md while was remove from the code. Could anyone tell me how to set the initial start step?


(Vincent Nguyen) #2

just use the train_steps option.

If you set train_steps 100000 then you shut off at 65000
if you start again with train_from checkpoint if you set 100000 it will start from 65000
automatically.
if it went to 100000 and you want to train 50000 more steps, set train_steps 150000
hope it’s clear.


(Maplewizard) #3

Hi, Thanks for your answer. I just want it start at 0 and I can compare with others on tensorboard.