Jise commited on
Commit
bcff908
·
verified ·
1 Parent(s): 36edd35

Training complete

Browse files
README.md ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: mit
4
+ base_model: microsoft/biogpt
5
+ tags:
6
+ - generated_from_trainer
7
+ datasets:
8
+ - ncbi_disease
9
+ metrics:
10
+ - precision
11
+ - recall
12
+ - f1
13
+ - accuracy
14
+ model-index:
15
+ - name: biogpt-finetuned-ner
16
+ results:
17
+ - task:
18
+ name: Token Classification
19
+ type: token-classification
20
+ dataset:
21
+ name: ncbi_disease
22
+ type: ncbi_disease
23
+ config: ncbi_disease
24
+ split: validation
25
+ args: ncbi_disease
26
+ metrics:
27
+ - name: Precision
28
+ type: precision
29
+ value: 0.3284671532846715
30
+ - name: Recall
31
+ type: recall
32
+ value: 0.40025412960609913
33
+ - name: F1
34
+ type: f1
35
+ value: 0.36082474226804123
36
+ - name: Accuracy
37
+ type: accuracy
38
+ value: 0.9565910770547279
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
+ # biogpt-finetuned-ner
45
+
46
+ This model is a fine-tuned version of [microsoft/biogpt](https://huggingface.co/microsoft/biogpt) on the ncbi_disease dataset.
47
+ It achieves the following results on the evaluation set:
48
+ - Loss: 0.1555
49
+ - Precision: 0.3285
50
+ - Recall: 0.4003
51
+ - F1: 0.3608
52
+ - Accuracy: 0.9566
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 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.1601 | 1.0 | 679 | 0.1294 | 0.3 | 0.3698 | 0.3312 | 0.9548 |
84
+ | 0.1095 | 2.0 | 1358 | 0.1303 | 0.3188 | 0.3532 | 0.3351 | 0.9582 |
85
+ | 0.0582 | 3.0 | 2037 | 0.1555 | 0.3285 | 0.4003 | 0.3608 | 0.9566 |
86
+
87
+
88
+ ### Framework versions
89
+
90
+ - Transformers 4.51.2
91
+ - Pytorch 2.1.0+cu121
92
+ - Datasets 3.5.0
93
+ - Tokenizers 0.21.1
config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dropout": 0.0,
3
+ "architectures": [
4
+ "BioGptForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "eos_token_id": 2,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 1024,
12
+ "id2label": {
13
+ "0": "O",
14
+ "1": "B-Disease",
15
+ "2": "I-Disease"
16
+ },
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 4096,
19
+ "label2id": {
20
+ "B-Disease": 1,
21
+ "I-Disease": 2,
22
+ "O": 0
23
+ },
24
+ "layer_norm_eps": 1e-12,
25
+ "layerdrop": 0.0,
26
+ "max_position_embeddings": 1024,
27
+ "model_type": "biogpt",
28
+ "num_attention_heads": 16,
29
+ "num_hidden_layers": 24,
30
+ "pad_token_id": 1,
31
+ "scale_embedding": true,
32
+ "torch_dtype": "float32",
33
+ "transformers_version": "4.51.2",
34
+ "use_cache": true,
35
+ "vocab_size": 42384
36
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:109c3812cbda128ae9d2f77dece4af9cd7fd2870bb4ebc65ddb47835365b4559
3
+ size 1387108052
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "eos_token": "</s>",
4
+ "pad_token": "<pad>",
5
+ "sep_token": "</s>",
6
+ "unk_token": "<unk>"
7
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ }
35
+ },
36
+ "bos_token": "<s>",
37
+ "clean_up_tokenization_spaces": false,
38
+ "eos_token": "</s>",
39
+ "extra_special_tokens": {},
40
+ "model_max_length": 1000000000000000019884624838656,
41
+ "pad_token": "<pad>",
42
+ "sep_token": "</s>",
43
+ "tokenizer_class": "BioGptTokenizer",
44
+ "unk_token": "<unk>"
45
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85270a0d78bfc5984088f8a7963ea0c7453daf169dcaaa94648f6b7c4390b491
3
+ size 5304
vocab.json ADDED
The diff for this file is too large to render. See raw diff