distilbert-finetuned / convert_flax_to_pytorch.py
abspython's picture
Updated
42d7250
raw
history blame
168 Bytes
from transformers import AutoModelForSequenceClassification
model = AutoModelForSequenceClassification.from_pretrained("./", from_flax=True)
model.save_pretrained("./")