Language.converters / pytorch_model.bin
CoderHassan's picture
pytorch_model.bin
606d4a2 verified
raw
history blame
188 Bytes
from transformers import T5ForConditionalGeneration
model = T5ForConditionalGeneration.from_pretrained('t5-small') # or the relevant model
model.save_pretrained('./t5_urdu_translation')