I am studying transformer model with this tutorial and I am confused on the difference between evaluation and inference. In my understanding evaluation happens after the model is trained, by only giving it source and ask it to predict the target one by one (in the seq2seq problem).
However, in the tutorial it does evaluation in the same way as training, which is getting the loss from a forward pass to the model, given both source and target. And the inference step is more similar to what I understand as evaluation. In this case, I tried the model and it does really well with evaluation and testing, but at the inference step I found that it can't output anything meaningful. Can anyone explain me the difference between evaluation and inference?