RichardErkhov commited on
Commit
6c36066
·
verified ·
1 Parent(s): ad1c7fd

uploaded readme

Browse files
Files changed (1) hide show
  1. README.md +173 -0
README.md ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Quantization made by Richard Erkhov.
2
+
3
+ [Github](https://github.com/RichardErkhov)
4
+
5
+ [Discord](https://discord.gg/pvy7H8DZMG)
6
+
7
+ [Request more models](https://github.com/RichardErkhov/quant_request)
8
+
9
+
10
+ Apollo-6B - bnb 4bits
11
+ - Model creator: https://huggingface.co/FreedomIntelligence/
12
+ - Original model: https://huggingface.co/FreedomIntelligence/Apollo-6B/
13
+
14
+
15
+
16
+
17
+ Original model description:
18
+ ---
19
+ license: apache-2.0
20
+ ---
21
+ # Multilingual Medicine: Model, Dataset, Benchmark, Code
22
+
23
+ Covering English, Chinese, French, Hindi, Spanish, Hindi, Arabic So far
24
+
25
+
26
+ <p align="center">
27
+ 👨🏻‍💻<a href="https://github.com/FreedomIntelligence/Apollo" target="_blank">Github</a> •📃 <a href="https://arxiv.org/abs/2403.03640" target="_blank">Paper</a> • 🌐 <a href="https://apollo.llmzoo.com/" target="_blank">Demo</a> • 🤗 <a href="https://huggingface.co/datasets/FreedomIntelligence/ApolloCorpus" target="_blank">ApolloCorpus</a> • 🤗 <a href="https://huggingface.co/datasets/FreedomIntelligence/XMedbench" target="_blank">XMedBench</a>
28
+ <br> <a href="./README_zh.md"> 中文 </a> | <a href="./README.md"> English
29
+ </p>
30
+
31
+ ![Apollo](assets/apollo_medium_final.png)
32
+
33
+ ## 🌈 Update
34
+
35
+ * **[2024.03.07]** [Paper](https://arxiv.org/abs/2403.03640) released.
36
+ * **[2024.02.12]** <a href="https://huggingface.co/datasets/FreedomIntelligence/ApolloCorpus" target="_blank">ApolloCorpus</a> and <a href="https://huggingface.co/datasets/FreedomIntelligence/XMedbench" target="_blank">XMedBench</a> is published!🎉
37
+ * **[2024.01.23]** Apollo repo is published!🎉
38
+
39
+
40
+ ## Results
41
+ 🤗<a href="https://huggingface.co/FreedomIntelligence/Apollo-0.5B" target="_blank">Apollo-0.5B</a> • 🤗 <a href="https://huggingface.co/FreedomIntelligence/Apollo-1.8B" target="_blank">Apollo-1.8B</a> • 🤗 <a href="https://huggingface.co/FreedomIntelligence/Apollo-2B" target="_blank">Apollo-2B</a> • 🤗 <a href="https://huggingface.co/FreedomIntelligence/Apollo-6B" target="_blank">Apollo-6B</a> • 🤗 <a href="https://huggingface.co/FreedomIntelligence/Apollo-7B" target="_blank">Apollo-7B</a>
42
+
43
+ 🤗 <a href="https://huggingface.co/FreedomIntelligence/Apollo-0.5B-GGUF" target="_blank">Apollo-0.5B-GGUF</a> • 🤗 <a href="https://huggingface.co/FreedomIntelligence/Apollo-2B-GGUF" target="_blank">Apollo-2B-GGUF</a> • 🤗 <a href="https://huggingface.co/FreedomIntelligence/Apollo-6B-GGUF" target="_blank">Apollo-6B-GGUF</a> • 🤗 <a href="https://huggingface.co/FreedomIntelligence/Apollo-7B-GGUF" target="_blank">Apollo-7B-GGUF</a>
44
+
45
+
46
+ ![Apollo](assets/result.png)
47
+
48
+
49
+
50
+ ## Usage Format
51
+
52
+ User:{query}\nAssistant:{response}<|endoftext|>
53
+
54
+
55
+ ## Dataset & Evaluation
56
+
57
+ - Dataset
58
+ 🤗 <a href="https://huggingface.co/datasets/FreedomIntelligence/ApolloCorpus" target="_blank">ApolloCorpus</a>
59
+
60
+ <details><summary>Click to expand</summary>
61
+
62
+ ![Apollo](assets/dataset.png)
63
+
64
+ - [Zip File](https://huggingface.co/datasets/FreedomIntelligence/ApolloCorpus/blob/main/ApolloCorpus.zip)
65
+ - [Data category](https://huggingface.co/datasets/FreedomIntelligence/ApolloCorpus/tree/main/train)
66
+ - Pretrain:
67
+ - data item:
68
+ - json_name: {data_source}_{language}_{data_type}.json
69
+ - data_type: medicalBook, medicalGuideline, medicalPaper, medicalWeb(from online forum), medicalWiki
70
+ - language: en(English), zh(chinese), es(spanish), fr(french), hi(Hindi)
71
+ - data_type: qa(generated qa from text)
72
+ - data_type==text: list of string
73
+ ```
74
+ [
75
+ "string1",
76
+ "string2",
77
+ ...
78
+ ]
79
+ ```
80
+ - data_type==qa: list of qa pairs(list of string)
81
+ ```
82
+ [
83
+ [
84
+ "q1",
85
+ "a1",
86
+ "q2",
87
+ "a2",
88
+ ...
89
+ ],
90
+ ...
91
+ ]
92
+ ```
93
+ - SFT:
94
+ - json_name: {data_source}_{language}.json
95
+ - data_type: code, general, math, medicalExam, medicalPatient
96
+ - data item: list of qa pairs(list of string)
97
+ ```
98
+ [
99
+ [
100
+ "q1",
101
+ "a1",
102
+ "q2",
103
+ "a2",
104
+ ...
105
+ ],
106
+ ...
107
+ ]
108
+ ```
109
+
110
+
111
+ </details>
112
+
113
+
114
+
115
+ - Evaluation
116
+ 🤗 <a href="https://huggingface.co/datasets/FreedomIntelligence/XMedbench" target="_blank">XMedBench</a>
117
+
118
+ <details><summary>Click to expand</summary>
119
+
120
+ - EN:
121
+ - [MedQA-USMLE](https://huggingface.co/datasets/GBaker/MedQA-USMLE-4-options)
122
+ - [MedMCQA](https://huggingface.co/datasets/medmcqa/viewer/default/test)
123
+ - [PubMedQA](https://huggingface.co/datasets/pubmed_qa): Because the results fluctuated too much, they were not used in the paper.
124
+ - [MMLU-Medical](https://huggingface.co/datasets/cais/mmlu)
125
+ - Clinical knowledge, Medical genetics, Anatomy, Professional medicine, College biology, College medicine
126
+ - ZH:
127
+ - [MedQA-MCMLE](https://huggingface.co/datasets/bigbio/med_qa/viewer/med_qa_zh_4options_bigbio_qa/test)
128
+ - [CMB-single](https://huggingface.co/datasets/FreedomIntelligence/CMB): Not used in the paper
129
+ - Randomly sample 2,000 multiple-choice questions with single answer.
130
+ - [CMMLU-Medical](https://huggingface.co/datasets/haonan-li/cmmlu)
131
+ - Anatomy, Clinical_knowledge, College_medicine, Genetics, Nutrition, Traditional_chinese_medicine, Virology
132
+ - [CExam](https://github.com/williamliujl/CMExam): Not used in the paper
133
+ - Randomly sample 2,000 multiple-choice questions
134
+
135
+
136
+ - ES: [Head_qa](https://huggingface.co/datasets/head_qa)
137
+ - FR: [Frenchmedmcqa](https://github.com/qanastek/FrenchMedMCQA)
138
+ - HI: [MMLU_HI](https://huggingface.co/datasets/FreedomIntelligence/MMLU_Arabic)
139
+ - Clinical knowledge, Medical genetics, Anatomy, Professional medicine, College biology, College medicine
140
+ - AR: [MMLU_Ara](https://huggingface.co/datasets/FreedomIntelligence/MMLU_Hindi)
141
+ - Clinical knowledge, Medical genetics, Anatomy, Professional medicine, College biology, College medicine
142
+
143
+
144
+ </details>
145
+
146
+
147
+ ## Results reproduction
148
+ <details><summary>Click to expand</summary>
149
+
150
+ **Waiting for Update**
151
+
152
+
153
+
154
+ </details>
155
+
156
+
157
+
158
+
159
+ ## Citation
160
+ Please use the following citation if you intend to use our dataset for training or evaluation:
161
+
162
+ ```
163
+ @misc{wang2024apollo,
164
+ title={Apollo: Lightweight Multilingual Medical LLMs towards Democratizing Medical AI to 6B People},
165
+ author={Xidong Wang and Nuo Chen and Junyin Chen and Yan Hu and Yidong Wang and Xiangbo Wu and Anningzhe Gao and Xiang Wan and Haizhou Li and Benyou Wang},
166
+ year={2024},
167
+ eprint={2403.03640},
168
+ archivePrefix={arXiv},
169
+ primaryClass={cs.CL}
170
+ }
171
+ ```
172
+
173
+