vit-base-patch16-224-in21k-loKr
Browse files- README.md +66 -0
- adapter_config.json +30 -0
- adapter_model.safetensors +3 -0
- preprocessor_config.json +22 -0
- runs/Sep06_10-16-52_cajal/events.out.tfevents.1725643015.cajal.58195.2 +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: google/vit-base-patch16-224-in21k
|
3 |
+
library_name: peft
|
4 |
+
license: apache-2.0
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
model-index:
|
8 |
+
- name: vit-base-patch16-224-in21k-loKr
|
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 |
+
# vit-base-patch16-224-in21k-loKr
|
16 |
+
|
17 |
+
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.
|
18 |
+
It achieves the following results on the evaluation set:
|
19 |
+
- Loss: 0.4074
|
20 |
+
|
21 |
+
## Model description
|
22 |
+
|
23 |
+
More information needed
|
24 |
+
|
25 |
+
## Intended uses & limitations
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Training and evaluation data
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training procedure
|
34 |
+
|
35 |
+
### Training hyperparameters
|
36 |
+
|
37 |
+
The following hyperparameters were used during training:
|
38 |
+
- learning_rate: 0.005
|
39 |
+
- train_batch_size: 256
|
40 |
+
- eval_batch_size: 256
|
41 |
+
- seed: 42
|
42 |
+
- gradient_accumulation_steps: 4
|
43 |
+
- total_train_batch_size: 1024
|
44 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
+
- lr_scheduler_type: linear
|
46 |
+
- num_epochs: 5
|
47 |
+
- mixed_precision_training: Native AMP
|
48 |
+
|
49 |
+
### Training results
|
50 |
+
|
51 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
52 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
53 |
+
| 0.9067 | 1.0 | 74 | 0.5193 |
|
54 |
+
| 0.7834 | 2.0 | 148 | 0.4507 |
|
55 |
+
| 0.7398 | 3.0 | 222 | 0.4234 |
|
56 |
+
| 0.7037 | 4.0 | 296 | 0.4119 |
|
57 |
+
| 0.6904 | 5.0 | 370 | 0.4074 |
|
58 |
+
|
59 |
+
|
60 |
+
### Framework versions
|
61 |
+
|
62 |
+
- PEFT 0.11.1
|
63 |
+
- Transformers 4.43.4
|
64 |
+
- Pytorch 2.2.1+cu118
|
65 |
+
- Datasets 2.21.0
|
66 |
+
- Tokenizers 0.19.1
|
adapter_config.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha": 16,
|
3 |
+
"alpha_pattern": {},
|
4 |
+
"auto_mapping": {
|
5 |
+
"base_model_class": "ViTForImageClassification",
|
6 |
+
"parent_library": "transformers.models.vit.modeling_vit"
|
7 |
+
},
|
8 |
+
"base_model_name_or_path": "google/vit-base-patch16-224-in21k",
|
9 |
+
"decompose_both": false,
|
10 |
+
"decompose_factor": -1,
|
11 |
+
"inference_mode": true,
|
12 |
+
"init_weights": true,
|
13 |
+
"layers_pattern": null,
|
14 |
+
"layers_to_transform": null,
|
15 |
+
"module_dropout": 0.1,
|
16 |
+
"modules_to_save": [
|
17 |
+
"classifier"
|
18 |
+
],
|
19 |
+
"peft_type": "LOKR",
|
20 |
+
"r": 16,
|
21 |
+
"rank_dropout": 0.0,
|
22 |
+
"rank_pattern": {},
|
23 |
+
"revision": null,
|
24 |
+
"target_modules": [
|
25 |
+
"query",
|
26 |
+
"value"
|
27 |
+
],
|
28 |
+
"task_type": null,
|
29 |
+
"use_effective_conv2d": false
|
30 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e511819ca822a0623f22bc352f5526833900cd50bdb8ba23cd08f5d74c14b02d
|
3 |
+
size 471044
|
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 |
+
}
|
runs/Sep06_10-16-52_cajal/events.out.tfevents.1725643015.cajal.58195.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2a517dfda7c7f8961c54924ac0016c0d795bed6a5beea8fd5493124dea9d64ca
|
3 |
+
size 19127
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0b4f89dba900288fc4f276c5444eb111b28ff3eac4c5844dec7ece080f40be7c
|
3 |
+
size 5240
|