Training in progress, step 500
Browse files- README.md +68 -0
- config.json +51 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- runs/Apr14_21-26-28_50177d86513e/events.out.tfevents.1713129989.50177d86513e.196.0 +3 -0
- runs/Apr14_21-26-28_50177d86513e/events.out.tfevents.1713130583.50177d86513e.196.1 +3 -0
- runs/Apr14_22-51-17_50177d86513e/events.out.tfevents.1713135080.50177d86513e.196.2 +3 -0
- special_tokens_map.json +7 -0
- tokenizer_config.json +44 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: microsoft/biogpt
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- precision
|
8 |
+
- recall
|
9 |
+
- f1
|
10 |
+
- accuracy
|
11 |
+
model-index:
|
12 |
+
- name: BioGPT_NCBI
|
13 |
+
results: []
|
14 |
+
---
|
15 |
+
|
16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
17 |
+
should probably proofread and complete it, then remove this comment. -->
|
18 |
+
|
19 |
+
# BioGPT_NCBI
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [microsoft/biogpt](https://huggingface.co/microsoft/biogpt) on an unknown dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 0.1730
|
24 |
+
- Precision: 0.4537
|
25 |
+
- Recall: 0.5406
|
26 |
+
- F1: 0.4933
|
27 |
+
- Accuracy: 0.9493
|
28 |
+
|
29 |
+
## Model description
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Intended uses & limitations
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training and evaluation data
|
38 |
+
|
39 |
+
More information needed
|
40 |
+
|
41 |
+
## Training procedure
|
42 |
+
|
43 |
+
### Training hyperparameters
|
44 |
+
|
45 |
+
The following hyperparameters were used during training:
|
46 |
+
- learning_rate: 2e-05
|
47 |
+
- train_batch_size: 4
|
48 |
+
- eval_batch_size: 4
|
49 |
+
- seed: 42
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: linear
|
52 |
+
- num_epochs: 3
|
53 |
+
|
54 |
+
### Training results
|
55 |
+
|
56 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
57 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
58 |
+
| 0.2343 | 1.0 | 1358 | 0.1908 | 0.3555 | 0.4292 | 0.3889 | 0.9392 |
|
59 |
+
| 0.1311 | 2.0 | 2716 | 0.1792 | 0.3994 | 0.5563 | 0.4650 | 0.9429 |
|
60 |
+
| 0.081 | 3.0 | 4074 | 0.1730 | 0.4537 | 0.5406 | 0.4933 | 0.9493 |
|
61 |
+
|
62 |
+
|
63 |
+
### Framework versions
|
64 |
+
|
65 |
+
- Transformers 4.38.2
|
66 |
+
- Pytorch 2.2.1+cu121
|
67 |
+
- Datasets 2.18.0
|
68 |
+
- 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": "O",
|
17 |
+
"1": "B-Disease",
|
18 |
+
"2": "I-Disease"
|
19 |
+
},
|
20 |
+
"initializer_range": 0.02,
|
21 |
+
"intermediate_size": 4096,
|
22 |
+
"label2id": {
|
23 |
+
"B-Disease": 1,
|
24 |
+
"I-Disease": 2,
|
25 |
+
"O": 0
|
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.38.2",
|
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:39c1c8475ecd7d0819605ea1c36416eff0b0fd6692241dba1983c134e374fe6c
|
3 |
+
size 1387087524
|
runs/Apr14_21-26-28_50177d86513e/events.out.tfevents.1713129989.50177d86513e.196.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:37c8a39eca320ce836bf906eb0c44f168739e192e855c08cafac6af1b50981a8
|
3 |
+
size 8558
|
runs/Apr14_21-26-28_50177d86513e/events.out.tfevents.1713130583.50177d86513e.196.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:79e354999fd8af940f4d01c65b07eeae1c286ed58fde66c2c726924ac84643da
|
3 |
+
size 1032
|
runs/Apr14_22-51-17_50177d86513e/events.out.tfevents.1713135080.50177d86513e.196.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0e4fc918a89268f28e58c11bd254e1149f3b637a17f55e6c50a716759d525849
|
3 |
+
size 5339
|
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:88dfe1d39ea01b51da099fa522dfcfa5ff2dfd908fb75bcc220295382c0160a8
|
3 |
+
size 4920
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|