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