End of training
Browse files
README.md
CHANGED
|
@@ -1,78 +1,78 @@
|
|
| 1 |
-
---
|
| 2 |
-
library_name: transformers
|
| 3 |
-
license: apache-2.0
|
| 4 |
-
base_model: google-bert/bert-base-chinese
|
| 5 |
-
tags:
|
| 6 |
-
- generated_from_trainer
|
| 7 |
-
metrics:
|
| 8 |
-
- precision
|
| 9 |
-
- recall
|
| 10 |
-
- f1
|
| 11 |
-
- accuracy
|
| 12 |
-
model-index:
|
| 13 |
-
- name: ner_based_bert-base-chinese_withBadcase_replaceSpace
|
| 14 |
-
results: []
|
| 15 |
-
---
|
| 16 |
-
|
| 17 |
-
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 18 |
-
should probably proofread and complete it, then remove this comment. -->
|
| 19 |
-
|
| 20 |
-
# ner_based_bert-base-chinese_withBadcase_replaceSpace
|
| 21 |
-
|
| 22 |
-
This model is a fine-tuned version of [google-bert/bert-base-chinese](https://huggingface.co/google-bert/bert-base-chinese) on the None dataset.
|
| 23 |
-
It achieves the following results on the evaluation set:
|
| 24 |
-
- Loss: 0.
|
| 25 |
-
- Precision: 0.
|
| 26 |
-
- Recall: 0.
|
| 27 |
-
- F1: 0.
|
| 28 |
-
- Accuracy: 0.
|
| 29 |
-
|
| 30 |
-
## Model description
|
| 31 |
-
|
| 32 |
-
More information needed
|
| 33 |
-
|
| 34 |
-
## Intended uses & limitations
|
| 35 |
-
|
| 36 |
-
More information needed
|
| 37 |
-
|
| 38 |
-
## Training and evaluation data
|
| 39 |
-
|
| 40 |
-
More information needed
|
| 41 |
-
|
| 42 |
-
## Training procedure
|
| 43 |
-
|
| 44 |
-
### Training hyperparameters
|
| 45 |
-
|
| 46 |
-
The following hyperparameters were used during training:
|
| 47 |
-
- learning_rate: 2e-05
|
| 48 |
-
- train_batch_size: 128
|
| 49 |
-
- eval_batch_size: 128
|
| 50 |
-
- seed: 42
|
| 51 |
-
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 52 |
-
- lr_scheduler_type: cosine
|
| 53 |
-
- lr_scheduler_warmup_steps: 20
|
| 54 |
-
- training_steps: 6520
|
| 55 |
-
- mixed_precision_training: Native AMP
|
| 56 |
-
|
| 57 |
-
### Training results
|
| 58 |
-
|
| 59 |
-
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
| 60 |
-
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
| 61 |
-
| 0.
|
| 62 |
-
| 0.
|
| 63 |
-
| 0.
|
| 64 |
-
| 0.
|
| 65 |
-
| 0.
|
| 66 |
-
| 0.
|
| 67 |
-
| 0.0072 | 7.0 | 4564 | 0.
|
| 68 |
-
| 0.
|
| 69 |
-
| 0.
|
| 70 |
-
| 0.0042 | 10.0 | 6520 | 0.
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
### Framework versions
|
| 74 |
-
|
| 75 |
-
- Transformers 4.
|
| 76 |
-
- Pytorch 2.7.0+
|
| 77 |
-
- Datasets
|
| 78 |
-
- Tokenizers 0.21.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: google-bert/bert-base-chinese
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
metrics:
|
| 8 |
+
- precision
|
| 9 |
+
- recall
|
| 10 |
+
- f1
|
| 11 |
+
- accuracy
|
| 12 |
+
model-index:
|
| 13 |
+
- name: ner_based_bert-base-chinese_withBadcase_replaceSpace
|
| 14 |
+
results: []
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 18 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 19 |
+
|
| 20 |
+
# ner_based_bert-base-chinese_withBadcase_replaceSpace
|
| 21 |
+
|
| 22 |
+
This model is a fine-tuned version of [google-bert/bert-base-chinese](https://huggingface.co/google-bert/bert-base-chinese) on the None dataset.
|
| 23 |
+
It achieves the following results on the evaluation set:
|
| 24 |
+
- Loss: 0.0138
|
| 25 |
+
- Precision: 0.9505
|
| 26 |
+
- Recall: 0.9655
|
| 27 |
+
- F1: 0.9579
|
| 28 |
+
- Accuracy: 0.9969
|
| 29 |
+
|
| 30 |
+
## Model description
|
| 31 |
+
|
| 32 |
+
More information needed
|
| 33 |
+
|
| 34 |
+
## Intended uses & limitations
|
| 35 |
+
|
| 36 |
+
More information needed
|
| 37 |
+
|
| 38 |
+
## Training and evaluation data
|
| 39 |
+
|
| 40 |
+
More information needed
|
| 41 |
+
|
| 42 |
+
## Training procedure
|
| 43 |
+
|
| 44 |
+
### Training hyperparameters
|
| 45 |
+
|
| 46 |
+
The following hyperparameters were used during training:
|
| 47 |
+
- learning_rate: 2e-05
|
| 48 |
+
- train_batch_size: 128
|
| 49 |
+
- eval_batch_size: 128
|
| 50 |
+
- seed: 42
|
| 51 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 52 |
+
- lr_scheduler_type: cosine
|
| 53 |
+
- lr_scheduler_warmup_steps: 20
|
| 54 |
+
- training_steps: 6520
|
| 55 |
+
- mixed_precision_training: Native AMP
|
| 56 |
+
|
| 57 |
+
### Training results
|
| 58 |
+
|
| 59 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
| 60 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
| 61 |
+
| 0.1507 | 1.0 | 652 | 0.0249 | 0.8949 | 0.9105 | 0.9026 | 0.9928 |
|
| 62 |
+
| 0.0256 | 2.0 | 1304 | 0.0189 | 0.9186 | 0.9245 | 0.9215 | 0.9945 |
|
| 63 |
+
| 0.0195 | 3.0 | 1956 | 0.0169 | 0.9237 | 0.9470 | 0.9352 | 0.9952 |
|
| 64 |
+
| 0.0131 | 4.0 | 2608 | 0.0161 | 0.9299 | 0.9499 | 0.9398 | 0.9956 |
|
| 65 |
+
| 0.0114 | 5.0 | 3260 | 0.0149 | 0.9311 | 0.9607 | 0.9457 | 0.9959 |
|
| 66 |
+
| 0.01 | 6.0 | 3912 | 0.0146 | 0.9395 | 0.9600 | 0.9497 | 0.9962 |
|
| 67 |
+
| 0.0072 | 7.0 | 4564 | 0.0139 | 0.9480 | 0.9562 | 0.9521 | 0.9965 |
|
| 68 |
+
| 0.0065 | 8.0 | 5216 | 0.0133 | 0.9431 | 0.9655 | 0.9542 | 0.9966 |
|
| 69 |
+
| 0.0059 | 9.0 | 5868 | 0.0134 | 0.9501 | 0.9640 | 0.9570 | 0.9968 |
|
| 70 |
+
| 0.0042 | 10.0 | 6520 | 0.0138 | 0.9505 | 0.9655 | 0.9579 | 0.9969 |
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
### Framework versions
|
| 74 |
+
|
| 75 |
+
- Transformers 4.54.0
|
| 76 |
+
- Pytorch 2.7.0+cu128
|
| 77 |
+
- Datasets 4.0.0
|
| 78 |
+
- Tokenizers 0.21.4
|
config.json
CHANGED
|
@@ -1,78 +1,78 @@
|
|
| 1 |
-
{
|
| 2 |
-
"architectures": [
|
| 3 |
-
"BertForTokenClassification"
|
| 4 |
-
],
|
| 5 |
-
"attention_probs_dropout_prob": 0.1,
|
| 6 |
-
"classifier_dropout": null,
|
| 7 |
-
"directionality": "bidi",
|
| 8 |
-
"hidden_act": "gelu",
|
| 9 |
-
"hidden_dropout_prob": 0.1,
|
| 10 |
-
"hidden_size": 768,
|
| 11 |
-
"id2label": {
|
| 12 |
-
"0": "O",
|
| 13 |
-
"1": "B-phone",
|
| 14 |
-
"2": "I-phone",
|
| 15 |
-
"3": "E-phone",
|
| 16 |
-
"4": "B-name",
|
| 17 |
-
"5": "I-name",
|
| 18 |
-
"6": "E-name",
|
| 19 |
-
"7": "S-name",
|
| 20 |
-
"8": "B-area",
|
| 21 |
-
"9": "I-area",
|
| 22 |
-
"10": "E-area",
|
| 23 |
-
"11": "S-area",
|
| 24 |
-
"12": "B-sex",
|
| 25 |
-
"13": "E-sex",
|
| 26 |
-
"14": "S-sex",
|
| 27 |
-
"15": "B-wechat",
|
| 28 |
-
"16": "I-wechat",
|
| 29 |
-
"17": "E-wechat",
|
| 30 |
-
"18": "B-age",
|
| 31 |
-
"19": "I-age",
|
| 32 |
-
"20": "E-age",
|
| 33 |
-
"21": "S-age"
|
| 34 |
-
},
|
| 35 |
-
"initializer_range": 0.02,
|
| 36 |
-
"intermediate_size": 3072,
|
| 37 |
-
"label2id": {
|
| 38 |
-
"B-age": 18,
|
| 39 |
-
"B-area": 8,
|
| 40 |
-
"B-name": 4,
|
| 41 |
-
"B-phone": 1,
|
| 42 |
-
"B-sex": 12,
|
| 43 |
-
"B-wechat": 15,
|
| 44 |
-
"E-age": 20,
|
| 45 |
-
"E-area": 10,
|
| 46 |
-
"E-name": 6,
|
| 47 |
-
"E-phone": 3,
|
| 48 |
-
"E-sex": 13,
|
| 49 |
-
"E-wechat": 17,
|
| 50 |
-
"I-age": 19,
|
| 51 |
-
"I-area": 9,
|
| 52 |
-
"I-name": 5,
|
| 53 |
-
"I-phone": 2,
|
| 54 |
-
"I-wechat": 16,
|
| 55 |
-
"O": 0,
|
| 56 |
-
"S-age": 21,
|
| 57 |
-
"S-area": 11,
|
| 58 |
-
"S-name": 7,
|
| 59 |
-
"S-sex": 14
|
| 60 |
-
},
|
| 61 |
-
"layer_norm_eps": 1e-12,
|
| 62 |
-
"max_position_embeddings": 512,
|
| 63 |
-
"model_type": "bert",
|
| 64 |
-
"num_attention_heads": 12,
|
| 65 |
-
"num_hidden_layers": 12,
|
| 66 |
-
"pad_token_id": 0,
|
| 67 |
-
"pooler_fc_size": 768,
|
| 68 |
-
"pooler_num_attention_heads": 12,
|
| 69 |
-
"pooler_num_fc_layers": 3,
|
| 70 |
-
"pooler_size_per_head": 128,
|
| 71 |
-
"pooler_type": "first_token_transform",
|
| 72 |
-
"position_embedding_type": "absolute",
|
| 73 |
-
"torch_dtype": "float32",
|
| 74 |
-
"transformers_version": "4.
|
| 75 |
-
"type_vocab_size": 2,
|
| 76 |
-
"use_cache": true,
|
| 77 |
-
"vocab_size": 21128
|
| 78 |
-
}
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"BertForTokenClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.1,
|
| 6 |
+
"classifier_dropout": null,
|
| 7 |
+
"directionality": "bidi",
|
| 8 |
+
"hidden_act": "gelu",
|
| 9 |
+
"hidden_dropout_prob": 0.1,
|
| 10 |
+
"hidden_size": 768,
|
| 11 |
+
"id2label": {
|
| 12 |
+
"0": "O",
|
| 13 |
+
"1": "B-phone",
|
| 14 |
+
"2": "I-phone",
|
| 15 |
+
"3": "E-phone",
|
| 16 |
+
"4": "B-name",
|
| 17 |
+
"5": "I-name",
|
| 18 |
+
"6": "E-name",
|
| 19 |
+
"7": "S-name",
|
| 20 |
+
"8": "B-area",
|
| 21 |
+
"9": "I-area",
|
| 22 |
+
"10": "E-area",
|
| 23 |
+
"11": "S-area",
|
| 24 |
+
"12": "B-sex",
|
| 25 |
+
"13": "E-sex",
|
| 26 |
+
"14": "S-sex",
|
| 27 |
+
"15": "B-wechat",
|
| 28 |
+
"16": "I-wechat",
|
| 29 |
+
"17": "E-wechat",
|
| 30 |
+
"18": "B-age",
|
| 31 |
+
"19": "I-age",
|
| 32 |
+
"20": "E-age",
|
| 33 |
+
"21": "S-age"
|
| 34 |
+
},
|
| 35 |
+
"initializer_range": 0.02,
|
| 36 |
+
"intermediate_size": 3072,
|
| 37 |
+
"label2id": {
|
| 38 |
+
"B-age": 18,
|
| 39 |
+
"B-area": 8,
|
| 40 |
+
"B-name": 4,
|
| 41 |
+
"B-phone": 1,
|
| 42 |
+
"B-sex": 12,
|
| 43 |
+
"B-wechat": 15,
|
| 44 |
+
"E-age": 20,
|
| 45 |
+
"E-area": 10,
|
| 46 |
+
"E-name": 6,
|
| 47 |
+
"E-phone": 3,
|
| 48 |
+
"E-sex": 13,
|
| 49 |
+
"E-wechat": 17,
|
| 50 |
+
"I-age": 19,
|
| 51 |
+
"I-area": 9,
|
| 52 |
+
"I-name": 5,
|
| 53 |
+
"I-phone": 2,
|
| 54 |
+
"I-wechat": 16,
|
| 55 |
+
"O": 0,
|
| 56 |
+
"S-age": 21,
|
| 57 |
+
"S-area": 11,
|
| 58 |
+
"S-name": 7,
|
| 59 |
+
"S-sex": 14
|
| 60 |
+
},
|
| 61 |
+
"layer_norm_eps": 1e-12,
|
| 62 |
+
"max_position_embeddings": 512,
|
| 63 |
+
"model_type": "bert",
|
| 64 |
+
"num_attention_heads": 12,
|
| 65 |
+
"num_hidden_layers": 12,
|
| 66 |
+
"pad_token_id": 0,
|
| 67 |
+
"pooler_fc_size": 768,
|
| 68 |
+
"pooler_num_attention_heads": 12,
|
| 69 |
+
"pooler_num_fc_layers": 3,
|
| 70 |
+
"pooler_size_per_head": 128,
|
| 71 |
+
"pooler_type": "first_token_transform",
|
| 72 |
+
"position_embedding_type": "absolute",
|
| 73 |
+
"torch_dtype": "float32",
|
| 74 |
+
"transformers_version": "4.54.0",
|
| 75 |
+
"type_vocab_size": 2,
|
| 76 |
+
"use_cache": true,
|
| 77 |
+
"vocab_size": 21128
|
| 78 |
+
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 406799208
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:afaa593fe4ff0ad35062f2261a8295d90861133016b95b68e8ca52ade470e92c
|
| 3 |
size 406799208
|
runs/Jul29_10-23-23_autodl-container-31bd46afee-e598a7cd/events.out.tfevents.1753755803.autodl-container-31bd46afee-e598a7cd.1887.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7be5d140c7878674baab56b27d5e42c1c165b5c0f325ddee51447762ec22a690
|
| 3 |
+
size 13936
|
special_tokens_map.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
-
{
|
| 2 |
-
"cls_token": "[CLS]",
|
| 3 |
-
"mask_token": "[MASK]",
|
| 4 |
-
"pad_token": "[PAD]",
|
| 5 |
-
"sep_token": "[SEP]",
|
| 6 |
-
"unk_token": "[UNK]"
|
| 7 |
-
}
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cls_token": "[CLS]",
|
| 3 |
+
"mask_token": "[MASK]",
|
| 4 |
+
"pad_token": "[PAD]",
|
| 5 |
+
"sep_token": "[SEP]",
|
| 6 |
+
"unk_token": "[UNK]"
|
| 7 |
+
}
|
tokenizer_config.json
CHANGED
|
@@ -1,56 +1,56 @@
|
|
| 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": false,
|
| 45 |
-
"cls_token": "[CLS]",
|
| 46 |
-
"do_lower_case": false,
|
| 47 |
-
"extra_special_tokens": {},
|
| 48 |
-
"mask_token": "[MASK]",
|
| 49 |
-
"model_max_length": 512,
|
| 50 |
-
"pad_token": "[PAD]",
|
| 51 |
-
"sep_token": "[SEP]",
|
| 52 |
-
"strip_accents": null,
|
| 53 |
-
"tokenize_chinese_chars": true,
|
| 54 |
-
"tokenizer_class": "BertTokenizer",
|
| 55 |
-
"unk_token": "[UNK]"
|
| 56 |
-
}
|
|
|
|
| 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": false,
|
| 45 |
+
"cls_token": "[CLS]",
|
| 46 |
+
"do_lower_case": false,
|
| 47 |
+
"extra_special_tokens": {},
|
| 48 |
+
"mask_token": "[MASK]",
|
| 49 |
+
"model_max_length": 512,
|
| 50 |
+
"pad_token": "[PAD]",
|
| 51 |
+
"sep_token": "[SEP]",
|
| 52 |
+
"strip_accents": null,
|
| 53 |
+
"tokenize_chinese_chars": true,
|
| 54 |
+
"tokenizer_class": "BertTokenizer",
|
| 55 |
+
"unk_token": "[UNK]"
|
| 56 |
+
}
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5841
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:230d859034b066065c8dd504f4a1612bcf83f816e998cf9dffa9b57bbc9a8371
|
| 3 |
size 5841
|