luigisaetta
commited on
Commit
•
5166714
1
Parent(s):
bdff519
haspeech_ita
Browse files- .gitattributes +1 -0
- README.md +14 -19
- config.json +29 -13
- model.safetensors +2 -2
- runs/Nov27_13-02-24_13035cb65e56/events.out.tfevents.1701090147.13035cb65e56.29582.0 +3 -0
- runs/Nov27_13-03-09_13035cb65e56/events.out.tfevents.1701090191.13035cb65e56.30115.0 +3 -0
- runs/Nov27_13-12-33_d9cf46c62339/events.out.tfevents.1701090758.d9cf46c62339.647.0 +3 -0
- runs/Nov27_13-13-38_d9cf46c62339/events.out.tfevents.1701090819.d9cf46c62339.1210.0 +3 -0
- runs/Nov27_13-27-17_d9cf46c62339/events.out.tfevents.1701091638.d9cf46c62339.3722.0 +3 -0
- sentencepiece.bpe.model +3 -0
- special_tokens_map.json +13 -5
- tokenizer.json +0 -0
- tokenizer_config.json +18 -19
- training_args.bin +1 -1
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
---
|
2 |
-
license:
|
3 |
-
base_model:
|
4 |
tags:
|
5 |
- generated_from_trainer
|
6 |
metrics:
|
@@ -15,10 +15,10 @@ should probably proofread and complete it, then remove this comment. -->
|
|
15 |
|
16 |
# haspeech_ita
|
17 |
|
18 |
-
This model is a fine-tuned version of [
|
19 |
It achieves the following results on the evaluation set:
|
20 |
-
- Loss: 0.
|
21 |
-
- Accuracy: 0.
|
22 |
|
23 |
## Model description
|
24 |
|
@@ -38,29 +38,24 @@ More information needed
|
|
38 |
|
39 |
The following hyperparameters were used during training:
|
40 |
- learning_rate: 2e-05
|
41 |
-
- train_batch_size:
|
42 |
-
- eval_batch_size:
|
43 |
- seed: 42
|
44 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
- lr_scheduler_type: linear
|
46 |
- lr_scheduler_warmup_steps: 500
|
47 |
-
- num_epochs:
|
48 |
|
49 |
### Training results
|
50 |
|
51 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
52 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
53 |
-
| 0.
|
54 |
-
| 0.
|
55 |
-
| 0.
|
56 |
-
| 0.
|
57 |
-
| 0.
|
58 |
-
| 0.
|
59 |
-
| 0.0698 | 5.04 | 700 | 0.0750 | 0.9864 |
|
60 |
-
| 0.0305 | 5.76 | 800 | 0.0386 | 0.9919 |
|
61 |
-
| 0.0145 | 6.47 | 900 | 0.1088 | 0.9783 |
|
62 |
-
| 0.0094 | 7.19 | 1000 | 0.0591 | 0.9892 |
|
63 |
-
| 0.0014 | 7.91 | 1100 | 0.0790 | 0.9864 |
|
64 |
|
65 |
|
66 |
### Framework versions
|
|
|
1 |
---
|
2 |
+
license: gpl-3.0
|
3 |
+
base_model: MilaNLProc/hate-ita-xlm-r-large
|
4 |
tags:
|
5 |
- generated_from_trainer
|
6 |
metrics:
|
|
|
15 |
|
16 |
# haspeech_ita
|
17 |
|
18 |
+
This model is a fine-tuned version of [MilaNLProc/hate-ita-xlm-r-large](https://huggingface.co/MilaNLProc/hate-ita-xlm-r-large) on an unknown dataset.
|
19 |
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.0030
|
21 |
+
- Accuracy: 0.9973
|
22 |
|
23 |
## Model description
|
24 |
|
|
|
38 |
|
39 |
The following hyperparameters were used during training:
|
40 |
- learning_rate: 2e-05
|
41 |
+
- train_batch_size: 16
|
42 |
+
- eval_batch_size: 16
|
43 |
- seed: 42
|
44 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
- lr_scheduler_type: linear
|
46 |
- lr_scheduler_warmup_steps: 500
|
47 |
+
- num_epochs: 3
|
48 |
|
49 |
### Training results
|
50 |
|
51 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
52 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
53 |
+
| 0.3538 | 0.48 | 100 | 0.2109 | 0.9241 |
|
54 |
+
| 0.18 | 0.96 | 200 | 0.1058 | 0.9783 |
|
55 |
+
| 0.0924 | 1.44 | 300 | 0.0618 | 0.9892 |
|
56 |
+
| 0.0948 | 1.92 | 400 | 0.0382 | 0.9892 |
|
57 |
+
| 0.0475 | 2.4 | 500 | 0.0607 | 0.9919 |
|
58 |
+
| 0.0572 | 2.88 | 600 | 0.0030 | 0.9973 |
|
|
|
|
|
|
|
|
|
|
|
59 |
|
60 |
|
61 |
### Framework versions
|
config.json
CHANGED
@@ -1,27 +1,43 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
"architectures": [
|
4 |
-
"
|
5 |
],
|
6 |
"attention_probs_dropout_prob": 0.1,
|
|
|
7 |
"classifier_dropout": null,
|
8 |
-
"
|
9 |
"hidden_act": "gelu",
|
10 |
"hidden_dropout_prob": 0.1,
|
11 |
-
"hidden_size":
|
|
|
|
|
|
|
|
|
12 |
"initializer_range": 0.02,
|
13 |
-
"intermediate_size":
|
14 |
-
"
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
"
|
19 |
-
"
|
|
|
|
|
|
|
|
|
|
|
20 |
"position_embedding_type": "absolute",
|
21 |
"problem_type": "single_label_classification",
|
22 |
"torch_dtype": "float32",
|
23 |
"transformers_version": "4.35.2",
|
24 |
-
"type_vocab_size":
|
25 |
"use_cache": true,
|
26 |
-
"vocab_size":
|
27 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "MilaNLProc/hate-ita-xlm-r-large",
|
3 |
+
"adapters": {
|
4 |
+
"adapters": {},
|
5 |
+
"config_map": {},
|
6 |
+
"fusion_config_map": {},
|
7 |
+
"fusions": {}
|
8 |
+
},
|
9 |
"architectures": [
|
10 |
+
"XLMRobertaForSequenceClassification"
|
11 |
],
|
12 |
"attention_probs_dropout_prob": 0.1,
|
13 |
+
"bos_token_id": 0,
|
14 |
"classifier_dropout": null,
|
15 |
+
"eos_token_id": 2,
|
16 |
"hidden_act": "gelu",
|
17 |
"hidden_dropout_prob": 0.1,
|
18 |
+
"hidden_size": 1024,
|
19 |
+
"id2label": {
|
20 |
+
"0": "non-hateful",
|
21 |
+
"1": "hateful"
|
22 |
+
},
|
23 |
"initializer_range": 0.02,
|
24 |
+
"intermediate_size": 4096,
|
25 |
+
"label2id": {
|
26 |
+
"hateful": 1,
|
27 |
+
"non-hateful": 0
|
28 |
+
},
|
29 |
+
"layer_norm_eps": 1e-05,
|
30 |
+
"max_position_embeddings": 514,
|
31 |
+
"model_type": "xlm-roberta",
|
32 |
+
"num_attention_heads": 16,
|
33 |
+
"num_hidden_layers": 24,
|
34 |
+
"output_past": true,
|
35 |
+
"pad_token_id": 1,
|
36 |
"position_embedding_type": "absolute",
|
37 |
"problem_type": "single_label_classification",
|
38 |
"torch_dtype": "float32",
|
39 |
"transformers_version": "4.35.2",
|
40 |
+
"type_vocab_size": 1,
|
41 |
"use_cache": true,
|
42 |
+
"vocab_size": 250002
|
43 |
}
|
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:8b7a8ed7787c22cfde40788bc207bc776c4e37f112c84d875a3cc9aad59bf1e1
|
3 |
+
size 2239618672
|
runs/Nov27_13-02-24_13035cb65e56/events.out.tfevents.1701090147.13035cb65e56.29582.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e4105d4f9c3e8f135112d3fc3d99c1ed9a397921c7d47126628e53670eecbf3c
|
3 |
+
size 4591
|
runs/Nov27_13-03-09_13035cb65e56/events.out.tfevents.1701090191.13035cb65e56.30115.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:26d38535abd1b6b11603f087b1b6d30a23b805a72f8d80c3bb426fe63dd64cff
|
3 |
+
size 4591
|
runs/Nov27_13-12-33_d9cf46c62339/events.out.tfevents.1701090758.d9cf46c62339.647.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ecd5e9f470a016461a9e01e26a1f1a9005f64a604a2beb0af58319af727b3976
|
3 |
+
size 4591
|
runs/Nov27_13-13-38_d9cf46c62339/events.out.tfevents.1701090819.d9cf46c62339.1210.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6330678cbb04a0ca7d1410901b9371cee927fd37e6d831cfc1ec12a2cb84ad5c
|
3 |
+
size 6981
|
runs/Nov27_13-27-17_d9cf46c62339/events.out.tfevents.1701091638.d9cf46c62339.3722.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:66f9f9a7626710dc947cad52804dbc73ba3b98cc2978a23402a5404b3d404252
|
3 |
+
size 7815
|
sentencepiece.bpe.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
|
3 |
+
size 5069051
|
special_tokens_map.json
CHANGED
@@ -1,7 +1,15 @@
|
|
1 |
{
|
2 |
-
"
|
3 |
-
"
|
4 |
-
"
|
5 |
-
"
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
}
|
|
|
1 |
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"cls_token": "<s>",
|
4 |
+
"eos_token": "</s>",
|
5 |
+
"mask_token": {
|
6 |
+
"content": "<mask>",
|
7 |
+
"lstrip": true,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false
|
11 |
+
},
|
12 |
+
"pad_token": "<pad>",
|
13 |
+
"sep_token": "</s>",
|
14 |
+
"unk_token": "<unk>"
|
15 |
}
|
tokenizer.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
CHANGED
@@ -1,55 +1,54 @@
|
|
1 |
{
|
2 |
"added_tokens_decoder": {
|
3 |
"0": {
|
4 |
-
"content": "
|
5 |
"lstrip": false,
|
6 |
"normalized": false,
|
7 |
"rstrip": false,
|
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": "
|
37 |
-
"lstrip":
|
38 |
"normalized": false,
|
39 |
"rstrip": false,
|
40 |
"single_word": false,
|
41 |
"special": true
|
42 |
}
|
43 |
},
|
|
|
44 |
"clean_up_tokenization_spaces": true,
|
45 |
-
"cls_token": "
|
46 |
-
"
|
47 |
-
"mask_token": "
|
48 |
"model_max_length": 512,
|
49 |
-
"pad_token": "
|
50 |
-
"sep_token": "
|
51 |
-
"
|
52 |
-
"
|
53 |
-
"tokenizer_class": "BertTokenizer",
|
54 |
-
"unk_token": "[UNK]"
|
55 |
}
|
|
|
1 |
{
|
2 |
"added_tokens_decoder": {
|
3 |
"0": {
|
4 |
+
"content": "<s>",
|
5 |
"lstrip": false,
|
6 |
"normalized": false,
|
7 |
"rstrip": false,
|
8 |
"single_word": false,
|
9 |
"special": true
|
10 |
},
|
11 |
+
"1": {
|
12 |
+
"content": "<pad>",
|
13 |
"lstrip": false,
|
14 |
"normalized": false,
|
15 |
"rstrip": false,
|
16 |
"single_word": false,
|
17 |
"special": true
|
18 |
},
|
19 |
+
"2": {
|
20 |
+
"content": "</s>",
|
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 |
+
"250001": {
|
36 |
+
"content": "<mask>",
|
37 |
+
"lstrip": true,
|
38 |
"normalized": false,
|
39 |
"rstrip": false,
|
40 |
"single_word": false,
|
41 |
"special": true
|
42 |
}
|
43 |
},
|
44 |
+
"bos_token": "<s>",
|
45 |
"clean_up_tokenization_spaces": true,
|
46 |
+
"cls_token": "<s>",
|
47 |
+
"eos_token": "</s>",
|
48 |
+
"mask_token": "<mask>",
|
49 |
"model_max_length": 512,
|
50 |
+
"pad_token": "<pad>",
|
51 |
+
"sep_token": "</s>",
|
52 |
+
"tokenizer_class": "XLMRobertaTokenizer",
|
53 |
+
"unk_token": "<unk>"
|
|
|
|
|
54 |
}
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4155
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:201dea1895347b307260a950849cfc370b8f145200ab86273d0963a5b019a9c8
|
3 |
size 4155
|