Apollo-1
Collection
Multilingual Medicine: English, Chinese, French, Hindi, Spanish, Hindi, Arabic โข 7 items โข Updated โข 1
docker run --gpus all \
--shm-size 32g \
-p 30000:30000 \
-v ~/.cache/huggingface:/root/.cache/huggingface \
--env "HF_TOKEN=<secret>" \
--ipc=host \
lmsysorg/sglang:latest \
python3 -m sglang.launch_server \
--model-path "FreedomIntelligence/Apollo-7B" \
--host 0.0.0.0 \
--port 30000# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "FreedomIntelligence/Apollo-7B",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'Covering English, Chinese, French, Hindi, Spanish, Hindi, Arabic So far
๐จ๐ปโ๐ปGithub โข๐ Paper โข ๐ Demo โข ๐ค ApolloCorpus โข ๐ค XMedBench
ไธญๆ | English
๐ค 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
User:{query}\nAssistant:{response}<|endoftext|>
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
Waiting for Update
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}
}
Install from pip and serve model
# Install SGLang from pip: pip install sglang# Start the SGLang server: python3 -m sglang.launch_server \ --model-path "FreedomIntelligence/Apollo-7B" \ --host 0.0.0.0 \ --port 30000# Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FreedomIntelligence/Apollo-7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'