bhadresh-savani commited on
Commit
efbf3ca
1 Parent(s): 33dd414

added tensorflow and flax model

Browse files
config.json CHANGED
@@ -1,9 +1,10 @@
1
  {
2
- "_name_or_path": "bert-base-uncased",
3
  "architectures": [
4
  "BertForSequenceClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
 
7
  "gradient_checkpointing": false,
8
  "hidden_act": "gelu",
9
  "hidden_dropout_prob": 0.1,
@@ -34,7 +35,7 @@
34
  "pad_token_id": 0,
35
  "position_embedding_type": "absolute",
36
  "problem_type": "single_label_classification",
37
- "transformers_version": "4.7.0",
38
  "type_vocab_size": 2,
39
  "use_cache": true,
40
  "vocab_size": 30522
1
  {
2
+ "_name_or_path": "./",
3
  "architectures": [
4
  "BertForSequenceClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
  "gradient_checkpointing": false,
9
  "hidden_act": "gelu",
10
  "hidden_dropout_prob": 0.1,
35
  "pad_token_id": 0,
36
  "position_embedding_type": "absolute",
37
  "problem_type": "single_label_classification",
38
+ "transformers_version": "4.11.0.dev0",
39
  "type_vocab_size": 2,
40
  "use_cache": true,
41
  "vocab_size": 30522
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:a0ba97a0dc911aae90a970f4ff78819cec81f92668f91a2c1b7b3cf3902d73c1
3
+ size 437954632
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c56e2c4da8a8eae545aa3f77abd782cba92814c5f4a54649d3ca5e6412d3a95d
3
+ size 438235496