BAAI / AquilaMed-RL

huggingface.co
Total runs: 285
24-hour runs: -5
7-day runs: -14
30-day runs: 4
Model's Last Updated: August 18 2026
text-generation

Introduction of AquilaMed-RL

Model Details of AquilaMed-RL

Introduction

Aquila is a large language model independently developed by BAAI. Building upon the Aquila model, we continued pre-training, SFT (Supervised Fine-Tuning), and RL (Reinforcement Learning) through a multi-stage training process, ultimately resulting in the AquilaMed-RL model. This model possesses professional capabilities in the medical field and demonstrates a significant win rate when evaluated against annotated data using the GPT-4 model. The AquilaMed-RL model can perform medical triage, medication inquiries, and general Q&A. We will open-source the SFT data and RL data required for training the model. Additionally, we will release a technical report detailing our methods in developing the model for the medical field, thereby promoting the development of the open-source community. Besides we use the Qwen's tokenizer and template to train the insdutry model.

Model Details

The training process of the model is described as follows.

pipeline

Dataset

we have released our supervised data, you can find the in huggingface

Evaluation

The subjective and objective scores are as follows。

subjective: Using GPT-4 for evaluation, the win rates of our model compared to the reference answers in the annotated validation dataset are as follows.

Objective:use MMLU / C-EVAL / CMB-exam to evaluate the model

pipeline

usage

Once you have downloaded the model locally, you can use the following code for inference.


import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, AutoConfig


model_dir = "xxx"

tokenizer = AutoTokenizer.from_pretrained(model_dir, trust_remote_code=True)

config = AutoConfig.from_pretrained(model_dir, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_dir, config=config, trust_remote_code=True
)
model.cuda()
model.eval()

template = "<|im_start|>system\nYou are a helpful assistant in medical domain.<|im_end|>\n<|im_start|>user\n{question}<|im_end|>\n<|im_start|>assistant\n"

text = "我肚子疼怎么办?"

item_instruction = template.format(question=text)

inputs = tokenizer(item_instruction, return_tensors="pt").to("cuda")
input_ids = inputs["input_ids"]
prompt_length = len(input_ids[0])
generate_output = model.generate(
    input_ids=input_ids, do_sample=False, max_length=1024, return_dict_in_generate=True
)

response_ids = generate_output.sequences[0][prompt_length:]
predicts = tokenizer.decode(
    response_ids, skip_special_tokens=True, clean_up_tokenization_spaces=True
)

print("predict:", predicts)


"""
predict: 肚子疼可能是多种原因引起的,例如消化不良、胃炎、胃溃疡、胆囊炎、胰腺炎、肠道感染等。如果疼痛持续或加重,或者伴随有呕吐、腹泻、发热等症状,建议尽快就医。如果疼痛轻微,可以尝试以下方法缓解:

1. 饮食调整:避免油腻、辛辣、刺激性食物,多喝水,多吃易消化的食物,如米粥、面条、饼干等。

2. 休息:避免剧烈运动,保持充足的睡眠。

3. 热敷:用热水袋或毛巾敷在肚子上,可以缓解疼痛。

4. 药物:可以尝试一些非处方药,如布洛芬、阿司匹林等,但请务必在医生的指导下使用。

如果疼痛持续或加重,或者伴随有其他症状,建议尽快就医。

希望我的回答对您有所帮助。如果您还有其他问题,欢迎随时向我提问。 
"""
License

Aquila series open-source model is licensed under BAAI Aquila Model Licence Agreement

Citation

If you find our work helpful, feel free to give us a cite.

@misc{zhao2024aquliamed,
      title={Aqulia-Med LLM: Pioneering Full-Process Open-Source Medical Language Models}, 
      author={Lulu Zhao and Weihao Zeng and Xiaofeng Shi and Hua Zhou and Donglin Hao and Yonghua Lin},
      year={2024},
      eprint={2406.12182},
      archivePrefix={arXiv},
      primaryClass={id='cs.CL' full_name='Computation and Language' is_active=True alt_name='cmp-lg' in_archive='cs' is_general=False description='Covers natural language processing. Roughly includes material in ACM Subject Class I.2.7. Note that work on artificial languages (programming languages, logics, formal systems) that does not explicitly address natural-language issues broadly construed (natural-language processing, computational linguistics, speech, text retrieval, etc.) is not appropriate for this area.'}
}

Runs of BAAI AquilaMed-RL on huggingface.co

285
Total runs
-5
24-hour runs
-2
3-day runs
-14
7-day runs
4
30-day runs

More Information About AquilaMed-RL huggingface.co Model

More AquilaMed-RL license Visit here:

https://choosealicense.com/licenses/other

AquilaMed-RL huggingface.co

