zibajoon commited on
Commit
a354cb0
·
1 Parent(s): d25274b

End of training

Browse files
Files changed (4) hide show
  1. README.md +64 -0
  2. config.json +90 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: yikuan8/Clinical-Longformer
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - accuracy
7
+ model-index:
8
+ - name: 20231127_ClinicalLong_5ep_NewLabels
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # 20231127_ClinicalLong_5ep_NewLabels
16
+
17
+ This model is a fine-tuned version of [yikuan8/Clinical-Longformer](https://huggingface.co/yikuan8/Clinical-Longformer) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 1.1204
20
+ - Accuracy: 0.76
21
+
22
+ ## Model description
23
+
24
+ More information needed
25
+
26
+ ## Intended uses & limitations
27
+
28
+ More information needed
29
+
30
+ ## Training and evaluation data
31
+
32
+ More information needed
33
+
34
+ ## Training procedure
35
+
36
+ ### Training hyperparameters
37
+
38
+ The following hyperparameters were used during training:
39
+ - learning_rate: 5e-05
40
+ - train_batch_size: 12
41
+ - eval_batch_size: 32
42
+ - seed: 42
43
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
44
+ - lr_scheduler_type: linear
45
+ - lr_scheduler_warmup_steps: 500
46
+ - num_epochs: 5
47
+
48
+ ### Training results
49
+
50
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
51
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
52
+ | No log | 1.0 | 101 | 2.3747 | 0.35 |
53
+ | No log | 2.0 | 202 | 1.6577 | 0.53 |
54
+ | No log | 3.0 | 303 | 1.2947 | 0.67 |
55
+ | No log | 4.0 | 404 | 1.1553 | 0.69 |
56
+ | 1.344 | 5.0 | 505 | 1.1204 | 0.76 |
57
+
58
+
59
+ ### Framework versions
60
+
61
+ - Transformers 4.35.2
62
+ - Pytorch 2.0.1+cu118
63
+ - Datasets 2.10.1
64
+ - Tokenizers 0.14.1
config.json ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "yikuan8/Clinical-Longformer",
3
+ "architectures": [
4
+ "LongformerForSequenceClassification"
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
+ "id2label": {
29
+ "0": "LABEL_0",
30
+ "1": "LABEL_1",
31
+ "2": "LABEL_2",
32
+ "3": "LABEL_3",
33
+ "4": "LABEL_4",
34
+ "5": "LABEL_5",
35
+ "6": "LABEL_6",
36
+ "7": "LABEL_7",
37
+ "8": "LABEL_8",
38
+ "9": "LABEL_9",
39
+ "10": "LABEL_10",
40
+ "11": "LABEL_11",
41
+ "12": "LABEL_12",
42
+ "13": "LABEL_13",
43
+ "14": "LABEL_14",
44
+ "15": "LABEL_15",
45
+ "16": "LABEL_16",
46
+ "17": "LABEL_17",
47
+ "18": "LABEL_18",
48
+ "19": "LABEL_19"
49
+ },
50
+ "ignore_attention_mask": false,
51
+ "initializer_range": 0.02,
52
+ "intermediate_size": 3072,
53
+ "label2id": {
54
+ "LABEL_0": 0,
55
+ "LABEL_1": 1,
56
+ "LABEL_10": 10,
57
+ "LABEL_11": 11,
58
+ "LABEL_12": 12,
59
+ "LABEL_13": 13,
60
+ "LABEL_14": 14,
61
+ "LABEL_15": 15,
62
+ "LABEL_16": 16,
63
+ "LABEL_17": 17,
64
+ "LABEL_18": 18,
65
+ "LABEL_19": 19,
66
+ "LABEL_2": 2,
67
+ "LABEL_3": 3,
68
+ "LABEL_4": 4,
69
+ "LABEL_5": 5,
70
+ "LABEL_6": 6,
71
+ "LABEL_7": 7,
72
+ "LABEL_8": 8,
73
+ "LABEL_9": 9
74
+ },
75
+ "layer_norm_eps": 1e-05,
76
+ "max_position_embeddings": 4098,
77
+ "model_type": "longformer",
78
+ "num_attention_heads": 12,
79
+ "num_hidden_layers": 12,
80
+ "onnx_export": false,
81
+ "pad_token_id": 1,
82
+ "position_embedding_type": "absolute",
83
+ "problem_type": "single_label_classification",
84
+ "sep_token_id": 2,
85
+ "torch_dtype": "float32",
86
+ "transformers_version": "4.35.2",
87
+ "type_vocab_size": 1,
88
+ "use_cache": true,
89
+ "vocab_size": 50265
90
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da96bd4dc796438b98703a45098aa40cffc26d5d111e2176cde19ec8fadd54a3
3
+ size 594733552
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21f4e41bae4b0305f8a7150c5b533c3074b2127beb8cacbce778ec2f00cb330e
3
+ size 4155