Xzt commited on
Commit
a1dbb31
1 Parent(s): 9622f83

Training in progress epoch 0

Browse files
Files changed (6) hide show
  1. README.md +8 -8
  2. config.json +13 -19
  3. tf_model.h5 +2 -2
  4. tokenizer.json +0 -0
  5. tokenizer_config.json +1 -1
  6. vocab.txt +0 -0
README.md CHANGED
@@ -1,4 +1,5 @@
1
  ---
 
2
  tags:
3
  - generated_from_keras_callback
4
  model-index:
@@ -11,10 +12,9 @@ probably proofread and complete it, then remove this comment. -->
11
 
12
  # Xzt/bert-finetuned-ner
13
 
14
- This model was trained from scratch on an unknown dataset.
15
  It achieves the following results on the evaluation set:
16
- - Train Loss: 0.1187
17
- - Validation Loss: 0.0612
18
  - Epoch: 0
19
 
20
  ## Model description
@@ -34,14 +34,14 @@ More information needed
34
  ### Training hyperparameters
35
 
36
  The following hyperparameters were used during training:
37
- - optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 3510, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}
38
- - training_precision: mixed_float16
39
 
40
  ### Training results
41
 
42
- | Train Loss | Validation Loss | Epoch |
43
- |:----------:|:---------------:|:-----:|
44
- | 0.1187 | 0.0612 | 0 |
45
 
46
 
47
  ### Framework versions
 
1
  ---
2
+ license: apache-2.0
3
  tags:
4
  - generated_from_keras_callback
5
  model-index:
 
12
 
13
  # Xzt/bert-finetuned-ner
14
 
15
+ This model is a fine-tuned version of [hfl/chinese-bert-wwm-ext](https://huggingface.co/hfl/chinese-bert-wwm-ext) on an unknown dataset.
16
  It achieves the following results on the evaluation set:
17
+ - Train Loss: 0.0622
 
18
  - Epoch: 0
19
 
20
  ## Model description
 
34
  ### Training hyperparameters
35
 
36
  The following hyperparameters were used during training:
37
+ - optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 7039, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}
38
+ - training_precision: float32
39
 
40
  ### Training results
41
 
42
+ | Train Loss | Epoch |
43
+ |:----------:|:-----:|
44
+ | 0.0622 | 0 |
45
 
46
 
47
  ### Framework versions
config.json CHANGED
@@ -1,36 +1,24 @@
1
  {
2
- "_name_or_path": "./bert-base-cased-model",
3
  "architectures": [
4
  "BertForTokenClassification"
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": "O",
14
- "1": "B-PER",
15
- "2": "I-PER",
16
- "3": "B-ORG",
17
- "4": "I-ORG",
18
- "5": "B-LOC",
19
- "6": "I-LOC",
20
- "7": "B-MISC",
21
- "8": "I-MISC"
22
  },
23
  "initializer_range": 0.02,
24
  "intermediate_size": 3072,
25
  "label2id": {
26
- "B-LOC": "5",
27
- "B-MISC": "7",
28
- "B-ORG": "3",
29
- "B-PER": "1",
30
- "I-LOC": "6",
31
- "I-MISC": "8",
32
- "I-ORG": "4",
33
- "I-PER": "2",
34
  "O": "0"
35
  },
36
  "layer_norm_eps": 1e-12,
@@ -38,10 +26,16 @@
38
  "model_type": "bert",
39
  "num_attention_heads": 12,
40
  "num_hidden_layers": 12,
 
41
  "pad_token_id": 0,
 
 
 
 
 
42
  "position_embedding_type": "absolute",
43
  "transformers_version": "4.18.0",
44
  "type_vocab_size": 2,
45
  "use_cache": true,
46
- "vocab_size": 28996
47
  }
 
1
  {
2
+ "_name_or_path": "hfl/chinese-bert-wwm-ext",
3
  "architectures": [
4
  "BertForTokenClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
7
  "classifier_dropout": null,
8
+ "directionality": "bidi",
9
  "hidden_act": "gelu",
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
12
  "id2label": {
13
  "0": "O",
14
+ "1": "B-loc",
15
+ "2": "I-loc"
 
 
 
 
 
 
16
  },
17
  "initializer_range": 0.02,
18
  "intermediate_size": 3072,
19
  "label2id": {
20
+ "B-loc": "1",
21
+ "I-loc": "2",
 
 
 
 
 
 
22
  "O": "0"
23
  },
24
  "layer_norm_eps": 1e-12,
 
26
  "model_type": "bert",
27
  "num_attention_heads": 12,
28
  "num_hidden_layers": 12,
29
+ "output_past": true,
30
  "pad_token_id": 0,
31
+ "pooler_fc_size": 768,
32
+ "pooler_num_attention_heads": 12,
33
+ "pooler_num_fc_layers": 3,
34
+ "pooler_size_per_head": 128,
35
+ "pooler_type": "first_token_transform",
36
  "position_embedding_type": "absolute",
37
  "transformers_version": "4.18.0",
38
  "type_vocab_size": 2,
39
  "use_cache": true,
40
+ "vocab_size": 21128
41
  }
tf_model.h5 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c627269de06d8ca4304e485a47eabd99fee3155f6923ec55f32296620daeb668
3
- size 431179820
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1d2ef774a3fcdc7d9626f7c5117db295bb624aae813efb1c9261156080b21c7
3
+ size 406990868
tokenizer.json CHANGED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json CHANGED
@@ -1 +1 @@
1
- {"do_lower_case": false, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "./bert-base-cased-tokenizer", "tokenizer_class": "BertTokenizer"}
 
1
+ {"do_lower_case": true, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "special_tokens_map_file": "C:\\Users\\小周天/.cache\\huggingface\\transformers\\8183382ed1d3dbb68e827ee934b131f7a2fded38f6b5d6e94cf29c9e363e7cde.dd8bd9bfd3664b530ea4e645105f557769387b3da9f79bdb55ed556bdd80611d", "name_or_path": "./save_chinese_model", "tokenizer_class": "BertTokenizer"}
vocab.txt CHANGED
The diff for this file is too large to render. See raw diff