Update README.md
Browse files
README.md
CHANGED
@@ -6,8 +6,73 @@ metrics:
|
|
6 |
- accuracy
|
7 |
---
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
| **Model** | **CKG** | **CBio** | **CMed** | **MedGen** | **ProMed** | **Ana** | **MedMCQA** | **MedQA** | **PubmedQA** | **AVG** |
|
10 |
|-----------|------------|-----------|-----------|-------------|-------------|---------|-------------|-----------|--------------|---------|
|
11 |
| Jais-30B | 52.1 | 50.7 | 40.5 | 49.0 | 39.3 | 43.0 | 37.0 | 28.8 | 74.6 | 46.1 |
|
12 |
| BiMediX (Arabic) | 60.0 | 54.9 | **55.5** | 58.0 | **58.1** | 49.6 | 46.0 | 40.2 | 76.6 | 55.4 |
|
13 |
-
| **BiMediX (Bilingual)** | **63.8** | **57.6** | 52.6 | **64.0** | 52.9 | **50.4** | **49.1** | **47.3** | **78.4** | **56.5** |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
- accuracy
|
7 |
---
|
8 |
|
9 |
+
---
|
10 |
+
language:
|
11 |
+
- en
|
12 |
+
- ar
|
13 |
+
metrics:
|
14 |
+
- accuracy
|
15 |
+
pipeline_tag: text-generation
|
16 |
+
tags:
|
17 |
+
- medical
|
18 |
+
license: cc-by-nc-sa-4.0
|
19 |
+
---
|
20 |
+
|
21 |
+
## Model Card for BiMediX
|
22 |
+
|
23 |
+
### Model Details
|
24 |
+
- **Name:** BiMediX
|
25 |
+
- **Version:** 1.0
|
26 |
+
- **Type:** Bilingual Medical Mixture of Experts Large Language Model (LLM)
|
27 |
+
- **Languages:** English, Arabic
|
28 |
+
- **Model Architecture:** [Mixtral-8x7B-Instruct-v0.1](https://huggingface.co/mistralai/Mixtral-8x7B-Instruct-v0.1)
|
29 |
+
- **Training Data:** BiMed1.3M, a bilingual dataset with diverse medical interactions.
|
30 |
+
|
31 |
+
### Intended Use
|
32 |
+
- **Primary Use:** Medical interactions in both English and Arabic.
|
33 |
+
- **Capabilities:** MCQA, closed QA and chats.
|
34 |
+
|
35 |
+
## Getting Started
|
36 |
+
|
37 |
+
```python
|
38 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
39 |
+
|
40 |
+
model_id = "BiMediX/BiMediX-Ara"
|
41 |
+
|
42 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
43 |
+
model = AutoModelForCausalLM.from_pretrained(model_id)
|
44 |
+
|
45 |
+
text = "Hello BiMediX! I've been experiencing increased tiredness in the past week."
|
46 |
+
inputs = tokenizer(text, return_tensors="pt")
|
47 |
+
|
48 |
+
outputs = model.generate(**inputs, max_new_tokens=500)
|
49 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
50 |
+
```
|
51 |
+
|
52 |
+
### Training Procedure
|
53 |
+
- **Dataset:** Semi-automated English-to-Arabic translation with human refinement.
|
54 |
+
- **Training Resources:** 632 million healthcare specialized tokens.
|
55 |
+
- **Evaluation:**
|
56 |
+
|
57 |
+
### Model Performance
|
58 |
+
- **Benchmarks:** Outperforms the baseline model and Jais-30B in medical evaluations.
|
59 |
+
|
60 |
| **Model** | **CKG** | **CBio** | **CMed** | **MedGen** | **ProMed** | **Ana** | **MedMCQA** | **MedQA** | **PubmedQA** | **AVG** |
|
61 |
|-----------|------------|-----------|-----------|-------------|-------------|---------|-------------|-----------|--------------|---------|
|
62 |
| Jais-30B | 52.1 | 50.7 | 40.5 | 49.0 | 39.3 | 43.0 | 37.0 | 28.8 | 74.6 | 46.1 |
|
63 |
| BiMediX (Arabic) | 60.0 | 54.9 | **55.5** | 58.0 | **58.1** | 49.6 | 46.0 | 40.2 | 76.6 | 55.4 |
|
64 |
+
| **BiMediX (Bilingual)** | **63.8** | **57.6** | 52.6 | **64.0** | 52.9 | **50.4** | **49.1** | **47.3** | **78.4** | **56.5** |
|
65 |
+
|
66 |
+
### Limitations
|
67 |
+
- Potential issues: hallucinations, toxicity, stereotypes.
|
68 |
+
- Medical diagnoses and recommendations require human evaluation.
|
69 |
+
|
70 |
+
### Safety and Ethical Considerations
|
71 |
+
- **Usage:** Research purposes only.
|
72 |
+
|
73 |
+
### Accessibility
|
74 |
+
- **Availability:** [BiMediX GitHub Repository](https://github.com/mbzuai-oryx/BiMediX).
|
75 |
+
|
76 |
+
### Authors
|
77 |
+
Sara Pieri, Sahal Shaji Mullappilly, Fahad Shahbaz Khan, Rao Muhammad Anwer Salman Khan, Timothy Baldwin, Hisham Cholakkal
|
78 |
+
**Mohamed Bin Zayed University of Artificial Intelligence (MBZUAI)**
|