Configuration Parsing
Warning:
In adapter_config.json: "peft.task_type" must be a string
vit-base-patch16-224-in21k-bloodmnist-fold-6
This model is a fine-tuned version of google/vit-base-patch16-224-in21k on the medmnist-v2 dataset. It achieves the following results on the evaluation set:
- Loss: 0.1025
- Accuracy: 0.9701
- Precision: 0.9666
- Recall: 0.9632
- F1: 0.9647
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.005
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- gradient_accumulation_steps: 4
- total_train_batch_size: 64
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 10
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|---|---|---|
| 0.4339 | 1.0 | 196 | 0.3335 | 0.8929 | 0.8902 | 0.8698 | 0.8492 |
| 0.3825 | 2.0 | 392 | 0.1875 | 0.9298 | 0.9284 | 0.9183 | 0.9207 |
| 0.3756 | 3.0 | 588 | 0.1742 | 0.9438 | 0.9388 | 0.9315 | 0.9345 |
| 0.2306 | 4.0 | 784 | 0.1740 | 0.9385 | 0.9313 | 0.9279 | 0.9286 |
| 0.2493 | 5.0 | 980 | 0.1533 | 0.9464 | 0.9457 | 0.9301 | 0.9359 |
| 0.2352 | 6.0 | 1176 | 0.1382 | 0.9535 | 0.9438 | 0.9509 | 0.9470 |
| 0.2267 | 7.0 | 1372 | 0.1226 | 0.9587 | 0.9492 | 0.9538 | 0.9513 |
| 0.1767 | 8.0 | 1568 | 0.1215 | 0.9614 | 0.9545 | 0.9557 | 0.9550 |
| 0.1248 | 9.0 | 1764 | 0.1157 | 0.9658 | 0.9613 | 0.9585 | 0.9597 |
| 0.1281 | 10.0 | 1960 | 0.1025 | 0.9701 | 0.9666 | 0.9632 | 0.9647 |
Framework versions
- PEFT 0.15.2
- Transformers 4.52.4
- Pytorch 2.6.0+cu124
- Datasets 3.6.0
- Tokenizers 0.21.2
- Downloads last month
- -
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
๐
Ask for provider support
Model tree for selmamalak/vit-base-patch16-224-in21k-bloodmnist-fold-6
Base model
google/vit-base-patch16-224-in21k