tarekziade commited on
Commit
eae722d
1 Parent(s): 8e89edf

Upload 9 files

Browse files
config.json CHANGED
@@ -1,18 +1,15 @@
1
  {
2
- "_name_or_path": "tarekziade/pardonmyai-tiny",
3
- "activation": "gelu",
4
  "architectures": [
5
- "DistilBertForSequenceClassification"
6
  ],
7
- "attention_dropout": 0.1,
8
  "attention_probs_dropout_prob": 0.1,
9
  "cell": {},
10
- "dim": 312,
11
- "dropout": 0.1,
12
  "emb_size": 312,
13
  "hidden_act": "gelu",
14
- "hidden_dim": 3072,
15
  "hidden_dropout_prob": 0.1,
 
16
  "id2label": {
17
  "0": "NOT_OFFENSIVE",
18
  "1": "OFFENSIVE"
@@ -23,18 +20,18 @@
23
  "NOT_OFFENSIVE": 0,
24
  "OFFENSIVE": 1
25
  },
 
26
  "max_position_embeddings": 512,
27
- "model_type": "distilbert",
28
- "n_heads": 12,
29
- "n_layers": 4,
30
  "pad_token_id": 0,
 
31
  "pre_trained": "",
32
  "problem_type": "single_label_classification",
33
- "qa_dropout": 0.1,
34
- "seq_classif_dropout": 0.2,
35
- "sinusoidal_pos_embds": false,
36
  "structure": [],
37
  "transformers_version": "4.36.2",
38
  "type_vocab_size": 2,
 
39
  "vocab_size": 30522
40
  }
 
1
  {
2
+ "_name_or_path": "/Users/tarekziade/Dev/pardonmyai/pardonmyai-tiny",
 
3
  "architectures": [
4
+ "BertForSequenceClassification"
5
  ],
 
6
  "attention_probs_dropout_prob": 0.1,
7
  "cell": {},
8
+ "classifier_dropout": null,
 
9
  "emb_size": 312,
10
  "hidden_act": "gelu",
 
11
  "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 312,
13
  "id2label": {
14
  "0": "NOT_OFFENSIVE",
15
  "1": "OFFENSIVE"
 
20
  "NOT_OFFENSIVE": 0,
21
  "OFFENSIVE": 1
22
  },
23
+ "layer_norm_eps": 1e-12,
24
  "max_position_embeddings": 512,
25
+ "model_type": "bert",
26
+ "num_attention_heads": 12,
27
+ "num_hidden_layers": 4,
28
  "pad_token_id": 0,
29
+ "position_embedding_type": "absolute",
30
  "pre_trained": "",
31
  "problem_type": "single_label_classification",
 
 
 
32
  "structure": [],
33
  "transformers_version": "4.36.2",
34
  "type_vocab_size": 2,
35
+ "use_cache": true,
36
  "vocab_size": 30522
37
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:07f48ba48e5962b93365f03af02a942c3a77777b00610f87a0d18cf9cee8274f
3
- size 76129480
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04a9e6248ca4539e504318bbd43fb03a2d6b05db6a94b2f10b701903ae37bc2c
3
+ size 57411808
onnx/model.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fa4a8a071e1e4734ec0b9af9ef3f906e9edde123d0771ca5af18cfe7bf414937
3
- size 76214518
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f2c1732149aba1f1a16a848d08ecac71111a3e21a2ec31bb33fd6ec117eae9d
3
+ size 57498477
onnx/model_quantized.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f9de50faf4477be23561ad178c4bf28c5eccff30f7b976c77891357c5e6dd28d
3
- size 19354582
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:46c0b10bfe4307bd7f49433b6186c4a449b167c2cf44e9c18c35b878006517d4
3
+ size 14617515
quantize_config.json CHANGED
@@ -4,30 +4,27 @@
4
  "per_model_config": {
5
  "model": {
6
  "op_types": [
7
- "Constant",
8
- "MatMul",
9
  "Concat",
10
- "Cast",
11
- "Where",
12
- "Shape",
 
 
 
13
  "Softmax",
14
- "Sqrt",
15
- "Unsqueeze",
16
  "Transpose",
17
- "Expand",
18
- "Gather",
19
- "Erf",
20
- "Pow",
21
  "ReduceMean",
 
22
  "Reshape",
 
 
 
 
23
  "Slice",
24
- "Sub",
25
- "Gemm",
26
- "Equal",
27
- "Relu",
28
- "Add",
29
- "Mul",
30
- "Div"
31
  ],
32
  "weight_type": "QInt8"
33
  }
 
4
  "per_model_config": {
5
  "model": {
6
  "op_types": [
 
 
7
  "Concat",
8
+ "Tanh",
9
+ "Add",
10
+ "MatMul",
11
+ "Mul",
12
+ "Erf",
13
+ "Gemm",
14
  "Softmax",
15
+ "Shape",
 
16
  "Transpose",
 
 
 
 
17
  "ReduceMean",
18
+ "Sub",
19
  "Reshape",
20
+ "Cast",
21
+ "Pow",
22
+ "Div",
23
+ "Gather",
24
  "Slice",
25
+ "Constant",
26
+ "Unsqueeze",
27
+ "Sqrt"
 
 
 
 
28
  ],
29
  "weight_type": "QInt8"
30
  }
tokenizer_config.json CHANGED
@@ -52,6 +52,6 @@
52
  "sep_token": "[SEP]",
53
  "strip_accents": null,
54
  "tokenize_chinese_chars": true,
55
- "tokenizer_class": "DistilBertTokenizer",
56
  "unk_token": "[UNK]"
57
  }
 
52
  "sep_token": "[SEP]",
53
  "strip_accents": null,
54
  "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "BertTokenizer",
56
  "unk_token": "[UNK]"
57
  }