Sharpaxis commited on
Commit
ec3da7f
·
verified ·
1 Parent(s): 8f571cd

End of training

Browse files
Files changed (3) hide show
  1. README.md +78 -0
  2. config.json +5 -5
  3. model.safetensors +2 -2
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: bert-base-uncased
5
+ tags:
6
+ - generated_from_trainer
7
+ datasets:
8
+ - conll2003
9
+ metrics:
10
+ - f1
11
+ model-index:
12
+ - name: BERT-NER-CoNLL
13
+ results:
14
+ - task:
15
+ name: Token Classification
16
+ type: token-classification
17
+ dataset:
18
+ name: conll2003
19
+ type: conll2003
20
+ config: conll2003
21
+ split: test
22
+ args: conll2003
23
+ metrics:
24
+ - name: F1
25
+ type: f1
26
+ value: 0.903734876380852
27
+ ---
28
+
29
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
30
+ should probably proofread and complete it, then remove this comment. -->
31
+
32
+ # BERT-NER-CoNLL
33
+
34
+ This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the conll2003 dataset.
35
+ It achieves the following results on the evaluation set:
36
+ - Loss: 0.1199
37
+ - F1: 0.9037
38
+
39
+ ## Model description
40
+
41
+ More information needed
42
+
43
+ ## Intended uses & limitations
44
+
45
+ More information needed
46
+
47
+ ## Training and evaluation data
48
+
49
+ More information needed
50
+
51
+ ## Training procedure
52
+
53
+ ### Training hyperparameters
54
+
55
+ The following hyperparameters were used during training:
56
+ - learning_rate: 2e-05
57
+ - train_batch_size: 16
58
+ - eval_batch_size: 16
59
+ - seed: 42
60
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
61
+ - lr_scheduler_type: linear
62
+ - num_epochs: 3
63
+
64
+ ### Training results
65
+
66
+ | Training Loss | Epoch | Step | Validation Loss | F1 |
67
+ |:-------------:|:-----:|:----:|:---------------:|:------:|
68
+ | 0.1298 | 1.0 | 878 | 0.1098 | 0.8849 |
69
+ | 0.0355 | 2.0 | 1756 | 0.1139 | 0.9012 |
70
+ | 0.0202 | 3.0 | 2634 | 0.1199 | 0.9037 |
71
+
72
+
73
+ ### Framework versions
74
+
75
+ - Transformers 4.47.0
76
+ - Pytorch 2.5.1+cu121
77
+ - Datasets 3.2.0
78
+ - Tokenizers 0.21.0
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "bert-large-uncased",
3
  "architectures": [
4
  "BertForTokenClassification"
5
  ],
@@ -8,7 +8,7 @@
8
  "gradient_checkpointing": false,
9
  "hidden_act": "gelu",
10
  "hidden_dropout_prob": 0.1,
11
- "hidden_size": 1024,
12
  "id2label": {
13
  "0": "O",
14
  "1": "B-PER",
@@ -21,7 +21,7 @@
21
  "8": "I-MISC"
22
  },
23
  "initializer_range": 0.02,
24
- "intermediate_size": 4096,
25
  "label2id": {
26
  "B-LOC": 5,
27
  "B-MISC": 7,
@@ -36,8 +36,8 @@
36
  "layer_norm_eps": 1e-12,
37
  "max_position_embeddings": 512,
38
  "model_type": "bert",
39
- "num_attention_heads": 16,
40
- "num_hidden_layers": 24,
41
  "pad_token_id": 0,
42
  "position_embedding_type": "absolute",
43
  "torch_dtype": "float32",
 
1
  {
2
+ "_name_or_path": "bert-base-uncased",
3
  "architectures": [
4
  "BertForTokenClassification"
5
  ],
 
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",
 
21
  "8": "I-MISC"
22
  },
23
  "initializer_range": 0.02,
24
+ "intermediate_size": 3072,
25
  "label2id": {
26
  "B-LOC": 5,
27
  "B-MISC": 7,
 
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",
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4f1aa56528ed4b4845a575d24806836ace270e86df537b76bb0e8677ae5724af
3
- size 1336452868
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93adbba002de4da818263e110638eae20bfcc998bc12c7f3874dcaddcd71594d
3
+ size 435617620