Commit
•
49a91ba
1
Parent(s):
0077c0b
Saving weights and logs of step 7000
Browse files
events.out.tfevents.1626182455.t1v-n-905ccd3e-w-0.38250.3.v2
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0580a62409b3b4525743c7ec189e64613c9b722043f05f8bc6a1bb88152e486a
|
3 |
+
size 1029893
|
flax_model.msgpack
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 497764120
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9ee92063eecbde4dad19c1b466c2239d4e95fee0a52aabf2c10a9bda92c72a88
|
3 |
size 497764120
|
save_model.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from transformers.modeling_flax_pytorch_utils import load_flax_checkpoint_in_pytorch_model
|
2 |
+
from transformers import GPT2_Config, GPT2_Model
|
3 |
+
config = GPT2_Config.from_pretrained("./")
|
4 |
+
model = GPT2_Model(config)
|
5 |
+
load_flax_checkpoint_in_pytorch_model(model, "./flax_model.msgpack")
|
6 |
+
model.save_pretrained("./")
|