AlienKevin commited on
Commit
d324f35
1 Parent(s): decf903

Upload 12 files

Browse files
README.md CHANGED
@@ -1,3 +1,53 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: toastynews/electra-hongkongese-base-discriminator
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: electra_base_hkcancor_multi
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # electra_base_hkcancor_multi
16
+
17
+ This model is a fine-tuned version of [toastynews/electra-hongkongese-base-discriminator](https://huggingface.co/toastynews/electra-hongkongese-base-discriminator) on an unknown dataset.
18
+
19
+ ## Model description
20
+
21
+ More information needed
22
+
23
+ ## Intended uses & limitations
24
+
25
+ More information needed
26
+
27
+ ## Training and evaluation data
28
+
29
+ More information needed
30
+
31
+ ## Training procedure
32
+
33
+ ### Training hyperparameters
34
+
35
+ The following hyperparameters were used during training:
36
+ - learning_rate: 5e-05
37
+ - train_batch_size: 8
38
+ - eval_batch_size: 8
39
+ - seed: 42
40
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
41
+ - lr_scheduler_type: linear
42
+ - num_epochs: 3.0
43
+
44
+ ### Training results
45
+
46
+
47
+
48
+ ### Framework versions
49
+
50
+ - Transformers 4.45.0.dev0
51
+ - Pytorch 2.4.0
52
+ - Datasets 2.20.0
53
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "total_flos": 636219092647632.0,
4
+ "train_loss": 0.0468716327964652,
5
+ "train_runtime": 1411.2933,
6
+ "train_samples": 12290,
7
+ "train_samples_per_second": 26.125,
8
+ "train_steps_per_second": 3.267
9
+ }
config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "toastynews/electra-hongkongese-base-discriminator",
3
+ "architectures": [
4
+ "ElectraForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "embedding_size": 768,
9
+ "finetuning_task": "ner",
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "D",
15
+ "1": "I",
16
+ "2": "P",
17
+ "3": "S"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "label2id": {
22
+ "D": 0,
23
+ "I": 1,
24
+ "P": 2,
25
+ "S": 3
26
+ },
27
+ "layer_norm_eps": 1e-12,
28
+ "max_position_embeddings": 512,
29
+ "model_type": "electra",
30
+ "num_attention_heads": 12,
31
+ "num_hidden_layers": 12,
32
+ "pad_token_id": 0,
33
+ "position_embedding_type": "absolute",
34
+ "summary_activation": "gelu",
35
+ "summary_last_dropout": 0.1,
36
+ "summary_type": "first",
37
+ "summary_use_proj": true,
38
+ "torch_dtype": "float32",
39
+ "transformers_version": "4.45.0.dev0",
40
+ "type_vocab_size": 2,
41
+ "use_cache": true,
42
+ "vocab_size": 30000
43
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:76c4a3bfa8cd2c1a635f414d6996d843b38aa999ee82cf088af6e9328186f970
3
+ size 433999224
runs/Sep06_17-43-34_192.168.2.6/events.out.tfevents.1725615930.192.168.2.6.98939.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7402b62275ed6f394ef20e98a81f5a3d67e2d71b3ae8fa3ca3525fde1c4db5d9
3
+ size 7580
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
+ "1": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
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": 1000000000000000019884624838656,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "strip_accents": null,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "ElectraTokenizer",
56
+ "unk_token": "[UNK]"
57
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "total_flos": 636219092647632.0,
4
+ "train_loss": 0.0468716327964652,
5
+ "train_runtime": 1411.2933,
6
+ "train_samples": 12290,
7
+ "train_samples_per_second": 26.125,
8
+ "train_steps_per_second": 3.267
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 3.0,
5
+ "eval_steps": 500,
6
+ "global_step": 4611,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.32530904359141183,
13
+ "grad_norm": 0.15404251217842102,
14
+ "learning_rate": 4.4578182606809806e-05,
15
+ "loss": 0.1784,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 0.6506180871828237,
20
+ "grad_norm": 2.4227497577667236,
21
+ "learning_rate": 3.91563652136196e-05,
22
+ "loss": 0.066,
23
+ "step": 1000
24
+ },
25
+ {
26
+ "epoch": 0.9759271307742355,
27
+ "grad_norm": 0.6973606944084167,
28
+ "learning_rate": 3.3734547820429406e-05,
29
+ "loss": 0.0509,
30
+ "step": 1500
31
+ },
32
+ {
33
+ "epoch": 1.3012361743656473,
34
+ "grad_norm": 1.776681661605835,
35
+ "learning_rate": 2.8312730427239213e-05,
36
+ "loss": 0.0317,
37
+ "step": 2000
38
+ },
39
+ {
40
+ "epoch": 1.6265452179570592,
41
+ "grad_norm": 0.15773124992847443,
42
+ "learning_rate": 2.2890913034049014e-05,
43
+ "loss": 0.0287,
44
+ "step": 2500
45
+ },
46
+ {
47
+ "epoch": 1.951854261548471,
48
+ "grad_norm": 1.2555632591247559,
49
+ "learning_rate": 1.7469095640858817e-05,
50
+ "loss": 0.0275,
51
+ "step": 3000
52
+ },
53
+ {
54
+ "epoch": 2.277163305139883,
55
+ "grad_norm": 0.9678168892860413,
56
+ "learning_rate": 1.204727824766862e-05,
57
+ "loss": 0.017,
58
+ "step": 3500
59
+ },
60
+ {
61
+ "epoch": 2.6024723487312946,
62
+ "grad_norm": 2.6904122829437256,
63
+ "learning_rate": 6.625460854478421e-06,
64
+ "loss": 0.0152,
65
+ "step": 4000
66
+ },
67
+ {
68
+ "epoch": 2.9277813923227067,
69
+ "grad_norm": 0.2644204795360565,
70
+ "learning_rate": 1.203643461288224e-06,
71
+ "loss": 0.0137,
72
+ "step": 4500
73
+ },
74
+ {
75
+ "epoch": 3.0,
76
+ "step": 4611,
77
+ "total_flos": 636219092647632.0,
78
+ "train_loss": 0.0468716327964652,
79
+ "train_runtime": 1411.2933,
80
+ "train_samples_per_second": 26.125,
81
+ "train_steps_per_second": 3.267
82
+ }
83
+ ],
84
+ "logging_steps": 500,
85
+ "max_steps": 4611,
86
+ "num_input_tokens_seen": 0,
87
+ "num_train_epochs": 3,
88
+ "save_steps": 500,
89
+ "stateful_callbacks": {
90
+ "TrainerControl": {
91
+ "args": {
92
+ "should_epoch_stop": false,
93
+ "should_evaluate": false,
94
+ "should_log": false,
95
+ "should_save": true,
96
+ "should_training_stop": true
97
+ },
98
+ "attributes": {}
99
+ }
100
+ },
101
+ "total_flos": 636219092647632.0,
102
+ "train_batch_size": 8,
103
+ "trial_name": null,
104
+ "trial_params": null
105
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:523c447f3cadbe32fef8f44dd6bfe21c1deb8b3ff502cc412b5b6b0889d13463
3
+ size 5240
vocab.txt ADDED
The diff for this file is too large to render. See raw diff