adit94 commited on
Commit
b8f2c4b
·
verified ·
1 Parent(s): a3660ff

clause_model_nov14

Browse files
README.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-sa-4.0
3
+ base_model: nlpaueb/bert-base-uncased-contracts
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: clause_model_nov14
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
+ # clause_model_nov14
17
+
18
+ This model is a fine-tuned version of [nlpaueb/bert-base-uncased-contracts](https://huggingface.co/nlpaueb/bert-base-uncased-contracts) on the None dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.9001
21
+ - Accuracy: 0.8546
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: 2e-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
+ - lr_scheduler_warmup_steps: 500
47
+ - num_epochs: 10
48
+ - mixed_precision_training: Native AMP
49
+
50
+ ### Training results
51
+
52
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
53
+ |:-------------:|:-----:|:-----:|:---------------:|:--------:|
54
+ | 1.3476 | 1.0 | 1269 | 0.8415 | 0.8147 |
55
+ | 0.5667 | 2.0 | 2538 | 0.6364 | 0.8466 |
56
+ | 0.3336 | 3.0 | 3807 | 0.6719 | 0.8537 |
57
+ | 0.2592 | 4.0 | 5076 | 0.6984 | 0.8582 |
58
+ | 0.1558 | 5.0 | 6345 | 0.7896 | 0.8466 |
59
+ | 0.1148 | 6.0 | 7614 | 0.8543 | 0.8493 |
60
+ | 0.0722 | 7.0 | 8883 | 0.8264 | 0.8626 |
61
+ | 0.0716 | 8.0 | 10152 | 0.9042 | 0.8520 |
62
+ | 0.0589 | 9.0 | 11421 | 0.8841 | 0.8564 |
63
+ | 0.0349 | 10.0 | 12690 | 0.9001 | 0.8546 |
64
+
65
+
66
+ ### Framework versions
67
+
68
+ - Transformers 4.42.0
69
+ - Pytorch 2.5.0+cu121
70
+ - Datasets 3.1.0
71
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "nlpaueb/bert-base-uncased-contracts",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "eos_token_ids": null,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "Renewal Term",
14
+ "1": "Governing Law",
15
+ "2": "Competitive Restriction Exception",
16
+ "3": "Non-Compete",
17
+ "4": "Exclusivity",
18
+ "5": "No Solicitation",
19
+ "6": "Non-Disparagement",
20
+ "7": "Rofr/Rofo/Rofn",
21
+ "8": "Change Of Control",
22
+ "9": "Revenue/Profit Sharing",
23
+ "10": "Price Restrictions",
24
+ "11": "Minimum Commitment",
25
+ "12": "Ip Ownership Assignment",
26
+ "13": "Joint Ip Ownership",
27
+ "14": "License Grant",
28
+ "15": "Post-Termination Services",
29
+ "16": "Audits",
30
+ "17": "Uncapped Liability",
31
+ "18": "Cap On Liability",
32
+ "19": "Liquidated Damages",
33
+ "20": "Warranty Duration",
34
+ "21": "Insurance",
35
+ "22": "Covenant Not To Sue",
36
+ "23": "Severability",
37
+ "24": "Indemnification",
38
+ "25": "Waiver",
39
+ "26": "Compensation",
40
+ "27": "Confidentiality",
41
+ "28": "Termination",
42
+ "29": "Arbitration",
43
+ "30": "Force Majeure",
44
+ "31": "Definition",
45
+ "32": "Survival",
46
+ "33": "Assignment",
47
+ "34": "Dispute Resolution",
48
+ "35": "Security Deposit",
49
+ "36": "Breach",
50
+ "37": "Intellectual Property Rights",
51
+ "38": "Obligations",
52
+ "39": "Others"
53
+ },
54
+ "initializer_range": 0.02,
55
+ "intermediate_size": 3072,
56
+ "label2id": {
57
+ "Arbitration": 29,
58
+ "Assignment": 33,
59
+ "Audits": 16,
60
+ "Breach": 36,
61
+ "Cap On Liability": 18,
62
+ "Change Of Control": 8,
63
+ "Compensation": 26,
64
+ "Competitive Restriction Exception": 2,
65
+ "Confidentiality": 27,
66
+ "Covenant Not To Sue": 22,
67
+ "Definition": 31,
68
+ "Dispute Resolution": 34,
69
+ "Exclusivity": 4,
70
+ "Force Majeure": 30,
71
+ "Governing Law": 1,
72
+ "Indemnification": 24,
73
+ "Insurance": 21,
74
+ "Intellectual Property Rights": 37,
75
+ "Ip Ownership Assignment": 12,
76
+ "Joint Ip Ownership": 13,
77
+ "License Grant": 14,
78
+ "Liquidated Damages": 19,
79
+ "Minimum Commitment": 11,
80
+ "No Solicitation": 5,
81
+ "Non-Compete": 3,
82
+ "Non-Disparagement": 6,
83
+ "Obligations": 38,
84
+ "Others": 39,
85
+ "Post-Termination Services": 15,
86
+ "Price Restrictions": 10,
87
+ "Renewal Term": 0,
88
+ "Revenue/Profit Sharing": 9,
89
+ "Rofr/Rofo/Rofn": 7,
90
+ "Security Deposit": 35,
91
+ "Severability": 23,
92
+ "Survival": 32,
93
+ "Termination": 28,
94
+ "Uncapped Liability": 17,
95
+ "Waiver": 25,
96
+ "Warranty Duration": 20
97
+ },
98
+ "layer_norm_eps": 1e-12,
99
+ "max_position_embeddings": 512,
100
+ "model_type": "bert",
101
+ "num_attention_heads": 12,
102
+ "num_hidden_layers": 12,
103
+ "output_past": true,
104
+ "pad_token_id": null,
105
+ "position_embedding_type": "absolute",
106
+ "problem_type": "single_label_classification",
107
+ "torch_dtype": "float32",
108
+ "transformers_version": "4.42.0",
109
+ "type_vocab_size": 2,
110
+ "use_cache": true,
111
+ "vocab_size": 30522
112
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d60d61f1e9921e57c0ca88943d28916fbbe5d23bb34394f5c06824ff1cf946f
3
+ size 438075536
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,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "strip_accents": null,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "BertTokenizer",
56
+ "unk_token": "[UNK]"
57
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89a23253c00eb96deba706fe3511e0c73918ff24b036628e58448caf5f2c383b
3
+ size 5112
vocab.txt ADDED
The diff for this file is too large to render. See raw diff