ttlanhhh commited on
Commit
9bb340d
1 Parent(s): fc67997

ttlanhhh/mlma-biogpt

Browse files
README.md ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: microsoft/biogpt
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: results
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # results
15
+
16
+ This model is a fine-tuned version of [microsoft/biogpt](https://huggingface.co/microsoft/biogpt) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Loss: 0.1870
19
+ - Overall Precision: 0.4821
20
+ - Overall Recall: 0.5760
21
+ - Overall F1: 0.5249
22
+ - Overall Accuracy: 0.9506
23
+
24
+ ## Model description
25
+
26
+ More information needed
27
+
28
+ ## Intended uses & limitations
29
+
30
+ More information needed
31
+
32
+ ## Training and evaluation data
33
+
34
+ More information needed
35
+
36
+ ## Training procedure
37
+
38
+ ### Training hyperparameters
39
+
40
+ The following hyperparameters were used during training:
41
+ - learning_rate: 2e-05
42
+ - train_batch_size: 4
43
+ - eval_batch_size: 4
44
+ - seed: 42
45
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
46
+ - lr_scheduler_type: linear
47
+ - num_epochs: 5
48
+
49
+ ### Training results
50
+
51
+ | Training Loss | Epoch | Step | Validation Loss | Overall Precision | Overall Recall | Overall F1 | Overall Accuracy |
52
+ |:-------------:|:-----:|:----:|:---------------:|:-----------------:|:--------------:|:----------:|:----------------:|
53
+ | 0.2295 | 1.0 | 1358 | 0.1735 | 0.3341 | 0.3926 | 0.3610 | 0.9483 |
54
+ | 0.1401 | 2.0 | 2716 | 0.1512 | 0.3905 | 0.5413 | 0.4537 | 0.9509 |
55
+ | 0.0948 | 3.0 | 4074 | 0.1627 | 0.4667 | 0.5070 | 0.4860 | 0.9578 |
56
+ | 0.0778 | 4.0 | 5432 | 0.1672 | 0.4831 | 0.5642 | 0.5205 | 0.9587 |
57
+ | 0.0614 | 5.0 | 6790 | 0.1755 | 0.4967 | 0.5781 | 0.5344 | 0.9594 |
58
+
59
+
60
+ ### Framework versions
61
+
62
+ - Transformers 4.39.3
63
+ - Pytorch 1.12.1+cu113
64
+ - Datasets 2.18.0
65
+ - Tokenizers 0.15.2
config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/biogpt",
3
+ "activation_dropout": 0.0,
4
+ "activation_function": "gelu_new",
5
+ "architectures": [
6
+ "GPT2ForTokenClassification"
7
+ ],
8
+ "attention_probs_dropout_prob": 0.1,
9
+ "attn_pdrop": 0.1,
10
+ "bos_token_id": 0,
11
+ "embd_pdrop": 0.1,
12
+ "eos_token_id": 2,
13
+ "hidden_act": "gelu",
14
+ "hidden_dropout_prob": 0.1,
15
+ "id2label": {
16
+ "0": "LABEL_0",
17
+ "1": "LABEL_1",
18
+ "2": "LABEL_2"
19
+ },
20
+ "initializer_range": 0.02,
21
+ "intermediate_size": 4096,
22
+ "label2id": {
23
+ "LABEL_0": 0,
24
+ "LABEL_1": 1,
25
+ "LABEL_2": 2
26
+ },
27
+ "layer_norm_eps": 1e-12,
28
+ "layer_norm_epsilon": 1e-05,
29
+ "layerdrop": 0.0,
30
+ "model_type": "gpt2",
31
+ "n_embd": 1024,
32
+ "n_head": 16,
33
+ "n_inner": null,
34
+ "n_layer": 24,
35
+ "n_positions": 1024,
36
+ "pad_token_id": 1,
37
+ "reorder_and_upcast_attn": false,
38
+ "resid_pdrop": 0.1,
39
+ "scale_attn_by_inverse_layer_idx": false,
40
+ "scale_attn_weights": true,
41
+ "scale_embedding": true,
42
+ "summary_activation": null,
43
+ "summary_first_dropout": 0.1,
44
+ "summary_proj_to_labels": true,
45
+ "summary_type": "cls_index",
46
+ "summary_use_proj": true,
47
+ "torch_dtype": "float32",
48
+ "transformers_version": "4.39.3",
49
+ "use_cache": true,
50
+ "vocab_size": 42384
51
+ }
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:7af87b39077fcb050ec6cb9c1d4269bbac2dc3b897b5bd37b16ce392200e6675
3
+ size 1387087524
runs/Apr11_21-45-29_bunbo/events.out.tfevents.1712886331.bunbo.3542636.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ad8e4b94170da720d2c3eb53f642c83c97c11ebd2de5da53f735d6b6ddaea84
3
+ size 10692
runs/Apr11_21-45-29_bunbo/events.out.tfevents.1712887689.bunbo.3542636.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02b3a9dc1b3d0f624129fa8e501c510b7d123edc0d5f07405d1f1c2df91cdd63
3
+ size 1096
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,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": true,
38
+ "eos_token": "</s>",
39
+ "model_max_length": 1024,
40
+ "pad_token": "<pad>",
41
+ "sep_token": "</s>",
42
+ "tokenizer_class": "BioGptTokenizer",
43
+ "unk_token": "<unk>"
44
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a84b3b03989c5240752411afa66863e6afa0fa79439ae31c6524f3f71cb553c
3
+ size 4463
vocab.json ADDED
The diff for this file is too large to render. See raw diff