Commit
·
57c8f9e
1
Parent(s):
e03aa9a
Training in progress epoch 0
Browse files- README.md +55 -0
- config.json +181 -0
- special_tokens_map.json +7 -0
- tf_model.h5 +3 -0
- tokenizer.json +0 -0
- tokenizer_config.json +55 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: distilbert-base-uncased
|
4 |
+
tags:
|
5 |
+
- generated_from_keras_callback
|
6 |
+
model-index:
|
7 |
+
- name: suthanhcong/banking77-finetune-distilbert
|
8 |
+
results: []
|
9 |
+
---
|
10 |
+
|
11 |
+
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
12 |
+
probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
# suthanhcong/banking77-finetune-distilbert
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an unknown dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Train Loss: 3.0968
|
19 |
+
- Validation Loss: 1.8396
|
20 |
+
- Train Accuracy: 0.7075
|
21 |
+
- Epoch: 0
|
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 |
+
- optimizer: {'name': 'Adam', 'weight_decay': None, 'clipnorm': None, 'global_clipnorm': None, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': None, 'jit_compile': True, 'is_legacy_optimizer': False, 'learning_rate': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 3125, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'registered_name': None}, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False}
|
41 |
+
- training_precision: float32
|
42 |
+
|
43 |
+
### Training results
|
44 |
+
|
45 |
+
| Train Loss | Validation Loss | Train Accuracy | Epoch |
|
46 |
+
|:----------:|:---------------:|:--------------:|:-----:|
|
47 |
+
| 3.0968 | 1.8396 | 0.7075 | 0 |
|
48 |
+
|
49 |
+
|
50 |
+
### Framework versions
|
51 |
+
|
52 |
+
- Transformers 4.37.2
|
53 |
+
- TensorFlow 2.15.0
|
54 |
+
- Datasets 2.17.1
|
55 |
+
- Tokenizers 0.15.2
|
config.json
ADDED
@@ -0,0 +1,181 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "distilbert-base-uncased",
|
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": "activate_my_card",
|
13 |
+
"1": "age_limit",
|
14 |
+
"2": "apple_pay_or_google_pay",
|
15 |
+
"3": "atm_support",
|
16 |
+
"4": "automatic_top_up",
|
17 |
+
"5": "balance_not_updated_after_bank_transfer",
|
18 |
+
"6": "balance_not_updated_after_cheque_or_cash_deposit",
|
19 |
+
"7": "beneficiary_not_allowed",
|
20 |
+
"8": "cancel_transfer",
|
21 |
+
"9": "card_about_to_expire",
|
22 |
+
"10": "card_acceptance",
|
23 |
+
"11": "card_arrival",
|
24 |
+
"12": "card_delivery_estimate",
|
25 |
+
"13": "card_linking",
|
26 |
+
"14": "card_not_working",
|
27 |
+
"15": "card_payment_fee_charged",
|
28 |
+
"16": "card_payment_not_recognised",
|
29 |
+
"17": "card_payment_wrong_exchange_rate",
|
30 |
+
"18": "card_swallowed",
|
31 |
+
"19": "cash_withdrawal_charge",
|
32 |
+
"20": "cash_withdrawal_not_recognised",
|
33 |
+
"21": "change_pin",
|
34 |
+
"22": "compromised_card",
|
35 |
+
"23": "contactless_not_working",
|
36 |
+
"24": "country_support",
|
37 |
+
"25": "declined_card_payment",
|
38 |
+
"26": "declined_cash_withdrawal",
|
39 |
+
"27": "declined_transfer",
|
40 |
+
"28": "direct_debit_payment_not_recognised",
|
41 |
+
"29": "disposable_card_limits",
|
42 |
+
"30": "edit_personal_details",
|
43 |
+
"31": "exchange_charge",
|
44 |
+
"32": "exchange_rate",
|
45 |
+
"33": "exchange_via_app",
|
46 |
+
"34": "extra_charge_on_statement",
|
47 |
+
"35": "failed_transfer",
|
48 |
+
"36": "fiat_currency_support",
|
49 |
+
"37": "get_disposable_virtual_card",
|
50 |
+
"38": "get_physical_card",
|
51 |
+
"39": "getting_spare_card",
|
52 |
+
"40": "getting_virtual_card",
|
53 |
+
"41": "lost_or_stolen_card",
|
54 |
+
"42": "lost_or_stolen_phone",
|
55 |
+
"43": "order_physical_card",
|
56 |
+
"44": "passcode_forgotten",
|
57 |
+
"45": "pending_card_payment",
|
58 |
+
"46": "pending_cash_withdrawal",
|
59 |
+
"47": "pending_top_up",
|
60 |
+
"48": "pending_transfer",
|
61 |
+
"49": "pin_blocked",
|
62 |
+
"50": "receiving_money",
|
63 |
+
"51": "Refund_not_showing_up",
|
64 |
+
"52": "request_refund",
|
65 |
+
"53": "reverted_card_payment?",
|
66 |
+
"54": "supported_cards_and_currencies",
|
67 |
+
"55": "terminate_account",
|
68 |
+
"56": "top_up_by_bank_transfer_charge",
|
69 |
+
"57": "top_up_by_card_charge",
|
70 |
+
"58": "top_up_by_cash_or_cheque",
|
71 |
+
"59": "top_up_failed",
|
72 |
+
"60": "top_up_limits",
|
73 |
+
"61": "top_up_reverted",
|
74 |
+
"62": "topping_up_by_card",
|
75 |
+
"63": "transaction_charged_twice",
|
76 |
+
"64": "transfer_fee_charged",
|
77 |
+
"65": "transfer_into_account",
|
78 |
+
"66": "transfer_not_received_by_recipient",
|
79 |
+
"67": "transfer_timing",
|
80 |
+
"68": "unable_to_verify_identity",
|
81 |
+
"69": "verify_my_identity",
|
82 |
+
"70": "verify_source_of_funds",
|
83 |
+
"71": "verify_top_up",
|
84 |
+
"72": "virtual_card_not_working",
|
85 |
+
"73": "visa_or_mastercard",
|
86 |
+
"74": "why_verify_identity",
|
87 |
+
"75": "wrong_amount_of_cash_received",
|
88 |
+
"76": "wrong_exchange_rate_for_cash_withdrawal"
|
89 |
+
},
|
90 |
+
"initializer_range": 0.02,
|
91 |
+
"label2id": {
|
92 |
+
"Refund_not_showing_up": 51,
|
93 |
+
"activate_my_card": 0,
|
94 |
+
"age_limit": 1,
|
95 |
+
"apple_pay_or_google_pay": 2,
|
96 |
+
"atm_support": 3,
|
97 |
+
"automatic_top_up": 4,
|
98 |
+
"balance_not_updated_after_bank_transfer": 5,
|
99 |
+
"balance_not_updated_after_cheque_or_cash_deposit": 6,
|
100 |
+
"beneficiary_not_allowed": 7,
|
101 |
+
"cancel_transfer": 8,
|
102 |
+
"card_about_to_expire": 9,
|
103 |
+
"card_acceptance": 10,
|
104 |
+
"card_arrival": 11,
|
105 |
+
"card_delivery_estimate": 12,
|
106 |
+
"card_linking": 13,
|
107 |
+
"card_not_working": 14,
|
108 |
+
"card_payment_fee_charged": 15,
|
109 |
+
"card_payment_not_recognised": 16,
|
110 |
+
"card_payment_wrong_exchange_rate": 17,
|
111 |
+
"card_swallowed": 18,
|
112 |
+
"cash_withdrawal_charge": 19,
|
113 |
+
"cash_withdrawal_not_recognised": 20,
|
114 |
+
"change_pin": 21,
|
115 |
+
"compromised_card": 22,
|
116 |
+
"contactless_not_working": 23,
|
117 |
+
"country_support": 24,
|
118 |
+
"declined_card_payment": 25,
|
119 |
+
"declined_cash_withdrawal": 26,
|
120 |
+
"declined_transfer": 27,
|
121 |
+
"direct_debit_payment_not_recognised": 28,
|
122 |
+
"disposable_card_limits": 29,
|
123 |
+
"edit_personal_details": 30,
|
124 |
+
"exchange_charge": 31,
|
125 |
+
"exchange_rate": 32,
|
126 |
+
"exchange_via_app": 33,
|
127 |
+
"extra_charge_on_statement": 34,
|
128 |
+
"failed_transfer": 35,
|
129 |
+
"fiat_currency_support": 36,
|
130 |
+
"get_disposable_virtual_card": 37,
|
131 |
+
"get_physical_card": 38,
|
132 |
+
"getting_spare_card": 39,
|
133 |
+
"getting_virtual_card": 40,
|
134 |
+
"lost_or_stolen_card": 41,
|
135 |
+
"lost_or_stolen_phone": 42,
|
136 |
+
"order_physical_card": 43,
|
137 |
+
"passcode_forgotten": 44,
|
138 |
+
"pending_card_payment": 45,
|
139 |
+
"pending_cash_withdrawal": 46,
|
140 |
+
"pending_top_up": 47,
|
141 |
+
"pending_transfer": 48,
|
142 |
+
"pin_blocked": 49,
|
143 |
+
"receiving_money": 50,
|
144 |
+
"request_refund": 52,
|
145 |
+
"reverted_card_payment?": 53,
|
146 |
+
"supported_cards_and_currencies": 54,
|
147 |
+
"terminate_account": 55,
|
148 |
+
"top_up_by_bank_transfer_charge": 56,
|
149 |
+
"top_up_by_card_charge": 57,
|
150 |
+
"top_up_by_cash_or_cheque": 58,
|
151 |
+
"top_up_failed": 59,
|
152 |
+
"top_up_limits": 60,
|
153 |
+
"top_up_reverted": 61,
|
154 |
+
"topping_up_by_card": 62,
|
155 |
+
"transaction_charged_twice": 63,
|
156 |
+
"transfer_fee_charged": 64,
|
157 |
+
"transfer_into_account": 65,
|
158 |
+
"transfer_not_received_by_recipient": 66,
|
159 |
+
"transfer_timing": 67,
|
160 |
+
"unable_to_verify_identity": 68,
|
161 |
+
"verify_my_identity": 69,
|
162 |
+
"verify_source_of_funds": 70,
|
163 |
+
"verify_top_up": 71,
|
164 |
+
"virtual_card_not_working": 72,
|
165 |
+
"visa_or_mastercard": 73,
|
166 |
+
"why_verify_identity": 74,
|
167 |
+
"wrong_amount_of_cash_received": 75,
|
168 |
+
"wrong_exchange_rate_for_cash_withdrawal": 76
|
169 |
+
},
|
170 |
+
"max_position_embeddings": 512,
|
171 |
+
"model_type": "distilbert",
|
172 |
+
"n_heads": 12,
|
173 |
+
"n_layers": 6,
|
174 |
+
"pad_token_id": 0,
|
175 |
+
"qa_dropout": 0.1,
|
176 |
+
"seq_classif_dropout": 0.2,
|
177 |
+
"sinusoidal_pos_embds": false,
|
178 |
+
"tie_weights_": true,
|
179 |
+
"transformers_version": "4.37.2",
|
180 |
+
"vocab_size": 30522
|
181 |
+
}
|
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 |
+
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5bf52b7c7333043e2eeb3d5325be1c62464da4c918201674a875a79330b605b8
|
3 |
+
size 268182208
|
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": "DistilBertTokenizer",
|
54 |
+
"unk_token": "[UNK]"
|
55 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|