xshubhamx commited on
Commit
24dab4a
1 Parent(s): 060ce6f

End of training

Browse files
README.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: law-ai/InLegalBERT
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: InLegalBERT-5-epochs-fine-tune
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # InLegalBERT-5-epochs-fine-tune
17
+
18
+ This model is a fine-tuned version of [law-ai/InLegalBERT](https://huggingface.co/law-ai/InLegalBERT) on an unknown dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.8945
21
+ - Accuracy: 0.8335
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 5e-05
41
+ - train_batch_size: 8
42
+ - eval_batch_size: 8
43
+ - seed: 42
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: linear
46
+ - num_epochs: 5
47
+
48
+ ### Training results
49
+
50
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
51
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
52
+ | 1.0224 | 1.0 | 643 | 0.6162 | 0.8195 |
53
+ | 0.55 | 2.0 | 1286 | 0.6389 | 0.8358 |
54
+ | 0.4205 | 3.0 | 1929 | 0.7489 | 0.8304 |
55
+ | 0.1503 | 4.0 | 2572 | 0.8605 | 0.8335 |
56
+ | 0.1065 | 5.0 | 3215 | 0.8945 | 0.8335 |
57
+
58
+
59
+ ### Framework versions
60
+
61
+ - Transformers 4.38.2
62
+ - Pytorch 2.1.2
63
+ - Datasets 2.1.0
64
+ - Tokenizers 0.15.2
config.json ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "law-ai/InLegalBERT",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_ids": 0,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "Issue",
15
+ "1": "Court Discourse",
16
+ "2": "Conclusion",
17
+ "3": "Precedent Analysis",
18
+ "4": "Section Analysis",
19
+ "5": "Argument by Petitioner",
20
+ "6": "Fact",
21
+ "7": "Argument by Respondent",
22
+ "8": "Ratio",
23
+ "9": "Appellant",
24
+ "10": "Respondent",
25
+ "11": "Argument by Appellant",
26
+ "12": "Petitioner",
27
+ "13": "Judge",
28
+ "14": "Argument by Defendant"
29
+ },
30
+ "initializer_range": 0.02,
31
+ "intermediate_size": 3072,
32
+ "label2id": {
33
+ "Appellant": 9,
34
+ "Argument by Appellant": 11,
35
+ "Argument by Defendant": 14,
36
+ "Argument by Petitioner": 5,
37
+ "Argument by Respondent": 7,
38
+ "Conclusion": 2,
39
+ "Court Discourse": 1,
40
+ "Fact": 6,
41
+ "Issue": 0,
42
+ "Judge": 13,
43
+ "Petitioner": 12,
44
+ "Precedent Analysis": 3,
45
+ "Ratio": 8,
46
+ "Respondent": 10,
47
+ "Section Analysis": 4
48
+ },
49
+ "layer_norm_eps": 1e-12,
50
+ "max_position_embeddings": 512,
51
+ "model_type": "bert",
52
+ "num_attention_heads": 12,
53
+ "num_hidden_layers": 12,
54
+ "output_past": true,
55
+ "pad_token_id": 0,
56
+ "position_embedding_type": "absolute",
57
+ "problem_type": "single_label_classification",
58
+ "torch_dtype": "float32",
59
+ "transformers_version": "4.38.2",
60
+ "type_vocab_size": 2,
61
+ "use_cache": true,
62
+ "vocab_size": 30522
63
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e052c4fc7d83cc92a6aa0ed7bffcd5d5bec767aadb2453862d3ba5e00936bf41
3
+ size 437998636
runs/Apr07_17-10-09_1c2abcd07455/events.out.tfevents.1712509811.1c2abcd07455.34.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4221c9e1599eb3d9ef03cb9008163856d92384c2e1f43e10a956d151d55ae198
3
+ size 8673
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57b2fd25e2da6adad68706fc99a4f9348b5f2c88804399ae365b2b33fe0aa009
3
+ size 4920