hcene commited on
Commit
26a61fd
1 Parent(s): f2d8d18

hcene/finetuned-distilcamemBERT_nli_legalquestions

Browse files
README.md ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: cmarkea/distilcamembert-base-nli
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ - precision
9
+ - recall
10
+ - f1
11
+ model-index:
12
+ - name: distilCamemBERT_nli_on_legal_data
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ # distilCamemBERT_nli_on_legal_data
20
+
21
+ This model is a fine-tuned version of [cmarkea/distilcamembert-base-nli](https://huggingface.co/cmarkea/distilcamembert-base-nli) on the None dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.7470
24
+ - Accuracy: 0.7384
25
+ - Precision: 0.7415
26
+ - Recall: 0.7395
27
+ - F1: 0.7378
28
+ - Ratio: 0.3297
29
+
30
+ ## Model description
31
+
32
+ More information needed
33
+
34
+ ## Intended uses & limitations
35
+
36
+ More information needed
37
+
38
+ ## Training and evaluation data
39
+
40
+ More information needed
41
+
42
+ ## Training procedure
43
+
44
+ ### Training hyperparameters
45
+
46
+ The following hyperparameters were used during training:
47
+ - learning_rate: 2e-05
48
+ - train_batch_size: 16
49
+ - eval_batch_size: 16
50
+ - seed: 42
51
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
52
+ - lr_scheduler_type: linear
53
+ - lr_scheduler_warmup_ratio: 0.1
54
+ - lr_scheduler_warmup_steps: 4
55
+ - num_epochs: 10
56
+ - label_smoothing_factor: 0.1
57
+
58
+ ### Training results
59
+
60
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 | Ratio |
61
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|:------:|
62
+ | 1.3001 | 0.14 | 10 | 0.8533 | 0.6452 | 0.6683 | 0.6459 | 0.6525 | 0.2903 |
63
+ | 0.9775 | 0.27 | 20 | 0.7170 | 0.6918 | 0.7191 | 0.6944 | 0.6639 | 0.3513 |
64
+ | 0.8096 | 0.41 | 30 | 0.6432 | 0.7204 | 0.7222 | 0.7218 | 0.7213 | 0.3297 |
65
+ | 0.9883 | 0.55 | 40 | 0.6914 | 0.7204 | 0.7382 | 0.7228 | 0.7064 | 0.3297 |
66
+ | 0.9221 | 0.68 | 50 | 0.6597 | 0.7563 | 0.7582 | 0.7574 | 0.7570 | 0.3297 |
67
+ | 0.8253 | 0.82 | 60 | 0.6639 | 0.7563 | 0.7802 | 0.7568 | 0.7440 | 0.3297 |
68
+ | 0.9096 | 0.96 | 70 | 0.6612 | 0.7384 | 0.7484 | 0.7392 | 0.7319 | 0.3297 |
69
+ | 0.8466 | 1.1 | 80 | 0.6884 | 0.7168 | 0.7534 | 0.7195 | 0.6884 | 0.3297 |
70
+ | 0.8457 | 1.23 | 90 | 0.6884 | 0.7563 | 0.7898 | 0.7567 | 0.7397 | 0.3297 |
71
+ | 0.836 | 1.37 | 100 | 0.6409 | 0.7563 | 0.7711 | 0.7569 | 0.7488 | 0.3297 |
72
+ | 0.7878 | 1.51 | 110 | 0.6876 | 0.7276 | 0.7324 | 0.7286 | 0.7249 | 0.3297 |
73
+ | 0.8107 | 1.64 | 120 | 0.6720 | 0.7419 | 0.7518 | 0.7427 | 0.7361 | 0.3297 |
74
+ | 0.782 | 1.78 | 130 | 0.7397 | 0.7419 | 0.7518 | 0.7427 | 0.7361 | 0.3297 |
75
+ | 0.7728 | 1.92 | 140 | 0.6921 | 0.7455 | 0.7551 | 0.7463 | 0.7402 | 0.3297 |
76
+ | 0.7704 | 2.05 | 150 | 0.6882 | 0.7419 | 0.7518 | 0.7427 | 0.7361 | 0.3297 |
77
+ | 0.7593 | 2.19 | 160 | 0.7163 | 0.7348 | 0.7487 | 0.7355 | 0.7304 | 0.3226 |
78
+ | 0.7995 | 2.33 | 170 | 0.6639 | 0.7419 | 0.7518 | 0.7427 | 0.7361 | 0.3297 |
79
+ | 0.7657 | 2.47 | 180 | 0.6906 | 0.7885 | 0.8418 | 0.7887 | 0.7720 | 0.3297 |
80
+ | 0.7758 | 2.6 | 190 | 0.7577 | 0.7133 | 0.7154 | 0.7146 | 0.7134 | 0.3297 |
81
+ | 0.8269 | 2.74 | 200 | 0.8168 | 0.5591 | 0.6324 | 0.5596 | 0.5804 | 0.2151 |
82
+ | 0.7721 | 2.88 | 210 | 0.6721 | 0.7706 | 0.7924 | 0.7711 | 0.7615 | 0.3297 |
83
+ | 0.7098 | 3.01 | 220 | 0.6917 | 0.7133 | 0.7157 | 0.7145 | 0.7129 | 0.3297 |
84
+ | 0.7683 | 3.15 | 230 | 0.7175 | 0.7168 | 0.7192 | 0.7181 | 0.7168 | 0.3297 |
85
+ | 0.6907 | 3.29 | 240 | 0.7298 | 0.7491 | 0.7598 | 0.7499 | 0.7434 | 0.3297 |
86
+ | 0.7013 | 3.42 | 250 | 0.7363 | 0.7634 | 0.7794 | 0.7641 | 0.7562 | 0.3297 |
87
+ | 0.7852 | 3.56 | 260 | 0.7616 | 0.7025 | 0.7181 | 0.7034 | 0.7052 | 0.3082 |
88
+ | 0.7375 | 3.7 | 270 | 0.7247 | 0.7849 | 0.8127 | 0.7853 | 0.7753 | 0.3297 |
89
+ | 0.7242 | 3.84 | 280 | 0.7199 | 0.7921 | 0.8182 | 0.7925 | 0.7838 | 0.3297 |
90
+ | 0.7135 | 3.97 | 290 | 0.7190 | 0.7742 | 0.7907 | 0.7748 | 0.7677 | 0.3297 |
91
+ | 0.7501 | 4.11 | 300 | 0.7104 | 0.7921 | 0.8292 | 0.7924 | 0.7805 | 0.3297 |
92
+ | 0.663 | 4.25 | 310 | 0.7579 | 0.7921 | 0.8643 | 0.7922 | 0.7720 | 0.3297 |
93
+ | 0.7316 | 4.38 | 320 | 0.7671 | 0.7312 | 0.7347 | 0.7323 | 0.7301 | 0.3297 |
94
+ | 0.7045 | 4.52 | 330 | 0.7673 | 0.7204 | 0.7227 | 0.7217 | 0.7206 | 0.3297 |
95
+ | 0.7316 | 4.66 | 340 | 0.7421 | 0.7849 | 0.8096 | 0.7854 | 0.7764 | 0.3297 |
96
+ | 0.7667 | 4.79 | 350 | 0.7269 | 0.7527 | 0.7576 | 0.7536 | 0.7512 | 0.3297 |
97
+ | 0.7109 | 4.93 | 360 | 0.7305 | 0.7742 | 0.7907 | 0.7748 | 0.7677 | 0.3297 |
98
+ | 0.7677 | 5.07 | 370 | 0.7805 | 0.7885 | 0.8226 | 0.7888 | 0.7773 | 0.3297 |
99
+ | 0.6988 | 5.21 | 380 | 0.7531 | 0.7921 | 0.8182 | 0.7925 | 0.7838 | 0.3297 |
100
+ | 0.7119 | 5.34 | 390 | 0.7396 | 0.7670 | 0.7773 | 0.7677 | 0.7630 | 0.3297 |
101
+ | 0.6535 | 5.48 | 400 | 0.7259 | 0.7634 | 0.7714 | 0.7642 | 0.7604 | 0.3297 |
102
+ | 0.6732 | 5.62 | 410 | 0.7301 | 0.7921 | 0.8292 | 0.7924 | 0.7805 | 0.3297 |
103
+ | 0.7243 | 5.75 | 420 | 0.7094 | 0.7849 | 0.8127 | 0.7853 | 0.7753 | 0.3297 |
104
+ | 0.7367 | 5.89 | 430 | 0.7266 | 0.7670 | 0.7759 | 0.7678 | 0.7637 | 0.3297 |
105
+ | 0.7464 | 6.03 | 440 | 0.7929 | 0.7957 | 0.8277 | 0.7960 | 0.7860 | 0.3297 |
106
+ | 0.6836 | 6.16 | 450 | 0.7844 | 0.7957 | 0.8209 | 0.7961 | 0.7880 | 0.3297 |
107
+ | 0.6901 | 6.3 | 460 | 0.7724 | 0.7706 | 0.7837 | 0.7713 | 0.7654 | 0.3297 |
108
+ | 0.6776 | 6.44 | 470 | 0.7513 | 0.7670 | 0.7806 | 0.7677 | 0.7613 | 0.3297 |
109
+ | 0.6388 | 6.58 | 480 | 0.7491 | 0.7384 | 0.7410 | 0.7395 | 0.7383 | 0.3297 |
110
+ | 0.7258 | 6.71 | 490 | 0.7361 | 0.7599 | 0.7695 | 0.7606 | 0.7557 | 0.3297 |
111
+ | 0.7458 | 6.85 | 500 | 0.7777 | 0.7993 | 0.8483 | 0.7994 | 0.7856 | 0.3297 |
112
+ | 0.7937 | 6.99 | 510 | 0.7797 | 0.7921 | 0.8336 | 0.7923 | 0.7793 | 0.3297 |
113
+ | 0.6984 | 7.12 | 520 | 0.7597 | 0.7634 | 0.7714 | 0.7642 | 0.7604 | 0.3297 |
114
+ | 0.7206 | 7.26 | 530 | 0.7470 | 0.7384 | 0.7415 | 0.7395 | 0.7378 | 0.3297 |
115
+
116
+
117
+ ### Framework versions
118
+
119
+ - Transformers 4.39.0.dev0
120
+ - Pytorch 2.1.0+cu121
121
+ - Datasets 2.17.1
122
+ - Tokenizers 0.15.2
config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "cmarkea/distilcamembert-base-nli",
3
+ "architectures": [
4
+ "CamembertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "gradient_checkpointing": false,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "contradiction",
16
+ "1": "entailment",
17
+ "2": "neutral"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "label2id": {
22
+ "contradiction": 0,
23
+ "entailment": 1,
24
+ "neutral": 2
25
+ },
26
+ "layer_norm_eps": 1e-05,
27
+ "max_position_embeddings": 514,
28
+ "model_type": "camembert",
29
+ "num_attention_heads": 12,
30
+ "num_hidden_layers": 6,
31
+ "pad_token_id": 1,
32
+ "position_embedding_type": "absolute",
33
+ "problem_type": "single_label_classification",
34
+ "torch_dtype": "float32",
35
+ "transformers_version": "4.39.0.dev0",
36
+ "type_vocab_size": 1,
37
+ "use_cache": true,
38
+ "vocab_size": 32178
39
+ }
logs/events.out.tfevents.1709222086.958a7af7d605.294.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea7367be581890a2470f0a733ac84c8a5bb0324b42b1bc13eb45caa7d9358f5a
3
+ size 22231
logs/events.out.tfevents.1709222559.958a7af7d605.294.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:578d30c8307d9c355afd6f755fb28c60dc3bcd0748bb63e850a55e1c7f34d2d8
3
+ size 44545
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e14db440f406bff15753e2867a2adb1a16deebc3fcf62d298a42b075ddf84484
3
+ size 272932092
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9494287928ab69886ff3b998ba03ecfdf10ef2d89296566e824bf69d32942bed
3
+ size 4856