The source and target embeddings can be automatically generated with the [Flan-T5](https://huggingface.co/docs/transformers/model_doc/flan-t5) model instead of creating them manually.  
Load the Flan-T5 model and tokenizer from the 🤗 Transformers library:  
```py
import torch
from transformers import AutoTokenizer, T5ForConditionalGeneration