Instructions to use selmamalak/derma-beit-base-finetuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use selmamalak/derma-beit-base-finetuned with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Model save
Browse files- README.md +82 -0
- adapter_model.safetensors +1 -1
README.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
library_name: peft
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
datasets:
|
| 7 |
+
- medmnist-v2
|
| 8 |
+
metrics:
|
| 9 |
+
- accuracy
|
| 10 |
+
- precision
|
| 11 |
+
- recall
|
| 12 |
+
- f1
|
| 13 |
+
base_model: microsoft/beit-base-patch16-224-pt22k-ft22k
|
| 14 |
+
model-index:
|
| 15 |
+
- name: derma-beit-base-finetuned
|
| 16 |
+
results: []
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 20 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 21 |
+
|
| 22 |
+
# derma-beit-base-finetuned
|
| 23 |
+
|
| 24 |
+
This model is a fine-tuned version of [microsoft/beit-base-patch16-224-pt22k-ft22k](https://huggingface.co/microsoft/beit-base-patch16-224-pt22k-ft22k) on the medmnist-v2 dataset.
|
| 25 |
+
It achieves the following results on the evaluation set:
|
| 26 |
+
- Loss: 0.6096
|
| 27 |
+
- Accuracy: 0.7727
|
| 28 |
+
- Precision: 0.6427
|
| 29 |
+
- Recall: 0.5346
|
| 30 |
+
- F1: 0.5283
|
| 31 |
+
|
| 32 |
+
## Model description
|
| 33 |
+
|
| 34 |
+
More information needed
|
| 35 |
+
|
| 36 |
+
## Intended uses & limitations
|
| 37 |
+
|
| 38 |
+
More information needed
|
| 39 |
+
|
| 40 |
+
## Training and evaluation data
|
| 41 |
+
|
| 42 |
+
More information needed
|
| 43 |
+
|
| 44 |
+
## Training procedure
|
| 45 |
+
|
| 46 |
+
### Training hyperparameters
|
| 47 |
+
|
| 48 |
+
The following hyperparameters were used during training:
|
| 49 |
+
- learning_rate: 0.005
|
| 50 |
+
- train_batch_size: 16
|
| 51 |
+
- eval_batch_size: 16
|
| 52 |
+
- seed: 42
|
| 53 |
+
- gradient_accumulation_steps: 4
|
| 54 |
+
- total_train_batch_size: 64
|
| 55 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 56 |
+
- lr_scheduler_type: linear
|
| 57 |
+
- num_epochs: 10
|
| 58 |
+
- mixed_precision_training: Native AMP
|
| 59 |
+
|
| 60 |
+
### Training results
|
| 61 |
+
|
| 62 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|
| 63 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
|
| 64 |
+
| 0.9135 | 1.0 | 109 | 0.7698 | 0.7198 | 0.5179 | 0.3103 | 0.3050 |
|
| 65 |
+
| 0.8352 | 2.0 | 219 | 0.7352 | 0.7298 | 0.5362 | 0.4231 | 0.3884 |
|
| 66 |
+
| 0.7891 | 3.0 | 328 | 0.7575 | 0.7178 | 0.3954 | 0.4000 | 0.3667 |
|
| 67 |
+
| 0.7649 | 4.0 | 438 | 0.6879 | 0.7418 | 0.5009 | 0.3972 | 0.4146 |
|
| 68 |
+
| 0.8146 | 5.0 | 547 | 0.7471 | 0.7178 | 0.4490 | 0.4141 | 0.3641 |
|
| 69 |
+
| 0.6831 | 6.0 | 657 | 0.7007 | 0.7368 | 0.4777 | 0.4148 | 0.4252 |
|
| 70 |
+
| 0.695 | 7.0 | 766 | 0.6797 | 0.7428 | 0.4638 | 0.5334 | 0.4841 |
|
| 71 |
+
| 0.6646 | 8.0 | 876 | 0.6534 | 0.7537 | 0.6130 | 0.5077 | 0.4933 |
|
| 72 |
+
| 0.675 | 9.0 | 985 | 0.6238 | 0.7667 | 0.6518 | 0.5431 | 0.5308 |
|
| 73 |
+
| 0.6145 | 9.95 | 1090 | 0.6096 | 0.7727 | 0.6427 | 0.5346 | 0.5283 |
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
### Framework versions
|
| 77 |
+
|
| 78 |
+
- PEFT 0.9.0
|
| 79 |
+
- Transformers 4.38.2
|
| 80 |
+
- Pytorch 2.2.1+cu121
|
| 81 |
+
- Datasets 2.18.0
|
| 82 |
+
- Tokenizers 0.15.2
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2388036
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f6274f6a0a82e240e9851212ce29a5cedc9a4f024c8df40b2eded7eeb0822a3f
|
| 3 |
size 2388036
|