Augusto777
commited on
Commit
•
a75bf8e
1
Parent(s):
9a132cc
Training in progress, epoch 0
Browse files- README.md +64 -0
- all_results.json +8 -0
- config.json +50 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
- runs/Jan28_16-55-46_4890d88f69da/events.out.tfevents.1706460975.4890d88f69da.226.0 +3 -0
- runs/Jan28_17-01-40_4890d88f69da/events.out.tfevents.1706461319.4890d88f69da.2289.0 +3 -0
- train_results.json +8 -0
- trainer_state.json +67 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: MBZUAI/swiftformer-xs
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
metrics:
|
6 |
+
- accuracy
|
7 |
+
model-index:
|
8 |
+
- name: swiftformer-xs-dmae-va-U-SF
|
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 |
+
# swiftformer-xs-dmae-va-U-SF
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [MBZUAI/swiftformer-xs](https://huggingface.co/MBZUAI/swiftformer-xs) on an unknown dataset.
|
18 |
+
It achieves the following results on the evaluation set:
|
19 |
+
- Loss: 1.3463
|
20 |
+
- Accuracy: 0.3486
|
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: 32
|
41 |
+
- eval_batch_size: 32
|
42 |
+
- seed: 42
|
43 |
+
- gradient_accumulation_steps: 4
|
44 |
+
- total_train_batch_size: 128
|
45 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
46 |
+
- lr_scheduler_type: linear
|
47 |
+
- lr_scheduler_warmup_ratio: 0.1
|
48 |
+
- num_epochs: 3
|
49 |
+
|
50 |
+
### Training results
|
51 |
+
|
52 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
53 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
54 |
+
| No log | 0.9 | 7 | 1.4376 | 0.2477 |
|
55 |
+
| 1.4126 | 1.94 | 15 | 1.3582 | 0.3211 |
|
56 |
+
| 1.359 | 2.71 | 21 | 1.3463 | 0.3486 |
|
57 |
+
|
58 |
+
|
59 |
+
### Framework versions
|
60 |
+
|
61 |
+
- Transformers 4.35.2
|
62 |
+
- Pytorch 2.1.0+cu121
|
63 |
+
- Datasets 2.16.1
|
64 |
+
- Tokenizers 0.15.1
|
all_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 2.71,
|
3 |
+
"total_flos": 7291673091440640.0,
|
4 |
+
"train_loss": 1.383760514713469,
|
5 |
+
"train_runtime": 25.3309,
|
6 |
+
"train_samples_per_second": 115.827,
|
7 |
+
"train_steps_per_second": 0.829
|
8 |
+
}
|
config.json
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "MBZUAI/swiftformer-xs",
|
3 |
+
"architectures": [
|
4 |
+
"SwiftFormerForImageClassification"
|
5 |
+
],
|
6 |
+
"batch_norm_eps": 1e-05,
|
7 |
+
"depths": [
|
8 |
+
3,
|
9 |
+
3,
|
10 |
+
6,
|
11 |
+
4
|
12 |
+
],
|
13 |
+
"down_pad": 1,
|
14 |
+
"down_patch_size": 3,
|
15 |
+
"down_stride": 2,
|
16 |
+
"downsamples": [
|
17 |
+
true,
|
18 |
+
true,
|
19 |
+
true,
|
20 |
+
true
|
21 |
+
],
|
22 |
+
"drop_path_rate": 0.0,
|
23 |
+
"embed_dims": [
|
24 |
+
48,
|
25 |
+
56,
|
26 |
+
112,
|
27 |
+
220
|
28 |
+
],
|
29 |
+
"hidden_act": "gelu",
|
30 |
+
"id2label": {
|
31 |
+
"0": "avanzada",
|
32 |
+
"1": "leve",
|
33 |
+
"2": "moderada",
|
34 |
+
"3": "no dmae"
|
35 |
+
},
|
36 |
+
"label2id": {
|
37 |
+
"avanzada": 0,
|
38 |
+
"leve": 1,
|
39 |
+
"moderada": 2,
|
40 |
+
"no dmae": 3
|
41 |
+
},
|
42 |
+
"layer_scale_init_value": 1e-05,
|
43 |
+
"mlp_ratio": 4,
|
44 |
+
"model_type": "swiftformer",
|
45 |
+
"num_channels": 3,
|
46 |
+
"problem_type": "single_label_classification",
|
47 |
+
"torch_dtype": "float32",
|
48 |
+
"transformers_version": "4.35.2",
|
49 |
+
"use_layer_scale": true
|
50 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c3fc19e5fc303179709ddd7d9ca36c88e396786ebdd24a788f35298d1dd84ee5
|
3 |
+
size 12203648
|
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.485,
|
7 |
+
0.456,
|
8 |
+
0.406
|
9 |
+
],
|
10 |
+
"image_processor_type": "ViTImageProcessor",
|
11 |
+
"image_std": [
|
12 |
+
0.229,
|
13 |
+
0.224,
|
14 |
+
0.225
|
15 |
+
],
|
16 |
+
"resample": 2,
|
17 |
+
"rescale_factor": 0.00392156862745098,
|
18 |
+
"size": {
|
19 |
+
"height": 224,
|
20 |
+
"width": 224
|
21 |
+
}
|
22 |
+
}
|
runs/Jan28_16-55-46_4890d88f69da/events.out.tfevents.1706460975.4890d88f69da.226.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e48d584069fce30bea4a3b14d090cc2e3a87f5763b71744e25e734b69d4075a6
|
3 |
+
size 6025
|
runs/Jan28_17-01-40_4890d88f69da/events.out.tfevents.1706461319.4890d88f69da.2289.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c184e59e5526f39e37a7c16a3a5508f182685a578b0cb318cf76a56d146fc317
|
3 |
+
size 4736
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 2.71,
|
3 |
+
"total_flos": 7291673091440640.0,
|
4 |
+
"train_loss": 1.383760514713469,
|
5 |
+
"train_runtime": 25.3309,
|
6 |
+
"train_samples_per_second": 115.827,
|
7 |
+
"train_steps_per_second": 0.829
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.3486238532110092,
|
3 |
+
"best_model_checkpoint": "swiftformer-xs-dmae-va-U-SF/checkpoint-21",
|
4 |
+
"epoch": 2.709677419354839,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 21,
|
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.9,
|
13 |
+
"eval_accuracy": 0.24770642201834864,
|
14 |
+
"eval_loss": 1.4376270771026611,
|
15 |
+
"eval_runtime": 0.5029,
|
16 |
+
"eval_samples_per_second": 216.756,
|
17 |
+
"eval_steps_per_second": 7.954,
|
18 |
+
"step": 7
|
19 |
+
},
|
20 |
+
{
|
21 |
+
"epoch": 1.29,
|
22 |
+
"learning_rate": 3.055555555555556e-05,
|
23 |
+
"loss": 1.4126,
|
24 |
+
"step": 10
|
25 |
+
},
|
26 |
+
{
|
27 |
+
"epoch": 1.94,
|
28 |
+
"eval_accuracy": 0.3211009174311927,
|
29 |
+
"eval_loss": 1.3581504821777344,
|
30 |
+
"eval_runtime": 0.4287,
|
31 |
+
"eval_samples_per_second": 254.235,
|
32 |
+
"eval_steps_per_second": 9.33,
|
33 |
+
"step": 15
|
34 |
+
},
|
35 |
+
{
|
36 |
+
"epoch": 2.58,
|
37 |
+
"learning_rate": 2.777777777777778e-06,
|
38 |
+
"loss": 1.359,
|
39 |
+
"step": 20
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 2.71,
|
43 |
+
"eval_accuracy": 0.3486238532110092,
|
44 |
+
"eval_loss": 1.3463064432144165,
|
45 |
+
"eval_runtime": 0.4247,
|
46 |
+
"eval_samples_per_second": 256.633,
|
47 |
+
"eval_steps_per_second": 9.418,
|
48 |
+
"step": 21
|
49 |
+
},
|
50 |
+
{
|
51 |
+
"epoch": 2.71,
|
52 |
+
"step": 21,
|
53 |
+
"total_flos": 7291673091440640.0,
|
54 |
+
"train_loss": 1.383760514713469,
|
55 |
+
"train_runtime": 25.3309,
|
56 |
+
"train_samples_per_second": 115.827,
|
57 |
+
"train_steps_per_second": 0.829
|
58 |
+
}
|
59 |
+
],
|
60 |
+
"logging_steps": 10,
|
61 |
+
"max_steps": 21,
|
62 |
+
"num_train_epochs": 3,
|
63 |
+
"save_steps": 500,
|
64 |
+
"total_flos": 7291673091440640.0,
|
65 |
+
"trial_name": null,
|
66 |
+
"trial_params": null
|
67 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:63d4f1e9018d58313ce26e8b1f1e66fa850f71f6f03cf86d06dd15cf73c1c1e1
|
3 |
+
size 4600
|