You have the model on GPU but how about the tokenizer?
Change this line:
translated = model.generate(**tokenizer.prepare_translation_batch(src_text))
To:
translated = model.generate(**tokenizer.prepare_translation_batch(src_text).to(‘cuda’))