ishdev10 commited on
Commit
02d90d1
·
verified ·
1 Parent(s): 321abb7

biogpt-mlma

Browse files
README.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ model-index:
10
+ - name: model_folder
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # model_folder
18
+
19
+ This model is a fine-tuned version of [microsoft/biogpt](https://huggingface.co/microsoft/biogpt) on the ncbi_disease dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - eval_loss: 1.6682
22
+ - eval_model_preparation_time: 0.0035
23
+ - eval_precision: 0.0217
24
+ - eval_recall: 0.3078
25
+ - eval_f1: 0.0405
26
+ - eval_accuracy: 0.0532
27
+ - eval_runtime: 40.9733
28
+ - eval_samples_per_second: 22.966
29
+ - eval_steps_per_second: 2.88
30
+ - step: 0
31
+
32
+ ## Model description
33
+
34
+ More information needed
35
+
36
+ ## Intended uses & limitations
37
+
38
+ More information needed
39
+
40
+ ## Training and evaluation data
41
+
42
+ More information needed
43
+
44
+ ## Training procedure
45
+
46
+ ### Training hyperparameters
47
+
48
+ The following hyperparameters were used during training:
49
+ - learning_rate: 2e-05
50
+ - train_batch_size: 1
51
+ - eval_batch_size: 8
52
+ - seed: 42
53
+ - gradient_accumulation_steps: 4
54
+ - total_train_batch_size: 4
55
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
56
+ - lr_scheduler_type: linear
57
+ - num_epochs: 3
58
+
59
+ ### Framework versions
60
+
61
+ - Transformers 4.51.0
62
+ - Pytorch 2.1.0+cu121
63
+ - Datasets 3.5.0
64
+ - 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:704a5cdf192e599380eac17c418bbd5df8c2d635a94114eecd43c4ccdf981a36
3
+ size 1387087524
runs/Apr11_10-07-41_gpuz01/events.out.tfevents.1744380477.gpuz01.2453034.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:325e85518930d5388f39aed744aaa20798e1bc9a254635052404f57823531705
3
+ size 7587
runs/Apr11_10-07-41_gpuz01/events.out.tfevents.1744382413.gpuz01.2453034.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9df25b2f4c990f610ca5567eb2f669163bef2ef850378ade84e144b048f9ac9
3
+ size 984
runs/Apr11_18-45-18_gpuz03/events.out.tfevents.1744411780.gpuz03.23710.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b08b39ec570cfe220c69aa029aa3590a379825d9984327561b130856c75ba68
3
+ size 501
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:c49b040f4d742232f5955d7a2f322cbbae3de7b96279f328cbc6e0a0ef2d8fce
3
+ size 5368
vocab.json ADDED
The diff for this file is too large to render. See raw diff