KeyError: nll_loss in multilingual_transaltion
I am trying to train a multi-language-source model using the multilingual translation task, it seems to start fine with given parameters, but as soon as it gets to the first epoch, it generates the following:
epoch 001: 0%| | 0/793 [00:00<?, ?it/s]Traceback (most recent call last):
File "train.py", line 414, in
Can anyone tell me what the problem is?
I set the criterion to label_smoothed_cross_entropy and it worked..so far
Thanks, this is a corner case with multilnigual_translation.py. I'll submit a fix, but label_smoothed_cross_entropy should work for now.
@myleott when train translation task with cross_entropy and adafactor, I got KeyError exp_avg
When training translation task with cross_entropy (instead of label_smoothed_cross_entropy) I got the KeyError: 'nll_loss'. Error seems related to @AyaNsar . @myleott is the corner case with multilingual translation still unfixed?