hello-custom / convert_flax_to_pytorch.py
philschmid's picture
philschmid HF staff
Upload convert_flax_to_pytorch.py
8e2a3c8
raw
history blame
168 Bytes
from transformers import AutoModelForSequenceClassification
model = AutoModelForSequenceClassification.from_pretrained("./", from_flax=True)
model.save_pretrained("./")