mlmalab7
Browse files- README.md +90 -0
- config.json +50 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- runs/Apr12_14-56-22_gpuz01/events.out.tfevents.1744484189.gpuz01.1602982.0 +3 -0
- runs/Apr12_16-23-59_gpuz01/events.out.tfevents.1744489439.gpuz01.1602982.1 +3 -0
- runs/Apr12_16-54-36_gpuz01/events.out.tfevents.1744491277.gpuz01.1602982.2 +3 -0
- runs/Apr12_17-14-15_gpuz03/events.out.tfevents.1744492457.gpuz03.3424848.0 +3 -0
- runs/Apr12_17-14-15_gpuz03/events.out.tfevents.1744496240.gpuz03.3424848.1 +3 -0
- special_tokens_map.json +7 -0
- tokenizer_config.json +45 -0
- training_args.bin +3 -0
- vocab.json +0 -0
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: model1
|
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.49363636363636365
|
30 |
+
- name: Recall
|
31 |
+
type: recall
|
32 |
+
value: 0.565625
|
33 |
+
- name: F1
|
34 |
+
type: f1
|
35 |
+
value: 0.5271844660194176
|
36 |
+
- name: Accuracy
|
37 |
+
type: accuracy
|
38 |
+
value: 0.9561134925494998
|
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 |
+
# model1
|
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.1581
|
49 |
+
- Precision: 0.4936
|
50 |
+
- Recall: 0.5656
|
51 |
+
- F1: 0.5272
|
52 |
+
- Accuracy: 0.9561
|
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.2
|
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.2",
|
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:1f7cf4e5aab2fadc532fbcd4da8677cda429d11669fa96630ec857e1401a2dd4
|
3 |
+
size 1387087524
|
runs/Apr12_14-56-22_gpuz01/events.out.tfevents.1744484189.gpuz01.1602982.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d6720286dadf023ee509cfa62e4f5dba40139f2dd2fb8d5808baef48b8129b7e
|
3 |
+
size 12690
|
runs/Apr12_16-23-59_gpuz01/events.out.tfevents.1744489439.gpuz01.1602982.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2bba72317027799557fa649d85e21389ccc2f425ae0d3f3ee7fe702a1fa0b3a4
|
3 |
+
size 7595
|
runs/Apr12_16-54-36_gpuz01/events.out.tfevents.1744491277.gpuz01.1602982.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ec2d97edd07cbc10e24ffab2ff5b132aa2018ea2bad98fafd5eeb6ac473b9439
|
3 |
+
size 5553
|
runs/Apr12_17-14-15_gpuz03/events.out.tfevents.1744492457.gpuz03.3424848.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d6a7805ce34bd6b72f647bf871f214966f127aefbb105bd4ec5dc3b2a9eb6473
|
3 |
+
size 7626
|
runs/Apr12_17-14-15_gpuz03/events.out.tfevents.1744496240.gpuz03.3424848.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3bb3b5c950bcae2b1cf52d5c4b9ea8ac0fcdd14ceda0738449f700b7d45e0f8e
|
3 |
+
size 560
|
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:698d228d0f8485ba9939c8e6aa86c701287c99f713e1aa7d5dabbb3f057628cc
|
3 |
+
size 5368
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|