AlienKevin
commited on
Upload 12 files
Browse files- README.md +53 -3
- all_results.json +9 -0
- config.json +43 -0
- model.safetensors +3 -0
- runs/Sep06_10-19-14_192.168.2.6/events.out.tfevents.1725589162.192.168.2.6.80068.0 +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +57 -0
- train_results.json +9 -0
- trainer_state.json +105 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
CHANGED
@@ -1,3 +1,53 @@
|
|
1 |
-
---
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: toastynews/electra-hongkongese-small-discriminator
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
model-index:
|
8 |
+
- name: electra_small_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_small_hkcancor_multi
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [toastynews/electra-hongkongese-small-discriminator](https://huggingface.co/toastynews/electra-hongkongese-small-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": 71142932377296.0,
|
4 |
+
"train_loss": 0.08043386847769664,
|
5 |
+
"train_runtime": 787.9023,
|
6 |
+
"train_samples": 12290,
|
7 |
+
"train_samples_per_second": 46.795,
|
8 |
+
"train_steps_per_second": 5.852
|
9 |
+
}
|
config.json
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "toastynews/electra-hongkongese-small-discriminator",
|
3 |
+
"architectures": [
|
4 |
+
"ElectraForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"embedding_size": 128,
|
9 |
+
"finetuning_task": "ner",
|
10 |
+
"hidden_act": "gelu",
|
11 |
+
"hidden_dropout_prob": 0.1,
|
12 |
+
"hidden_size": 256,
|
13 |
+
"id2label": {
|
14 |
+
"0": "D",
|
15 |
+
"1": "I",
|
16 |
+
"2": "P",
|
17 |
+
"3": "S"
|
18 |
+
},
|
19 |
+
"initializer_range": 0.02,
|
20 |
+
"intermediate_size": 1024,
|
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": 4,
|
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:f6b5774c8007e5a07e3a4d7cf49cd507453f1be28864a21a98872df07233d84b
|
3 |
+
size 53692616
|
runs/Sep06_10-19-14_192.168.2.6/events.out.tfevents.1725589162.192.168.2.6.80068.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:612acf83259db6ebdefe68a01b32d75598823b0135b345eb0e4f1fad4f98618c
|
3 |
+
size 7583
|
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": 71142932377296.0,
|
4 |
+
"train_loss": 0.08043386847769664,
|
5 |
+
"train_runtime": 787.9023,
|
6 |
+
"train_samples": 12290,
|
7 |
+
"train_samples_per_second": 46.795,
|
8 |
+
"train_steps_per_second": 5.852
|
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.7525109052658081,
|
14 |
+
"learning_rate": 4.4578182606809806e-05,
|
15 |
+
"loss": 0.2922,
|
16 |
+
"step": 500
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.6506180871828237,
|
20 |
+
"grad_norm": 1.5843052864074707,
|
21 |
+
"learning_rate": 3.91563652136196e-05,
|
22 |
+
"loss": 0.1019,
|
23 |
+
"step": 1000
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.9759271307742355,
|
27 |
+
"grad_norm": 1.2410870790481567,
|
28 |
+
"learning_rate": 3.3734547820429406e-05,
|
29 |
+
"loss": 0.0743,
|
30 |
+
"step": 1500
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 1.3012361743656473,
|
34 |
+
"grad_norm": 1.6869269609451294,
|
35 |
+
"learning_rate": 2.8312730427239213e-05,
|
36 |
+
"loss": 0.0566,
|
37 |
+
"step": 2000
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 1.6265452179570592,
|
41 |
+
"grad_norm": 0.7089857459068298,
|
42 |
+
"learning_rate": 2.2890913034049014e-05,
|
43 |
+
"loss": 0.0514,
|
44 |
+
"step": 2500
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 1.951854261548471,
|
48 |
+
"grad_norm": 1.388731837272644,
|
49 |
+
"learning_rate": 1.7469095640858817e-05,
|
50 |
+
"loss": 0.05,
|
51 |
+
"step": 3000
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 2.277163305139883,
|
55 |
+
"grad_norm": 2.429743528366089,
|
56 |
+
"learning_rate": 1.204727824766862e-05,
|
57 |
+
"loss": 0.0374,
|
58 |
+
"step": 3500
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 2.6024723487312946,
|
62 |
+
"grad_norm": 3.7513585090637207,
|
63 |
+
"learning_rate": 6.625460854478421e-06,
|
64 |
+
"loss": 0.0346,
|
65 |
+
"step": 4000
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 2.9277813923227067,
|
69 |
+
"grad_norm": 0.6153927445411682,
|
70 |
+
"learning_rate": 1.203643461288224e-06,
|
71 |
+
"loss": 0.0363,
|
72 |
+
"step": 4500
|
73 |
+
},
|
74 |
+
{
|
75 |
+
"epoch": 3.0,
|
76 |
+
"step": 4611,
|
77 |
+
"total_flos": 71142932377296.0,
|
78 |
+
"train_loss": 0.08043386847769664,
|
79 |
+
"train_runtime": 787.9023,
|
80 |
+
"train_samples_per_second": 46.795,
|
81 |
+
"train_steps_per_second": 5.852
|
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": 71142932377296.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:83defb9a5a855f0bda1b5bcf688b09eb8920d57be2f0e6a30c12811b9d33cffc
|
3 |
+
size 5240
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|