eysharaazia commited on
Commit
23526e5
1 Parent(s): df86df9

cyber_deberta

Browse files
Files changed (7) hide show
  1. README.md +18 -18
  2. config.json +16 -19
  3. model.safetensors +2 -2
  4. special_tokens_map.json +5 -49
  5. tokenizer.json +2 -2
  6. tokenizer_config.json +11 -18
  7. vocab.txt +0 -0
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
- license: mit
3
- base_model: MoritzLaurer/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7
4
  tags:
5
  - generated_from_trainer
6
  metrics:
@@ -18,13 +18,13 @@ should probably proofread and complete it, then remove this comment. -->
18
 
19
  # cyber_deberta
20
 
21
- This model is a fine-tuned version of [MoritzLaurer/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7](https://huggingface.co/MoritzLaurer/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7) on the None dataset.
22
  It achieves the following results on the evaluation set:
23
- - Loss: 0.4424
24
- - Accuracy: 0.8383
25
- - F1: 0.8222
26
- - Precision: 0.8189
27
- - Recall: 0.8260
28
 
29
  ## Model description
30
 
@@ -59,16 +59,16 @@ The following hyperparameters were used during training:
59
 
60
  | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
61
  |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
62
- | 0.5757 | 1.0 | 105 | 0.5760 | 0.6948 | 0.5676 | 0.6774 | 0.5811 |
63
- | 0.4861 | 2.0 | 210 | 0.4837 | 0.7663 | 0.7328 | 0.7410 | 0.7272 |
64
- | 0.4106 | 3.0 | 315 | 0.4200 | 0.8033 | 0.7800 | 0.7817 | 0.7785 |
65
- | 0.3777 | 4.0 | 420 | 0.3928 | 0.8200 | 0.7953 | 0.8033 | 0.7893 |
66
- | 0.2995 | 5.0 | 525 | 0.3835 | 0.8331 | 0.8187 | 0.8129 | 0.8272 |
67
- | 0.3012 | 6.0 | 630 | 0.3786 | 0.8404 | 0.8222 | 0.8227 | 0.8217 |
68
- | 0.26 | 7.0 | 735 | 0.3827 | 0.8399 | 0.8265 | 0.8202 | 0.8361 |
69
- | 0.2388 | 8.0 | 840 | 0.4340 | 0.8346 | 0.8139 | 0.8180 | 0.8104 |
70
- | 0.2092 | 9.0 | 945 | 0.4377 | 0.8388 | 0.8237 | 0.8192 | 0.8294 |
71
- | 0.1957 | 10.0 | 1050 | 0.4424 | 0.8383 | 0.8222 | 0.8189 | 0.8260 |
72
 
73
 
74
  ### Framework versions
 
1
  ---
2
+ license: apache-2.0
3
+ base_model: google-bert/bert-base-multilingual-cased
4
  tags:
5
  - generated_from_trainer
6
  metrics:
 
18
 
19
  # cyber_deberta
20
 
21
+ This model is a fine-tuned version of [google-bert/bert-base-multilingual-cased](https://huggingface.co/google-bert/bert-base-multilingual-cased) on the None dataset.
22
  It achieves the following results on the evaluation set:
23
+ - Loss: 0.4669
24
+ - Accuracy: 0.8315
25
+ - F1: 0.8135
26
+ - Precision: 0.8121
27
+ - Recall: 0.8150
28
 
29
  ## Model description
30
 
 
59
 
60
  | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
61
  |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
62
+ | 0.5788 | 1.0 | 105 | 0.5623 | 0.6755 | 0.4813 | 0.6766 | 0.5352 |
63
+ | 0.478 | 2.0 | 210 | 0.4430 | 0.7746 | 0.7444 | 0.7501 | 0.7401 |
64
+ | 0.4087 | 3.0 | 315 | 0.3948 | 0.8096 | 0.7835 | 0.7911 | 0.7777 |
65
+ | 0.4004 | 4.0 | 420 | 0.3868 | 0.8080 | 0.7917 | 0.7864 | 0.7998 |
66
+ | 0.3216 | 5.0 | 525 | 0.4005 | 0.8106 | 0.7928 | 0.7888 | 0.7980 |
67
+ | 0.3144 | 6.0 | 630 | 0.3878 | 0.8299 | 0.8062 | 0.8153 | 0.7994 |
68
+ | 0.2598 | 7.0 | 735 | 0.4040 | 0.8258 | 0.8084 | 0.8053 | 0.8121 |
69
+ | 0.2234 | 8.0 | 840 | 0.4280 | 0.8284 | 0.8108 | 0.8083 | 0.8137 |
70
+ | 0.2088 | 9.0 | 945 | 0.4580 | 0.8320 | 0.8154 | 0.8121 | 0.8194 |
71
+ | 0.1775 | 10.0 | 1050 | 0.4669 | 0.8315 | 0.8135 | 0.8121 | 0.8150 |
72
 
73
 
74
  ### Framework versions
config.json CHANGED
@@ -1,9 +1,11 @@
1
  {
2
- "_name_or_path": "MoritzLaurer/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7",
3
  "architectures": [
4
- "DebertaV2ForSequenceClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
 
 
7
  "hidden_act": "gelu",
8
  "hidden_dropout_prob": 0.1,
9
  "hidden_size": 768,
@@ -17,27 +19,22 @@
17
  "No": 0,
18
  "Yes": 1
19
  },
20
- "layer_norm_eps": 1e-07,
21
  "max_position_embeddings": 512,
22
- "max_relative_positions": -1,
23
- "model_type": "deberta-v2",
24
- "norm_rel_ebd": "layer_norm",
25
  "num_attention_heads": 12,
26
  "num_hidden_layers": 12,
27
  "pad_token_id": 0,
28
- "pooler_dropout": 0,
29
- "pooler_hidden_act": "gelu",
30
- "pooler_hidden_size": 768,
31
- "pos_att_type": [
32
- "p2c",
33
- "c2p"
34
- ],
35
- "position_biased_input": false,
36
- "position_buckets": 256,
37
- "relative_attention": true,
38
- "share_att_key": true,
39
  "torch_dtype": "float32",
40
  "transformers_version": "4.41.2",
41
- "type_vocab_size": 0,
42
- "vocab_size": 251000
 
43
  }
 
1
  {
2
+ "_name_or_path": "google-bert/bert-base-multilingual-cased",
3
  "architectures": [
4
+ "BertForSequenceClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "directionality": "bidi",
9
  "hidden_act": "gelu",
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
 
19
  "No": 0,
20
  "Yes": 1
21
  },
22
+ "layer_norm_eps": 1e-12,
23
  "max_position_embeddings": 512,
24
+ "model_type": "bert",
 
 
25
  "num_attention_heads": 12,
26
  "num_hidden_layers": 12,
27
  "pad_token_id": 0,
28
+ "pooler_fc_size": 768,
29
+ "pooler_num_attention_heads": 12,
30
+ "pooler_num_fc_layers": 3,
31
+ "pooler_size_per_head": 128,
32
+ "pooler_type": "first_token_transform",
33
+ "position_embedding_type": "absolute",
34
+ "problem_type": "single_label_classification",
 
 
 
 
35
  "torch_dtype": "float32",
36
  "transformers_version": "4.41.2",
37
+ "type_vocab_size": 2,
38
+ "use_cache": true,
39
+ "vocab_size": 119547
40
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7fcc562bd25e738338e588ab90790dc9f408b69a300aeea8d858e2970f5636ae
3
- size 1115268200
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ada620f62ce7f4490ed74ce016091e1891cc24343111572f6f612c88a3f4f19
3
+ size 711443456
special_tokens_map.json CHANGED
@@ -1,51 +1,7 @@
1
  {
2
- "bos_token": {
3
- "content": "[CLS]",
4
- "lstrip": false,
5
- "normalized": false,
6
- "rstrip": false,
7
- "single_word": false
8
- },
9
- "cls_token": {
10
- "content": "[CLS]",
11
- "lstrip": false,
12
- "normalized": false,
13
- "rstrip": false,
14
- "single_word": false
15
- },
16
- "eos_token": {
17
- "content": "[SEP]",
18
- "lstrip": false,
19
- "normalized": false,
20
- "rstrip": false,
21
- "single_word": false
22
- },
23
- "mask_token": {
24
- "content": "[MASK]",
25
- "lstrip": false,
26
- "normalized": false,
27
- "rstrip": false,
28
- "single_word": false
29
- },
30
- "pad_token": {
31
- "content": "[PAD]",
32
- "lstrip": false,
33
- "normalized": false,
34
- "rstrip": false,
35
- "single_word": false
36
- },
37
- "sep_token": {
38
- "content": "[SEP]",
39
- "lstrip": false,
40
- "normalized": false,
41
- "rstrip": false,
42
- "single_word": false
43
- },
44
- "unk_token": {
45
- "content": "[UNK]",
46
- "lstrip": false,
47
- "normalized": false,
48
- "rstrip": false,
49
- "single_word": false
50
- }
51
  }
 
1
  {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  }
tokenizer.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ac9bd80d04d21b4df95917bdf7c750cbea28acc30a4462c76ca2b9c86d371863
3
- size 16316225
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf1b59b7b11c95f194f51708d918eea378e09d05f84c0e1656dc5180e8117088
3
+ size 2919362
tokenizer_config.json CHANGED
@@ -8,31 +8,31 @@
8
  "single_word": false,
9
  "special": true
10
  },
11
- "1": {
12
- "content": "[CLS]",
13
  "lstrip": false,
14
  "normalized": false,
15
  "rstrip": false,
16
  "single_word": false,
17
  "special": true
18
  },
19
- "2": {
20
- "content": "[SEP]",
21
  "lstrip": false,
22
  "normalized": false,
23
  "rstrip": false,
24
  "single_word": false,
25
  "special": true
26
  },
27
- "3": {
28
- "content": "[UNK]",
29
  "lstrip": false,
30
  "normalized": false,
31
  "rstrip": false,
32
  "single_word": false,
33
  "special": true
34
  },
35
- "250101": {
36
  "content": "[MASK]",
37
  "lstrip": false,
38
  "normalized": false,
@@ -41,22 +41,15 @@
41
  "special": true
42
  }
43
  },
44
- "bos_token": "[CLS]",
45
  "clean_up_tokenization_spaces": true,
46
  "cls_token": "[CLS]",
47
  "do_lower_case": false,
48
- "eos_token": "[SEP]",
49
  "mask_token": "[MASK]",
50
- "max_length": 512,
51
  "model_max_length": 512,
52
  "pad_token": "[PAD]",
53
  "sep_token": "[SEP]",
54
- "sp_model_kwargs": {},
55
- "split_by_punct": false,
56
- "stride": 0,
57
- "tokenizer_class": "DebertaV2Tokenizer",
58
- "truncation_side": "right",
59
- "truncation_strategy": "longest_first",
60
- "unk_token": "[UNK]",
61
- "vocab_type": "spm"
62
  }
 
