adediu25/implicit-hatebert-all
Browse files- README.md +16 -15
- adapter_config.json +5 -5
- adapter_model.safetensors +2 -2
- special_tokens_map.json +1 -9
- tokenizer.json +0 -0
- tokenizer_config.json +17 -17
- training_args.bin +1 -1
README.md
CHANGED
@@ -1,11 +1,10 @@
|
|
1 |
---
|
2 |
-
license: mit
|
3 |
library_name: peft
|
4 |
tags:
|
5 |
- generated_from_trainer
|
|
|
6 |
metrics:
|
7 |
- accuracy
|
8 |
-
base_model: microsoft/deberta-v3-base
|
9 |
model-index:
|
10 |
- name: trainer
|
11 |
results: []
|
@@ -16,10 +15,10 @@ should probably proofread and complete it, then remove this comment. -->
|
|
16 |
|
17 |
# trainer
|
18 |
|
19 |
-
This model is a fine-tuned version of [
|
20 |
It achieves the following results on the evaluation set:
|
21 |
-
- Loss: 0.
|
22 |
-
- Accuracy: {'accuracy': 0.
|
23 |
|
24 |
## Model description
|
25 |
|
@@ -39,27 +38,29 @@ More information needed
|
|
39 |
|
40 |
The following hyperparameters were used during training:
|
41 |
- learning_rate: 0.001
|
42 |
-
- train_batch_size:
|
43 |
-
- eval_batch_size:
|
44 |
- seed: 42
|
|
|
|
|
45 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
46 |
- lr_scheduler_type: linear
|
47 |
- num_epochs: 4
|
48 |
|
49 |
### Training results
|
50 |
|
51 |
-
| Training Loss | Epoch | Step
|
52 |
-
|
53 |
-
| 0.
|
54 |
-
| 0.
|
55 |
-
| 0.
|
56 |
-
| 0.
|
57 |
|
58 |
|
59 |
### Framework versions
|
60 |
|
61 |
- PEFT 0.10.0
|
62 |
-
- Transformers 4.
|
63 |
-
- Pytorch 2.2.
|
64 |
- Datasets 2.18.0
|
65 |
- Tokenizers 0.15.2
|
|
|
1 |
---
|
|
|
2 |
library_name: peft
|
3 |
tags:
|
4 |
- generated_from_trainer
|
5 |
+
base_model: GroNLP/hateBERT
|
6 |
metrics:
|
7 |
- accuracy
|
|
|
8 |
model-index:
|
9 |
- name: trainer
|
10 |
results: []
|
|
|
15 |
|
16 |
# trainer
|
17 |
|
18 |
+
This model is a fine-tuned version of [GroNLP/hateBERT](https://huggingface.co/GroNLP/hateBERT) on an unknown dataset.
|
19 |
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.5228
|
21 |
+
- Accuracy: {'accuracy': 0.7989466452942523}
|
22 |
|
23 |
## Model description
|
24 |
|
|
|
38 |
|
39 |
The following hyperparameters were used during training:
|
40 |
- learning_rate: 0.001
|
41 |
+
- train_batch_size: 10
|
42 |
+
- eval_batch_size: 10
|
43 |
- seed: 42
|
44 |
+
- gradient_accumulation_steps: 2
|
45 |
+
- total_train_batch_size: 20
|
46 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
47 |
- lr_scheduler_type: linear
|
48 |
- num_epochs: 4
|
49 |
|
50 |
### Training results
|
51 |
|
52 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
53 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------------------------------:|
|
54 |
+
| 0.4295 | 1.0 | 2217 | 0.6655 | {'accuracy': 0.7348294023356996} |
|
55 |
+
| 0.3365 | 2.0 | 4434 | 0.5471 | {'accuracy': 0.7874971376230822} |
|
56 |
+
| 0.2882 | 3.0 | 6651 | 0.5133 | {'accuracy': 0.8014655369819098} |
|
57 |
+
| 0.2574 | 4.0 | 8868 | 0.5228 | {'accuracy': 0.7989466452942523} |
|
58 |
|
59 |
|
60 |
### Framework versions
|
61 |
|
62 |
- PEFT 0.10.0
|
63 |
+
- Transformers 4.39.3
|
64 |
+
- Pytorch 2.2.2+cu121
|
65 |
- Datasets 2.18.0
|
66 |
- Tokenizers 0.15.2
|
adapter_config.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
"alpha_pattern": {},
|
3 |
"auto_mapping": null,
|
4 |
-
"base_model_name_or_path": "
|
5 |
"bias": "none",
|
6 |
"fan_in_fan_out": false,
|
7 |
"inference_mode": true,
|
@@ -20,11 +20,11 @@
|
|
20 |
"rank_pattern": {},
|
21 |
"revision": null,
|
22 |
"target_modules": [
|
23 |
-
"
|
24 |
-
"
|
25 |
-
"
|
26 |
"classifier",
|
27 |
-
"
|
28 |
],
|
29 |
"task_type": "SEQ_CLS",
|
30 |
"use_dora": false,
|
|
|
1 |
{
|
2 |
"alpha_pattern": {},
|
3 |
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "GroNLP/hateBERT",
|
5 |
"bias": "none",
|
6 |
"fan_in_fan_out": false,
|
7 |
"inference_mode": true,
|
|
|
20 |
"rank_pattern": {},
|
21 |
"revision": null,
|
22 |
"target_modules": [
|
23 |
+
"dense",
|
24 |
+
"value",
|
25 |
+
"key",
|
26 |
"classifier",
|
27 |
+
"query"
|
28 |
],
|
29 |
"task_type": "SEQ_CLS",
|
30 |
"use_dora": false,
|
adapter_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:48f745e93cb5c6a66812e30fccf8b4b6c6fea527b555638e24448d5d9be3eb60
|
3 |
+
size 5461916
|
special_tokens_map.json
CHANGED
@@ -1,15 +1,7 @@
|
|
1 |
{
|
2 |
-
"bos_token": "[CLS]",
|
3 |
"cls_token": "[CLS]",
|
4 |
-
"eos_token": "[SEP]",
|
5 |
"mask_token": "[MASK]",
|
6 |
"pad_token": "[PAD]",
|
7 |
"sep_token": "[SEP]",
|
8 |
-
"unk_token":
|
9 |
-
"content": "[UNK]",
|
10 |
-
"lstrip": false,
|
11 |
-
"normalized": true,
|
12 |
-
"rstrip": false,
|
13 |
-
"single_word": false
|
14 |
-
}
|
15 |
}
|
|
|
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
The diff for this file is too large to render.
See raw diff
|
|
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":
|
31 |
"rstrip": false,
|
32 |
"single_word": false,
|
33 |
"special": true
|
34 |
},
|
35 |
-
"
|
36 |
"content": "[MASK]",
|
37 |
"lstrip": false,
|
38 |
"normalized": false,
|
@@ -41,18 +41,18 @@
|
|
41 |
"special": true
|
42 |
}
|
43 |
},
|
44 |
-
"bos_token": "[CLS]",
|
45 |
"clean_up_tokenization_spaces": true,
|
46 |
"cls_token": "[CLS]",
|
47 |
-
"
|
48 |
-
"
|
49 |
"mask_token": "[MASK]",
|
50 |
-
"
|
|
|
|
|
51 |
"pad_token": "[PAD]",
|
52 |
"sep_token": "[SEP]",
|
53 |
-
"
|
54 |
-
"
|
55 |
-
"tokenizer_class": "
|
56 |
-
"unk_token": "[UNK]"
|
57 |
-
"vocab_type": "spm"
|
58 |
}
|
|
|
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_basic_tokenize": true,
|
47 |
+
"do_lower_case": true,
|
48 |
"mask_token": "[MASK]",
|
49 |
+
"max_len": 512,
|
50 |
+
"model_max_length": 512,
|
51 |
+
"never_split": null,
|
52 |
"pad_token": "[PAD]",
|
53 |
"sep_token": "[SEP]",
|
54 |
+
"strip_accents": null,
|
55 |
+
"tokenize_chinese_chars": true,
|
56 |
+
"tokenizer_class": "BertTokenizer",
|
57 |
+
"unk_token": "[UNK]"
|
|
|
58 |
}
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4856
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:906648a7de0aa95ca86231ac26a736c55ebe6924ba92d8588ea9323a8eab51e6
|
3 |
size 4856
|