fgaim commited on
Commit
5f83f93
1 Parent(s): 404f177

flax-to-torch

Browse files
Files changed (1) hide show
  1. flax_to_torch.py +4 -0
flax_to_torch.py ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ from transformers import BertForSequenceClassification
2
+
3
+ model = BertForSequenceClassification.from_pretrained("./", from_flax=True)
4
+ model.save_pretrained("./")