byt5-base-wikisplit / convert_to_tensorflow.py
bhadresh-savani's picture
Added pytorch model
0c24d02
raw
history blame
144 Bytes
from transformers import TFAutoModelForSeq2SeqLM
model = TFAutoModelForSeq2SeqLM.from_pretrained("./", from_pt=True)
model.save_pretrained("./")