imthanhlv commited on
Commit
56d26ba
1 Parent(s): 669e926

add torch model

Browse files
Files changed (2) hide show
  1. flax_to_pt.py +5 -0
  2. pytorch_model.bin +3 -0
flax_to_pt.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ from transformers import AutoModelForCausalLM
2
+
3
+
4
+ pt_model = AutoModelForCausalLM.from_pretrained('.', from_flax=True)
5
+ pt_model.save_pretrained(".")
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9fb7dd0d277399bfde27227d2f85cb177020f0ace254fbf812d71c479914fa5e
3
+ size 1444576537