AquilaMed-RL huggingface.co is an AI model on huggingface.co that provides AquilaMed-RL's model effect (), which can be used instantly with this BAAI AquilaMed-RL model. huggingface.co supports a free trial of the AquilaMed-RL model, and also provides paid use of the AquilaMed-RL. Support call AquilaMed-RL model through api, including Node.js, Python, http.

AquilaMed-RL huggingface.co Url

https://huggingface.co/BAAI/AquilaMed-RL

BAAI AquilaMed-RL online free

AquilaMed-RL huggingface.co is an online trial and call api platform, which integrates AquilaMed-RL's modeling effects, including api services, and provides a free online trial of AquilaMed-RL, you can try AquilaMed-RL online for free by clicking the link below.

BAAI AquilaMed-RL online free url in huggingface.co:

https://huggingface.co/BAAI/AquilaMed-RL

AquilaMed-RL install

AquilaMed-RL is an open source model from GitHub that offers a free installation service, and any user can find AquilaMed-RL on GitHub to install. At the same time, huggingface.co provides the effect of AquilaMed-RL install, users can directly use AquilaMed-RL installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

AquilaMed-RL install url in huggingface.co:

https://huggingface.co/BAAI/AquilaMed-RL

Url of AquilaMed-RL

AquilaMed-RL huggingface.co Url

Provider of AquilaMed-RL huggingface.co

BAAI
ORGANIZATIONS

Other API from BAAI

huggingface.co

Total runs: 59.4M
Run Growth: -4.5M
Growth Rate: -7.49%
Updated:February 22 2024
huggingface.co

Total runs: 32.5M
Run Growth: -5.0M
Growth Rate: -15.35%
Updated:July 03 2024
huggingface.co

Total runs: 10.1M
Run Growth: -2.3M
Growth Rate: -23.29%
Updated:February 21 2024
huggingface.co

Total runs: 9.2M
Run Growth: -1.2M
Growth Rate: -12.91%
Updated:February 21 2024
huggingface.co

Total runs: 2.2M
Run Growth: -115.7K
Growth Rate: -5.35%
Updated:April 17 2024
huggingface.co

Total runs: 453.6K
Run Growth: -340.1K
Growth Rate: -74.97%
Updated:October 12 2023
huggingface.co

Total runs: 369.2K
Run Growth: -818.9K
Growth Rate: -221.78%
Updated:April 02 2024
huggingface.co

Total runs: 190.3K
Run Growth: -33.1K
Growth Rate: -17.38%
Updated:December 13 2023
huggingface.co

Total runs: 116.1K
Run Growth: 61.2K
Growth Rate: 52.69%
Updated:October 12 2023
huggingface.co

Total runs: 44.9K
Run Growth: -21.8K
Growth Rate: -48.61%
Updated:July 13 2026
huggingface.co

Total runs: 39.5K
Run Growth: -15.3K
Growth Rate: -38.86%
Updated:October 12 2023
huggingface.co

Total runs: 36.1K
Run Growth: -12.0K
Growth Rate: -33.09%
Updated:November 14 2023
huggingface.co

Total runs: 33.9K
Run Growth: -3.0K
Growth Rate: -8.67%
Updated:January 15 2025
huggingface.co

Total runs: 18.3K
Run Growth: -35.7K
Growth Rate: -194.84%
Updated:October 12 2023
huggingface.co

Total runs: 13.0K
Run Growth: -2.8K
Growth Rate: -21.26%
Updated:April 16 2025
huggingface.co

Total runs: 10.6K
Run Growth: 10.6K
Growth Rate: 100.00%
Updated:September 16 2026
huggingface.co

Total runs: 4.7K
Run Growth: -6.2K
Growth Rate: -132.84%
Updated:October 12 2023
huggingface.co

Total runs: 3.5K
Run Growth: -699
Growth Rate: -18.51%
Updated:May 20 2025
huggingface.co

Total runs: 2.3K
Run Growth: -3.2K
Growth Rate: -141.12%
Updated:April 19 2024
huggingface.co

Total runs: 1.9K
Run Growth: 554
Growth Rate: 27.84%
Updated:April 10 2026
huggingface.co

Total runs: 1.8K
Run Growth: 1.8K
Growth Rate: 100.00%
Updated:October 01 2026
huggingface.co

Total runs: 1.7K
Run Growth: -104
Growth Rate: -6.17%
Updated:January 15 2025
huggingface.co

Total runs: 1.4K
Run Growth: -2.0K
Growth Rate: -136.70%
Updated:September 11 2026
huggingface.co

Total runs: 1.4K
Run Growth: 154
Growth Rate: 9.61%
Updated:April 10 2026
huggingface.co

Total runs: 1.4K
Run Growth: -459
Growth Rate: -32.65%
Updated:December 31 2022
huggingface.co

