ishdev10 commited on
Commit
b1265c7
·
verified ·
1 Parent(s): 51de31e

biogpt-mlma

Browse files
README.md ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: lab7_models
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.10101010101010101
30
+ - name: Recall
31
+ type: recall
32
+ value: 0.007751937984496124
33
+ - name: F1
34
+ type: f1
35
+ value: 0.014398848092152628
36
+ - name: Accuracy
37
+ type: accuracy
38
+ value: 0.905529082520233
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
+ # lab7_models
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.3157
49
+ - Precision: 0.1010
50
+ - Recall: 0.0078
51
+ - F1: 0.0144
52
+ - Accuracy: 0.9055
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: 1
73
+ - eval_batch_size: 8
74
+ - seed: 42
75
+ - gradient_accumulation_steps: 4
76
+ - total_train_batch_size: 4
77
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
78
+ - lr_scheduler_type: linear
79
+ - num_epochs: 3
80
+
81
+ ### Training results
82
+
83
+
84
+
85
+ ### Framework versions
86
+
87
+ - Transformers 4.51.0
88
+ - Pytorch 2.1.0+cu121
89
+ - Datasets 3.5.0
90
+ - Tokenizers 0.21.1
config.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dropout": 0.0,
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPT2ForTokenClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "attn_pdrop": 0.1,
9
+ "bos_token_id": 0,
10
+ "embd_pdrop": 0.1,
11
+ "eos_token_id": 2,
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "id2label": {
15
+ "0": "LABEL_0",
16
+ "1": "LABEL_1",
17
+ "2": "LABEL_2"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 4096,
21
+ "label2id": {
22
+ "LABEL_0": 0,
23
+ "LABEL_1": 1,
24
+ "LABEL_2": 2
25
+ },
26
+ "layer_norm_eps": 1e-12,
27
+ "layer_norm_epsilon": 1e-05,
28
+ "layerdrop": 0.0,
29
+ "model_type": "gpt2",
30
+ "n_embd": 1024,
31
+ "n_head": 16,
32
+ "n_inner": null,
33
+ "n_layer": 24,
34
+ "n_positions": 1024,
35
+ "pad_token_id": 1,
36
+ "reorder_and_upcast_attn": false,
37
+ "resid_pdrop": 0.1,
38
+ "scale_attn_by_inverse_layer_idx": false,
39
+ "scale_attn_weights": true,
40
+ "scale_embedding": true,
41
+ "summary_activation": null,
42
+ "summary_first_dropout": 0.1,
43
+ "summary_proj_to_labels": true,
44
+ "summary_type": "cls_index",
45
+ "summary_use_proj": true,
46
+ "torch_dtype": "float32",
47
+ "transformers_version": "4.51.0",
48
+ "use_cache": true,
49
+ "vocab_size": 42384
50
+ }
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:3e0ed1fa5145d398faacb7e1de1ee976a9ae0d38a9c2bdee183b3854da128f67
3
+ size 1387087524
runs/Apr11_19-47-39_gpuz03/events.out.tfevents.1744415262.gpuz03.27689.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f0d67849fb3168eb2188288539f2799a092b171df8a7c46d5dda4af3671c25c
3
+ size 7585
runs/Apr11_19-47-39_gpuz03/events.out.tfevents.1744417182.gpuz03.27689.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb773b18333f09e7cfa5292d45ecad72e12dba8ab220d2715ae66c65c7b82164
3
+ size 512
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:6a2aa75fe738d2c459d02711571140d17ccfdd2f51b94b4159d89e1a3f91e893
3
+ size 5368
vocab.json ADDED
The diff for this file is too large to render. See raw diff