I believe you can convert a model from one framework to the other as follows:
from transformers import T5ForConditionalGeneration

model = T5ForConditionalGeneration.from_pretrained(model_name, from_flax=True)