SandriBarros
commited on
Commit
•
3c62228
1
Parent(s):
f058027
End of training
Browse files- README.md +101 -0
- config.json +43 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- runs/Nov05_20-19-11_447da3a48c22/events.out.tfevents.1699215565.447da3a48c22.437.1 +3 -0
- special_tokens_map.json +15 -0
- tokenizer.json +0 -0
- tokenizer_config.json +57 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: allenai/longformer-base-4096
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: clinical_longformer_same_tokens_treintamil
|
8 |
+
results: []
|
9 |
+
---
|
10 |
+
|
11 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
12 |
+
should probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
# clinical_longformer_same_tokens_treintamil
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [allenai/longformer-base-4096](https://huggingface.co/allenai/longformer-base-4096) on the None dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Loss: 2.3864
|
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: 16
|
40 |
+
- seed: 42
|
41 |
+
- gradient_accumulation_steps: 64
|
42 |
+
- total_train_batch_size: 128
|
43 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
44 |
+
- lr_scheduler_type: linear
|
45 |
+
- lr_scheduler_warmup_steps: 1500
|
46 |
+
- num_epochs: 4
|
47 |
+
|
48 |
+
### Training results
|
49 |
+
|
50 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
51 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
52 |
+
| 2.6837 | 0.09 | 2 | 2.6011 |
|
53 |
+
| 2.7002 | 0.19 | 4 | 2.4829 |
|
54 |
+
| 2.7169 | 0.28 | 6 | 2.5518 |
|
55 |
+
| 2.5927 | 0.38 | 8 | 2.4683 |
|
56 |
+
| 2.6215 | 0.47 | 10 | 2.5798 |
|
57 |
+
| 2.6608 | 0.57 | 12 | 2.4698 |
|
58 |
+
| 2.6124 | 0.66 | 14 | 2.6022 |
|
59 |
+
| 2.5422 | 0.76 | 16 | 2.5533 |
|
60 |
+
| 2.6775 | 0.85 | 18 | 2.5041 |
|
61 |
+
| 5.5552 | 0.95 | 20 | 2.5191 |
|
62 |
+
| 2.6986 | 1.04 | 22 | 2.5060 |
|
63 |
+
| 2.7096 | 1.14 | 24 | 2.4583 |
|
64 |
+
| 3.5551 | 1.23 | 26 | 2.5649 |
|
65 |
+
| 2.7292 | 1.33 | 28 | 2.5068 |
|
66 |
+
| 2.766 | 1.42 | 30 | 2.4687 |
|
67 |
+
| 3.4509 | 1.52 | 32 | 2.5880 |
|
68 |
+
| 3.3941 | 1.61 | 34 | 2.4755 |
|
69 |
+
| 2.5889 | 1.71 | 36 | 2.5193 |
|
70 |
+
| 2.6374 | 1.8 | 38 | 2.5416 |
|
71 |
+
| 2.5641 | 1.9 | 40 | 2.4652 |
|
72 |
+
| 2.8255 | 1.99 | 42 | 2.5123 |
|
73 |
+
| 2.5652 | 2.09 | 44 | 2.4474 |
|
74 |
+
| 2.5775 | 2.18 | 46 | 2.5389 |
|
75 |
+
| 2.5171 | 2.28 | 48 | 2.4643 |
|
76 |
+
| 2.6795 | 2.37 | 50 | 2.4121 |
|
77 |
+
| 2.591 | 2.47 | 52 | 2.4375 |
|
78 |
+
| 2.7528 | 2.56 | 54 | 2.5074 |
|
79 |
+
| 2.6141 | 2.65 | 56 | 2.4405 |
|
80 |
+
| 2.6785 | 2.75 | 58 | 2.4155 |
|
81 |
+
| 3.0339 | 2.84 | 60 | 2.4628 |
|
82 |
+
| 2.6164 | 2.94 | 62 | 2.4732 |
|
83 |
+
| 2.4911 | 3.03 | 64 | 2.3910 |
|
84 |
+
| 2.6821 | 3.13 | 66 | 2.4661 |
|
85 |
+
| 2.6406 | 3.22 | 68 | 2.4274 |
|
86 |
+
| 2.6277 | 3.32 | 70 | 2.4130 |
|
87 |
+
| 2.5329 | 3.41 | 72 | 2.4310 |
|
88 |
+
| 2.5272 | 3.51 | 74 | 2.4122 |
|
89 |
+
| 2.5845 | 3.6 | 76 | 2.4515 |
|
90 |
+
| 2.5483 | 3.7 | 78 | 2.3397 |
|
91 |
+
| 2.5458 | 3.79 | 80 | 2.3840 |
|
92 |
+
| 2.4884 | 3.89 | 82 | 2.3933 |
|
93 |
+
| 2.4538 | 3.98 | 84 | 2.3864 |
|
94 |
+
|
95 |
+
|
96 |
+
### Framework versions
|
97 |
+
|
98 |
+
- Transformers 4.35.0
|
99 |
+
- Pytorch 2.1.0+cu118
|
100 |
+
- Datasets 2.14.6
|
101 |
+
- Tokenizers 0.14.1
|
config.json
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "allenai/longformer-base-4096",
|
3 |
+
"architectures": [
|
4 |
+
"LongformerForMaskedLM"
|
5 |
+
],
|
6 |
+
"attention_mode": "longformer",
|
7 |
+
"attention_probs_dropout_prob": 0.1,
|
8 |
+
"attention_window": [
|
9 |
+
512,
|
10 |
+
512,
|
11 |
+
512,
|
12 |
+
512,
|
13 |
+
512,
|
14 |
+
512,
|
15 |
+
512,
|
16 |
+
512,
|
17 |
+
512,
|
18 |
+
512,
|
19 |
+
512,
|
20 |
+
512
|
21 |
+
],
|
22 |
+
"bos_token_id": 0,
|
23 |
+
"eos_token_id": 2,
|
24 |
+
"gradient_checkpointing": false,
|
25 |
+
"hidden_act": "gelu",
|
26 |
+
"hidden_dropout_prob": 0.1,
|
27 |
+
"hidden_size": 768,
|
28 |
+
"ignore_attention_mask": false,
|
29 |
+
"initializer_range": 0.02,
|
30 |
+
"intermediate_size": 3072,
|
31 |
+
"layer_norm_eps": 1e-05,
|
32 |
+
"max_position_embeddings": 4098,
|
33 |
+
"model_type": "longformer",
|
34 |
+
"num_attention_heads": 12,
|
35 |
+
"num_hidden_layers": 12,
|
36 |
+
"onnx_export": false,
|
37 |
+
"pad_token_id": 1,
|
38 |
+
"sep_token_id": 2,
|
39 |
+
"torch_dtype": "float32",
|
40 |
+
"transformers_version": "4.35.0",
|
41 |
+
"type_vocab_size": 1,
|
42 |
+
"vocab_size": 50265
|
43 |
+
}
|
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:06f30775c796f9a4df3528cb88bfdbc33a8143458447b7639a437f01310b41eb
|
3 |
+
size 594879308
|
runs/Nov05_20-19-11_447da3a48c22/events.out.tfevents.1699215565.447da3a48c22.437.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3d928bf567f366dd52b1f9adcabc4ec1e2e5313c14314982bf1e4530242345a3
|
3 |
+
size 22436
|
special_tokens_map.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"cls_token": "<s>",
|
4 |
+
"eos_token": "</s>",
|
5 |
+
"mask_token": {
|
6 |
+
"content": "<mask>",
|
7 |
+
"lstrip": true,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false
|
11 |
+
},
|
12 |
+
"pad_token": "<pad>",
|
13 |
+
"sep_token": "</s>",
|
14 |
+
"unk_token": "<unk>"
|
15 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"0": {
|
5 |
+
"content": "<s>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": true,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"1": {
|
13 |
+
"content": "<pad>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": true,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"2": {
|
21 |
+
"content": "</s>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": true,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
},
|
28 |
+
"3": {
|
29 |
+
"content": "<unk>",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": true,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false,
|
34 |
+
"special": true
|
35 |
+
},
|
36 |
+
"50264": {
|
37 |
+
"content": "<mask>",
|
38 |
+
"lstrip": true,
|
39 |
+
"normalized": false,
|
40 |
+
"rstrip": false,
|
41 |
+
"single_word": false,
|
42 |
+
"special": true
|
43 |
+
}
|
44 |
+
},
|
45 |
+
"bos_token": "<s>",
|
46 |
+
"clean_up_tokenization_spaces": true,
|
47 |
+
"cls_token": "<s>",
|
48 |
+
"eos_token": "</s>",
|
49 |
+
"errors": "replace",
|
50 |
+
"mask_token": "<mask>",
|
51 |
+
"model_max_length": 4096,
|
52 |
+
"pad_token": "<pad>",
|
53 |
+
"sep_token": "</s>",
|
54 |
+
"tokenizer_class": "LongformerTokenizer",
|
55 |
+
"trim_offsets": true,
|
56 |
+
"unk_token": "<unk>"
|
57 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:11af2e07f367e10c9b1ae985309be7dc73f286365ce6ab0c55ca4cf1ce094b0a
|
3 |
+
size 4600
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|