loraxian commited on
Commit
c7aa49a
·
1 Parent(s): 437ce66

End of training

Browse files
Files changed (7) hide show
  1. README.md +27 -23
  2. config.json +2 -3
  3. model.safetensors +1 -1
  4. tokenizer.json +0 -0
  5. tokenizer_config.json +7 -12
  6. training_args.bin +1 -1
  7. vocab.txt +0 -0
README.md CHANGED
@@ -1,10 +1,11 @@
1
  ---
2
- license: apache-2.0
3
- base_model: Fan-s/reddit-tc-bert
4
  tags:
5
  - generated_from_trainer
6
  metrics:
7
- - f1
 
8
  model-index:
9
  - name: model
10
  results: []
@@ -15,10 +16,11 @@ should probably proofread and complete it, then remove this comment. -->
15
 
16
  # model
17
 
18
- This model is a fine-tuned version of [Fan-s/reddit-tc-bert](https://huggingface.co/Fan-s/reddit-tc-bert) on the None dataset.
19
  It achieves the following results on the evaluation set:
20
- - Loss: 0.3981
21
- - F1: 0.4000
 
22
 
23
  ## Model description
24
 
@@ -37,31 +39,33 @@ More information needed
37
  ### Training hyperparameters
38
 
39
  The following hyperparameters were used during training:
40
- - learning_rate: 2e-06
41
- - train_batch_size: 36
42
- - eval_batch_size: 36
43
  - seed: 42
44
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
  - lr_scheduler_type: linear
46
- - num_epochs: 8
47
 
48
  ### Training results
49
 
50
- | Training Loss | Epoch | Step | Validation Loss | F1 |
51
- |:-------------:|:-----:|:----:|:---------------:|:------:|
52
- | No log | 1.0 | 91 | 0.4630 | 0.1531 |
53
- | No log | 2.0 | 182 | 0.4290 | 0.1887 |
54
- | No log | 3.0 | 273 | 0.4143 | 0.2364 |
55
- | No log | 4.0 | 364 | 0.4074 | 0.3502 |
56
- | No log | 5.0 | 455 | 0.4037 | 0.2719 |
57
- | 0.3843 | 6.0 | 546 | 0.3991 | 0.3893 |
58
- | 0.3843 | 7.0 | 637 | 0.3985 | 0.3828 |
59
- | 0.3843 | 8.0 | 728 | 0.3981 | 0.4000 |
 
 
60
 
61
 
62
  ### Framework versions
63
 
64
- - Transformers 4.35.0
65
  - Pytorch 2.0.0
66
- - Datasets 2.14.6
67
- - Tokenizers 0.14.1
 
1
  ---
2
+ license: mit
3
+ base_model: Tsubasaz/clinical-pubmed-bert-base-512
4
  tags:
5
  - generated_from_trainer
6
  metrics:
7
+ - precision
8
+ - recall
9
  model-index:
10
  - name: model
11
  results: []
 
16
 
17
  # model
18
 
19
+ This model is a fine-tuned version of [Tsubasaz/clinical-pubmed-bert-base-512](https://huggingface.co/Tsubasaz/clinical-pubmed-bert-base-512) on the None dataset.
20
  It achieves the following results on the evaluation set:
21
+ - Loss: 0.3511
22
+ - Precision: 0.6103
23
+ - Recall: 0.5640
24
 
25
  ## Model description
26
 
 
39
  ### Training hyperparameters
40
 
41
  The following hyperparameters were used during training:
42
+ - learning_rate: 3e-06
43
+ - train_batch_size: 32
44
+ - eval_batch_size: 32
45
  - seed: 42
46
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
  - lr_scheduler_type: linear
48
+ - num_epochs: 10
49
 
50
  ### Training results
51
 
52
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall |
53
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|
54
+ | No log | 1.0 | 128 | 0.4393 | 0.0 | 0.0 |
55
+ | No log | 2.0 | 256 | 0.3958 | 0.5714 | 0.1706 |
56
+ | No log | 3.0 | 384 | 0.3785 | 0.5690 | 0.3128 |
57
+ | 0.4046 | 4.0 | 512 | 0.3676 | 0.5789 | 0.5213 |
58
+ | 0.4046 | 5.0 | 640 | 0.3606 | 0.6532 | 0.3839 |
59
+ | 0.4046 | 6.0 | 768 | 0.3597 | 0.6549 | 0.4408 |
60
+ | 0.4046 | 7.0 | 896 | 0.3584 | 0.6376 | 0.4502 |
61
+ | 0.3046 | 8.0 | 1024 | 0.3518 | 0.6310 | 0.5024 |
62
+ | 0.3046 | 9.0 | 1152 | 0.3511 | 0.6133 | 0.5261 |
63
+ | 0.3046 | 10.0 | 1280 | 0.3511 | 0.6103 | 0.5640 |
64
 
65
 
66
  ### Framework versions
67
 
68
+ - Transformers 4.35.2
69
  - Pytorch 2.0.0
70
+ - Datasets 2.15.0
71
+ - Tokenizers 0.15.0
config.json CHANGED
@@ -1,11 +1,10 @@
1
  {
2
- "_name_or_path": "Fan-s/reddit-tc-bert",
3
  "architectures": [
4
  "BertForSequenceClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
7
  "classifier_dropout": null,
8
- "gradient_checkpointing": false,
9
  "hidden_act": "gelu",
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
@@ -28,7 +27,7 @@
28
  "position_embedding_type": "absolute",
29
  "problem_type": "single_label_classification",
30
  "torch_dtype": "float32",
31
- "transformers_version": "4.35.0",
32
  "type_vocab_size": 2,
33
  "use_cache": true,
34
  "vocab_size": 30522
 
1
  {
2
+ "_name_or_path": "Tsubasaz/clinical-pubmed-bert-base-512",
3
  "architectures": [
4
  "BertForSequenceClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
7
  "classifier_dropout": null,
 
8
  "hidden_act": "gelu",
9
  "hidden_dropout_prob": 0.1,
10
  "hidden_size": 768,
 
27
  "position_embedding_type": "absolute",
28
  "problem_type": "single_label_classification",
29
  "torch_dtype": "float32",
30
+ "transformers_version": "4.35.2",
31
  "type_vocab_size": 2,
32
  "use_cache": true,
33
  "vocab_size": 30522
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c01ff4818ed18d0fc1d3bd80845e90cb1cf600515a723a69a4a72d18ae659123
3
  size 437958648
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed415934ece8ee8a90b151152495720a03450bf2c3caf5d7f4faf9f0e7a0927f
3
  size 437958648
tokenizer.json CHANGED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json CHANGED
@@ -8,7 +8,7 @@
8
  "single_word": false,
9
  "special": true
10
  },
11
- "100": {
12
  "content": "[UNK]",
13
  "lstrip": false,
14
  "normalized": false,
@@ -16,7 +16,7 @@
16
  "single_word": false,
17
  "special": true
18
  },
19
- "101": {
20
  "content": "[CLS]",
21
  "lstrip": false,
22
  "normalized": false,
@@ -24,7 +24,7 @@
24
  "single_word": false,
25
  "special": true
26
  },
27
- "102": {
28
  "content": "[SEP]",
29
  "lstrip": false,
30
  "normalized": false,
@@ -32,7 +32,7 @@
32
  "single_word": false,
33
  "special": true
34
  },
35
- "103": {
36
  "content": "[MASK]",
37
  "lstrip": false,
38
  "normalized": false,
@@ -43,20 +43,15 @@
43
  },
44
  "clean_up_tokenization_spaces": true,
45
  "cls_token": "[CLS]",
 
46
  "do_lower_case": true,
47
  "mask_token": "[MASK]",
48
- "max_length": 128,
49
- "model_max_length": 512,
50
- "pad_to_multiple_of": null,
51
  "pad_token": "[PAD]",
52
- "pad_token_type_id": 0,
53
- "padding_side": "right",
54
  "sep_token": "[SEP]",
55
- "stride": 0,
56
  "strip_accents": null,
57
  "tokenize_chinese_chars": true,
58
  "tokenizer_class": "BertTokenizer",
59
- "truncation_side": "right",
60
- "truncation_strategy": "longest_first",
61
  "unk_token": "[UNK]"
62
  }
 
8
  "single_word": false,
9
  "special": true
10
  },
11
+ "1": {
12
  "content": "[UNK]",
13
  "lstrip": false,
14
  "normalized": false,
 
16
  "single_word": false,
17
  "special": true
18
  },
19
+ "2": {
20
  "content": "[CLS]",
21
  "lstrip": false,
22
  "normalized": false,
 
24
  "single_word": false,
25
  "special": true
26
  },
27
+ "3": {
28
  "content": "[SEP]",
29
  "lstrip": false,
30
  "normalized": false,
 
32
  "single_word": false,
33
  "special": true
34
  },
35
+ "4": {
36
  "content": "[MASK]",
37
  "lstrip": false,
38
  "normalized": false,
 
43
  },
44
  "clean_up_tokenization_spaces": true,
45
  "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
  "do_lower_case": true,
48
  "mask_token": "[MASK]",
49
+ "model_max_length": 1000000000000000019884624838656,
50
+ "never_split": null,
 
51
  "pad_token": "[PAD]",
 
 
52
  "sep_token": "[SEP]",
 
53
  "strip_accents": null,
54
  "tokenize_chinese_chars": true,
55
  "tokenizer_class": "BertTokenizer",
 
 
56
  "unk_token": "[UNK]"
57
  }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:87fe0f2d5a538c1df971fc1fcbf5f4ae813aae370f8e40fcfde9f2a3d3cb9796
3
  size 4091
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f4faeefaa88f45ece3a78c6e7619be4f3b8c192526b2a92369a65a46abb2586
3
  size 4091
vocab.txt CHANGED
The diff for this file is too large to render. See raw diff