Total runs: 1.4K
Run Growth: -6
Growth Rate: -0.44%
Updated:November 28 2024
huggingface.co

Total runs: 772
Run Growth: -226
Growth Rate: -29.27%
Updated:February 07 2024
huggingface.co

Total runs: 607
Run Growth: 501
Growth Rate: 98.24%
Updated:October 13 2025
huggingface.co

Total runs: 508
Run Growth: -86
Growth Rate: -16.93%
Updated:July 13 2026
huggingface.co

Total runs: 490
Run Growth: 76
Growth Rate: 15.51%
Updated:April 18 2023
huggingface.co

Total runs: 484
Run Growth: 290
Growth Rate: 59.92%
Updated:April 02 2024
huggingface.co

Total runs: 469
Run Growth: -280
Growth Rate: -59.45%
Updated:May 23 2025
huggingface.co

Total runs: 441
Run Growth: 114
Growth Rate: 25.85%
Updated:July 13 2026
huggingface.co

Total runs: 419
Run Growth: -60
Growth Rate: -14.32%
Updated:July 13 2026
huggingface.co

Total runs: 411
Run Growth: 123
Growth Rate: 29.93%
Updated:March 07 2024
huggingface.co

Total runs: 407
Run Growth: 11
Growth Rate: 2.70%
Updated:October 27 2023
huggingface.co

Total runs: 400
Run Growth: 36
Growth Rate: 9.14%
Updated:December 25 2025
huggingface.co

Total runs: 396
Run Growth: -646
Growth Rate: -160.70%
Updated:October 24 2024
huggingface.co

Total runs: 389
Run Growth: 49
Growth Rate: 11.81%
Updated:August 11 2026
huggingface.co

Total runs: 386
Run Growth: -853
Growth Rate: -226.26%
Updated:October 23 2024
huggingface.co

Total runs: 367
Run Growth: 176
Growth Rate: 47.83%
Updated:July 13 2026
huggingface.co

Total runs: 358
Run Growth: -30
Growth Rate: -8.29%
Updated:August 11 2026
huggingface.co

Total runs: 304
Run Growth: -125
Growth Rate: -37.20%
Updated:April 10 2026
huggingface.co

Total runs: 282
Run Growth: -60
Growth Rate: -21.28%
Updated:July 13 2026
huggingface.co

Total runs: 267
Run Growth: 63
Growth Rate: 23.51%
Updated:June 06 2025
huggingface.co

Total runs: 260
Run Growth: 52
Growth Rate: 20.00%
Updated:July 13 2026
huggingface.co

Total runs: 259
Run Growth: 79
Growth Rate: 30.38%
Updated:July 13 2026
huggingface.co

Total runs: 258
Run Growth: -33
Growth Rate: -12.79%
Updated:July 13 2026
huggingface.co

Total runs: 243
Run Growth: 107
Growth Rate: 44.03%
Updated:November 28 2023
huggingface.co

Total runs: 236
Run Growth: -53
Growth Rate: -22.27%
Updated:December 25 2025
huggingface.co

Total runs: 221
Run Growth: 10
Growth Rate: 4.48%
Updated:July 17 2026
huggingface.co

Total runs: 219
Run Growth: 99
Growth Rate: 45.00%
Updated:July 13 2026
huggingface.co

Total runs: 217
Run Growth: 69
Growth Rate: 31.80%
Updated:July 13 2026
huggingface.co

Total runs: 206
Run Growth: -1.0K
Growth Rate: -504.37%
Updated:September 11 2026
huggingface.co

Total runs: 197
Run Growth: 30
Growth Rate: 15.23%
Updated:June 24 2024
huggingface.co

Total runs: 192
Run Growth: 27
Growth Rate: 14.06%
Updated:May 13 2024
huggingface.co

Total runs: 192
Run Growth: -17
Growth Rate: -9.24%
Updated:October 23 2024
huggingface.co

Total runs: 192
Run Growth: 31
Growth Rate: 16.15%
Updated:May 13 2024
huggingface.co

Total runs: 191
Run Growth: 22
Growth Rate: 11.52%
Updated:May 13 2024
huggingface.co

Total runs: 188
Run Growth: 47
Growth Rate: 25.00%
Updated:June 24 2024
huggingface.co

Total runs: 186
Run Growth: 24
Growth Rate: 12.90%
Updated:May 31 2024
huggingface.co

Total runs: 185
Run Growth: 50
Growth Rate: 27.03%
Updated:December 21 2023
huggingface.co

Total runs: 179
Run Growth: 40
Growth Rate: 22.35%
Updated:December 21 2023
huggingface.co

Total runs: 178
Run Growth: 22
Growth Rate: 12.36%
Updated:September 05 2026