bhadresh-savani commited on
Commit
4812613
1 Parent(s): 0cc4406

added tensorflow and flax models

Browse files
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "albert-base-v2",
3
  "architectures": [
4
  "AlbertForSequenceClassification"
5
  ],
@@ -43,7 +43,7 @@
43
  "pad_token_id": 0,
44
  "position_embedding_type": "absolute",
45
  "problem_type": "single_label_classification",
46
- "transformers_version": "4.7.0",
47
  "type_vocab_size": 2,
48
  "vocab_size": 30000
49
  }
1
  {
2
+ "_name_or_path": "./",
3
  "architectures": [
4
  "AlbertForSequenceClassification"
5
  ],
43
  "pad_token_id": 0,
44
  "position_embedding_type": "absolute",
45
  "problem_type": "single_label_classification",
46
+ "transformers_version": "4.11.0.dev0",
47
  "type_vocab_size": 2,
48
  "vocab_size": 30000
49
  }
convert_flax_to_pytorch.py ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ from transformers import AutoModelForSequenceClassification
2
+ model = AutoModelForSequenceClassification.from_pretrained("./", from_flax=True)
3
+ model.save_pretrained("./")
convert_pytorch_to_flax.py ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ from transformers import FlaxAutoModelForSequenceClassification
2
+ model = FlaxAutoModelForSequenceClassification.from_pretrained("./", from_pt=True)
3
+ model.save_pretrained("./")
convert_pytorch_to_tensorflow.py ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ from transformers import TFAutoModelForSequenceClassification
2
+ model = TFAutoModelForSequenceClassification.from_pretrained("./", from_pt=True)
3
+ model.save_pretrained("./")
flax_model.msgpack ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:932e89b9c4e479c816a18cf1d910eaf96267df634feb2e033282065c6ecc0778
3
+ size 46753846
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1831177d31f949b4dfa258c878a31ad9b3d1ad9b84c8113bc2588f0ec17e311
3
+ size 46794056