brucewayne0459 commited on
Commit
b00cf22
·
verified ·
1 Parent(s): edd762c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +45 -124
README.md CHANGED
@@ -27,69 +27,45 @@ This modelcard aims to be a base template for new models. It has been generated
27
 
28
 
29
 
30
- - **Developed by:** [More Information Needed]
31
- - **Funded by [optional]:** [More Information Needed]
32
- - **Shared by [optional]:** [More Information Needed]
33
- - **Model type:** [More Information Needed]
34
- - **Language(s) (NLP):** [More Information Needed]
35
- - **License:** [More Information Needed]
36
- - **Finetuned from model [optional]:** [More Information Needed]
37
 
38
- ### Model Sources [optional]
39
-
40
- <!-- Provide the basic links for the model. -->
41
-
42
- - **Repository:** [More Information Needed]
43
- - **Paper [optional]:** [More Information Needed]
44
- - **Demo [optional]:** [More Information Needed]
45
 
46
  ## Uses
47
 
48
- <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
49
-
50
  ### Direct Use
51
 
52
- <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
53
-
54
- [More Information Needed]
55
-
56
- ### Downstream Use [optional]
57
-
58
- <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
59
-
60
- [More Information Needed]
61
 
62
- ### Out-of-Scope Use
63
-
64
- <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
65
-
66
- [More Information Needed]
67
 
68
  ## Bias, Risks, and Limitations
69
 
70
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
71
-
72
- [More Information Needed]
73
 
74
  ### Recommendations
75
 
76
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
77
-
78
  Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
79
 
80
  ## How to Get Started with the Model
81
 
82
  Use the code below to get started with the model.
83
 
84
- [More Information Needed]
 
 
 
 
 
85
 
86
  ## Training Details
87
 
88
  ### Training Data
89
 
90
- <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
91
-
92
- [More Information Needed]
93
 
94
  ### Training Procedure
95
 
@@ -97,56 +73,38 @@ Use the code below to get started with the model.
97
 
98
  #### Preprocessing [optional]
99
 
100
- [More Information Needed]
101
-
102
-
103
- #### Training Hyperparameters
104
-
105
- - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
106
-
107
- #### Speeds, Sizes, Times [optional]
108
-
109
- <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
110
-
111
- [More Information Needed]
112
-
113
- ## Evaluation
114
-
115
- <!-- This section describes the evaluation protocols and provides the results. -->
116
-
117
- ### Testing Data, Factors & Metrics
118
-
119
- #### Testing Data
120
-
121
- <!-- This should link to a Dataset Card if possible. -->
122
-
123
- [More Information Needed]
124
 
125
- #### Factors
 
126
 
127
- <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
 
128
 
129
- [More Information Needed]
130
-
131
- #### Metrics
132
-
133
- <!-- These are the evaluation metrics being used, ideally with a description of why. -->
134
-
135
- [More Information Needed]
136
-
137
- ### Results
138
-
139
- [More Information Needed]
140
-
141
- #### Summary
142
 
 
 
 
 
143
 
 
 
144
 
145
- ## Model Examination [optional]
 
 
 
 
 
 
 
 
146
 
147
- <!-- Relevant interpretability work for the model goes here -->
148
 
149
- [More Information Needed]
150
 
151
  ## Environmental Impact
152
 
@@ -154,56 +112,19 @@ Use the code below to get started with the model.
154
 
155
  Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
156
 
157
- - **Hardware Type:** [More Information Needed]
158
- - **Hours used:** [More Information Needed]
159
- - **Cloud Provider:** [More Information Needed]
160
- - **Compute Region:** [More Information Needed]
161
- - **Carbon Emitted:** [More Information Needed]
162
 
163
  ## Technical Specifications [optional]
164
 
165
  ### Model Architecture and Objective
166
 
167
- [More Information Needed]
168
-
169
- ### Compute Infrastructure
170
 
171
- [More Information Needed]
172
 
173
  #### Hardware
174
 
