Hi, Since I found the OpenNMT-py did not support token-alignment . Now I start using OpenNMT-tf . But I have some little problem:
1.why there are so many warning like:
WARNING: Logging before flag parsing goes to stderr.
W0726 23:13:02.695762 140077770876736 deprecation_wrapper.py:119] From /home/anaconda3/envs/tf/lib/python3.6/site-packages/opennmt/decoders/rnn_decoder.py:435: The name tf.nn.rnn_cell.RNNCell is deprecated. Please use tf.compat.v1.nn.rnn_cell.RNNCell instead.
W0726 23:13:03.188360 140077770876736 deprecation_wrapper.py:119] From /home/anaconda3/envs/tf/lib/python3.6/site-packages/opennmt/optimizers/adafactor.py:32: The name tf.train.Optimizer is deprecated. Please use tf.compat.v1.train.Optimizer instead.
W0726 23:13:03.188865 140077770876736 deprecation_wrapper.py:119] From /home/anaconda3/envs/tf/lib/python3.6/site-packages/opennmt/optimizers/multistep_adam.py:36: The name tf.train.AdamOptimizer is deprecated. Please use tf.compat.v1.train.AdamOptimizer instead.
is it all right just Ignore these warning?
2 why the process using so mainy RAM and CPU:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 22513 root 20 0 73.5g 43.9g 2.4g S 235.5 70.0 33:57.50 /home/anaconda3/envs/tf/bin/python /home/anaconda3/envs/tf/bin/onmt-main train_and_eval --model_type Transformer --config con.yml --num_gpu+
when I use OpenNMT-py, it did not use so much RAM, and OpenNMT-tf used all the CPU cores.
3.I have two RTX2070(8G), but with auto_config, It will OOM with batch_size: 3072 (auto) ; should I use auto_config ?
…
4. when I use OpenNMT-py, the speed is more than 12000 toks/s and GPU-Util allway about95%; but Opennmt-tf is :
source_words/sec: 11642
target_words/sec: 11199
and the GPU-Util is less than 85%
and global_step/sec: 0.430799
Is it all right?
Anyway, I think Opennmt-py is perfect.
for token alignment, I even used marian nmt. But it’s more slowly, not exactly like they be as known:
[2019-07-24 18:51:25] Ep. 8 : Up. 109350 : Sen. 1,909,744 : Cost 3.70446014 : Time 14.23s : 9882.22 words/s : L.r. 1.1476e-04
[2019-07-24 18:51:40] Ep. 8 : Up. 109400 : Sen. 1,916,592 : Cost 3.75405455 : Time 14.52s : 10208.97 words/s : L.r. 1.1473e-04
Am I right to use Opennmt-tf. Or I need help to use token alignment with ONMT system. thanks guys.