abdulelahagr
commited on
Commit
•
f37dd19
1
Parent(s):
5804c40
initial commit
Browse files- README.md +83 -0
- all_results.json +13 -0
- config.json +36 -0
- eval_results.json +8 -0
- model.safetensors +3 -0
- preprocessor_config.json +36 -0
- runs/Apr26_22-27-12_281779fe3e77/events.out.tfevents.1714170432.281779fe3e77.1775.0 +3 -0
- runs/Apr26_22-27-12_281779fe3e77/events.out.tfevents.1714171146.281779fe3e77.1775.1 +3 -0
- train_results.json +8 -0
- trainer_state.json +597 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: google/vit-base-patch16-224-in21k
|
4 |
+
tags:
|
5 |
+
- image-classification
|
6 |
+
- generated_from_trainer
|
7 |
+
datasets:
|
8 |
+
- imagefolder
|
9 |
+
metrics:
|
10 |
+
- accuracy
|
11 |
+
model-index:
|
12 |
+
- name: vit-base-brain-xray
|
13 |
+
results:
|
14 |
+
- task:
|
15 |
+
name: Image Classification
|
16 |
+
type: image-classification
|
17 |
+
dataset:
|
18 |
+
name: trpakov/chest-xray-classification
|
19 |
+
type: imagefolder
|
20 |
+
config: default
|
21 |
+
split: Testing
|
22 |
+
args: default
|
23 |
+
metrics:
|
24 |
+
- name: Accuracy
|
25 |
+
type: accuracy
|
26 |
+
value: 0.748730964467005
|
27 |
+
---
|
28 |
+
|
29 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
30 |
+
should probably proofread and complete it, then remove this comment. -->
|
31 |
+
|
32 |
+
# vit-base-brain-xray
|
33 |
+
|
34 |
+
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the trpakov/chest-xray-classification dataset.
|
35 |
+
It achieves the following results on the evaluation set:
|
36 |
+
- Loss: 0.8358
|
37 |
+
- Accuracy: 0.7487
|
38 |
+
|
39 |
+
## Model description
|
40 |
+
|
41 |
+
More information needed
|
42 |
+
|
43 |
+
## Intended uses & limitations
|
44 |
+
|
45 |
+
More information needed
|
46 |
+
|
47 |
+
## Training and evaluation data
|
48 |
+
|
49 |
+
More information needed
|
50 |
+
|
51 |
+
## Training procedure
|
52 |
+
|
53 |
+
### Training hyperparameters
|
54 |
+
|
55 |
+
The following hyperparameters were used during training:
|
56 |
+
- learning_rate: 0.0002
|
57 |
+
- train_batch_size: 16
|
58 |
+
- eval_batch_size: 8
|
59 |
+
- seed: 42
|
60 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
61 |
+
- lr_scheduler_type: linear
|
62 |
+
- num_epochs: 4
|
63 |
+
- mixed_precision_training: Native AMP
|
64 |
+
|
65 |
+
### Training results
|
66 |
+
|
67 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
68 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|
|
69 |
+
| 0.2744 | 0.5556 | 100 | 0.8358 | 0.7487 |
|
70 |
+
| 0.1827 | 1.1111 | 200 | 1.0390 | 0.7538 |
|
71 |
+
| 0.1388 | 1.6667 | 300 | 1.1603 | 0.7563 |
|
72 |
+
| 0.0317 | 2.2222 | 400 | 1.2382 | 0.7538 |
|
73 |
+
| 0.0144 | 2.7778 | 500 | 1.2834 | 0.7513 |
|
74 |
+
| 0.0062 | 3.3333 | 600 | 1.3673 | 0.7563 |
|
75 |
+
| 0.0257 | 3.8889 | 700 | 1.2926 | 0.7665 |
|
76 |
+
|
77 |
+
|
78 |
+
### Framework versions
|
79 |
+
|
80 |
+
- Transformers 4.40.1
|
81 |
+
- Pytorch 2.2.1+cu121
|
82 |
+
- Datasets 2.19.0
|
83 |
+
- Tokenizers 0.19.1
|
all_results.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 4.0,
|
3 |
+
"eval_accuracy": 0.748730964467005,
|
4 |
+
"eval_loss": 0.835834801197052,
|
5 |
+
"eval_runtime": 6.8785,
|
6 |
+
"eval_samples_per_second": 57.28,
|
7 |
+
"eval_steps_per_second": 7.269,
|
8 |
+
"total_flos": 8.896239873264845e+17,
|
9 |
+
"train_loss": 0.14669639009775387,
|
10 |
+
"train_runtime": 706.4893,
|
11 |
+
"train_samples_per_second": 16.249,
|
12 |
+
"train_steps_per_second": 1.019
|
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": "glioma_tumor",
|
13 |
+
"1": "meningioma_tumor",
|
14 |
+
"2": "no_tumor",
|
15 |
+
"3": "pituitary_tumor"
|
16 |
+
},
|
17 |
+
"image_size": 224,
|
18 |
+
"initializer_range": 0.02,
|
19 |
+
"intermediate_size": 3072,
|
20 |
+
"label2id": {
|
21 |
+
"glioma_tumor": "0",
|
22 |
+
"meningioma_tumor": "1",
|
23 |
+
"no_tumor": "2",
|
24 |
+
"pituitary_tumor": "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.40.1"
|
36 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 4.0,
|
3 |
+
"eval_accuracy": 0.748730964467005,
|
4 |
+
"eval_loss": 0.835834801197052,
|
5 |
+
"eval_runtime": 6.8785,
|
6 |
+
"eval_samples_per_second": 57.28,
|
7 |
+
"eval_steps_per_second": 7.269
|
8 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:864dda7ffb7fb28c594efd1d1671a5b679121dc9f6e3bdee84cd3d6ab4f0b2e9
|
3 |
+
size 343230128
|
preprocessor_config.json
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_valid_processor_keys": [
|
3 |
+
"images",
|
4 |
+
"do_resize",
|
5 |
+
"size",
|
6 |
+
"resample",
|
7 |
+
"do_rescale",
|
8 |
+
"rescale_factor",
|
9 |
+
"do_normalize",
|
10 |
+
"image_mean",
|
11 |
+
"image_std",
|
12 |
+
"return_tensors",
|
13 |
+
"data_format",
|
14 |
+
"input_data_format"
|
15 |
+
],
|
16 |
+
"do_normalize": true,
|
17 |
+
"do_rescale": true,
|
18 |
+
"do_resize": true,
|
19 |
+
"image_mean": [
|
20 |
+
0.5,
|
21 |
+
0.5,
|
22 |
+
0.5
|
23 |
+
],
|
24 |
+
"image_processor_type": "ViTImageProcessor",
|
25 |
+
"image_std": [
|
26 |
+
0.5,
|
27 |
+
0.5,
|
28 |
+
0.5
|
29 |
+
],
|
30 |
+
"resample": 2,
|
31 |
+
"rescale_factor": 0.00392156862745098,
|
32 |
+
"size": {
|
33 |
+
"height": 224,
|
34 |
+
"width": 224
|
35 |
+
}
|
36 |
+
}
|
runs/Apr26_22-27-12_281779fe3e77/events.out.tfevents.1714170432.281779fe3e77.1775.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:057c9366dd4a69ff011d7c437536cf4dc472686e8f7499cddefac5f0b34033f7
|
3 |
+
size 22559
|
runs/Apr26_22-27-12_281779fe3e77/events.out.tfevents.1714171146.281779fe3e77.1775.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dbb72bb1e131951043ea31606efd06da4301ac45a664dd6a8f11ba272e194c77
|
3 |
+
size 411
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 4.0,
|
3 |
+
"total_flos": 8.896239873264845e+17,
|
4 |
+
"train_loss": 0.14669639009775387,
|
5 |
+
"train_runtime": 706.4893,
|
6 |
+
"train_samples_per_second": 16.249,
|
7 |
+
"train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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.835834801197052,
|
3 |
+
"best_model_checkpoint": "./vit-base-brain-xray/checkpoint-100",
|
4 |
+
"epoch": 4.0,
|
5 |
+
"eval_steps": 100,
|
6 |
+
"global_step": 720,
|
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.05555555555555555,
|
13 |
+
"grad_norm": 1.457318902015686,
|
14 |
+
"learning_rate": 0.00019722222222222225,
|
15 |
+
"loss": 1.2565,
|
16 |
+
"step": 10
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.1111111111111111,
|
20 |
+
"grad_norm": 3.82407546043396,
|
21 |
+
"learning_rate": 0.00019444444444444446,
|
22 |
+
"loss": 0.8929,
|
23 |
+
"step": 20
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.16666666666666666,
|
27 |
+
"grad_norm": 4.85036563873291,
|
28 |
+
"learning_rate": 0.00019194444444444445,
|
29 |
+
"loss": 0.6711,
|
30 |
+
"step": 30
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.2222222222222222,
|
34 |
+
"grad_norm": 3.555527448654175,
|
35 |
+
"learning_rate": 0.00018916666666666667,
|
36 |
+
"loss": 0.6418,
|
37 |
+
"step": 40
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.2777777777777778,
|
41 |
+
"grad_norm": 1.600785493850708,
|
42 |
+
"learning_rate": 0.0001863888888888889,
|
43 |
+
"loss": 0.394,
|
44 |
+
"step": 50
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 0.3333333333333333,
|
48 |
+
"grad_norm": 2.9066975116729736,
|
49 |
+
"learning_rate": 0.00018361111111111112,
|
50 |
+
"loss": 0.3582,
|
51 |
+
"step": 60
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.3888888888888889,
|
55 |
+
"grad_norm": 14.741374015808105,
|
56 |
+
"learning_rate": 0.00018083333333333336,
|
57 |
+
"loss": 0.2914,
|
58 |
+
"step": 70
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 0.4444444444444444,
|
62 |
+
"grad_norm": 0.9466112852096558,
|
63 |
+
"learning_rate": 0.00017805555555555554,
|
64 |
+
"loss": 0.3652,
|
65 |
+
"step": 80
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 0.5,
|
69 |
+
"grad_norm": 4.149740219116211,
|
70 |
+
"learning_rate": 0.00017527777777777778,
|
71 |
+
"loss": 0.304,
|
72 |
+
"step": 90
|
73 |
+
},
|
74 |
+
{
|
75 |
+
"epoch": 0.5555555555555556,
|
76 |
+
"grad_norm": 5.231202602386475,
|
77 |
+
"learning_rate": 0.00017250000000000002,
|
78 |
+
"loss": 0.2744,
|
79 |
+
"step": 100
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"epoch": 0.5555555555555556,
|
83 |
+
"eval_accuracy": 0.748730964467005,
|
84 |
+
"eval_loss": 0.835834801197052,
|
85 |
+
"eval_runtime": 5.9808,
|
86 |
+
"eval_samples_per_second": 65.878,
|
87 |
+
"eval_steps_per_second": 8.36,
|
88 |
+
"step": 100
|
89 |
+
},
|
90 |
+
{
|
91 |
+
"epoch": 0.6111111111111112,
|
92 |
+
"grad_norm": 1.9157915115356445,
|
93 |
+
"learning_rate": 0.00016972222222222223,
|
94 |
+
"loss": 0.3693,
|
95 |
+
"step": 110
|
96 |
+
},
|
97 |
+
{
|
98 |
+
"epoch": 0.6666666666666666,
|
99 |
+
"grad_norm": 2.3532416820526123,
|
100 |
+
"learning_rate": 0.00016694444444444447,
|
101 |
+
"loss": 0.279,
|
102 |
+
"step": 120
|
103 |
+
},
|
104 |
+
{
|
105 |
+
"epoch": 0.7222222222222222,
|
106 |
+
"grad_norm": 1.710641622543335,
|
107 |
+
"learning_rate": 0.00016416666666666668,
|
108 |
+
"loss": 0.3063,
|
109 |
+
"step": 130
|
110 |
+
},
|
111 |
+
{
|
112 |
+
"epoch": 0.7777777777777778,
|
113 |
+
"grad_norm": 1.234641671180725,
|
114 |
+
"learning_rate": 0.0001613888888888889,
|
115 |
+
"loss": 0.2406,
|
116 |
+
"step": 140
|
117 |
+
},
|
118 |
+
{
|
119 |
+
"epoch": 0.8333333333333334,
|
120 |
+
"grad_norm": 4.92686128616333,
|
121 |
+
"learning_rate": 0.0001586111111111111,
|
122 |
+
"loss": 0.1533,
|
123 |
+
"step": 150
|
124 |
+
},
|
125 |
+
{
|
126 |
+
"epoch": 0.8888888888888888,
|
127 |
+
"grad_norm": 1.5904611349105835,
|
128 |
+
"learning_rate": 0.00015583333333333334,
|
129 |
+
"loss": 0.3904,
|
130 |
+
"step": 160
|
131 |
+
},
|
132 |
+
{
|
133 |
+
"epoch": 0.9444444444444444,
|
134 |
+
"grad_norm": 1.492967963218689,
|
135 |
+
"learning_rate": 0.00015305555555555556,
|
136 |
+
"loss": 0.2801,
|
137 |
+
"step": 170
|
138 |
+
},
|
139 |
+
{
|
140 |
+
"epoch": 1.0,
|
141 |
+
"grad_norm": 0.659793496131897,
|
142 |
+
"learning_rate": 0.0001502777777777778,
|
143 |
+
"loss": 0.1252,
|
144 |
+
"step": 180
|
145 |
+
},
|
146 |
+
{
|
147 |
+
"epoch": 1.0555555555555556,
|
148 |
+
"grad_norm": 0.14820006489753723,
|
149 |
+
"learning_rate": 0.0001475,
|
150 |
+
"loss": 0.1642,
|
151 |
+
"step": 190
|
152 |
+
},
|
153 |
+
{
|
154 |
+
"epoch": 1.1111111111111112,
|
155 |
+
"grad_norm": 0.7576877474784851,
|
156 |
+
"learning_rate": 0.00014472222222222222,
|
157 |
+
"loss": 0.1827,
|
158 |
+
"step": 200
|
159 |
+
},
|
160 |
+
{
|
161 |
+
"epoch": 1.1111111111111112,
|
162 |
+
"eval_accuracy": 0.7538071065989848,
|
163 |
+
"eval_loss": 1.0389611721038818,
|
164 |
+
"eval_runtime": 5.6831,
|
165 |
+
"eval_samples_per_second": 69.329,
|
166 |
+
"eval_steps_per_second": 8.798,
|
167 |
+
"step": 200
|
168 |
+
},
|
169 |
+
{
|
170 |
+
"epoch": 1.1666666666666667,
|
171 |
+
"grad_norm": 0.4443973898887634,
|
172 |
+
"learning_rate": 0.00014194444444444446,
|
173 |
+
"loss": 0.0592,
|
174 |
+
"step": 210
|
175 |
+
},
|
176 |
+
{
|
177 |
+
"epoch": 1.2222222222222223,
|
178 |
+
"grad_norm": 0.3489253520965576,
|
179 |
+
"learning_rate": 0.00013916666666666667,
|
180 |
+
"loss": 0.1018,
|
181 |
+
"step": 220
|
182 |
+
},
|
183 |
+
{
|
184 |
+
"epoch": 1.2777777777777777,
|
185 |
+
"grad_norm": 5.467538356781006,
|
186 |
+
"learning_rate": 0.0001363888888888889,
|
187 |
+
"loss": 0.2501,
|
188 |
+
"step": 230
|
189 |
+
},
|
190 |
+
{
|
191 |
+
"epoch": 1.3333333333333333,
|
192 |
+
"grad_norm": 6.154897212982178,
|
193 |
+
"learning_rate": 0.00013361111111111112,
|
194 |
+
"loss": 0.1069,
|
195 |
+
"step": 240
|
196 |
+
},
|
197 |
+
{
|
198 |
+
"epoch": 1.3888888888888888,
|
199 |
+
"grad_norm": 3.4137511253356934,
|
200 |
+
"learning_rate": 0.00013083333333333333,
|
201 |
+
"loss": 0.1197,
|
202 |
+
"step": 250
|
203 |
+
},
|
204 |
+
{
|
205 |
+
"epoch": 1.4444444444444444,
|
206 |
+
"grad_norm": 0.10232915729284286,
|
207 |
+
"learning_rate": 0.00012805555555555555,
|
208 |
+
"loss": 0.0775,
|
209 |
+
"step": 260
|
210 |
+
},
|
211 |
+
{
|
212 |
+
"epoch": 1.5,
|
213 |
+
"grad_norm": 7.005762100219727,
|
214 |
+
"learning_rate": 0.00012527777777777778,
|
215 |
+
"loss": 0.0696,
|
216 |
+
"step": 270
|
217 |
+
},
|
218 |
+
{
|
219 |
+
"epoch": 1.5555555555555556,
|
220 |
+
"grad_norm": 0.07964391261339188,
|
221 |
+
"learning_rate": 0.00012250000000000002,
|
222 |
+
"loss": 0.1653,
|
223 |
+
"step": 280
|
224 |
+
},
|
225 |
+
{
|
226 |
+
"epoch": 1.6111111111111112,
|
227 |
+
"grad_norm": 0.11174969375133514,
|
228 |
+
"learning_rate": 0.00011972222222222222,
|
229 |
+
"loss": 0.1197,
|
230 |
+
"step": 290
|
231 |
+
},
|
232 |
+
{
|
233 |
+
"epoch": 1.6666666666666665,
|
234 |
+
"grad_norm": 3.8659260272979736,
|
235 |
+
"learning_rate": 0.00011694444444444446,
|
236 |
+
"loss": 0.1388,
|
237 |
+
"step": 300
|
238 |
+
},
|
239 |
+
{
|
240 |
+
"epoch": 1.6666666666666665,
|
241 |
+
"eval_accuracy": 0.7563451776649747,
|
242 |
+
"eval_loss": 1.1603448390960693,
|
243 |
+
"eval_runtime": 6.2506,
|
244 |
+
"eval_samples_per_second": 63.034,
|
245 |
+
"eval_steps_per_second": 7.999,
|
246 |
+
"step": 300
|
247 |
+
},
|
248 |
+
{
|
249 |
+
"epoch": 1.7222222222222223,
|
250 |
+
"grad_norm": 7.424672603607178,
|
251 |
+
"learning_rate": 0.00011416666666666667,
|
252 |
+
"loss": 0.0839,
|
253 |
+
"step": 310
|
254 |
+
},
|
255 |
+
{
|
256 |
+
"epoch": 1.7777777777777777,
|
257 |
+
"grad_norm": 0.29123783111572266,
|
258 |
+
"learning_rate": 0.0001113888888888889,
|
259 |
+
"loss": 0.0723,
|
260 |
+
"step": 320
|
261 |
+
},
|
262 |
+
{
|
263 |
+
"epoch": 1.8333333333333335,
|
264 |
+
"grad_norm": 0.14032256603240967,
|
265 |
+
"learning_rate": 0.00010861111111111111,
|
266 |
+
"loss": 0.124,
|
267 |
+
"step": 330
|
268 |
+
},
|
269 |
+
{
|
270 |
+
"epoch": 1.8888888888888888,
|
271 |
+
"grad_norm": 4.837493419647217,
|
272 |
+
"learning_rate": 0.00010583333333333334,
|
273 |
+
"loss": 0.0309,
|
274 |
+
"step": 340
|
275 |
+
},
|
276 |
+
{
|
277 |
+
"epoch": 1.9444444444444444,
|
278 |
+
"grad_norm": 0.18860341608524323,
|
279 |
+
"learning_rate": 0.00010305555555555555,
|
280 |
+
"loss": 0.0869,
|
281 |
+
"step": 350
|
282 |
+
},
|
283 |
+
{
|
284 |
+
"epoch": 2.0,
|
285 |
+
"grad_norm": 1.197811245918274,
|
286 |
+
"learning_rate": 0.00010027777777777779,
|
287 |
+
"loss": 0.062,
|
288 |
+
"step": 360
|
289 |
+
},
|
290 |
+
{
|
291 |
+
"epoch": 2.0555555555555554,
|
292 |
+
"grad_norm": 0.10622766613960266,
|
293 |
+
"learning_rate": 9.75e-05,
|
294 |
+
"loss": 0.0838,
|
295 |
+
"step": 370
|
296 |
+
},
|
297 |
+
{
|
298 |
+
"epoch": 2.111111111111111,
|
299 |
+
"grad_norm": 1.5650070905685425,
|
300 |
+
"learning_rate": 9.472222222222222e-05,
|
301 |
+
"loss": 0.0176,
|
302 |
+
"step": 380
|
303 |
+
},
|
304 |
+
{
|
305 |
+
"epoch": 2.1666666666666665,
|
306 |
+
"grad_norm": 1.4861363172531128,
|
307 |
+
"learning_rate": 9.194444444444445e-05,
|
308 |
+
"loss": 0.0491,
|
309 |
+
"step": 390
|
310 |
+
},
|
311 |
+
{
|
312 |
+
"epoch": 2.2222222222222223,
|
313 |
+
"grad_norm": 0.04418288543820381,
|
314 |
+
"learning_rate": 8.916666666666667e-05,
|
315 |
+
"loss": 0.0317,
|
316 |
+
"step": 400
|
317 |
+
},
|
318 |
+
{
|
319 |
+
"epoch": 2.2222222222222223,
|
320 |
+
"eval_accuracy": 0.7538071065989848,
|
321 |
+
"eval_loss": 1.2381576299667358,
|
322 |
+
"eval_runtime": 5.5644,
|
323 |
+
"eval_samples_per_second": 70.808,
|
324 |
+
"eval_steps_per_second": 8.986,
|
325 |
+
"step": 400
|
326 |
+
},
|
327 |
+
{
|
328 |
+
"epoch": 2.2777777777777777,
|
329 |
+
"grad_norm": 2.111614942550659,
|
330 |
+
"learning_rate": 8.63888888888889e-05,
|
331 |
+
"loss": 0.0549,
|
332 |
+
"step": 410
|
333 |
+
},
|
334 |
+
{
|
335 |
+
"epoch": 2.3333333333333335,
|
336 |
+
"grad_norm": 0.1938694566488266,
|
337 |
+
"learning_rate": 8.361111111111111e-05,
|
338 |
+
"loss": 0.0283,
|
339 |
+
"step": 420
|
340 |
+
},
|
341 |
+
{
|
342 |
+
"epoch": 2.388888888888889,
|
343 |
+
"grad_norm": 0.03959764540195465,
|
344 |
+
"learning_rate": 8.083333333333334e-05,
|
345 |
+
"loss": 0.0154,
|
346 |
+
"step": 430
|
347 |
+
},
|
348 |
+
{
|
349 |
+
"epoch": 2.4444444444444446,
|
350 |
+
"grad_norm": 0.037873394787311554,
|
351 |
+
"learning_rate": 7.805555555555556e-05,
|
352 |
+
"loss": 0.0442,
|
353 |
+
"step": 440
|
354 |
+
},
|
355 |
+
{
|
356 |
+
"epoch": 2.5,
|
357 |
+
"grad_norm": 0.04417656734585762,
|
358 |
+
"learning_rate": 7.527777777777777e-05,
|
359 |
+
"loss": 0.0139,
|
360 |
+
"step": 450
|
361 |
+
},
|
362 |
+
{
|
363 |
+
"epoch": 2.5555555555555554,
|
364 |
+
"grad_norm": 0.49554577469825745,
|
365 |
+
"learning_rate": 7.25e-05,
|
366 |
+
"loss": 0.0465,
|
367 |
+
"step": 460
|
368 |
+
},
|
369 |
+
{
|
370 |
+
"epoch": 2.611111111111111,
|
371 |
+
"grad_norm": 0.03833824396133423,
|
372 |
+
"learning_rate": 6.972222222222223e-05,
|
373 |
+
"loss": 0.0225,
|
374 |
+
"step": 470
|
375 |
+
},
|
376 |
+
{
|
377 |
+
"epoch": 2.6666666666666665,
|
378 |
+
"grad_norm": 0.03554041311144829,
|
379 |
+
"learning_rate": 6.694444444444444e-05,
|
380 |
+
"loss": 0.0803,
|
381 |
+
"step": 480
|
382 |
+
},
|
383 |
+
{
|
384 |
+
"epoch": 2.7222222222222223,
|
385 |
+
"grad_norm": 0.04374659061431885,
|
386 |
+
"learning_rate": 6.416666666666668e-05,
|
387 |
+
"loss": 0.0225,
|
388 |
+
"step": 490
|
389 |
+
},
|
390 |
+
{
|
391 |
+
"epoch": 2.7777777777777777,
|
392 |
+
"grad_norm": 0.7893852591514587,
|
393 |
+
"learning_rate": 6.13888888888889e-05,
|
394 |
+
"loss": 0.0144,
|
395 |
+
"step": 500
|
396 |
+
},
|
397 |
+
{
|
398 |
+
"epoch": 2.7777777777777777,
|
399 |
+
"eval_accuracy": 0.751269035532995,
|
400 |
+
"eval_loss": 1.2833915948867798,
|
401 |
+
"eval_runtime": 5.7322,
|
402 |
+
"eval_samples_per_second": 68.734,
|
403 |
+
"eval_steps_per_second": 8.723,
|
404 |
+
"step": 500
|
405 |
+
},
|
406 |
+
{
|
407 |
+
"epoch": 2.8333333333333335,
|
408 |
+
"grad_norm": 0.06901850551366806,
|
409 |
+
"learning_rate": 5.8611111111111114e-05,
|
410 |
+
"loss": 0.0126,
|
411 |
+
"step": 510
|
412 |
+
},
|
413 |
+
{
|
414 |
+
"epoch": 2.888888888888889,
|
415 |
+
"grad_norm": 0.05946863815188408,
|
416 |
+
"learning_rate": 5.583333333333334e-05,
|
417 |
+
"loss": 0.0805,
|
418 |
+
"step": 520
|
419 |
+
},
|
420 |
+
{
|
421 |
+
"epoch": 2.9444444444444446,
|
422 |
+
"grad_norm": 6.05244779586792,
|
423 |
+
"learning_rate": 5.305555555555556e-05,
|
424 |
+
"loss": 0.053,
|
425 |
+
"step": 530
|
426 |
+
},
|
427 |
+
{
|
428 |
+
"epoch": 3.0,
|
429 |
+
"grad_norm": 0.046690914779901505,
|
430 |
+
"learning_rate": 5.027777777777778e-05,
|
431 |
+
"loss": 0.0187,
|
432 |
+
"step": 540
|
433 |
+
},
|
434 |
+
{
|
435 |
+
"epoch": 3.0555555555555554,
|
436 |
+
"grad_norm": 0.031222863122820854,
|
437 |
+
"learning_rate": 4.75e-05,
|
438 |
+
"loss": 0.0284,
|
439 |
+
"step": 550
|
440 |
+
},
|
441 |
+
{
|
442 |
+
"epoch": 3.111111111111111,
|
443 |
+
"grad_norm": 0.029882928356528282,
|
444 |
+
"learning_rate": 4.472222222222223e-05,
|
445 |
+
"loss": 0.0157,
|
446 |
+
"step": 560
|
447 |
+
},
|
448 |
+
{
|
449 |
+
"epoch": 3.1666666666666665,
|
450 |
+
"grad_norm": 0.02948245406150818,
|
451 |
+
"learning_rate": 4.194444444444445e-05,
|
452 |
+
"loss": 0.0069,
|
453 |
+
"step": 570
|
454 |
+
},
|
455 |
+
{
|
456 |
+
"epoch": 3.2222222222222223,
|
457 |
+
"grad_norm": 0.02853226847946644,
|
458 |
+
"learning_rate": 3.9166666666666665e-05,
|
459 |
+
"loss": 0.0257,
|
460 |
+
"step": 580
|
461 |
+
},
|
462 |
+
{
|
463 |
+
"epoch": 3.2777777777777777,
|
464 |
+
"grad_norm": 0.029870187863707542,
|
465 |
+
"learning_rate": 3.638888888888889e-05,
|
466 |
+
"loss": 0.0093,
|
467 |
+
"step": 590
|
468 |
+
},
|
469 |
+
{
|
470 |
+
"epoch": 3.3333333333333335,
|
471 |
+
"grad_norm": 0.028170829638838768,
|
472 |
+
"learning_rate": 3.3611111111111116e-05,
|
473 |
+
"loss": 0.0062,
|
474 |
+
"step": 600
|
475 |
+
},
|
476 |
+
{
|
477 |
+
"epoch": 3.3333333333333335,
|
478 |
+
"eval_accuracy": 0.7563451776649747,
|
479 |
+
"eval_loss": 1.3673018217086792,
|
480 |
+
"eval_runtime": 5.8683,
|
481 |
+
"eval_samples_per_second": 67.14,
|
482 |
+
"eval_steps_per_second": 8.52,
|
483 |
+
"step": 600
|
484 |
+
},
|
485 |
+
{
|
486 |
+
"epoch": 3.388888888888889,
|
487 |
+
"grad_norm": 0.03230549395084381,
|
488 |
+
"learning_rate": 3.0833333333333335e-05,
|
489 |
+
"loss": 0.0065,
|
490 |
+
"step": 610
|
491 |
+
},
|
492 |
+
{
|
493 |
+
"epoch": 3.4444444444444446,
|
494 |
+
"grad_norm": 0.027024297043681145,
|
495 |
+
"learning_rate": 2.8055555555555557e-05,
|
496 |
+
"loss": 0.0356,
|
497 |
+
"step": 620
|
498 |
+
},
|
499 |
+
{
|
500 |
+
"epoch": 3.5,
|
501 |
+
"grad_norm": 0.028481144458055496,
|
502 |
+
"learning_rate": 2.527777777777778e-05,
|
503 |
+
"loss": 0.0064,
|
504 |
+
"step": 630
|
505 |
+
},
|
506 |
+
{
|
507 |
+
"epoch": 3.5555555555555554,
|
508 |
+
"grad_norm": 0.0285650547593832,
|
509 |
+
"learning_rate": 2.25e-05,
|
510 |
+
"loss": 0.0197,
|
511 |
+
"step": 640
|
512 |
+
},
|
513 |
+
{
|
514 |
+
"epoch": 3.611111111111111,
|
515 |
+
"grad_norm": 0.026111846789717674,
|
516 |
+
"learning_rate": 1.9722222222222224e-05,
|
517 |
+
"loss": 0.0061,
|
518 |
+
"step": 650
|
519 |
+
},
|
520 |
+
{
|
521 |
+
"epoch": 3.6666666666666665,
|
522 |
+
"grad_norm": 0.0275073554366827,
|
523 |
+
"learning_rate": 1.6944444444444446e-05,
|
524 |
+
"loss": 0.006,
|
525 |
+
"step": 660
|
526 |
+
},
|
527 |
+
{
|
528 |
+
"epoch": 3.7222222222222223,
|
529 |
+
"grad_norm": 0.025213921442627907,
|
530 |
+
"learning_rate": 1.4166666666666668e-05,
|
531 |
+
"loss": 0.006,
|
532 |
+
"step": 670
|
533 |
+
},
|
534 |
+
{
|
535 |
+
"epoch": 3.7777777777777777,
|
536 |
+
"grad_norm": 0.9618052840232849,
|
537 |
+
"learning_rate": 1.138888888888889e-05,
|
538 |
+
"loss": 0.0065,
|
539 |
+
"step": 680
|
540 |
+
},
|
541 |
+
{
|
542 |
+
"epoch": 3.8333333333333335,
|
543 |
+
"grad_norm": 0.035071808844804764,
|
544 |
+
"learning_rate": 8.611111111111112e-06,
|
545 |
+
"loss": 0.0359,
|
546 |
+
"step": 690
|
547 |
+
},
|
548 |
+
{
|
549 |
+
"epoch": 3.888888888888889,
|
550 |
+
"grad_norm": 0.032459042966365814,
|
551 |
+
"learning_rate": 5.833333333333334e-06,
|
552 |
+
"loss": 0.0257,
|
553 |
+
"step": 700
|
554 |
+
},
|
555 |
+
{
|
556 |
+
"epoch": 3.888888888888889,
|
557 |
+
"eval_accuracy": 0.766497461928934,
|
558 |
+
"eval_loss": 1.2925866842269897,
|
559 |
+
"eval_runtime": 5.7304,
|
560 |
+
"eval_samples_per_second": 68.756,
|
561 |
+
"eval_steps_per_second": 8.725,
|
562 |
+
"step": 700
|
563 |
+
},
|
564 |
+
{
|
565 |
+
"epoch": 3.9444444444444446,
|
566 |
+
"grad_norm": 0.025457823649048805,
|
567 |
+
"learning_rate": 3.0555555555555556e-06,
|
568 |
+
"loss": 0.0058,
|
569 |
+
"step": 710
|
570 |
+
},
|
571 |
+
{
|
572 |
+
"epoch": 4.0,
|
573 |
+
"grad_norm": 0.03804958611726761,
|
574 |
+
"learning_rate": 2.777777777777778e-07,
|
575 |
+
"loss": 0.0108,
|
576 |
+
"step": 720
|
577 |
+
},
|
578 |
+
{
|
579 |
+
"epoch": 4.0,
|
580 |
+
"step": 720,
|
581 |
+
"total_flos": 8.896239873264845e+17,
|
582 |
+
"train_loss": 0.14669639009775387,
|
583 |
+
"train_runtime": 706.4893,
|
584 |
+
"train_samples_per_second": 16.249,
|
585 |
+
"train_steps_per_second": 1.019
|
586 |
+
}
|
587 |
+
],
|
588 |
+
"logging_steps": 10,
|
589 |
+
"max_steps": 720,
|
590 |
+
"num_input_tokens_seen": 0,
|
591 |
+
"num_train_epochs": 4,
|
592 |
+
"save_steps": 100,
|
593 |
+
"total_flos": 8.896239873264845e+17,
|
594 |
+
"train_batch_size": 16,
|
595 |
+
"trial_name": null,
|
596 |
+
"trial_params": null
|
597 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0e85701c3785f8f1bd6b77fa9240d0634e81af7e955718efcc7ad98aaae9d642
|
3 |
+
size 4984
|