electra-base-emotion / convert_pytorch_to_flax.py
bhadresh-savani's picture
added tf and flax model support
d2b8df9
raw
history blame contribute delete
174 Bytes
from transformers import FlaxAutoModelForSequenceClassification
model = FlaxAutoModelForSequenceClassification.from_pretrained("./", from_pt=True)
model.save_pretrained("./")