from transformers import FlaxAutoModelForTokenClassification model = FlaxAutoModelForTokenClassification.from_pretrained("./", from_pt=True) model.save_pretrained("./")