8
  "single_word": false,
9
  "special": true
10
  },
11
+ "100": {
12
+ "content": "[UNK]",
13
  "lstrip": false,
14
  "normalized": false,
15
  "rstrip": false,
16
  "single_word": false,
17
  "special": true
18
  },
19
+ "101": {
20
+ "content": "[CLS]",
21
  "lstrip": false,
22
  "normalized": false,
23
  "rstrip": false,
24
  "single_word": false,
25
  "special": true
26
  },
27
+ "102": {
28
+ "content": "[SEP]",
29
  "lstrip": false,
30
  "normalized": false,
31
  "rstrip": false,
32
  "single_word": false,
33
  "special": true
34
  },
35
+ "103": {
36
  "content": "[MASK]",
37
  "lstrip": false,
38
  "normalized": false,
 
41
  "special": true
42
  }
43
  },
 
44
  "clean_up_tokenization_spaces": true,
45
  "cls_token": "[CLS]",
46
  "do_lower_case": false,
 
47
  "mask_token": "[MASK]",
 
48
  "model_max_length": 512,
49
  "pad_token": "[PAD]",
50
  "sep_token": "[SEP]",
51
+ "strip_accents": null,
52
+ "tokenize_chinese_chars": true,
53
+ "tokenizer_class": "BertTokenizer",
54
+ "unk_token": "[UNK]"
 
 
 
 
55
  }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff