bouthros commited on
Commit
1299e5a
·
verified ·
1 Parent(s): 17479d1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +78 -14
README.md CHANGED
@@ -1,21 +1,85 @@
1
  ---
 
2
  base_model: unsloth/llama-3.2-11b-vision-instruct-unsloth-bnb-4bit
3
- tags:
4
- - text-generation-inference
5
- - transformers
6
- - unsloth
7
- - mllama
8
- license: apache-2.0
9
- language:
10
- - en
11
  ---
12
 
13
- # Uploaded finetuned model
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
- - **Developed by:** bouthros
16
- - **License:** apache-2.0
17
- - **Finetuned from model :** unsloth/llama-3.2-11b-vision-instruct-unsloth-bnb-4bit
18
 
19
- This mllama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
20
 
21
- [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
 
1
  ---
2
+ library_name: peft
3
  base_model: unsloth/llama-3.2-11b-vision-instruct-unsloth-bnb-4bit
 
 
 
 
 
 
 
 
4
  ---
5
 
6
+ # Model Card for Llama-3.2 11b Vision Medical
7
+
8
+ <img src="https://i5.walmartimages.com/seo/DolliBu-Beige-Llama-Doctor-Plush-Toy-Super-Soft-Stuffed-Animal-Dress-Up-Cute-Scrub-Uniform-Cap-Outfit-Fluffy-Gift-11-Inches_e78392b2-71ef-4e26-a23f-8bb0b0e2043a.70c3b5988d390cf43d799758a826f2a5.jpeg" alt="drawing" width="400"/>
9
+
10
+ <font color="FF0000" size="5"><b>
11
+ This is a vision-language model fine-tuned for radiographic image analysis</b></font>
12
+ <br><b>Foundation Model: https://huggingface.co/unsloth/Llama-3.2-11B-Vision-Instruct<br/>
13
+ Dataset: https://huggingface.co/datasets/eltorio/ROCOv2-radiology<br/></b>
14
+
15
+ The model has been fine-tuned using CUDA-enabled GPU hardware.
16
+
17
+ ## Model Details
18
+
19
+ The model is based upon the foundation model: unsloth/Llama-3.2-11B-Vision-Instruct.<br/>
20
+ It has been tuned with Supervised Fine-tuning Trainer and PEFT LoRA with vision-language capabilities.
21
+
22
+ ### Libraries
23
+ - unsloth
24
+ - transformers
25
+ - torch
26
+ - datasets
27
+ - trl
28
+ - peft
29
+
30
+ ## Bias, Risks, and Limitations
31
+
32
+ To optimize training efficiency, the model has been trained on a subset of the ROCOv2-radiology dataset (1/7th of the total dataset).<br/>
33
+
34
+ <font color="FF0000">
35
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.<br/>
36
+ The model's performance is directly dependent on the quality and diversity of the training data. Medical diagnosis should always be performed by qualified healthcare professionals.<br/>
37
+ Generation of plausible yet incorrect medical interpretations could occur and should not be used as the sole basis for clinical decisions.
38
+ </font>
39
+
40
+ ## Training Details
41
+
42
+ ### Training Parameters
43
+ - per_device_train_batch_size = 2
44
+ - gradient_accumulation_steps = 16
45
+ - num_train_epochs = 3
46
+ - learning_rate = 5e-5
47
+ - weight_decay = 0.02
48
+ - lr_scheduler_type = "linear"
49
+ - max_seq_length = 2048
50
+
51
+ ### LoRA Configuration
52
+ - r = 32
53
+ - lora_alpha = 32
54
+ - lora_dropout = 0
55
+ - bias = "none"
56
+
57
+ ### Hardware Requirements
58
+ The model was trained using CUDA-enabled GPU hardware.
59
+
60
+ ### Training Statistics
61
+ - Training duration: 40,989 seconds (approximately 683 minutes)
62
+ - Peak reserved memory: 12.8 GB
63
+ - Peak reserved memory for training: 3.975 GB
64
+ - Peak reserved memory % of max memory: 32.3%
65
+ - Peak reserved memory for training % of max memory: 10.1%
66
+
67
+ ### Training Data
68
+ The model was trained on the ROCOv2-radiology dataset, which contains radiographic images and their corresponding medical descriptions. .
69
+
70
+ The training set was reduced to 1/7th of the original size for computational efficiency.
71
+
72
+ ## Usage
73
+
74
+ The model is designed to provide detailed descriptions of radiographic images. It can be prompted with:
75
+ ```python
76
+ instruction = "You are an expert radiographer. Describe accurately what you see in this image."
77
+ ```
78
+
79
+ ## Model Access
80
 
81
+ The model is available on Hugging Face Hub at: bouthros/llma32_11b_vision_medical
 
 
82
 
83
+ ## Citation
84
 
85
+ If you use this model, please cite the original ROCOv2-radiology dataset and the Llama-3.2-11B-Vision-Instruct base model.