GustawB commited on
Commit
80561fd
1 Parent(s): cc02788

Training complete

Browse files
README.md ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: albert-base-v2
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: albert-finetuned-ner-gbgb
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.5032151387102701
30
+ - name: Recall
31
+ type: recall
32
+ value: 0.46095590710198586
33
+ - name: F1
34
+ type: f1
35
+ value: 0.4811594202898551
36
+ - name: Accuracy
37
+ type: accuracy
38
+ value: 0.8898127980220168
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
+ # albert-finetuned-ner-gbgb
45
+
46
+ This model is a fine-tuned version of [albert-base-v2](https://huggingface.co/albert-base-v2) on the conll2003 dataset.
47
+ It achieves the following results on the evaluation set:
48
+ - Loss: 0.3371
49
+ - Precision: 0.5032
50
+ - Recall: 0.4610
51
+ - F1: 0.4812
52
+ - Accuracy: 0.8898
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: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
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.5379 | 1.0 | 1756 | 0.4843 | 0.4079 | 0.2740 | 0.3278 | 0.8502 |
84
+ | 0.3491 | 2.0 | 3512 | 0.3726 | 0.4903 | 0.3837 | 0.4305 | 0.8778 |
85
+ | 0.26 | 3.0 | 5268 | 0.3371 | 0.5032 | 0.4610 | 0.4812 | 0.8898 |
86
+
87
+
88
+ ### Framework versions
89
+
90
+ - Transformers 4.46.1
91
+ - Pytorch 2.5.1+cpu
92
+ - Datasets 3.1.0
93
+ - Tokenizers 0.20.2
config.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "albert-base-v2",
3
+ "architectures": [
4
+ "AlbertForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0,
7
+ "bos_token_id": 2,
8
+ "classifier_dropout_prob": 0.1,
9
+ "down_scale_factor": 1,
10
+ "embedding_size": 128,
11
+ "eos_token_id": 3,
12
+ "gap_size": 0,
13
+ "hidden_act": "gelu_new",
14
+ "hidden_dropout_prob": 0,
15
+ "hidden_size": 768,
16
+ "id2label": {
17
+ "0": "O",
18
+ "1": "B-PER",
19
+ "2": "I-PER",
20
+ "3": "B-ORG",
21
+ "4": "I-ORG",
22
+ "5": "B-LOC",
23
+ "6": "I-LOC",
24
+ "7": "B-MISC",
25
+ "8": "I-MISC"
26
+ },
27
+ "initializer_range": 0.02,
28
+ "inner_group_num": 1,
29
+ "intermediate_size": 3072,
30
+ "label2id": {
31
+ "B-LOC": 5,
32
+ "B-MISC": 7,
33
+ "B-ORG": 3,
34
+ "B-PER": 1,
35
+ "I-LOC": 6,
36
+ "I-MISC": 8,
37
+ "I-ORG": 4,
38
+ "I-PER": 2,
39
+ "O": 0
40
+ },
41
+ "layer_norm_eps": 1e-12,
42
+ "max_position_embeddings": 512,
43
+ "model_type": "albert",
44
+ "net_structure_type": 0,
45
+ "num_attention_heads": 12,
46
+ "num_hidden_groups": 1,
47
+ "num_hidden_layers": 12,
48
+ "num_memory_blocks": 0,
49
+ "pad_token_id": 0,
50
+ "position_embedding_type": "absolute",
51
+ "torch_dtype": "float32",
52
+ "transformers_version": "4.46.1",
53
+ "type_vocab_size": 2,
54
+ "vocab_size": 30000
55
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a49b58387a1239de77ace42f6eabf4b5d7a7d71fc3a93577b04fd82fc58a6848
3
+ size 44402892
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:a1aa6e722d9e47360e2d341adf0a06cd119e931c551bac0c098a4b98296abd3c
3
+ size 5240
vocab.txt ADDED
The diff for this file is too large to render. See raw diff