Patrick von Platen
commited on
Commit
•
a71d002
1
Parent(s):
a292afa
model with clean data
Browse files- flax_to_torch.py +4 -0
flax_to_torch.py
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from transformers import RobertaForMaskedLM
|
2 |
+
|
3 |
+
model = RobertaForMaskedLM.from_pretrained("./", from_flax=True)
|
4 |
+
model.save_pretrained("./")
|