FreedomIntelligence/Apollo-0.5B
Multilingual Medicine: Model, Dataset, Benchmark, Code
Covering English, Chinese, French, Hindi, Spanish, Hindi, Arabic So far
<p align="center"> π¨π»βπ»<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> <br> <a href="./READMEzh.md"> δΈζ </a> | <a href="./README.md"> English </p>
π Update
- [2024.04.25] MedJamba released, train and evaluation code refer to repo.
- [2024.03.07] Paper released.
- [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οΌπ
- [2024.01.23] Apollo repo is publishedοΌπ
Results
π€ <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>
π€ <a href="https://huggingface.co/FreedomIntelligence/Apollo-MedJamba" target="_blank">MedJamba</a>
π€ <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>
Usage Format
User:{query}\nAssistant:{response}<|endoftext|>
Dataset & Evaluation
- Dataset π€ <a href="https://huggingface.co/datasets/FreedomIntelligence/ApolloCorpus" target="_blank">ApolloCorpus</a>
<details><summary>Click to expand</summary>
- Zip File
- Data category
- Pretrain:
- data item:
- jsonname: {datasource}{language}{data_type}.json
- data_type: medicalBook, medicalGuideline, medicalPaper, medicalWeb(from online forum), medicalWiki
- language: en(English), zh(chinese), es(spanish), fr(french), hi(Hindi)
- data_type: qa(generated qa from text)
- data_type==text: list of string
[
"string1",
"string2",
...
]- data_type==qa: list of qa pairs(list of string)
[
[
"q1",
"a1",
"q2",
"a2",
...
],
...
]- SFT:
- jsonname: {datasource}_{language}.json
- data_type: code, general, math, medicalExam, medicalPatient
- data item: list of qa pairs(list of string)
[
[
"q1",
"a1",
"q2",
"a2",
...
],
...
]</details>
- Evaluation π€ <a href="https://huggingface.co/datasets/FreedomIntelligence/XMedbench" target="_blank">XMedBench</a>
<details><summary>Click to expand</summary>
- EN:
- MedQA-USMLE
- MedMCQA
- PubMedQA: Because the results fluctuated too much, they were not used in the paper.
- MMLU-Medical
- Clinical knowledge, Medical genetics, Anatomy, Professional medicine, College biology, College medicine
- ZH:
- MedQA-MCMLE
- CMB-single: Not used in the paper
- Randomly sample 2,000 multiple-choice questions with single answer.
- CMMLU-Medical
- Anatomy, Clinicalknowledge, Collegemedicine, Genetics, Nutrition, Traditionalchinesemedicine, Virology
- CExam: Not used in the paper
- Randomly sample 2,000 multiple-choice questions
- ES: Head_qa
- FR: Frenchmedmcqa
- HI: MMLU_HI
- Clinical knowledge, Medical genetics, Anatomy, Professional medicine, College biology, College medicine
- AR: MMLU_Ara
- Clinical knowledge, Medical genetics, Anatomy, Professional medicine, College biology, College medicine
</details>
Results reproduction
<details><summary>Click to expand</summary>
Waiting for Update
</details>
Citation
Please use the following citation if you intend to use our dataset for training or evaluation:
@misc{wang2024apollo,
title={Apollo: Lightweight Multilingual Medical LLMs towards Democratizing Medical AI to 6B People},
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},
year={2024},
eprint={2403.03640},
archivePrefix={arXiv},
primaryClass={cs.CL}
}