Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
datasets:
|
4 |
+
- LinhDuong/chatdoctor-200k
|
5 |
+
- cognitivecomputations/samantha-data
|
6 |
+
tags:
|
7 |
+
- medical
|
8 |
+
---
|
9 |
+
# Johan-7B
|
10 |
+
|
11 |
+
|
12 |
+
## Model Details
|
13 |
+
|
14 |
+
QLoRA 4bit Fine-Tuned Version of Mistral-7B using Unsloth
|
15 |
+
|
16 |
+
|
17 |
+
Trying To Be a Friendly Neighbourhood Doctor.
|
18 |
+
|
19 |
+
|
20 |
+
## Prompt
|
21 |
+
```
|
22 |
+
[INST]<<SYS>>You are a highly Qualified Doctor. Who is commonly known by the name Johan.<<SYS>>
|
23 |
+
###Previous Conversation:
|
24 |
+
[NULL]
|
25 |
+
###Current Conversation:
|
26 |
+
Patient: {} [/INST]
|
27 |
+
Johan: {}
|
28 |
+
```
|
29 |
+
|
30 |
+
|
31 |
+
|
32 |
+
|
33 |
+
## Training Details
|
34 |
+
|
35 |
+
LoRA modules=['v_proj', 'down_proj', 'up_proj', 'o_proj', 'q_proj', 'gate_proj', 'k_proj']
|
36 |
+
|
37 |
+
1. Samantha
|
38 |
+
|
39 |
+
-Advice
|
40 |
+
|
41 |
+
-Philosiphy
|
42 |
+
|
43 |
+
-Therapy
|
44 |
+
|
45 |
+
Special Thanks To Cognitive Computations
|
46 |
+
|
47 |
+
```
|
48 |
+
batch_size=2
|
49 |
+
learning_rate=1.5e-5,
|
50 |
+
warmup_steps=5,
|
51 |
+
max_steps=25, #per_subject
|
52 |
+
optim = "adamw_8bit",
|
53 |
+
weight_decay = 1e-3,
|
54 |
+
lr_scheduler_type = "cosine",
|
55 |
+
neftune_noise_alpha=1
|
56 |
+
```
|
57 |
+
|
58 |
+
2. LinhDuong/chatdoctor-200k
|
59 |
+
|
60 |
+
```
|
61 |
+
batch_size=2
|
62 |
+
learning_rate=1.25e-5,
|
63 |
+
warmup_steps=5,
|
64 |
+
max_steps=35,
|
65 |
+
optim = "adamw_8bit",
|
66 |
+
weight_decay = 1e-3,
|
67 |
+
lr_scheduler_type = "cosine",
|
68 |
+
neftune_noise_alpha=1
|
69 |
+
```
|
70 |
+
|
71 |
+
3. Disease_remedies
|
72 |
+
|
73 |
+
Created using GPT 3.5 Turbo
|
74 |
+
```
|
75 |
+
Sample:
|
76 |
+
{
|
77 |
+
"Gastroesophageal Reflux Disease (GERD)": {
|
78 |
+
"remedies_that_work": "Adopt lifestyle changes like maintaining a healthy weight, eating smaller, more frequent meals, and avoiding lying down after eating. Elevate the head of your bed to reduce nighttime symptoms. Choose low-acid foods and beverages, and avoid triggers such as spicy or fatty foods, caffeine, and citrus. Stay upright for at least 2-3 hours after meals. Chewing gum can stimulate saliva production, helping to neutralize stomach acid. Incorporate ginger into your diet, as it may have anti-inflammatory properties. Over-the-counter antacids or medications prescribed by a healthcare professional can provide relief.",
|
79 |
+
"remedies_that_dont_work": "Avoid overeating and late-night snacks. Smoking and excessive alcohol consumption can exacerbate symptoms. Herbal remedies or unproven alternative therapies may not provide effective relief and should be used with caution."
|
80 |
+
}
|
81 |
+
}
|
82 |
+
|
83 |
+
```
|
84 |
+
|
85 |
+
Training-Params
|
86 |
+
```
|
87 |
+
epoch=2
|
88 |
+
batch_size=2
|
89 |
+
learning_rate=2.5e-5,
|
90 |
+
warmup_steps=5,
|
91 |
+
optim = "adamw_8bit",
|
92 |
+
weight_decay = 1e-3,
|
93 |
+
lr_scheduler_type = "cosine",
|
94 |
+
neftune_noise_alpha=1
|
95 |
+
```
|