electra-base-squad2 / convert_pytorch_to_flax.py
bhadresh-savani's picture
added models
e06d14d
raw
history blame contribute delete
164 Bytes
from transformers import FlaxAutoModelForQuestionAnswering
model = FlaxAutoModelForQuestionAnswering.from_pretrained("./", from_pt=True)
model.save_pretrained("./")