Configuration Parsing
Warning:
In adapter_config.json: "peft.task_type" must be a string
vit-base-patch16-224-in21k-bloodmnist-fold-7
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.0740
- Accuracy: 0.9745
- Precision: 0.9763
- Recall: 0.9719
- F1: 0.9737
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.4364 | 1.0 | 196 | 0.2889 | 0.8929 | 0.8741 | 0.8973 | 0.8745 |
| 0.3524 | 2.0 | 392 | 0.1591 | 0.9429 | 0.9289 | 0.9331 | 0.9295 |
| 0.344 | 3.0 | 588 | 0.2225 | 0.9289 | 0.9246 | 0.9273 | 0.9238 |
| 0.3739 | 4.0 | 784 | 0.2472 | 0.9052 | 0.8874 | 0.9030 | 0.8871 |
| 0.2952 | 5.0 | 980 | 0.1262 | 0.9622 | 0.9561 | 0.9532 | 0.9535 |
| 0.2769 | 6.0 | 1176 | 0.1200 | 0.9631 | 0.9591 | 0.9538 | 0.9558 |
| 0.2881 | 7.0 | 1372 | 0.1396 | 0.9491 | 0.9419 | 0.9471 | 0.9439 |
| 0.1453 | 8.0 | 1568 | 0.0880 | 0.9622 | 0.9577 | 0.9564 | 0.9564 |
| 0.1621 | 9.0 | 1764 | 0.0740 | 0.9745 | 0.9763 | 0.9719 | 0.9737 |
| 0.1171 | 10.0 | 1960 | 0.0675 | 0.9728 | 0.9730 | 0.9707 | 0.9716 |
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-7
Base model
google/vit-base-patch16-224-in21k