Thanks for the advice!  target_length  is a configuration parameter. I’ll change the inference to one sentence at a time. But it wouldn’t affect the training, would it? I feel that the problem of predicting repeating words should be some problems from training, but I couldn’t tell where.