Multilingual Medical Model Based On Jamba
5
stars
14
commits
Python
primary language
Apr 25, 2024
updated
Multilingual Medical Model Based On Jamba
π Paper β’ π Demo β’ π€ ApolloCorpus β’ π€ XMedBench

π€ Apollo-0.5B β’ π€ Apollo-1.8B β’ π€ Apollo-2B β’ π€ Apollo-6B β’ π€ Apollo-7B β’ π€ Apollo-34B β’ π€ Apollo-72B
π€ MedJamba
π€ Apollo-0.5B-GGUF β’ π€ Apollo-2B-GGUF β’ π€ Apollo-6B-GGUF β’ π€ Apollo-7B-GGUF

Dataset π€ ApolloCorpus

[
"string1",
"string2",
...
]
[
[
"q1",
"a1",
"q2",
"a2",
...
],
...
]
[
[
"q1",
"a1",
"q2",
"a2",
...
],
...
]
Evaluation π€ XMedBench
EN:
ZH:
ES: Head_qa
FR: Frenchmedmcqa
HI: MMLU_HI
AR: MMLU_Ara
Download Dataset for project:
bash 0.download_data.sh
Prepare test and dev for specific model:
bash 1.data_process_test&dev.sh
Prepare train data for specific model (Create tokenized data in advance):
bash 2.data_process_train.sh
Train the model
pip install causal-conv1d>=1.2.0
pip install mamba-ssm
Node 0:
bash ./scripts/3.multinode_train_jamba_rank0.sh
... Node 4:
bash ./scripts/3.multinode_train_jamba_rank4.sh
Evaluate your model: Generate score for benchmark
bash 4.eval.sh
Evaluate your model: Play with your ckpts in bash
python ./src/evaluate/cli_demo.py --model_name='./ckpts/your/path/tfmr'
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}
}
14 commits
Python
86.7%
Shell
11.8%
Jupyter Notebook
1.5%
Multilingual Medical Model Based On Jamba
5
stars
14
commits
Python
primary language
Apr 25, 2024
updated
Multilingual Medical Model Based On Jamba
π Paper β’ π Demo β’ π€ ApolloCorpus β’ π€ XMedBench

π€ Apollo-0.5B β’ π€ Apollo-1.8B β’ π€ Apollo-2B β’ π€ Apollo-6B β’ π€ Apollo-7B β’ π€ Apollo-34B β’ π€ Apollo-72B
π€ MedJamba
π€ Apollo-0.5B-GGUF β’ π€ Apollo-2B-GGUF β’ π€ Apollo-6B-GGUF β’ π€ Apollo-7B-GGUF

Dataset π€ ApolloCorpus

[
"string1",
"string2",
...
]
[
[
"q1",
"a1",
"q2",
"a2",
...
],
...
]
[
[
"q1",
"a1",
"q2",
"a2",
...
],
...
]
Evaluation π€ XMedBench
EN:
ZH:
ES: Head_qa
FR: Frenchmedmcqa
HI: MMLU_HI
AR: MMLU_Ara
Download Dataset for project:
bash 0.download_data.sh
Prepare test and dev for specific model:
bash 1.data_process_test&dev.sh
Prepare train data for specific model (Create tokenized data in advance):
bash 2.data_process_train.sh
Train the model
pip install causal-conv1d>=1.2.0
pip install mamba-ssm
Node 0:
bash ./scripts/3.multinode_train_jamba_rank0.sh
... Node 4:
bash ./scripts/3.multinode_train_jamba_rank4.sh
Evaluate your model: Generate score for benchmark
bash 4.eval.sh
Evaluate your model: Play with your ckpts in bash
python ./src/evaluate/cli_demo.py --model_name='./ckpts/your/path/tfmr'
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}
}
14 commits
Python
86.7%
Shell
11.8%
Jupyter Notebook
1.5%