selmamalak commited on
Commit
0bd219a
1 Parent(s): 7667fa3

Model save

Browse files
Files changed (2) hide show
  1. README.md +82 -0
  2. 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
+ base_model: microsoft/beit-base-patch16-224-pt22k-ft22k
7
+ datasets:
8
+ - medmnist-v2
9
+ metrics:
10
+ - accuracy
11
+ - precision
12
+ - recall
13
+ - f1
14
+ model-index:
15
+ - name: pneumoniamnist-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
+ # pneumoniamnist-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.3569
27
+ - Accuracy: 0.8569
28
+ - Precision: 0.8111
29
+ - Recall: 0.8649
30
+ - F1: 0.8292
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.5947 | 0.9898 | 73 | 0.5165 | 0.7424 | 0.3712 | 0.5 | 0.4261 |
65
+ | 0.4888 | 1.9932 | 147 | 0.3450 | 0.8569 | 0.8116 | 0.8190 | 0.8151 |
66
+ | 0.4022 | 2.9966 | 221 | 0.4225 | 0.8340 | 0.7914 | 0.8567 | 0.8079 |
67
+ | 0.4319 | 4.0 | 295 | 0.3600 | 0.8588 | 0.8123 | 0.8589 | 0.8292 |
68
+ | 0.3836 | 4.9898 | 368 | 0.3665 | 0.8511 | 0.8054 | 0.8610 | 0.8233 |
69
+ | 0.3887 | 5.9932 | 442 | 0.3667 | 0.8645 | 0.8197 | 0.8749 | 0.8383 |
70
+ | 0.3947 | 6.9966 | 516 | 0.3951 | 0.8531 | 0.8098 | 0.8744 | 0.8283 |
71
+ | 0.3741 | 8.0 | 590 | 0.3449 | 0.8683 | 0.8229 | 0.8678 | 0.8398 |
72
+ | 0.3964 | 8.9898 | 663 | 0.3625 | 0.8588 | 0.8128 | 0.8638 | 0.8305 |
73
+ | 0.3845 | 9.8983 | 730 | 0.3569 | 0.8569 | 0.8111 | 0.8649 | 0.8292 |
74
+
75
+
76
+ ### Framework versions
77
+
78
+ - PEFT 0.11.1
79
+ - Transformers 4.41.1
80
+ - Pytorch 2.3.0+cu121
81
+ - Datasets 2.19.1
82
+ - Tokenizers 0.19.1
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:228fa6d7dd7bcb38a4928df3aacd0eec77d5829d473e255bc8429052f6b70f5c
3
  size 2372656
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:376fec7c04dfb006aa5d5a0d0df418928d0ea0745f10907e821b55d127b50c88
3
  size 2372656