Configuration Parsing
Warning:
In adapter_config.json: "peft.task_type" must be a string
vit-base-patch16-224-in21k-bloodmnist-fold-5
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.0899
- Accuracy: 0.9693
- Precision: 0.9707
- Recall: 0.9670
- F1: 0.9688
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.4114 | 1.0 | 196 | 0.3194 | 0.8911 | 0.9071 | 0.8538 | 0.8621 |
| 0.3251 | 2.0 | 392 | 0.2159 | 0.9201 | 0.9146 | 0.9098 | 0.9083 |
| 0.2808 | 3.0 | 588 | 0.1868 | 0.9333 | 0.9395 | 0.9187 | 0.9255 |
| 0.3351 | 4.0 | 784 | 0.1800 | 0.9350 | 0.9331 | 0.9208 | 0.9217 |
| 0.2665 | 5.0 | 980 | 0.1205 | 0.9605 | 0.9632 | 0.9553 | 0.9583 |
| 0.2451 | 6.0 | 1176 | 0.1619 | 0.9438 | 0.9382 | 0.9373 | 0.9357 |
| 0.1703 | 7.0 | 1372 | 0.1571 | 0.9412 | 0.9505 | 0.9320 | 0.9393 |
| 0.2001 | 8.0 | 1568 | 0.0993 | 0.9587 | 0.9606 | 0.9510 | 0.9554 |
| 0.1642 | 9.0 | 1764 | 0.1038 | 0.9622 | 0.9574 | 0.9607 | 0.9585 |
| 0.161 | 10.0 | 1960 | 0.0899 | 0.9693 | 0.9707 | 0.9670 | 0.9688 |
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-5
Base model
google/vit-base-patch16-224-in21k