aashish1904
commited on
Commit
•
d879426
1
Parent(s):
3b7a7a7
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,379 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
---
|
3 |
+
|
4 |
+
base_model: meta-llama/Meta-Llama-3-8B
|
5 |
+
tags:
|
6 |
+
- llama-3
|
7 |
+
- llama
|
8 |
+
- Mixtral
|
9 |
+
- instruct
|
10 |
+
- finetune
|
11 |
+
- chatml
|
12 |
+
- DPO
|
13 |
+
- RLHF
|
14 |
+
- gpt4
|
15 |
+
- distillation
|
16 |
+
model-index:
|
17 |
+
- name: OpenBioLLM-8B
|
18 |
+
results: []
|
19 |
+
license: llama3
|
20 |
+
language:
|
21 |
+
- en
|
22 |
+
widget:
|
23 |
+
- example_title: OpenBioLLM-8B
|
24 |
+
messages:
|
25 |
+
- role: system
|
26 |
+
content: >-
|
27 |
+
You are an expert and experienced from the healthcare and biomedical domain with extensive medical knowledge and practical experience.
|
28 |
+
- role: user
|
29 |
+
content: How long does it take for newborn jaundice to go away?
|
30 |
+
output:
|
31 |
+
text: >-
|
32 |
+
Newborn jaundice, also known as neonatal jaundice, is a common condition in newborns where the yellowing of the skin and eyes occurs due to an elevated level of bilirubin in the blood. Bilirubin is a yellow pigment that forms when red blood cells break down. In most cases, newborn jaundice resolves on its own without any specific treatment.
|
33 |
+
|
34 |
+
The duration of newborn jaundice can vary depending on several factors such as the underlying cause, gestational age at birth, and individual variations in bilirubin metabolism. Here are some general guidelines:
|
35 |
+
|
36 |
+
1. Physiological jaundice: This is the most common type of newborn jaundice and usually appears within 24-72 hours after birth. It tends to peak between the second and fifth day of life and gradually improves over the next week or two. By the time the baby is one week old, the jaundice should have mostly resolved.
|
37 |
+
2. Breast milk jaundice: This type of jaundice occurs in breastfed babies and may appear later than physiological jaundice, typically between the fifth and fourteenth day of life. It tends to persist for a longer duration but usually resolves within six weeks after birth.
|
38 |
+
3. Pathological jaundice: This type of jaundice is less common and occurs due to an underlying medical condition that affects bilirubin metabolism or liver function. The duration of pathological jaundice depends on the specific cause and may require treatment.
|
39 |
+
|
40 |
+
It's important for parents to monitor their newborn's jaundice closely and seek medical advice if the jaundice progresses rapidly, becomes severe, or is accompanied by other symptoms such as poor feeding, lethargy, or excessive sleepiness. In these cases, further evaluation and management may be necessary.
|
41 |
+
Remember that each baby is unique, and the timing of jaundice resolution can vary. If you have concerns about your newborn's jaundice, it's always best to consult with a healthcare professional for personalized advice and guidance.
|
42 |
+
|
43 |
+
---
|
44 |
+
|
45 |
+
[![QuantFactory Banner](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeiuCm7c8lEwEJuRey9kiVZsRn2W-b4pWlu3-X534V3YmVuVc2ZL-NXg2RkzSOOS2JXGHutDuyyNAUtdJI65jGTo8jT9Y99tMi4H4MqL44Uc5QKG77B0d6-JfIkZHFaUA71-RtjyYZWVIhqsNZcx8-OMaA?key=xt3VSDoCbmTY7o-cwwOFwQ)](https://hf.co/QuantFactory)
|
46 |
+
|
47 |
+
|
48 |
+
# QuantFactory/Llama3-OpenBioLLM-8B-GGUF
|
49 |
+
This is quantized version of [aaditya/Llama3-OpenBioLLM-8B](https://huggingface.co/aaditya/Llama3-OpenBioLLM-8B) created using llama.cpp
|
50 |
+
|
51 |
+
# Original Model Card
|
52 |
+
|
53 |
+
|
54 |
+
|
55 |
+
<div align="center">
|
56 |
+
<img width="260px" src="https://cdn-uploads.huggingface.co/production/uploads/5f3fe13d79c1ba4c353d0c19/BrQCb95lmEIFz79QAmoNA.png"></div>
|
57 |
+
|
58 |
+
|
59 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/5f3fe13d79c1ba4c353d0c19/2FhDh8NDvMl7iSxbQz9BP.png)
|
60 |
+
|
61 |
+
|
62 |
+
|
63 |
+
|
64 |
+
<div align="center">
|
65 |
+
|
66 |
+
<h1>Advancing Open-source Large Language Models in Medical Domain</h1>
|
67 |
+
</div>
|
68 |
+
|
69 |
+
<p align="center" style="margin-top: 0px;">
|
70 |
+
<a href="https://colab.research.google.com/drive/1F5oV20InEYeAJGmBwYF9NM_QhLmjBkKJ?usp=sharing">
|
71 |
+
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="OpenChat Logo" style="width:20px; vertical-align: middle; display: inline-block; margin-right: 5px; margin-left: 10px; margin-top: 0px; margin-bottom: 0px;"/>
|
72 |
+
<span class="link-text" style=" margin-right: 5px;">Online Demo</span>
|
73 |
+
</a> |
|
74 |
+
<a href="https://github.com/openlifescience-ai">
|
75 |
+
<img src="https://github.githubassets.com/assets/GitHub-Mark-ea2971cee799.png" alt="GitHub Logo" style="width:20px; vertical-align: middle; display: inline-block; margin-right: 5px; margin-left: 5px; margin-top: 0px; margin-bottom: 0px;"/>
|
76 |
+
<span class="link-text" style=" margin-right: 5px;">GitHub</span>
|
77 |
+
</a> |
|
78 |
+
<a href="#">
|
79 |
+
<img src="https://github.com/alpayariyak/openchat/blob/master/assets/arxiv-logomark-small-square-border.png?raw=true" alt="ArXiv Logo" style="width:20px; vertical-align: middle; display: inline-block; margin-right: 5px; margin-left: 5px; margin-top: 0px; margin-bottom: 0px;"/>
|
80 |
+
<span class="link-text" style="margin-right: 5px;">Paper</span>
|
81 |
+
</a> |
|
82 |
+
<a href="https://discord.gg/A5Fjf5zC69">
|
83 |
+
<img src="https://cloud.githubusercontent.com/assets/6291467/26705903/96c2d66e-477c-11e7-9f4e-f3c0efe96c9a.png" alt="Discord Logo" style="width:20px; vertical-align: middle; display: inline-block; margin-right: 5px; margin-left: 5px; margin-top: 0px; margin-bottom: 0px;"/>
|
84 |
+
<span class="link-text">Discord</span>
|
85 |
+
</a>
|
86 |
+
</p>
|
87 |
+
|
88 |
+
![image/jpeg](https://cdn-uploads.huggingface.co/production/uploads/5f3fe13d79c1ba4c353d0c19/KGmRE5w2sepNtwsEu8t7K.jpeg)
|
89 |
+
|
90 |
+
Introducing OpenBioLLM-8B: A State-of-the-Art Open Source Biomedical Large Language Model
|
91 |
+
|
92 |
+
|
93 |
+
OpenBioLLM-8B is an advanced open source language model designed specifically for the biomedical domain. Developed by Saama AI Labs, this model leverages cutting-edge techniques to achieve state-of-the-art performance on a wide range of biomedical tasks.
|
94 |
+
|
95 |
+
🏥 **Biomedical Specialization**: OpenBioLLM-8B is tailored for the unique language and knowledge requirements of the medical and life sciences fields. It was fine-tuned on a vast corpus of high-quality biomedical data, enabling it to understand and generate text with domain-specific accuracy and fluency.
|
96 |
+
|
97 |
+
🎓 **Superior Performance**: With 8 billion parameters, OpenBioLLM-8B outperforms other open source biomedical language models of similar scale. It has also demonstrated better results compared to larger proprietary & open-source models like GPT-3.5 and Meditron-70B on biomedical benchmarks.
|
98 |
+
|
99 |
+
🧠 **Advanced Training Techniques**: OpenBioLLM-8B builds upon the powerful foundations of the **Meta-Llama-3-8B** and [Meta-Llama-3-8B](meta-llama/Meta-Llama-3-8B) models. It incorporates the DPO dataset and fine-tuning recipe along with a custom diverse medical instruction dataset. Key components of the training pipeline include:
|
100 |
+
|
101 |
+
<div align="center">
|
102 |
+
<img width="1200px" src="https://cdn-uploads.huggingface.co/production/uploads/5f3fe13d79c1ba4c353d0c19/oPchsJsEpQoGcGXVbh7YS.png">
|
103 |
+
</div>
|
104 |
+
|
105 |
+
- **Policy Optimization**: [Direct Preference Optimization: Your Language Model is Secretly a Reward Model (DPO)](https://arxiv.org/abs/2305.18290)
|
106 |
+
- **Ranking Dataset**: [berkeley-nest/Nectar](https://huggingface.co/datasets/berkeley-nest/Nectar)
|
107 |
+
- **Fine-tuning dataset**: Custom Medical Instruct dataset (We plan to release a sample training dataset in our upcoming paper; please stay updated)
|
108 |
+
|
109 |
+
This combination of cutting-edge techniques enables OpenBioLLM-8B to align with key capabilities and preferences for biomedical applications.
|
110 |
+
|
111 |
+
⚙️ **Release Details**:
|
112 |
+
|
113 |
+
- **Model Size**: 8 billion parameters
|
114 |
+
- **Quantization**: Optimized quantized versions available [Here](https://huggingface.co/aaditya/OpenBioLLM-Llama3-8B-GGUF)
|
115 |
+
- **Language(s) (NLP):** en
|
116 |
+
- **Developed By**: [Ankit Pal (Aaditya Ura)](https://aadityaura.github.io/) from Saama AI Labs
|
117 |
+
- **License:** Meta-Llama License
|
118 |
+
- **Fine-tuned from models:** [meta-llama/Meta-Llama-3-8B](meta-llama/Meta-Llama-3-8B)
|
119 |
+
- **Resources for more information:**
|
120 |
+
- Paper: Coming soon
|
121 |
+
|
122 |
+
The model can be fine-tuned for more specialized tasks and datasets as needed.
|
123 |
+
|
124 |
+
OpenBioLLM-8B represents an important step forward in democratizing advanced language AI for the biomedical community. By leveraging state-of-the-art architectures and training techniques from leading open source efforts like Llama-3, we have created a powerful tool to accelerate innovation and discovery in healthcare and the life sciences.
|
125 |
+
|
126 |
+
We are excited to share OpenBioLLM-8B with researchers and developers around the world.
|
127 |
+
|
128 |
+
|
129 |
+
### Use with transformers
|
130 |
+
|
131 |
+
**Important: Please use the exact chat template provided by Llama-3 instruct version. Otherwise there will be a degradation in the performance. The model output can be verbose in rare cases. Please consider setting temperature = 0 to make this happen less.**
|
132 |
+
|
133 |
+
See the snippet below for usage with Transformers:
|
134 |
+
|
135 |
+
```python
|
136 |
+
import transformers
|
137 |
+
import torch
|
138 |
+
|
139 |
+
model_id = "aaditya/OpenBioLLM-Llama3-8B"
|
140 |
+
|
141 |
+
pipeline = transformers.pipeline(
|
142 |
+
"text-generation",
|
143 |
+
model=model_id,
|
144 |
+
model_kwargs={"torch_dtype": torch.bfloat16},
|
145 |
+
device="auto",
|
146 |
+
)
|
147 |
+
|
148 |
+
messages = [
|
149 |
+
{"role": "system", "content": "You are an expert and experienced from the healthcare and biomedical domain with extensive medical knowledge and practical experience. Your name is OpenBioLLM, and you were developed by Saama AI Labs. who's willing to help answer the user's query with explanation. In your explanation, leverage your deep medical expertise such as relevant anatomical structures, physiological processes, diagnostic criteria, treatment guidelines, or other pertinent medical concepts. Use precise medical terminology while still aiming to make the explanation clear and accessible to a general audience."},
|
150 |
+
{"role": "user", "content": "How can i split a 3mg or 4mg waefin pill so i can get a 2.5mg pill?"},
|
151 |
+
]
|
152 |
+
|
153 |
+
prompt = pipeline.tokenizer.apply_chat_template(
|
154 |
+
messages,
|
155 |
+
tokenize=False,
|
156 |
+
add_generation_prompt=True
|
157 |
+
)
|
158 |
+
|
159 |
+
terminators = [
|
160 |
+
pipeline.tokenizer.eos_token_id,
|
161 |
+
pipeline.tokenizer.convert_tokens_to_ids("<|eot_id|>")
|
162 |
+
]
|
163 |
+
|
164 |
+
outputs = pipeline(
|
165 |
+
prompt,
|
166 |
+
max_new_tokens=256,
|
167 |
+
eos_token_id=terminators,
|
168 |
+
do_sample=True,
|
169 |
+
temperature=0.0,
|
170 |
+
top_p=0.9,
|
171 |
+
)
|
172 |
+
print(outputs[0]["generated_text"][len(prompt):])
|
173 |
+
```
|
174 |
+
|
175 |
+
## **Training procedure**
|
176 |
+
|
177 |
+
### **Training hyperparameters**
|
178 |
+
|
179 |
+
<details>
|
180 |
+
<summary>Click to see details</summary>
|
181 |
+
|
182 |
+
- learning_rate: 0.0002
|
183 |
+
- lr_scheduler: cosine
|
184 |
+
- train_batch_size: 12
|
185 |
+
- eval_batch_size: 8
|
186 |
+
- GPU: H100 80GB SXM5
|
187 |
+
- num_devices: 1
|
188 |
+
- optimizer: adamw_bnb_8bit
|
189 |
+
- lr_scheduler_warmup_steps: 100
|
190 |
+
- num_epochs: 4
|
191 |
+
</details>
|
192 |
+
|
193 |
+
|
194 |
+
### **Peft hyperparameters**
|
195 |
+
|
196 |
+
<details>
|
197 |
+
<summary>Click to see details</summary>
|
198 |
+
|
199 |
+
- adapter: qlora
|
200 |
+
- lora_r: 128
|
201 |
+
- lora_alpha: 256
|
202 |
+
- lora_dropout: 0.05
|
203 |
+
- lora_target_linear: true
|
204 |
+
|
205 |
+
-lora_target_modules:
|
206 |
+
- q_proj
|
207 |
+
- v_proj
|
208 |
+
- k_proj
|
209 |
+
- o_proj
|
210 |
+
- gate_proj
|
211 |
+
- down_proj
|
212 |
+
- up_proj
|
213 |
+
</details>
|
214 |
+
|
215 |
+
|
216 |
+
|
217 |
+
### **Training results**
|
218 |
+
|
219 |
+
### **Framework versions**
|
220 |
+
|
221 |
+
- Transformers 4.39.3
|
222 |
+
- Pytorch 2.1.2+cu121
|
223 |
+
- Datasets 2.18.0
|
224 |
+
- Tokenizers 0.15.1
|
225 |
+
- Axolotl
|
226 |
+
- Lm harness for evaluation
|
227 |
+
|
228 |
+
|
229 |
+
# Benchmark Results
|
230 |
+
|
231 |
+
🔥 OpenBioLLM-8B demonstrates superior performance compared to larger models, such as GPT-3.5, Meditron-70B across 9 diverse biomedical datasets, achieving state-of-the-art results with an average score of 72.50%, despite having a significantly smaller parameter count. The model's strong performance in domain-specific tasks, such as Clinical KG, Medical Genetics, and PubMedQA, highlights its ability to effectively capture and apply biomedical knowledge.
|
232 |
+
|
233 |
+
🚨 The GPT-4, Med-PaLM-1, and Med-PaLM-2 results are taken from their official papers. Since Med-PaLM doesn't provide zero-shot accuracy, we are using 5-shot accuracy from their paper for comparison. All results presented are in the zero-shot setting, except for Med-PaLM-2 and Med-PaLM-1, which use 5-shot accuracy.
|
234 |
+
|
235 |
+
| | Clinical KG | Medical Genetics | Anatomy | Pro Medicine | College Biology | College Medicine | MedQA 4 opts | PubMedQA | MedMCQA | Avg |
|
236 |
+
|--------------------|-------------|------------------|---------|--------------|-----------------|------------------|--------------|----------|---------|-------|
|
237 |
+
| **OpenBioLLM-70B** | **92.93** | **93.197** | **83.904** | 93.75 | 93.827 | **85.749** | 78.162 | 78.97 | **74.014** | **86.05588** |
|
238 |
+
| Med-PaLM-2 (5-shot) | 88.3 | 90 | 77.8 | **95.2** | 94.4 | 80.9 | **79.7** | **79.2** | 71.3 | 84.08 |
|
239 |
+
| **GPT-4** | 86.04 | 91 | 80 | 93.01 | **95.14** | 76.88 | 78.87 | 75.2 | 69.52 | 82.85 |
|
240 |
+
| Med-PaLM-1 (Flan-PaLM, 5-shot) | 80.4 | 75 | 63.7 | 83.8 | 88.9 | 76.3 | 67.6 | 79 | 57.6 | 74.7 |
|
241 |
+
| **OpenBioLLM-8B** | 76.101 | 86.1 | 69.829 | 78.21 | 84.213 | 68.042 | 58.993 | 74.12 | 56.913 | 72.502 |
|
242 |
+
| Gemini-1.0 | 76.7 | 75.8 | 66.7 | 77.7 | 88 | 69.2 | 58 | 70.7 | 54.3 | 70.79 |
|
243 |
+
| GPT-3.5 Turbo 1106 | 74.71 | 74 | 72.79 | 72.79 | 72.91 | 64.73 | 57.71 | 72.66 | 53.79 | 66 |
|
244 |
+
| Meditron-70B | 66.79 | 69 | 53.33 | 71.69 | 76.38 | 63 | 57.1 | 76.6 | 46.85 | 64.52 |
|
245 |
+
| gemma-7b | 69.81 | 70 | 59.26 | 66.18 | 79.86 | 60.12 | 47.21 | 76.2 | 48.96 | 64.18 |
|
246 |
+
| Mistral-7B-v0.1 | 68.68 | 71 | 55.56 | 68.38 | 68.06 | 59.54 | 50.82 | 75.4 | 48.2 | 62.85 |
|
247 |
+
| Apollo-7B | 62.26 | 72 | 61.48 | 69.12 | 70.83 | 55.49 | 55.22 | 39.8 | 53.77 | 60 |
|
248 |
+
| MedAlpaca-7b | 57.36 | 69 | 57.04 | 67.28 | 65.28 | 54.34 | 41.71 | 72.8 | 37.51 | 58.03 |
|
249 |
+
| BioMistral-7B | 59.9 | 64 | 56.5 | 60.4 | 59 | 54.7 | 50.6 | 77.5 | 48.1 | 57.3 |
|
250 |
+
| AlpaCare-llama2-7b | 49.81 | 49 | 45.92 | 33.82 | 50 | 43.35 | 29.77 | 72.2 | 34.42 | 45.36 |
|
251 |
+
| ClinicalGPT | 30.56 | 27 | 30.37 | 19.48 | 25 | 24.27 | 26.08 | 63.8 | 28.18 | 30.52 |
|
252 |
+
|
253 |
+
<div align="center">
|
254 |
+
<img width="1600px" src="https://cdn-uploads.huggingface.co/production/uploads/5f3fe13d79c1ba4c353d0c19/_SzdcJSBjZyo8RS1bTEkP.png">
|
255 |
+
</div>
|
256 |
+
|
257 |
+
## Detailed Medical Subjectwise accuracy
|
258 |
+
|
259 |
+
|
260 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/5f3fe13d79c1ba4c353d0c19/UXF-V0col0Z0sS6BGPBkE.png)
|
261 |
+
|
262 |
+
# Use Cases & Examples
|
263 |
+
|
264 |
+
🚨 **Below results are from the quantized version of OpenBioLLM-70B**
|
265 |
+
|
266 |
+
|
267 |
+
# Summarize Clinical Notes
|
268 |
+
|
269 |
+
OpenBioLLM-70B can efficiently analyze and summarize complex clinical notes, EHR data, and discharge summaries, extracting key information and generating concise, structured summaries
|
270 |
+
|
271 |
+
|
272 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/5f3fe13d79c1ba4c353d0c19/xdwdBgOxNi_TfML0hKlI8.png)
|
273 |
+
|
274 |
+
# Answer Medical Questions
|
275 |
+
|
276 |
+
OpenBioLLM-70B can provide answers to a wide range of medical questions.
|
277 |
+
|
278 |
+
|
279 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/5f3fe13d79c1ba4c353d0c19/zO95GlwOQEZqCKQF69mE6.png)
|
280 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/5f3fe13d79c1ba4c353d0c19/OKBczKw7gWeW5xsuDpc27.png)
|
281 |
+
|
282 |
+
<details>
|
283 |
+
<summary>Click to see details</summary>
|
284 |
+
|
285 |
+
|
286 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/5f3fe13d79c1ba4c353d0c19/eJGHT5khppYvJb8fQ-YW4.png)
|
287 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/5f3fe13d79c1ba4c353d0c19/Cnbwrqa_-ORHRuNRC2P6Y.png)
|
288 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/5f3fe13d79c1ba4c353d0c19/J9DhdcvukAc9mnnW9fj2C.png)
|
289 |
+
|
290 |
+
</details>
|
291 |
+
|
292 |
+
# Clinical Entity Recognition
|
293 |
+
|
294 |
+
OpenBioLLM-70B can perform advanced clinical entity recognition by identifying and extracting key medical concepts, such as diseases, symptoms, medications, procedures, and anatomical structures, from unstructured clinical text. By leveraging its deep understanding of medical terminology and context, the model can accurately annotate and categorize clinical entities, enabling more efficient information retrieval, data analysis, and knowledge discovery from electronic health records, research articles, and other biomedical text sources. This capability can support various downstream applications, such as clinical decision support, pharmacovigilance, and medical research.
|
295 |
+
|
296 |
+
|
297 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/5f3fe13d79c1ba4c353d0c19/_69BW4k9LVABFwtxixL45.png)
|
298 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/5f3fe13d79c1ba4c353d0c19/DKy5wYCoPhoPPUc1-x8_J.png)
|
299 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/5f3fe13d79c1ba4c353d0c19/7WD9zCCBZT4-4XlfnIQjl.png)
|
300 |
+
|
301 |
+
# Biomarkers Extraction
|
302 |
+
|
303 |
+
|
304 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/5f3fe13d79c1ba4c353d0c19/ZttoM4AiteT7gFYVhjIpN.png)
|
305 |
+
|
306 |
+
|
307 |
+
# Classification
|
308 |
+
|
309 |
+
OpenBioLLM-70B can perform various biomedical classification tasks, such as disease prediction, sentiment analysis, medical document categorization
|
310 |
+
|
311 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/5f3fe13d79c1ba4c353d0c19/Bf5MW1d75qT-1F_TR_hC0.png)
|
312 |
+
|
313 |
+
# De-Identification
|
314 |
+
|
315 |
+
OpenBioLLM-70B can detect and remove personally identifiable information (PII) from medical records, ensuring patient privacy and compliance with data protection regulations like HIPAA.
|
316 |
+
|
317 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/5f3fe13d79c1ba4c353d0c19/hKX4kzm--Tw5bj6K78msy.png)
|
318 |
+
|
319 |
+
|
320 |
+
|
321 |
+
**Advisory Notice!**
|
322 |
+
|
323 |
+
While OpenBioLLM-70B & 8B leverages high-quality data sources, its outputs may still contain inaccuracies, biases, or misalignments that could pose risks if relied upon for medical decision-making without further testing and refinement. The model's performance has not yet been rigorously evaluated in randomized controlled trials or real-world healthcare environments.
|
324 |
+
|
325 |
+
Therefore, we strongly advise against using OpenBioLLM-70B & 8B for any direct patient care, clinical decision support, or other professional medical purposes at this time. Its use should be limited to research, development, and exploratory applications by qualified individuals who understand its limitations.
|
326 |
+
OpenBioLLM-70B & 8B are intended solely as a research tool to assist healthcare professionals and should never be considered a replacement for the professional judgment and expertise of a qualified medical doctor.
|
327 |
+
|
328 |
+
Appropriately adapting and validating OpenBioLLM-70B & 8B for specific medical use cases would require significant additional work, potentially including:
|
329 |
+
|
330 |
+
- Thorough testing and evaluation in relevant clinical scenarios
|
331 |
+
- Alignment with evidence-based guidelines and best practices
|
332 |
+
- Mitigation of potential biases and failure modes
|
333 |
+
- Integration with human oversight and interpretation
|
334 |
+
- Compliance with regulatory and ethical standards
|
335 |
+
|
336 |
+
Always consult a qualified healthcare provider for personal medical needs.
|
337 |
+
|
338 |
+
|
339 |
+
|
340 |
+
# Citation
|
341 |
+
|
342 |
+
If you find OpenBioLLM-70B & 8B useful in your work, please cite the model as follows:
|
343 |
+
|
344 |
+
```
|
345 |
+
@misc{OpenBioLLMs,
|
346 |
+
author = {Ankit Pal, Malaikannan Sankarasubbu},
|
347 |
+
title = {OpenBioLLMs: Advancing Open-Source Large Language Models for Healthcare and Life Sciences},
|
348 |
+
year = {2024},
|
349 |
+
publisher = {Hugging Face},
|
350 |
+
journal = {Hugging Face repository},
|
351 |
+
howpublished = {\url{https://huggingface.co/aaditya/OpenBioLLM-Llama3-70B}}
|
352 |
+
}
|
353 |
+
```
|
354 |
+
|
355 |
+
The accompanying paper is currently in progress and will be released soon.
|
356 |
+
|
357 |
+
<div align="center">
|
358 |
+
<h2> 💌 Contact </h2>
|
359 |
+
</div>
|
360 |
+
|
361 |
+
We look forward to hearing you and collaborating on this exciting project!
|
362 |
+
|
363 |
+
**Contributors:**
|
364 |
+
- [Ankit Pal (Aaditya Ura)](https://aadityaura.github.io/) [aadityaura at gmail dot com]
|
365 |
+
- Saama AI Labs
|
366 |
+
- Note: I am looking for a funded PhD opportunity, especially if it fits my Responsible Generative AI, Multimodal LLMs, Geometric Deep Learning, and Healthcare AI skillset.
|
367 |
+
|
368 |
+
|
369 |
+
# References
|
370 |
+
|
371 |
+
We thank the [Meta Team](meta-llama/Meta-Llama-3-70B-Instruct) for their amazing models!
|
372 |
+
|
373 |
+
|
374 |
+
Result sources
|
375 |
+
|
376 |
+
- [1] GPT-4 [Capabilities of GPT-4 on Medical Challenge Problems] (https://arxiv.org/abs/2303.13375)
|
377 |
+
- [2] Med-PaLM-1 [Large Language Models Encode Clinical Knowledge](https://arxiv.org/abs/2212.13138)
|
378 |
+
- [3] Med-PaLM-2 [Towards Expert-Level Medical Question Answering with Large Language Models](https://arxiv.org/abs/2305.09617)
|
379 |
+
- [4] Gemini-1.0 [Gemini Goes to Med School](https://arxiv.org/abs/2402.07023)
|