RichardErkhov commited on
Commit
053dad4
Β·
verified Β·
1 Parent(s): c73eed1

uploaded readme

Browse files
Files changed (1) hide show
  1. README.md +207 -0
README.md ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-0.5B - EXL2
11
+ - Model creator: https://huggingface.co/FreedomIntelligence/
12
+ - Original model: https://huggingface.co/FreedomIntelligence/Apollo-0.5B/
13
+
14
+
15
+ ## Available sizes
16
+
17
+ | Branch | Bits | Description |
18
+ | ----- | ---- | ------- | ------ | ------ | ------ | ------ | ------------ |
19
+ | [8_0](https://huggingface.co/FreedomIntelligence_-_Apollo-0.5B-exl2/tree/8_0) | 8.0 | Maximum quality that ExLlamaV2 can produce, near unquantized performance. |
20
+ | [6_5](https://huggingface.co/FreedomIntelligence_-_Apollo-0.5B-exl2/tree/6_5) | 6.5 | Very similar to 8.0, good tradeoff of size vs performance, **recommended**. |
21
+ | [5_0](https://huggingface.co/FreedomIntelligence_-_Apollo-0.5B-exl2/tree/5_0) | 5.0 | Slightly lower quality vs 6.5, but usable on 8GB cards. |
22
+ | [4_25](https://huggingface.co/FreedomIntelligence_-_Apollo-0.5B-exl2/tree/4_25) | 4.25 | GPTQ equivalent bits per weight, slightly higher quality. |
23
+ | [3_5](https://huggingface.co/FreedomIntelligence_-_Apollo-0.5B-exl2/tree/3_5) | 3.5 | Lower quality, only use if you have to. |
24
+ ## Download instructions
25
+ With git:
26
+ ```shell
27
+ git clone --single-branch --branch 6_5 https://huggingface.co/FreedomIntelligence_-_Apollo-0.5B-exl2 Apollo-0.5B-6_5
28
+ ```
29
+ With huggingface hub:
30
+ ```shell
31
+ pip3 install huggingface-hub
32
+ ```
33
+ To download a specific branch, use the `--revision` parameter. For example, to download the 6.5 bpw branch:
34
+ Linux:
35
+ ```shell
36
+ huggingface-cli download FreedomIntelligence_-_Apollo-0.5B-exl2 --revision 6_5 --local-dir Apollo-0.5B-6_5 --local-dir-use-symlinks False
37
+ ```
38
+ Windows (which apparently doesn't like _ in folders sometimes?):
39
+
40
+ ```shell
41
+ huggingface-cli download FreedomIntelligence_-_Apollo-0.5B-exl2 --revision 6_5 --local-dir Apollo-0.5B-6.5 --local-dir-use-symlinks False
42
+ ```
43
+
44
+
45
+
46
+
47
+ Original model description:
48
+ ---
49
+ license: apache-2.0
50
+ ---
51
+ # Multilingual Medicine: Model, Dataset, Benchmark, Code
52
+
53
+ Covering English, Chinese, French, Hindi, Spanish, Hindi, Arabic So far
54
+
55
+
56
+ <p align="center">
57
+ πŸ‘¨πŸ»β€πŸ’»<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>
58
+ <br> <a href="./README_zh.md"> δΈ­ζ–‡ </a> | <a href="./README.md"> English
59
+ </p>
60
+
61
+ ![Apollo](assets/apollo_medium_final.png)
62
+
63
+ ## 🌈 Update
64
+
65
+ * **[2024.04.25]** [MedJamba](https://huggingface.co/FreedomIntelligence/Apollo-MedJamba) released, train and evaluation code refer to [repo](https://github.com/FreedomIntelligence/MedJamba).
66
+ * **[2024.03.07]** [Paper](https://arxiv.org/abs/2403.03640) released.
67
+ * **[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οΌπŸŽ‰
68
+ * **[2024.01.23]** Apollo repo is publishedοΌπŸŽ‰
69
+
70
+
71
+ ## Results
72
+ πŸ€— <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> β€’ πŸ€— <a href="https://huggingface.co/FreedomIntelligence/Apollo-34B" target="_blank">Apollo-34B</a> β€’ πŸ€— <a href="https://huggingface.co/FreedomIntelligence/Apollo-72B" target="_blank">Apollo-72B</a>
73
+
74
+ πŸ€— <a href="https://huggingface.co/FreedomIntelligence/Apollo-MedJamba" target="_blank">MedJamba</a>
75
+
76
+ πŸ€— <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>
77
+
78
+
79
+
80
+ ![Apollo](assets/result.png)
81
+
82
+
83
+ ## Usage Format
84
+
85
+ User:{query}\nAssistant:{response}<|endoftext|>
86
+
87
+
88
+ ## Dataset & Evaluation
89
+
90
+ - Dataset
91
+ πŸ€— <a href="https://huggingface.co/datasets/FreedomIntelligence/ApolloCorpus" target="_blank">ApolloCorpus</a>
92
+
93
+ <details><summary>Click to expand</summary>
94
+
95
+ ![Apollo](assets/dataset.png)
96
+
97
+ - [Zip File](https://huggingface.co/datasets/FreedomIntelligence/ApolloCorpus/blob/main/ApolloCorpus.zip)
98
+ - [Data category](https://huggingface.co/datasets/FreedomIntelligence/ApolloCorpus/tree/main/train)
99
+ - Pretrain:
100
+ - data item:
101
+ - json_name: {data_source}_{language}_{data_type}.json
102
+ - data_type: medicalBook, medicalGuideline, medicalPaper, medicalWeb(from online forum), medicalWiki
103
+ - language: en(English), zh(chinese), es(spanish), fr(french), hi(Hindi)
104
+ - data_type: qa(generated qa from text)
105
+ - data_type==text: list of string
106
+ ```
107
+ [
108
+ "string1",
109
+ "string2",
110
+ ...
111
+ ]
112
+ ```
113
+ - data_type==qa: list of qa pairs(list of string)
114
+ ```
115
+ [
116
+ [
117
+ "q1",
118
+ "a1",
119
+ "q2",
120
+ "a2",
121
+ ...
122
+ ],
123
+ ...
124
+ ]
125
+ ```
126
+ - SFT:
127
+ - json_name: {data_source}_{language}.json
128
+ - data_type: code, general, math, medicalExam, medicalPatient
129
+ - data item: list of qa pairs(list of string)
130
+ ```
131
+ [
132
+ [
133
+ "q1",
134
+ "a1",
135
+ "q2",
136
+ "a2",
137
+ ...
138
+ ],
139
+ ...
140
+ ]
141
+ ```
142
+
143
+
144
+ </details>
145
+
146
+
147
+
148
+ - Evaluation
149
+ πŸ€— <a href="https://huggingface.co/datasets/FreedomIntelligence/XMedbench" target="_blank">XMedBench</a>
150
+
151
+ <details><summary>Click to expand</summary>
152
+
153
+ - EN:
154
+ - [MedQA-USMLE](https://huggingface.co/datasets/GBaker/MedQA-USMLE-4-options)
155
+ - [MedMCQA](https://huggingface.co/datasets/medmcqa/viewer/default/test)
156
+ - [PubMedQA](https://huggingface.co/datasets/pubmed_qa): Because the results fluctuated too much, they were not used in the paper.
157
+ - [MMLU-Medical](https://huggingface.co/datasets/cais/mmlu)
158
+ - Clinical knowledge, Medical genetics, Anatomy, Professional medicine, College biology, College medicine
159
+ - ZH:
160
+ - [MedQA-MCMLE](https://huggingface.co/datasets/bigbio/med_qa/viewer/med_qa_zh_4options_bigbio_qa/test)
161
+ - [CMB-single](https://huggingface.co/datasets/FreedomIntelligence/CMB): Not used in the paper
162
+ - Randomly sample 2,000 multiple-choice questions with single answer.
163
+ - [CMMLU-Medical](https://huggingface.co/datasets/haonan-li/cmmlu)
164
+ - Anatomy, Clinical_knowledge, College_medicine, Genetics, Nutrition, Traditional_chinese_medicine, Virology
165
+ - [CExam](https://github.com/williamliujl/CMExam): Not used in the paper
166
+ - Randomly sample 2,000 multiple-choice questions
167
+
168
+
169
+ - ES: [Head_qa](https://huggingface.co/datasets/head_qa)
170
+ - FR: [Frenchmedmcqa](https://github.com/qanastek/FrenchMedMCQA)
171
+ - HI: [MMLU_HI](https://huggingface.co/datasets/FreedomIntelligence/MMLU_Arabic)
172
+ - Clinical knowledge, Medical genetics, Anatomy, Professional medicine, College biology, College medicine
173
+ - AR: [MMLU_Ara](https://huggingface.co/datasets/FreedomIntelligence/MMLU_Hindi)
174
+ - Clinical knowledge, Medical genetics, Anatomy, Professional medicine, College biology, College medicine
175
+
176
+
177
+ </details>
178
+
179
+
180
+ ## Results reproduction
181
+ <details><summary>Click to expand</summary>
182
+
183
+ **Waiting for Update**
184
+
185
+
186
+
187
+ </details>
188
+
189
+
190
+
191
+
192
+ ## Citation
193
+ Please use the following citation if you intend to use our dataset for training or evaluation:
194
+
195
+ ```
196
+ @misc{wang2024apollo,
197
+ title={Apollo: Lightweight Multilingual Medical LLMs towards Democratizing Medical AI to 6B People},
198
+ 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},
199
+ year={2024},
200
+ eprint={2403.03640},
201
+ archivePrefix={arXiv},
202
+ primaryClass={cs.CL}
203
+ }
204
+ ```
205
+
206
+
207
+