Hey @MortenKP, it looks like the prepare_seq2seq_batch function might be the source of the problem - what happens if you just pass a snippet of danish_text to the tokenizer and model, followed by
tokenizer.decode(translated[0], skip_special_tokens=True)

Note: danish_text is probably too long for the model, so you’ll need to chunk it into smaller passages (e.g. sentences). I’d try doing this with just a single sentence before scaling out to the whole document