soniarocca31 commited on
Commit
91362e1
1 Parent(s): b3cc46c

End of training

Browse files
README.md ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: distilbert-base-multilingual-cased
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - swiss_law_area_prediction
8
+ metrics:
9
+ - precision
10
+ - recall
11
+ - f1
12
+ model-index:
13
+ - name: modello_finetuning1
14
+ results:
15
+ - task:
16
+ name: Text Classification
17
+ type: text-classification
18
+ dataset:
19
+ name: swiss_law_area_prediction
20
+ type: swiss_law_area_prediction
21
+ config: main
22
+ split: validation
23
+ args: main
24
+ metrics:
25
+ - name: Precision
26
+ type: precision
27
+ value: 0.9922018189992046
28
+ - name: Recall
29
+ type: recall
30
+ value: 0.9901734200771951
31
+ - name: F1
32
+ type: f1
33
+ value: 0.9911413155243709
34
+ ---
35
+
36
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
37
+ should probably proofread and complete it, then remove this comment. -->
38
+
39
+ # modello_finetuning1
40
+
41
+ This model is a fine-tuned version of [distilbert-base-multilingual-cased](https://huggingface.co/distilbert-base-multilingual-cased) on the swiss_law_area_prediction dataset.
42
+ It achieves the following results on the evaluation set:
43
+ - Loss: 0.0506
44
+ - Precision: 0.9922
45
+ - Recall: 0.9902
46
+ - F1: 0.9911
47
+
48
+ ## Model description
49
+
50
+ More information needed
51
+
52
+ ## Intended uses & limitations
53
+
54
+ More information needed
55
+
56
+ ## Training and evaluation data
57
+
58
+ More information needed
59
+
60
+ ## Training procedure
61
+
62
+ ### Training hyperparameters
63
+
64
+ The following hyperparameters were used during training:
65
+ - learning_rate: 6e-05
66
+ - train_batch_size: 8
67
+ - eval_batch_size: 8
68
+ - seed: 42
69
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
70
+ - lr_scheduler_type: linear
71
+ - num_epochs: 2
72
+
73
+ ### Training results
74
+
75
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 |
76
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|
77
+ | 0.0834 | 0.38 | 500 | 0.1812 | 0.9793 | 0.9677 | 0.9730 |
78
+ | 0.1029 | 0.76 | 1000 | 0.0973 | 0.9875 | 0.9834 | 0.9854 |
79
+ | 0.0066 | 1.15 | 1500 | 0.0647 | 0.9864 | 0.9886 | 0.9875 |
80
+ | 0.0008 | 1.53 | 2000 | 0.0619 | 0.9913 | 0.9893 | 0.9902 |
81
+ | 0.0003 | 1.91 | 2500 | 0.0506 | 0.9922 | 0.9902 | 0.9911 |
82
+
83
+
84
+ ### Framework versions
85
+
86
+ - Transformers 4.36.1
87
+ - Pytorch 2.1.0+cu118
88
+ - Datasets 2.15.0
89
+ - Tokenizers 0.15.0
config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "distilbert-base-multilingual-cased",
3
+ "activation": "gelu",
4
+ "architectures": [
5
+ "DistilBertForSequenceClassification"
6
+ ],
7
+ "attention_dropout": 0.1,
8
+ "dim": 768,
9
+ "dropout": 0.1,
10
+ "hidden_dim": 3072,
11
+ "id2label": {
12
+ "0": "Civil",
13
+ "1": "Criminal",
14
+ "2": "Public"
15
+ },
16
+ "initializer_range": 0.02,
17
+ "label2id": {
18
+ "Civil": 0,
19
+ "Criminal": 1,
20
+ "Public": 2
21
+ },
22
+ "max_position_embeddings": 512,
23
+ "model_type": "distilbert",
24
+ "n_heads": 12,
25
+ "n_layers": 6,
26
+ "output_past": true,
27
+ "pad_token_id": 0,
28
+ "problem_type": "single_label_classification",
29
+ "qa_dropout": 0.1,
30
+ "seq_classif_dropout": 0.2,
31
+ "sinusoidal_pos_embds": false,
32
+ "tie_weights_": true,
33
+ "torch_dtype": "float32",
34
+ "transformers_version": "4.36.1",
35
+ "vocab_size": 119547
36
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4dcec4c72f3ae509dd4e9398694e77d1002386071e5a1fe4446cea6d3a945302
3
+ size 541320452
runs/Dec14_11-58-50_42914af3dc17/events.out.tfevents.1702555130.42914af3dc17.1700.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66573a929188b74bb6f98ddaf29e5b5030cb44e4c19e0f5ffb7934585cf1fb4f
3
+ size 48081
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
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,
39
+ "rstrip": false,
40
+ "single_word": 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": "DistilBertTokenizer",
54
+ "unk_token": "[UNK]"
55
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:785e7ca94b6f799df8fe8371cee970f436bf8ce1d416a1f553057983558c1334
3
+ size 4728
vocab.txt ADDED
The diff for this file is too large to render. See raw diff