tunggad commited on
Commit
8029499
·
1 Parent(s): 4cf7a05

End of training

Browse files
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: bert-base-uncased
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - banking77
8
+ metrics:
9
+ - f1
10
+ model-index:
11
+ - name: bert-base-banking77-pt2
12
+ results:
13
+ - task:
14
+ name: Text Classification
15
+ type: text-classification
16
+ dataset:
17
+ name: banking77
18
+ type: banking77
19
+ config: default
20
+ split: test
21
+ args: default
22
+ metrics:
23
+ - name: F1
24
+ type: f1
25
+ value: 0.9285702550689736
26
+ ---
27
+
28
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
29
+ should probably proofread and complete it, then remove this comment. -->
30
+
31
+ # bert-base-banking77-pt2
32
+
33
+ This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the banking77 dataset.
34
+ It achieves the following results on the evaluation set:
35
+ - Loss: 0.3006
36
+ - F1: 0.9286
37
+
38
+ ## Model description
39
+
40
+ More information needed
41
+
42
+ ## Intended uses & limitations
43
+
44
+ More information needed
45
+
46
+ ## Training and evaluation data
47
+
48
+ More information needed
49
+
50
+ ## Training procedure
51
+
52
+ ### Training hyperparameters
53
+
54
+ The following hyperparameters were used during training:
55
+ - learning_rate: 5e-05
56
+ - train_batch_size: 16
57
+ - eval_batch_size: 8
58
+ - seed: 42
59
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
60
+ - lr_scheduler_type: linear
61
+ - num_epochs: 3
62
+
63
+ ### Training results
64
+
65
+ | Training Loss | Epoch | Step | Validation Loss | F1 |
66
+ |:-------------:|:-----:|:----:|:---------------:|:------:|
67
+ | 1.0717 | 1.0 | 626 | 0.7776 | 0.8511 |
68
+ | 0.3549 | 2.0 | 1252 | 0.3683 | 0.9211 |
69
+ | 0.1866 | 3.0 | 1878 | 0.3006 | 0.9286 |
70
+
71
+
72
+ ### Framework versions
73
+
74
+ - Transformers 4.36.2
75
+ - Pytorch 2.1.2+cu121
76
+ - Datasets 2.15.0
77
+ - Tokenizers 0.15.0
config.json ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bert-base-uncased",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "activate_my_card",
14
+ "1": "age_limit",
15
+ "10": "card_acceptance",
16
+ "11": "card_arrival",
17
+ "12": "card_delivery_estimate",
18
+ "13": "card_linking",
19
+ "14": "card_not_working",
20
+ "15": "card_payment_fee_charged",
21
+ "16": "card_payment_not_recognised",
22
+ "17": "card_payment_wrong_exchange_rate",
23
+ "18": "card_swallowed",
24
+ "19": "cash_withdrawal_charge",
25
+ "2": "apple_pay_or_google_pay",
26
+ "20": "cash_withdrawal_not_recognised",
27
+ "21": "change_pin",
28
+ "22": "compromised_card",
29
+ "23": "contactless_not_working",
30
+ "24": "country_support",
31
+ "25": "declined_card_payment",
32
+ "26": "declined_cash_withdrawal",
33
+ "27": "declined_transfer",
34
+ "28": "direct_debit_payment_not_recognised",
35
+ "29": "disposable_card_limits",
36
+ "3": "atm_support",
37
+ "30": "edit_personal_details",
38
+ "31": "exchange_charge",
39
+ "32": "exchange_rate",
40
+ "33": "exchange_via_app",
41
+ "34": "extra_charge_on_statement",
42
+ "35": "failed_transfer",
43
+ "36": "fiat_currency_support",
44
+ "37": "get_disposable_virtual_card",
45
+ "38": "get_physical_card",
46
+ "39": "getting_spare_card",
47
+ "4": "automatic_top_up",
48
+ "40": "getting_virtual_card",
49
+ "41": "lost_or_stolen_card",
50
+ "42": "lost_or_stolen_phone",
51
+ "43": "order_physical_card",
52
+ "44": "passcode_forgotten",
53
+ "45": "pending_card_payment",
54
+ "46": "pending_cash_withdrawal",
55
+ "47": "pending_top_up",
56
+ "48": "pending_transfer",
57
+ "49": "pin_blocked",
58
+ "5": "balance_not_updated_after_bank_transfer",
59
+ "50": "receiving_money",
60
+ "51": "Refund_not_showing_up",
61
+ "52": "request_refund",
62
+ "53": "reverted_card_payment?",
63
+ "54": "supported_cards_and_currencies",
64
+ "55": "terminate_account",
65
+ "56": "top_up_by_bank_transfer_charge",
66
+ "57": "top_up_by_card_charge",
67
+ "58": "top_up_by_cash_or_cheque",
68
+ "59": "top_up_failed",
69
+ "6": "balance_not_updated_after_cheque_or_cash_deposit",
70
+ "60": "top_up_limits",
71
+ "61": "top_up_reverted",
72
+ "62": "topping_up_by_card",
73
+ "63": "transaction_charged_twice",
74
+ "64": "transfer_fee_charged",
75
+ "65": "transfer_into_account",
76
+ "66": "transfer_not_received_by_recipient",
77
+ "67": "transfer_timing",
78
+ "68": "unable_to_verify_identity",
79
+ "69": "verify_my_identity",
80
+ "7": "beneficiary_not_allowed",
81
+ "70": "verify_source_of_funds",
82
+ "71": "verify_top_up",
83
+ "72": "virtual_card_not_working",
84
+ "73": "visa_or_mastercard",
85
+ "74": "why_verify_identity",
86
+ "75": "wrong_amount_of_cash_received",
87
+ "76": "wrong_exchange_rate_for_cash_withdrawal",
88
+ "8": "cancel_transfer",
89
+ "9": "card_about_to_expire"
90
+ },
91
+ "initializer_range": 0.02,
92
+ "intermediate_size": 3072,
93
+ "label2id": {
94
+ "Refund_not_showing_up": "51",
95
+ "activate_my_card": "0",
96
+ "age_limit": "1",
97
+ "apple_pay_or_google_pay": "2",
98
+ "atm_support": "3",
99
+ "automatic_top_up": "4",
100
+ "balance_not_updated_after_bank_transfer": "5",
101
+ "balance_not_updated_after_cheque_or_cash_deposit": "6",
102
+ "beneficiary_not_allowed": "7",
103
+ "cancel_transfer": "8",
104
+ "card_about_to_expire": "9",
105
+ "card_acceptance": "10",
106
+ "card_arrival": "11",
107
+ "card_delivery_estimate": "12",
108
+ "card_linking": "13",
109
+ "card_not_working": "14",
110
+ "card_payment_fee_charged": "15",
111
+ "card_payment_not_recognised": "16",
112
+ "card_payment_wrong_exchange_rate": "17",
113
+ "card_swallowed": "18",
114
+ "cash_withdrawal_charge": "19",
115
+ "cash_withdrawal_not_recognised": "20",
116
+ "change_pin": "21",
117
+ "compromised_card": "22",
118
+ "contactless_not_working": "23",
119
+ "country_support": "24",
120
+ "declined_card_payment": "25",
121
+ "declined_cash_withdrawal": "26",
122
+ "declined_transfer": "27",
123
+ "direct_debit_payment_not_recognised": "28",
124
+ "disposable_card_limits": "29",
125
+ "edit_personal_details": "30",
126
+ "exchange_charge": "31",
127
+ "exchange_rate": "32",
128
+ "exchange_via_app": "33",
129
+ "extra_charge_on_statement": "34",
130
+ "failed_transfer": "35",
131
+ "fiat_currency_support": "36",
132
+ "get_disposable_virtual_card": "37",
133
+ "get_physical_card": "38",
134
+ "getting_spare_card": "39",
135
+ "getting_virtual_card": "40",
136
+ "lost_or_stolen_card": "41",
137
+ "lost_or_stolen_phone": "42",
138
+ "order_physical_card": "43",
139
+ "passcode_forgotten": "44",
140
+ "pending_card_payment": "45",
141
+ "pending_cash_withdrawal": "46",
142
+ "pending_top_up": "47",
143
+ "pending_transfer": "48",
144
+ "pin_blocked": "49",
145
+ "receiving_money": "50",
146
+ "request_refund": "52",
147
+ "reverted_card_payment?": "53",
148
+ "supported_cards_and_currencies": "54",
149
+ "terminate_account": "55",
150
+ "top_up_by_bank_transfer_charge": "56",
151
+ "top_up_by_card_charge": "57",
152
+ "top_up_by_cash_or_cheque": "58",
153
+ "top_up_failed": "59",
154
+ "top_up_limits": "60",
155
+ "top_up_reverted": "61",
156
+ "topping_up_by_card": "62",
157
+ "transaction_charged_twice": "63",
158
+ "transfer_fee_charged": "64",
159
+ "transfer_into_account": "65",
160
+ "transfer_not_received_by_recipient": "66",
161
+ "transfer_timing": "67",
162
+ "unable_to_verify_identity": "68",
163
+ "verify_my_identity": "69",
164
+ "verify_source_of_funds": "70",
165
+ "verify_top_up": "71",
166
+ "virtual_card_not_working": "72",
167
+ "visa_or_mastercard": "73",
168
+ "why_verify_identity": "74",
169
+ "wrong_amount_of_cash_received": "75",
170
+ "wrong_exchange_rate_for_cash_withdrawal": "76"
171
+ },
172
+ "layer_norm_eps": 1e-12,
173
+ "max_position_embeddings": 512,
174
+ "model_type": "bert",
175
+ "num_attention_heads": 12,
176
+ "num_hidden_layers": 12,
177
+ "pad_token_id": 0,
178
+ "position_embedding_type": "absolute",
179
+ "problem_type": "single_label_classification",
180
+ "torch_dtype": "float32",
181
+ "transformers_version": "4.36.2",
182
+ "type_vocab_size": 2,
183
+ "use_cache": true,
184
+ "vocab_size": 30522
185
+ }
logs/events.out.tfevents.1703084550.papipc.20328.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39738404178257358704417bfea08adf9eb4bc5add14a3d7e149694e29bfc15d
3
+ size 12395
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cdbf60c3e8436b9efa2c40db7f28058e7ae32c461d48667e6b8b48bb059313da
3
+ size 438189348
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": true,
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": "BertTokenizer",
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:0a777e4e87ca651ee019dbca771074c5096bdab2b64ad49ff0ada2fb3effb8f9
3
+ size 4728
vocab.txt ADDED
The diff for this file is too large to render. See raw diff