eysharaazia
commited on
Commit
•
23526e5
1
Parent(s):
df86df9
cyber_deberta
Browse files- README.md +18 -18
- config.json +16 -19
- model.safetensors +2 -2
- special_tokens_map.json +5 -49
- tokenizer.json +2 -2
- tokenizer_config.json +11 -18
- vocab.txt +0 -0
README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
---
|
2 |
-
license:
|
3 |
-
base_model:
|
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 [
|
22 |
It achieves the following results on the evaluation set:
|
23 |
-
- Loss: 0.
|
24 |
-
- Accuracy: 0.
|
25 |
-
- F1: 0.
|
26 |
-
- Precision: 0.
|
27 |
-
- Recall: 0.
|
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.
|
63 |
-
| 0.
|
64 |
-
| 0.
|
65 |
-
| 0.
|
66 |
-
| 0.
|
67 |
-
| 0.
|
68 |
-
| 0.
|
69 |
-
| 0.
|
70 |
-
| 0.
|
71 |
-
| 0.
|
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": "
|
3 |
"architectures": [
|
4 |
-
"
|
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-
|
21 |
"max_position_embeddings": 512,
|
22 |
-
"
|
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 |
-
"
|
29 |
-
"
|
30 |
-
"
|
31 |
-
"
|
32 |
-
|
33 |
-
|
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":
|
42 |
-
"
|
|
|
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:
|
3 |
-
size
|
|
|
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 |
-
"
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
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:
|
3 |
-
size
|
|
|
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 |
-
"
|
12 |
-
"content": "[
|
13 |
"lstrip": false,
|
14 |
"normalized": false,
|
15 |
"rstrip": false,
|
16 |
"single_word": false,
|
17 |
"special": true
|
18 |
},
|
19 |
-
"
|
20 |
-
"content": "[
|
21 |
"lstrip": false,
|
22 |
"normalized": false,
|
23 |
"rstrip": false,
|
24 |
"single_word": false,
|
25 |
"special": true
|
26 |
},
|
27 |
-
"
|
28 |
-
"content": "[
|
29 |
"lstrip": false,
|
30 |
"normalized": false,
|
31 |
"rstrip": false,
|
32 |
"single_word": false,
|
33 |
"special": true
|
34 |
},
|
35 |
-
"
|
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 |
-
"
|
55 |
-
"
|
56 |
-
"
|
57 |
-
"
|
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
|
|