dhritic99/model99123
Browse files- README.md +69 -0
- all_results.json +13 -0
- config.json +36 -0
- eval_results.json +8 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
- train_results.json +8 -0
- trainer_state.json +683 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: google/vit-base-patch16-224-in21k
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
model-index:
|
9 |
+
- name: vit-base-brain-dementia-detection1
|
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 |
+
# vit-base-brain-dementia-detection1
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on an unknown dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.2209
|
21 |
+
- Accuracy: 0.9516
|
22 |
+
|
23 |
+
## Model description
|
24 |
+
|
25 |
+
More information needed
|
26 |
+
|
27 |
+
## Intended uses & limitations
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Training and evaluation data
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training procedure
|
36 |
+
|
37 |
+
### Training hyperparameters
|
38 |
+
|
39 |
+
The following hyperparameters were used during training:
|
40 |
+
- learning_rate: 2e-05
|
41 |
+
- train_batch_size: 16
|
42 |
+
- eval_batch_size: 8
|
43 |
+
- seed: 42
|
44 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
+
- lr_scheduler_type: linear
|
46 |
+
- lr_scheduler_warmup_steps: 500
|
47 |
+
- num_epochs: 20
|
48 |
+
- mixed_precision_training: Native AMP
|
49 |
+
|
50 |
+
### Training results
|
51 |
+
|
52 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
53 |
+
|:-------------:|:-------:|:----:|:---------------:|:--------:|
|
54 |
+
| 0.7193 | 1.9531 | 500 | 0.7950 | 0.6592 |
|
55 |
+
| 0.249 | 3.9062 | 1000 | 0.3423 | 0.9023 |
|
56 |
+
| 0.0774 | 5.8594 | 1500 | 0.1845 | 0.9492 |
|
57 |
+
| 0.0306 | 7.8125 | 2000 | 0.1809 | 0.9570 |
|
58 |
+
| 0.0099 | 9.7656 | 2500 | 0.1198 | 0.9717 |
|
59 |
+
| 0.0065 | 11.7188 | 3000 | 0.1497 | 0.9648 |
|
60 |
+
| 0.0053 | 13.6719 | 3500 | 0.1477 | 0.9668 |
|
61 |
+
| 0.004 | 15.625 | 4000 | 0.1585 | 0.9629 |
|
62 |
+
|
63 |
+
|
64 |
+
### Framework versions
|
65 |
+
|
66 |
+
- Transformers 4.42.4
|
67 |
+
- Pytorch 2.3.1+cu121
|
68 |
+
- Datasets 2.20.0
|
69 |
+
- Tokenizers 0.19.1
|
all_results.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 15.625,
|
3 |
+
"eval_accuracy": 0.9515625,
|
4 |
+
"eval_loss": 0.22086477279663086,
|
5 |
+
"eval_runtime": 7.2443,
|
6 |
+
"eval_samples_per_second": 176.691,
|
7 |
+
"eval_steps_per_second": 22.086,
|
8 |
+
"total_flos": 4.959576235966464e+18,
|
9 |
+
"train_loss": 0.1988602912425995,
|
10 |
+
"train_runtime": 917.7484,
|
11 |
+
"train_samples_per_second": 89.262,
|
12 |
+
"train_steps_per_second": 5.579
|
13 |
+
}
|
config.json
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224-in21k",
|
3 |
+
"architectures": [
|
4 |
+
"ViTForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"encoder_stride": 16,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.0,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "LABEL_0",
|
13 |
+
"1": "LABEL_1",
|
14 |
+
"2": "LABEL_2",
|
15 |
+
"3": "LABEL_3"
|
16 |
+
},
|
17 |
+
"image_size": 224,
|
18 |
+
"initializer_range": 0.02,
|
19 |
+
"intermediate_size": 3072,
|
20 |
+
"label2id": {
|
21 |
+
"LABEL_0": 0,
|
22 |
+
"LABEL_1": 1,
|
23 |
+
"LABEL_2": 2,
|
24 |
+
"LABEL_3": 3
|
25 |
+
},
|
26 |
+
"layer_norm_eps": 1e-12,
|
27 |
+
"model_type": "vit",
|
28 |
+
"num_attention_heads": 12,
|
29 |
+
"num_channels": 3,
|
30 |
+
"num_hidden_layers": 12,
|
31 |
+
"patch_size": 16,
|
32 |
+
"problem_type": "single_label_classification",
|
33 |
+
"qkv_bias": true,
|
34 |
+
"torch_dtype": "float32",
|
35 |
+
"transformers_version": "4.42.4"
|
36 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 15.625,
|
3 |
+
"eval_accuracy": 0.9515625,
|
4 |
+
"eval_loss": 0.22086477279663086,
|
5 |
+
"eval_runtime": 7.2443,
|
6 |
+
"eval_samples_per_second": 176.691,
|
7 |
+
"eval_steps_per_second": 22.086
|
8 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:edcf4546301bbee5df82da1a179263c56023d20cfa8fe7dff9bbb985294d716b
|
3 |
+
size 343230128
|
preprocessor_config.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_rescale": true,
|
4 |
+
"do_resize": true,
|
5 |
+
"image_mean": [
|
6 |
+
0.5,
|
7 |
+
0.5,
|
8 |
+
0.5
|
9 |
+
],
|
10 |
+
"image_processor_type": "ViTImageProcessor",
|
11 |
+
"image_std": [
|
12 |
+
0.5,
|
13 |
+
0.5,
|
14 |
+
0.5
|
15 |
+
],
|
16 |
+
"resample": 2,
|
17 |
+
"rescale_factor": 0.00392156862745098,
|
18 |
+
"size": {
|
19 |
+
"height": 224,
|
20 |
+
"width": 224
|
21 |
+
}
|
22 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 15.625,
|
3 |
+
"total_flos": 4.959576235966464e+18,
|
4 |
+
"train_loss": 0.1988602912425995,
|
5 |
+
"train_runtime": 917.7484,
|
6 |
+
"train_samples_per_second": 89.262,
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.1197938472032547,
|
3 |
+
"best_model_checkpoint": "./vit-base-brain-dementia-detection1/checkpoint-2500",
|
4 |
+
"epoch": 15.625,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 4000,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 0.1953125,
|
13 |
+
"grad_norm": 2.9218900203704834,
|
14 |
+
"learning_rate": 2.0000000000000003e-06,
|
15 |
+
"loss": 1.3496,
|
16 |
+
"step": 50
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.390625,
|
20 |
+
"grad_norm": 2.503772258758545,
|
21 |
+
"learning_rate": 4.000000000000001e-06,
|
22 |
+
"loss": 1.1755,
|
23 |
+
"step": 100
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.5859375,
|
27 |
+
"grad_norm": 2.9283928871154785,
|
28 |
+
"learning_rate": 6e-06,
|
29 |
+
"loss": 1.0408,
|
30 |
+
"step": 150
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.78125,
|
34 |
+
"grad_norm": 2.1896207332611084,
|
35 |
+
"learning_rate": 8.000000000000001e-06,
|
36 |
+
"loss": 0.9946,
|
37 |
+
"step": 200
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.9765625,
|
41 |
+
"grad_norm": 2.5399117469787598,
|
42 |
+
"learning_rate": 1e-05,
|
43 |
+
"loss": 0.904,
|
44 |
+
"step": 250
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 1.171875,
|
48 |
+
"grad_norm": 2.1824874877929688,
|
49 |
+
"learning_rate": 1.2e-05,
|
50 |
+
"loss": 0.8886,
|
51 |
+
"step": 300
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 1.3671875,
|
55 |
+
"grad_norm": 3.012261390686035,
|
56 |
+
"learning_rate": 1.4e-05,
|
57 |
+
"loss": 0.8417,
|
58 |
+
"step": 350
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 1.5625,
|
62 |
+
"grad_norm": 2.7216336727142334,
|
63 |
+
"learning_rate": 1.6000000000000003e-05,
|
64 |
+
"loss": 0.7733,
|
65 |
+
"step": 400
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 1.7578125,
|
69 |
+
"grad_norm": 9.597420692443848,
|
70 |
+
"learning_rate": 1.8e-05,
|
71 |
+
"loss": 0.7711,
|
72 |
+
"step": 450
|
73 |
+
},
|
74 |
+
{
|
75 |
+
"epoch": 1.953125,
|
76 |
+
"grad_norm": 3.229459524154663,
|
77 |
+
"learning_rate": 2e-05,
|
78 |
+
"loss": 0.7193,
|
79 |
+
"step": 500
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"epoch": 1.953125,
|
83 |
+
"eval_accuracy": 0.6591796875,
|
84 |
+
"eval_loss": 0.7949748039245605,
|
85 |
+
"eval_runtime": 6.2299,
|
86 |
+
"eval_samples_per_second": 164.369,
|
87 |
+
"eval_steps_per_second": 20.546,
|
88 |
+
"step": 500
|
89 |
+
},
|
90 |
+
{
|
91 |
+
"epoch": 2.1484375,
|
92 |
+
"grad_norm": 13.59356689453125,
|
93 |
+
"learning_rate": 1.9783549783549785e-05,
|
94 |
+
"loss": 0.6266,
|
95 |
+
"step": 550
|
96 |
+
},
|
97 |
+
{
|
98 |
+
"epoch": 2.34375,
|
99 |
+
"grad_norm": 10.799866676330566,
|
100 |
+
"learning_rate": 1.9567099567099568e-05,
|
101 |
+
"loss": 0.6088,
|
102 |
+
"step": 600
|
103 |
+
},
|
104 |
+
{
|
105 |
+
"epoch": 2.5390625,
|
106 |
+
"grad_norm": 14.872405052185059,
|
107 |
+
"learning_rate": 1.9350649350649354e-05,
|
108 |
+
"loss": 0.5726,
|
109 |
+
"step": 650
|
110 |
+
},
|
111 |
+
{
|
112 |
+
"epoch": 2.734375,
|
113 |
+
"grad_norm": 13.640074729919434,
|
114 |
+
"learning_rate": 1.9134199134199138e-05,
|
115 |
+
"loss": 0.529,
|
116 |
+
"step": 700
|
117 |
+
},
|
118 |
+
{
|
119 |
+
"epoch": 2.9296875,
|
120 |
+
"grad_norm": 15.788460731506348,
|
121 |
+
"learning_rate": 1.891774891774892e-05,
|
122 |
+
"loss": 0.4271,
|
123 |
+
"step": 750
|
124 |
+
},
|
125 |
+
{
|
126 |
+
"epoch": 3.125,
|
127 |
+
"grad_norm": 4.504462242126465,
|
128 |
+
"learning_rate": 1.8701298701298704e-05,
|
129 |
+
"loss": 0.3618,
|
130 |
+
"step": 800
|
131 |
+
},
|
132 |
+
{
|
133 |
+
"epoch": 3.3203125,
|
134 |
+
"grad_norm": 3.5319948196411133,
|
135 |
+
"learning_rate": 1.8484848484848487e-05,
|
136 |
+
"loss": 0.3656,
|
137 |
+
"step": 850
|
138 |
+
},
|
139 |
+
{
|
140 |
+
"epoch": 3.515625,
|
141 |
+
"grad_norm": 0.7339128851890564,
|
142 |
+
"learning_rate": 1.826839826839827e-05,
|
143 |
+
"loss": 0.2925,
|
144 |
+
"step": 900
|
145 |
+
},
|
146 |
+
{
|
147 |
+
"epoch": 3.7109375,
|
148 |
+
"grad_norm": 13.2314453125,
|
149 |
+
"learning_rate": 1.8051948051948053e-05,
|
150 |
+
"loss": 0.2769,
|
151 |
+
"step": 950
|
152 |
+
},
|
153 |
+
{
|
154 |
+
"epoch": 3.90625,
|
155 |
+
"grad_norm": 13.87197208404541,
|
156 |
+
"learning_rate": 1.7835497835497836e-05,
|
157 |
+
"loss": 0.249,
|
158 |
+
"step": 1000
|
159 |
+
},
|
160 |
+
{
|
161 |
+
"epoch": 3.90625,
|
162 |
+
"eval_accuracy": 0.90234375,
|
163 |
+
"eval_loss": 0.3422887325286865,
|
164 |
+
"eval_runtime": 5.8006,
|
165 |
+
"eval_samples_per_second": 176.535,
|
166 |
+
"eval_steps_per_second": 22.067,
|
167 |
+
"step": 1000
|
168 |
+
},
|
169 |
+
{
|
170 |
+
"epoch": 4.1015625,
|
171 |
+
"grad_norm": 10.137914657592773,
|
172 |
+
"learning_rate": 1.761904761904762e-05,
|
173 |
+
"loss": 0.2877,
|
174 |
+
"step": 1050
|
175 |
+
},
|
176 |
+
{
|
177 |
+
"epoch": 4.296875,
|
178 |
+
"grad_norm": 20.356388092041016,
|
179 |
+
"learning_rate": 1.7402597402597403e-05,
|
180 |
+
"loss": 0.2081,
|
181 |
+
"step": 1100
|
182 |
+
},
|
183 |
+
{
|
184 |
+
"epoch": 4.4921875,
|
185 |
+
"grad_norm": 15.127123832702637,
|
186 |
+
"learning_rate": 1.718614718614719e-05,
|
187 |
+
"loss": 0.1865,
|
188 |
+
"step": 1150
|
189 |
+
},
|
190 |
+
{
|
191 |
+
"epoch": 4.6875,
|
192 |
+
"grad_norm": 0.5982966423034668,
|
193 |
+
"learning_rate": 1.6969696969696972e-05,
|
194 |
+
"loss": 0.1477,
|
195 |
+
"step": 1200
|
196 |
+
},
|
197 |
+
{
|
198 |
+
"epoch": 4.8828125,
|
199 |
+
"grad_norm": 9.74530029296875,
|
200 |
+
"learning_rate": 1.6753246753246756e-05,
|
201 |
+
"loss": 0.1313,
|
202 |
+
"step": 1250
|
203 |
+
},
|
204 |
+
{
|
205 |
+
"epoch": 5.078125,
|
206 |
+
"grad_norm": 0.6074052453041077,
|
207 |
+
"learning_rate": 1.653679653679654e-05,
|
208 |
+
"loss": 0.1095,
|
209 |
+
"step": 1300
|
210 |
+
},
|
211 |
+
{
|
212 |
+
"epoch": 5.2734375,
|
213 |
+
"grad_norm": 0.18593043088912964,
|
214 |
+
"learning_rate": 1.6320346320346322e-05,
|
215 |
+
"loss": 0.1199,
|
216 |
+
"step": 1350
|
217 |
+
},
|
218 |
+
{
|
219 |
+
"epoch": 5.46875,
|
220 |
+
"grad_norm": 0.22421252727508545,
|
221 |
+
"learning_rate": 1.6103896103896105e-05,
|
222 |
+
"loss": 0.1042,
|
223 |
+
"step": 1400
|
224 |
+
},
|
225 |
+
{
|
226 |
+
"epoch": 5.6640625,
|
227 |
+
"grad_norm": 1.1787017583847046,
|
228 |
+
"learning_rate": 1.5887445887445888e-05,
|
229 |
+
"loss": 0.072,
|
230 |
+
"step": 1450
|
231 |
+
},
|
232 |
+
{
|
233 |
+
"epoch": 5.859375,
|
234 |
+
"grad_norm": 22.340038299560547,
|
235 |
+
"learning_rate": 1.567099567099567e-05,
|
236 |
+
"loss": 0.0774,
|
237 |
+
"step": 1500
|
238 |
+
},
|
239 |
+
{
|
240 |
+
"epoch": 5.859375,
|
241 |
+
"eval_accuracy": 0.94921875,
|
242 |
+
"eval_loss": 0.18452830612659454,
|
243 |
+
"eval_runtime": 5.6092,
|
244 |
+
"eval_samples_per_second": 182.558,
|
245 |
+
"eval_steps_per_second": 22.82,
|
246 |
+
"step": 1500
|
247 |
+
},
|
248 |
+
{
|
249 |
+
"epoch": 6.0546875,
|
250 |
+
"grad_norm": 22.49978256225586,
|
251 |
+
"learning_rate": 1.5454545454545454e-05,
|
252 |
+
"loss": 0.0376,
|
253 |
+
"step": 1550
|
254 |
+
},
|
255 |
+
{
|
256 |
+
"epoch": 6.25,
|
257 |
+
"grad_norm": 1.0888569355010986,
|
258 |
+
"learning_rate": 1.523809523809524e-05,
|
259 |
+
"loss": 0.0541,
|
260 |
+
"step": 1600
|
261 |
+
},
|
262 |
+
{
|
263 |
+
"epoch": 6.4453125,
|
264 |
+
"grad_norm": 0.13725623488426208,
|
265 |
+
"learning_rate": 1.5021645021645024e-05,
|
266 |
+
"loss": 0.0516,
|
267 |
+
"step": 1650
|
268 |
+
},
|
269 |
+
{
|
270 |
+
"epoch": 6.640625,
|
271 |
+
"grad_norm": 0.20473556220531464,
|
272 |
+
"learning_rate": 1.4805194805194807e-05,
|
273 |
+
"loss": 0.0326,
|
274 |
+
"step": 1700
|
275 |
+
},
|
276 |
+
{
|
277 |
+
"epoch": 6.8359375,
|
278 |
+
"grad_norm": 0.25789499282836914,
|
279 |
+
"learning_rate": 1.458874458874459e-05,
|
280 |
+
"loss": 0.0554,
|
281 |
+
"step": 1750
|
282 |
+
},
|
283 |
+
{
|
284 |
+
"epoch": 7.03125,
|
285 |
+
"grad_norm": 0.08650106191635132,
|
286 |
+
"learning_rate": 1.4372294372294374e-05,
|
287 |
+
"loss": 0.0259,
|
288 |
+
"step": 1800
|
289 |
+
},
|
290 |
+
{
|
291 |
+
"epoch": 7.2265625,
|
292 |
+
"grad_norm": 0.0898546352982521,
|
293 |
+
"learning_rate": 1.4155844155844157e-05,
|
294 |
+
"loss": 0.0256,
|
295 |
+
"step": 1850
|
296 |
+
},
|
297 |
+
{
|
298 |
+
"epoch": 7.421875,
|
299 |
+
"grad_norm": 0.07839500159025192,
|
300 |
+
"learning_rate": 1.3939393939393942e-05,
|
301 |
+
"loss": 0.0288,
|
302 |
+
"step": 1900
|
303 |
+
},
|
304 |
+
{
|
305 |
+
"epoch": 7.6171875,
|
306 |
+
"grad_norm": 0.07453235238790512,
|
307 |
+
"learning_rate": 1.3722943722943725e-05,
|
308 |
+
"loss": 0.0178,
|
309 |
+
"step": 1950
|
310 |
+
},
|
311 |
+
{
|
312 |
+
"epoch": 7.8125,
|
313 |
+
"grad_norm": 0.075274258852005,
|
314 |
+
"learning_rate": 1.3506493506493508e-05,
|
315 |
+
"loss": 0.0306,
|
316 |
+
"step": 2000
|
317 |
+
},
|
318 |
+
{
|
319 |
+
"epoch": 7.8125,
|
320 |
+
"eval_accuracy": 0.95703125,
|
321 |
+
"eval_loss": 0.18091866374015808,
|
322 |
+
"eval_runtime": 5.5217,
|
323 |
+
"eval_samples_per_second": 185.451,
|
324 |
+
"eval_steps_per_second": 23.181,
|
325 |
+
"step": 2000
|
326 |
+
},
|
327 |
+
{
|
328 |
+
"epoch": 8.0078125,
|
329 |
+
"grad_norm": 0.06450609862804413,
|
330 |
+
"learning_rate": 1.3290043290043291e-05,
|
331 |
+
"loss": 0.0161,
|
332 |
+
"step": 2050
|
333 |
+
},
|
334 |
+
{
|
335 |
+
"epoch": 8.203125,
|
336 |
+
"grad_norm": 0.12140965461730957,
|
337 |
+
"learning_rate": 1.3073593073593074e-05,
|
338 |
+
"loss": 0.0223,
|
339 |
+
"step": 2100
|
340 |
+
},
|
341 |
+
{
|
342 |
+
"epoch": 8.3984375,
|
343 |
+
"grad_norm": 0.05588414520025253,
|
344 |
+
"learning_rate": 1.2857142857142859e-05,
|
345 |
+
"loss": 0.0139,
|
346 |
+
"step": 2150
|
347 |
+
},
|
348 |
+
{
|
349 |
+
"epoch": 8.59375,
|
350 |
+
"grad_norm": 0.054097168147563934,
|
351 |
+
"learning_rate": 1.2640692640692642e-05,
|
352 |
+
"loss": 0.0129,
|
353 |
+
"step": 2200
|
354 |
+
},
|
355 |
+
{
|
356 |
+
"epoch": 8.7890625,
|
357 |
+
"grad_norm": 0.6485223770141602,
|
358 |
+
"learning_rate": 1.2424242424242425e-05,
|
359 |
+
"loss": 0.0193,
|
360 |
+
"step": 2250
|
361 |
+
},
|
362 |
+
{
|
363 |
+
"epoch": 8.984375,
|
364 |
+
"grad_norm": 0.37905704975128174,
|
365 |
+
"learning_rate": 1.2212121212121213e-05,
|
366 |
+
"loss": 0.0265,
|
367 |
+
"step": 2300
|
368 |
+
},
|
369 |
+
{
|
370 |
+
"epoch": 9.1796875,
|
371 |
+
"grad_norm": 0.05206324905157089,
|
372 |
+
"learning_rate": 1.1995670995670996e-05,
|
373 |
+
"loss": 0.0112,
|
374 |
+
"step": 2350
|
375 |
+
},
|
376 |
+
{
|
377 |
+
"epoch": 9.375,
|
378 |
+
"grad_norm": 0.04438047483563423,
|
379 |
+
"learning_rate": 1.1779220779220779e-05,
|
380 |
+
"loss": 0.01,
|
381 |
+
"step": 2400
|
382 |
+
},
|
383 |
+
{
|
384 |
+
"epoch": 9.5703125,
|
385 |
+
"grad_norm": 0.046205826103687286,
|
386 |
+
"learning_rate": 1.1562770562770564e-05,
|
387 |
+
"loss": 0.0102,
|
388 |
+
"step": 2450
|
389 |
+
},
|
390 |
+
{
|
391 |
+
"epoch": 9.765625,
|
392 |
+
"grad_norm": 0.05957115814089775,
|
393 |
+
"learning_rate": 1.1346320346320347e-05,
|
394 |
+
"loss": 0.0099,
|
395 |
+
"step": 2500
|
396 |
+
},
|
397 |
+
{
|
398 |
+
"epoch": 9.765625,
|
399 |
+
"eval_accuracy": 0.9716796875,
|
400 |
+
"eval_loss": 0.1197938472032547,
|
401 |
+
"eval_runtime": 5.5803,
|
402 |
+
"eval_samples_per_second": 183.501,
|
403 |
+
"eval_steps_per_second": 22.938,
|
404 |
+
"step": 2500
|
405 |
+
},
|
406 |
+
{
|
407 |
+
"epoch": 9.9609375,
|
408 |
+
"grad_norm": 0.22725243866443634,
|
409 |
+
"learning_rate": 1.112987012987013e-05,
|
410 |
+
"loss": 0.0161,
|
411 |
+
"step": 2550
|
412 |
+
},
|
413 |
+
{
|
414 |
+
"epoch": 10.15625,
|
415 |
+
"grad_norm": 0.040088605135679245,
|
416 |
+
"learning_rate": 1.0913419913419913e-05,
|
417 |
+
"loss": 0.009,
|
418 |
+
"step": 2600
|
419 |
+
},
|
420 |
+
{
|
421 |
+
"epoch": 10.3515625,
|
422 |
+
"grad_norm": 0.0421510674059391,
|
423 |
+
"learning_rate": 1.0696969696969696e-05,
|
424 |
+
"loss": 0.0079,
|
425 |
+
"step": 2650
|
426 |
+
},
|
427 |
+
{
|
428 |
+
"epoch": 10.546875,
|
429 |
+
"grad_norm": 0.04016215354204178,
|
430 |
+
"learning_rate": 1.0480519480519481e-05,
|
431 |
+
"loss": 0.008,
|
432 |
+
"step": 2700
|
433 |
+
},
|
434 |
+
{
|
435 |
+
"epoch": 10.7421875,
|
436 |
+
"grad_norm": 0.03572896867990494,
|
437 |
+
"learning_rate": 1.0264069264069264e-05,
|
438 |
+
"loss": 0.0079,
|
439 |
+
"step": 2750
|
440 |
+
},
|
441 |
+
{
|
442 |
+
"epoch": 10.9375,
|
443 |
+
"grad_norm": 0.033964116126298904,
|
444 |
+
"learning_rate": 1.0047619047619048e-05,
|
445 |
+
"loss": 0.0078,
|
446 |
+
"step": 2800
|
447 |
+
},
|
448 |
+
{
|
449 |
+
"epoch": 11.1328125,
|
450 |
+
"grad_norm": 0.03913121297955513,
|
451 |
+
"learning_rate": 9.831168831168832e-06,
|
452 |
+
"loss": 0.0073,
|
453 |
+
"step": 2850
|
454 |
+
},
|
455 |
+
{
|
456 |
+
"epoch": 11.328125,
|
457 |
+
"grad_norm": 0.03905245289206505,
|
458 |
+
"learning_rate": 9.614718614718616e-06,
|
459 |
+
"loss": 0.0067,
|
460 |
+
"step": 2900
|
461 |
+
},
|
462 |
+
{
|
463 |
+
"epoch": 11.5234375,
|
464 |
+
"grad_norm": 0.03269728645682335,
|
465 |
+
"learning_rate": 9.398268398268399e-06,
|
466 |
+
"loss": 0.0068,
|
467 |
+
"step": 2950
|
468 |
+
},
|
469 |
+
{
|
470 |
+
"epoch": 11.71875,
|
471 |
+
"grad_norm": 0.029141413047909737,
|
472 |
+
"learning_rate": 9.181818181818184e-06,
|
473 |
+
"loss": 0.0065,
|
474 |
+
"step": 3000
|
475 |
+
},
|
476 |
+
{
|
477 |
+
"epoch": 11.71875,
|
478 |
+
"eval_accuracy": 0.96484375,
|
479 |
+
"eval_loss": 0.1496964395046234,
|
480 |
+
"eval_runtime": 6.3249,
|
481 |
+
"eval_samples_per_second": 161.899,
|
482 |
+
"eval_steps_per_second": 20.237,
|
483 |
+
"step": 3000
|
484 |
+
},
|
485 |
+
{
|
486 |
+
"epoch": 11.9140625,
|
487 |
+
"grad_norm": 0.029785145074129105,
|
488 |
+
"learning_rate": 8.965367965367967e-06,
|
489 |
+
"loss": 0.0064,
|
490 |
+
"step": 3050
|
491 |
+
},
|
492 |
+
{
|
493 |
+
"epoch": 12.109375,
|
494 |
+
"grad_norm": 0.028293365612626076,
|
495 |
+
"learning_rate": 8.74891774891775e-06,
|
496 |
+
"loss": 0.0059,
|
497 |
+
"step": 3100
|
498 |
+
},
|
499 |
+
{
|
500 |
+
"epoch": 12.3046875,
|
501 |
+
"grad_norm": 0.026657408103346825,
|
502 |
+
"learning_rate": 8.532467532467533e-06,
|
503 |
+
"loss": 0.006,
|
504 |
+
"step": 3150
|
505 |
+
},
|
506 |
+
{
|
507 |
+
"epoch": 12.5,
|
508 |
+
"grad_norm": 0.028319496661424637,
|
509 |
+
"learning_rate": 8.316017316017316e-06,
|
510 |
+
"loss": 0.0057,
|
511 |
+
"step": 3200
|
512 |
+
},
|
513 |
+
{
|
514 |
+
"epoch": 12.6953125,
|
515 |
+
"grad_norm": 0.025114014744758606,
|
516 |
+
"learning_rate": 8.099567099567101e-06,
|
517 |
+
"loss": 0.0054,
|
518 |
+
"step": 3250
|
519 |
+
},
|
520 |
+
{
|
521 |
+
"epoch": 12.890625,
|
522 |
+
"grad_norm": 0.025485936552286148,
|
523 |
+
"learning_rate": 7.883116883116884e-06,
|
524 |
+
"loss": 0.0056,
|
525 |
+
"step": 3300
|
526 |
+
},
|
527 |
+
{
|
528 |
+
"epoch": 13.0859375,
|
529 |
+
"grad_norm": 0.032143257558345795,
|
530 |
+
"learning_rate": 7.666666666666667e-06,
|
531 |
+
"loss": 0.0054,
|
532 |
+
"step": 3350
|
533 |
+
},
|
534 |
+
{
|
535 |
+
"epoch": 13.28125,
|
536 |
+
"grad_norm": 0.02569337747991085,
|
537 |
+
"learning_rate": 7.450216450216451e-06,
|
538 |
+
"loss": 0.005,
|
539 |
+
"step": 3400
|
540 |
+
},
|
541 |
+
{
|
542 |
+
"epoch": 13.4765625,
|
543 |
+
"grad_norm": 0.023684445768594742,
|
544 |
+
"learning_rate": 7.233766233766234e-06,
|
545 |
+
"loss": 0.005,
|
546 |
+
"step": 3450
|
547 |
+
},
|
548 |
+
{
|
549 |
+
"epoch": 13.671875,
|
550 |
+
"grad_norm": 0.023895638063549995,
|
551 |
+
"learning_rate": 7.017316017316018e-06,
|
552 |
+
"loss": 0.0053,
|
553 |
+
"step": 3500
|
554 |
+
},
|
555 |
+
{
|
556 |
+
"epoch": 13.671875,
|
557 |
+
"eval_accuracy": 0.966796875,
|
558 |
+
"eval_loss": 0.1476988047361374,
|
559 |
+
"eval_runtime": 5.5659,
|
560 |
+
"eval_samples_per_second": 183.978,
|
561 |
+
"eval_steps_per_second": 22.997,
|
562 |
+
"step": 3500
|
563 |
+
},
|
564 |
+
{
|
565 |
+
"epoch": 13.8671875,
|
566 |
+
"grad_norm": 0.022996114566922188,
|
567 |
+
"learning_rate": 6.8008658008658015e-06,
|
568 |
+
"loss": 0.0048,
|
569 |
+
"step": 3550
|
570 |
+
},
|
571 |
+
{
|
572 |
+
"epoch": 14.0625,
|
573 |
+
"grad_norm": 0.022488022223114967,
|
574 |
+
"learning_rate": 6.5844155844155855e-06,
|
575 |
+
"loss": 0.0048,
|
576 |
+
"step": 3600
|
577 |
+
},
|
578 |
+
{
|
579 |
+
"epoch": 14.2578125,
|
580 |
+
"grad_norm": 0.038064874708652496,
|
581 |
+
"learning_rate": 6.367965367965369e-06,
|
582 |
+
"loss": 0.0045,
|
583 |
+
"step": 3650
|
584 |
+
},
|
585 |
+
{
|
586 |
+
"epoch": 14.453125,
|
587 |
+
"grad_norm": 0.02063606306910515,
|
588 |
+
"learning_rate": 6.151515151515152e-06,
|
589 |
+
"loss": 0.0045,
|
590 |
+
"step": 3700
|
591 |
+
},
|
592 |
+
{
|
593 |
+
"epoch": 14.6484375,
|
594 |
+
"grad_norm": 0.02058710902929306,
|
595 |
+
"learning_rate": 5.935064935064936e-06,
|
596 |
+
"loss": 0.0045,
|
597 |
+
"step": 3750
|
598 |
+
},
|
599 |
+
{
|
600 |
+
"epoch": 14.84375,
|
601 |
+
"grad_norm": 0.019946841523051262,
|
602 |
+
"learning_rate": 5.718614718614719e-06,
|
603 |
+
"loss": 0.0045,
|
604 |
+
"step": 3800
|
605 |
+
},
|
606 |
+
{
|
607 |
+
"epoch": 15.0390625,
|
608 |
+
"grad_norm": 0.02103234827518463,
|
609 |
+
"learning_rate": 5.502164502164503e-06,
|
610 |
+
"loss": 0.0042,
|
611 |
+
"step": 3850
|
612 |
+
},
|
613 |
+
{
|
614 |
+
"epoch": 15.234375,
|
615 |
+
"grad_norm": 0.019999125972390175,
|
616 |
+
"learning_rate": 5.285714285714286e-06,
|
617 |
+
"loss": 0.0042,
|
618 |
+
"step": 3900
|
619 |
+
},
|
620 |
+
{
|
621 |
+
"epoch": 15.4296875,
|
622 |
+
"grad_norm": 0.02068265713751316,
|
623 |
+
"learning_rate": 5.069264069264069e-06,
|
624 |
+
"loss": 0.0043,
|
625 |
+
"step": 3950
|
626 |
+
},
|
627 |
+
{
|
628 |
+
"epoch": 15.625,
|
629 |
+
"grad_norm": 0.019038330763578415,
|
630 |
+
"learning_rate": 4.852813852813853e-06,
|
631 |
+
"loss": 0.004,
|
632 |
+
"step": 4000
|
633 |
+
},
|
634 |
+
{
|
635 |
+
"epoch": 15.625,
|
636 |
+
"eval_accuracy": 0.962890625,
|
637 |
+
"eval_loss": 0.1585080474615097,
|
638 |
+
"eval_runtime": 5.7247,
|
639 |
+
"eval_samples_per_second": 178.875,
|
640 |
+
"eval_steps_per_second": 22.359,
|
641 |
+
"step": 4000
|
642 |
+
},
|
643 |
+
{
|
644 |
+
"epoch": 15.625,
|
645 |
+
"step": 4000,
|
646 |
+
"total_flos": 4.959576235966464e+18,
|
647 |
+
"train_loss": 0.1988602912425995,
|
648 |
+
"train_runtime": 917.7484,
|
649 |
+
"train_samples_per_second": 89.262,
|
650 |
+
"train_steps_per_second": 5.579
|
651 |
+
}
|
652 |
+
],
|
653 |
+
"logging_steps": 50,
|
654 |
+
"max_steps": 5120,
|
655 |
+
"num_input_tokens_seen": 0,
|
656 |
+
"num_train_epochs": 20,
|
657 |
+
"save_steps": 500,
|
658 |
+
"stateful_callbacks": {
|
659 |
+
"EarlyStoppingCallback": {
|
660 |
+
"args": {
|
661 |
+
"early_stopping_patience": 3,
|
662 |
+
"early_stopping_threshold": 0.0
|
663 |
+
},
|
664 |
+
"attributes": {
|
665 |
+
"early_stopping_patience_counter": 0
|
666 |
+
}
|
667 |
+
},
|
668 |
+
"TrainerControl": {
|
669 |
+
"args": {
|
670 |
+
"should_epoch_stop": false,
|
671 |
+
"should_evaluate": false,
|
672 |
+
"should_log": false,
|
673 |
+
"should_save": true,
|
674 |
+
"should_training_stop": true
|
675 |
+
},
|
676 |
+
"attributes": {}
|
677 |
+
}
|
678 |
+
},
|
679 |
+
"total_flos": 4.959576235966464e+18,
|
680 |
+
"train_batch_size": 16,
|
681 |
+
"trial_name": null,
|
682 |
+
"trial_params": null
|
683 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e10c5217ea0829a4bf3644873d534c20c3c2cf9754eee83535e949ef64a2d8f7
|
3 |
+
size 5112
|