bhadresh-savani commited on
Commit
fff238f
1 Parent(s): 967a3d1

added tensorflow and flax model

Browse files
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "distilbert-base-uncased",
3
  "activation": "gelu",
4
  "architectures": [
5
  "DistilBertForSequenceClassification"
@@ -34,6 +34,6 @@
34
  "seq_classif_dropout": 0.2,
35
  "sinusoidal_pos_embds": false,
36
  "tie_weights_": true,
37
- "transformers_version": "4.5.0",
38
  "vocab_size": 30522
39
  }
 
1
  {
2
+ "_name_or_path": "./",
3
  "activation": "gelu",
4
  "architectures": [
5
  "DistilBertForSequenceClassification"
 
34
  "seq_classif_dropout": 0.2,
35
  "sinusoidal_pos_embds": false,
36
  "tie_weights_": true,
37
+ "transformers_version": "4.11.0.dev0",
38
  "vocab_size": 30522
39
  }
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:d925341280e22bf3041ac1cd44bc7e00b7ca267add097a8ffe14238b9e067826
3
+ size 267836005
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:abd2741ba3b64886080d795f4b58771f4a1597b8ea8ae2b6cad9ef2e2357a0c3
3
+ size 267964184