Abinaya Mahendiran
commited on
Commit
·
f782d18
1
Parent(s):
b5d1483
Convertd flax to pytorch model
Browse files
src/convert_flax_to_pytorch.py
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from transformers import GPT2LMHeadModel
|
2 |
+
|
3 |
+
model = GPT2LMHeadModel.from_pretrained("../gpt-2-tamil", from_flax=True)
|
4 |
+
model.save_pretrained("../")
|