warshakhan
commited on
Commit
•
b95fc88
1
Parent(s):
b3b5cf1
End of training
Browse files- README.md +54 -0
- added_tokens.json +37 -0
- generation_config.json +8 -0
- preprocessor_config.json +26 -0
- sentencepiece.bpe.model +3 -0
- special_tokens_map.json +51 -0
- tokenizer.json +0 -0
- tokenizer_config.json +21 -0
README.md
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: naver-clova-ix/donut-base
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- imagefolder
|
8 |
+
model-index:
|
9 |
+
- name: donut-base-ISynHMP
|
10 |
+
results: []
|
11 |
+
---
|
12 |
+
|
13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
14 |
+
should probably proofread and complete it, then remove this comment. -->
|
15 |
+
|
16 |
+
# donut-base-ISynHMP
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [naver-clova-ix/donut-base](https://huggingface.co/naver-clova-ix/donut-base) on the imagefolder dataset.
|
19 |
+
|
20 |
+
## Model description
|
21 |
+
|
22 |
+
More information needed
|
23 |
+
|
24 |
+
## Intended uses & limitations
|
25 |
+
|
26 |
+
More information needed
|
27 |
+
|
28 |
+
## Training and evaluation data
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Training procedure
|
33 |
+
|
34 |
+
### Training hyperparameters
|
35 |
+
|
36 |
+
The following hyperparameters were used during training:
|
37 |
+
- learning_rate: 2e-05
|
38 |
+
- train_batch_size: 2
|
39 |
+
- eval_batch_size: 8
|
40 |
+
- seed: 42
|
41 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
42 |
+
- lr_scheduler_type: linear
|
43 |
+
- num_epochs: 20
|
44 |
+
|
45 |
+
### Training results
|
46 |
+
|
47 |
+
|
48 |
+
|
49 |
+
### Framework versions
|
50 |
+
|
51 |
+
- Transformers 4.32.0.dev0
|
52 |
+
- Pytorch 2.0.1+cu117
|
53 |
+
- Datasets 2.14.4
|
54 |
+
- Tokenizers 0.13.3
|
added_tokens.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"</s_AGE>": 57534,
|
3 |
+
"</s_BP>": 57556,
|
4 |
+
"</s_DATE>": 57532,
|
5 |
+
"</s_DIAG BLOCK>": 57546,
|
6 |
+
"</s_DIAGNOSIS>": 57554,
|
7 |
+
"</s_GENDER>": 57530,
|
8 |
+
"</s_HISTORY>": 57552,
|
9 |
+
"</s_MEDICINE BLOCK>": 57536,
|
10 |
+
"</s_MEDICINE DOSE>": 57544,
|
11 |
+
"</s_MEDICINE NAME>": 57542,
|
12 |
+
"</s_MEDICINE POWER>": 57540,
|
13 |
+
"</s_MEDICINE TYPE>": 57538,
|
14 |
+
"</s_NAME>": 57528,
|
15 |
+
"</s_TEMP>": 57550,
|
16 |
+
"</s_WEIGHT>": 57548,
|
17 |
+
"</s_patient info>": 57526,
|
18 |
+
"<s_AGE>": 57533,
|
19 |
+
"<s_BP>": 57555,
|
20 |
+
"<s_DATE>": 57531,
|
21 |
+
"<s_DIAG BLOCK>": 57545,
|
22 |
+
"<s_DIAGNOSIS>": 57553,
|
23 |
+
"<s_GENDER>": 57529,
|
24 |
+
"<s_HISTORY>": 57551,
|
25 |
+
"<s_MEDICINE BLOCK>": 57535,
|
26 |
+
"<s_MEDICINE DOSE>": 57543,
|
27 |
+
"<s_MEDICINE NAME>": 57541,
|
28 |
+
"<s_MEDICINE POWER>": 57539,
|
29 |
+
"<s_MEDICINE TYPE>": 57537,
|
30 |
+
"<s_NAME>": 57527,
|
31 |
+
"<s_TEMP>": 57549,
|
32 |
+
"<s_WEIGHT>": 57547,
|
33 |
+
"<s_iitcdip>": 57523,
|
34 |
+
"<s_patient info>": 57525,
|
35 |
+
"<s_synthdog>": 57524,
|
36 |
+
"<sep/>": 57522
|
37 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 0,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"forced_eos_token_id": 2,
|
6 |
+
"pad_token_id": 1,
|
7 |
+
"transformers_version": "4.32.0.dev0"
|
8 |
+
}
|
preprocessor_config.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_align_long_axis": false,
|
3 |
+
"do_normalize": true,
|
4 |
+
"do_pad": true,
|
5 |
+
"do_rescale": true,
|
6 |
+
"do_resize": true,
|
7 |
+
"do_thumbnail": true,
|
8 |
+
"image_mean": [
|
9 |
+
0.5,
|
10 |
+
0.5,
|
11 |
+
0.5
|
12 |
+
],
|
13 |
+
"image_processor_type": "DonutImageProcessor",
|
14 |
+
"image_std": [
|
15 |
+
0.5,
|
16 |
+
0.5,
|
17 |
+
0.5
|
18 |
+
],
|
19 |
+
"processor_class": "DonutProcessor",
|
20 |
+
"resample": 2,
|
21 |
+
"rescale_factor": 0.00392156862745098,
|
22 |
+
"size": [
|
23 |
+
720,
|
24 |
+
960
|
25 |
+
]
|
26 |
+
}
|
sentencepiece.bpe.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cb9e3dce4c326195d08fc3dd0f7e2eee1da8595c847bf4c1a9c78b7a82d47e2d
|
3 |
+
size 1296245
|
special_tokens_map.json
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<s_patient info>",
|
4 |
+
"</s_patient info>",
|
5 |
+
"<s_NAME>",
|
6 |
+
"</s_NAME>",
|
7 |
+
"<s_GENDER>",
|
8 |
+
"</s_GENDER>",
|
9 |
+
"<s_DATE>",
|
10 |
+
"</s_DATE>",
|
11 |
+
"<s_AGE>",
|
12 |
+
"</s_AGE>",
|
13 |
+
"<s_MEDICINE BLOCK>",
|
14 |
+
"</s_MEDICINE BLOCK>",
|
15 |
+
"<s_MEDICINE TYPE>",
|
16 |
+
"</s_MEDICINE TYPE>",
|
17 |
+
"<s_MEDICINE POWER>",
|
18 |
+
"</s_MEDICINE POWER>",
|
19 |
+
"<s_MEDICINE NAME>",
|
20 |
+
"</s_MEDICINE NAME>",
|
21 |
+
"<s_MEDICINE DOSE>",
|
22 |
+
"</s_MEDICINE DOSE>",
|
23 |
+
"<s_DIAG BLOCK>",
|
24 |
+
"</s_DIAG BLOCK>",
|
25 |
+
"<s_WEIGHT>",
|
26 |
+
"</s_WEIGHT>",
|
27 |
+
"<s_TEMP>",
|
28 |
+
"</s_TEMP>",
|
29 |
+
"<s_HISTORY>",
|
30 |
+
"</s_HISTORY>",
|
31 |
+
"<s_DIAGNOSIS>",
|
32 |
+
"</s_DIAGNOSIS>",
|
33 |
+
"<s_BP>",
|
34 |
+
"</s_BP>",
|
35 |
+
"<s>",
|
36 |
+
"</s>"
|
37 |
+
],
|
38 |
+
"bos_token": "<s>",
|
39 |
+
"cls_token": "<s>",
|
40 |
+
"eos_token": "</s>",
|
41 |
+
"mask_token": {
|
42 |
+
"content": "<mask>",
|
43 |
+
"lstrip": true,
|
44 |
+
"normalized": true,
|
45 |
+
"rstrip": false,
|
46 |
+
"single_word": false
|
47 |
+
},
|
48 |
+
"pad_token": "<pad>",
|
49 |
+
"sep_token": "</s>",
|
50 |
+
"unk_token": "<unk>"
|
51 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"clean_up_tokenization_spaces": true,
|
4 |
+
"cls_token": "<s>",
|
5 |
+
"eos_token": "</s>",
|
6 |
+
"mask_token": {
|
7 |
+
"__type": "AddedToken",
|
8 |
+
"content": "<mask>",
|
9 |
+
"lstrip": true,
|
10 |
+
"normalized": true,
|
11 |
+
"rstrip": false,
|
12 |
+
"single_word": false
|
13 |
+
},
|
14 |
+
"model_max_length": 1000000000000000019884624838656,
|
15 |
+
"pad_token": "<pad>",
|
16 |
+
"processor_class": "DonutProcessor",
|
17 |
+
"sep_token": "</s>",
|
18 |
+
"sp_model_kwargs": {},
|
19 |
+
"tokenizer_class": "XLMRobertaTokenizer",
|
20 |
+
"unk_token": "<unk>"
|
21 |
+
}
|