flax-to-torch
Browse files- 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("./")
|