Training in progress, epoch 1
Browse files- README.md +93 -0
- config.json +48 -0
- model.safetensors +3 -0
- runs/Oct07_20-32-08_p16/events.out.tfevents.1728304349.p16.130547.0 +3 -0
- runs/Oct08_10-39-12_p16/events.out.tfevents.1728355174.p16.11088.0 +3 -0
- runs/Oct19_14-19-26_p16/events.out.tfevents.1729318841.p16.15707.0 +3 -0
- runs/Oct19_14-19-26_p16/events.out.tfevents.1729321004.p16.15707.1 +3 -0
- runs/Oct19_15-05-35_p16/events.out.tfevents.1729321544.p16.73116.0 +3 -0
- runs/Oct19_15-25-24_p16/events.out.tfevents.1729322731.p16.79367.0 +3 -0
- runs/Sep28_01-51-02_p16/events.out.tfevents.1727459539.p16.278529.0 +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +55 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: bert-base-cased
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
datasets:
|
| 8 |
+
- conll2003
|
| 9 |
+
metrics:
|
| 10 |
+
- precision
|
| 11 |
+
- recall
|
| 12 |
+
- f1
|
| 13 |
+
- accuracy
|
| 14 |
+
model-index:
|
| 15 |
+
- name: bert-finetuned-ner
|
| 16 |
+
results:
|
| 17 |
+
- task:
|
| 18 |
+
name: Token Classification
|
| 19 |
+
type: token-classification
|
| 20 |
+
dataset:
|
| 21 |
+
name: conll2003
|
| 22 |
+
type: conll2003
|
| 23 |
+
config: conll2003
|
| 24 |
+
split: validation
|
| 25 |
+
args: conll2003
|
| 26 |
+
metrics:
|
| 27 |
+
- name: Precision
|
| 28 |
+
type: precision
|
| 29 |
+
value: 0.9348652669862787
|
| 30 |
+
- name: Recall
|
| 31 |
+
type: recall
|
| 32 |
+
value: 0.9516997643890945
|
| 33 |
+
- name: F1
|
| 34 |
+
type: f1
|
| 35 |
+
value: 0.9432074055541656
|
| 36 |
+
- name: Accuracy
|
| 37 |
+
type: accuracy
|
| 38 |
+
value: 0.9870342026255372
|
| 39 |
+
---
|
| 40 |
+
|
| 41 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 42 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 43 |
+
|
| 44 |
+
# bert-finetuned-ner
|
| 45 |
+
|
| 46 |
+
This model is a fine-tuned version of [bert-base-cased](https://huggingface.co/bert-base-cased) on the conll2003 dataset.
|
| 47 |
+
It achieves the following results on the evaluation set:
|
| 48 |
+
- Loss: 0.0606
|
| 49 |
+
- Precision: 0.9349
|
| 50 |
+
- Recall: 0.9517
|
| 51 |
+
- F1: 0.9432
|
| 52 |
+
- Accuracy: 0.9870
|
| 53 |
+
|
| 54 |
+
## Model description
|
| 55 |
+
|
| 56 |
+
More information needed
|
| 57 |
+
|
| 58 |
+
## Intended uses & limitations
|
| 59 |
+
|
| 60 |
+
More information needed
|
| 61 |
+
|
| 62 |
+
## Training and evaluation data
|
| 63 |
+
|
| 64 |
+
More information needed
|
| 65 |
+
|
| 66 |
+
## Training procedure
|
| 67 |
+
|
| 68 |
+
### Training hyperparameters
|
| 69 |
+
|
| 70 |
+
The following hyperparameters were used during training:
|
| 71 |
+
- learning_rate: 2e-05
|
| 72 |
+
- train_batch_size: 8
|
| 73 |
+
- eval_batch_size: 8
|
| 74 |
+
- seed: 42
|
| 75 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 76 |
+
- lr_scheduler_type: linear
|
| 77 |
+
- num_epochs: 3
|
| 78 |
+
|
| 79 |
+
### Training results
|
| 80 |
+
|
| 81 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
| 82 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
| 83 |
+
| 0.0779 | 1.0 | 1756 | 0.0624 | 0.9084 | 0.9342 | 0.9211 | 0.9832 |
|
| 84 |
+
| 0.0342 | 2.0 | 3512 | 0.0660 | 0.9324 | 0.9472 | 0.9397 | 0.9858 |
|
| 85 |
+
| 0.0225 | 3.0 | 5268 | 0.0606 | 0.9349 | 0.9517 | 0.9432 | 0.9870 |
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
### Framework versions
|
| 89 |
+
|
| 90 |
+
- Transformers 4.45.2
|
| 91 |
+
- Pytorch 2.4.1+cu121
|
| 92 |
+
- Datasets 3.0.1
|
| 93 |
+
- Tokenizers 0.20.0
|
config.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "bert-base-cased",
|
| 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,
|
| 37 |
+
"max_position_embeddings": 512,
|
| 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 |
+
"torch_dtype": "float32",
|
| 44 |
+
"transformers_version": "4.45.2",
|
| 45 |
+
"type_vocab_size": 2,
|
| 46 |
+
"use_cache": true,
|
| 47 |
+
"vocab_size": 28996
|
| 48 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:91af190b70763c1e6b471391369556c0d0bbcb0432f606a69cc4796b45382bd5
|
| 3 |
+
size 430929740
|
runs/Oct07_20-32-08_p16/events.out.tfevents.1728304349.p16.130547.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:221238249d02f2744329fc2d6418080d6eb8df33e3dda376e73e36bc63332e11
|
| 3 |
+
size 9150
|
runs/Oct08_10-39-12_p16/events.out.tfevents.1728355174.p16.11088.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a4f6193b14cd62bf431e7bc779975002a7c2104fa9d10550dd35f533690f7fbc
|
| 3 |
+
size 9151
|
runs/Oct19_14-19-26_p16/events.out.tfevents.1729318841.p16.15707.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e7c023d0daae0de68ff4a85ed19cbac800da09c8be1dfda9415454f6fa152055
|
| 3 |
+
size 9151
|
runs/Oct19_14-19-26_p16/events.out.tfevents.1729321004.p16.15707.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:66ce392b55a0d92da613909b9d396f7ed02dd77ae2730acde44d3b282203d439
|
| 3 |
+
size 9190
|
runs/Oct19_15-05-35_p16/events.out.tfevents.1729321544.p16.73116.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c4d892d650bbaea96c86118be7173ade87113461c7019964cbf7f436c5a70982
|
| 3 |
+
size 9151
|
runs/Oct19_15-25-24_p16/events.out.tfevents.1729322731.p16.79367.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d7f16a29c412e9b743f79a64d4bf7ae68a027ba45c1b33afbecf557fe7a99ba
|
| 3 |
+
size 6376
|
runs/Sep28_01-51-02_p16/events.out.tfevents.1727459539.p16.278529.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:562e6dd7b1a546ea996bd471ffee41e3206b732102beccff4849da598e6508cc
|
| 3 |
+
size 9138
|
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,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": false,
|
| 45 |
+
"cls_token": "[CLS]",
|
| 46 |
+
"do_lower_case": false,
|
| 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": "BertTokenizer",
|
| 54 |
+
"unk_token": "[UNK]"
|
| 55 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0bca59e370a193bb6f355ae8ef3bbe5549e273c21f4328f1d73bf00b6e885383
|
| 3 |
+
size 5240
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|