175
- [More Information Needed]
176
-
177
- #### Software
178
-
179
- [More Information Needed]
180
-
181
- ## Citation [optional]
182
-
183
- <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
184
-
185
- **BibTeX:**
186
-
187
- [More Information Needed]
188
-
189
- **APA:**
190
-
191
- [More Information Needed]
192
-
193
- ## Glossary [optional]
194
-
195
- <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
196
-
197
- [More Information Needed]
198
-
199
- ## More Information [optional]
200
-
201
- [More Information Needed]
202
-
203
- ## Model Card Authors [optional]
204
-
205
- [More Information Needed]
206
-
207
- ## Model Card Contact
208
 
209
- [More Information Needed]
 
27
 
28
 
29
 
30
+ - **Developed by:** Bruce_Wayne(The Batman)
31
+ - **Funded by [optional]:** Wayne Industies
32
+ - **Model type:** Text Generation
33
+ - **Finetuned from model [optional]:** OpenBioLLM(llama-3)(aaditya/Llama3-OpenBioLLM-8B)
 
 
 
34
 
 
 
 
 
 
 
 
35
 
36
  ## Uses
37
 
 
 
38
  ### Direct Use
39
 
40
+ This model is fine-tuned on skin diseases and dermatology data and is used for a dermatology chatbot to provide clear, accurate, and helpful information about various skin diseases, skin care routines, treatments, and related dermatological advice.
 
 
 
 
 
 
 
 
41
 
 
 
 
 
 
42
 
43
  ## Bias, Risks, and Limitations
44
 
45
+ This model is trained on dermatology data, which might contain inherent biases. It is important to note that the model's responses should not be considered a substitute for professional medical advice. There may be limitations in understanding rare skin conditions or those not well-represented in the training data.
46
+ The model still need to be fine-tuned further to get accurate answers.
 
47
 
48
  ### Recommendations
49
 
 
 
50
  Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
51
 
52
  ## How to Get Started with the Model
53
 
54
  Use the code below to get started with the model.
55
 
56
+ ```python
57
+ from transformers import AutoTokenizer, AutoModelForCausalLM
58
+
59
+ model_name = "brucewayne0459/OpenBioLLm-Derm"
60
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
61
+ model = AutoModelForCausalLM.from_pretrained(model_name)
62
 
63
  ## Training Details
64
 
65
  ### Training Data
66
 
67
+ The model is fine-tuned on a dataset containing information about various skin diseases and dermatology care.
68
+ brucewayne0459/Skin_diseases_and_care
 
69
 
70
  ### Training Procedure
71
 
 
73
 
74
  #### Preprocessing [optional]
75
 
76
+ """Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
 
78
+ ### Instruction:
79
+ You are a highly knowledgeable and empathetic dermatologist. Provide clear, accurate, and helpful information about various skin diseases, skin care routines, treatments, and related dermatological advice.
80
 
81
+ ### Input:
82
+ {}
83
 
84
+ ### Response:
85
+ {}
86
+ """
87
+ EOS_TOKEN = tokenizer.eos_token # Must add EOS_TOKEN
 
 
 
 
 
 
 
 
 
88
 
89
+ def formatting_prompts_func(examples):
90
+ inputs = examples["Topic"]
91
+ outputs = examples["Information"]
92
+ texts = []
93
 
94
+ Prompt passed while fine tuning the model
95
+ #### Training Hyperparameters
96
 
97
+ Training regime: The model was trained using the following hyperparameters:
98
+ Per device train batch size: 2
99
+ Gradient accumulation steps: 4
100
+ Warmup steps: 5
101
+ Max steps: 120
102
+ Learning rate: 2e-4
103
+ Optimizer: AdamW (8-bit)
104
+ Weight decay: 0.01
105
+ LR scheduler type: Linear
106
 
 
107
 
 
108
 
109
  ## Environmental Impact
110
 
 
112
 
113
  Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
114
 
115
+ - **Hardware Type:** Tesls T4 gpu
116
+ - **Hours used:** 1hr
117
+ - **Cloud Provider:** Google Colab
118
+
 
119
 
120
  ## Technical Specifications [optional]
121
 
122
  ### Model Architecture and Objective
123
 
124
+ This model is based on the LLaMA (Large Language Model Meta AI) architecture and fine-tuned to provide dermatological advice.
 
 
125
 
 
126
 
127
  #### Hardware
128
 
129
+ The training was performed on Tesla T4 gpu with 4-bit quantization and gradient checkpointing to optimize memory usage.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130