t5-base-wikisplit / convert_to_pytorch.py
bhadresh-savani's picture
added pytorch and tensorflow models
c668a35
raw
history blame
142 Bytes
from transformers import AutoModelForSeq2SeqLM
model = AutoModelForSeq2SeqLM.from_pretrained("./", from_flax=True)
model.save_pretrained("./")