Regarding Rag-end2end t5 model

I just wanted to know in rag-end2end retriever I want my architecture to be t5-based!
– model_path t5-small
–model_type t5

still there is some error saying:
File “/home/ec2-user/SageMaker/transformers/examples/research_projects/rag-end2end-retriever/”, line 279, in on_sanity_check_start
pl_module.model.rag.retriever.init_retrieval() # better to use hook functions.
File “/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/nn/modules/”, line 1269, in getattr
raise AttributeError(“‘{}’ object has no attribute ‘{}’”.format(
AttributeError: ‘T5ForConditionalGeneration’ object has no attribute ‘rag’

need help!

For this, you might need to play around with the