distilbert-finetuned / convert_pytorch_to_flax.py
abspython's picture
Updated
42d7250
raw
history blame
174 Bytes
from transformers import FlaxAutoModelForSequenceClassification
model = FlaxAutoModelForSequenceClassification.from_pretrained("./", from_pt=True)
model.save_pretrained("./")