Downloads · 30 days
573
0% of all-time downloads
baichuan-inc/Baichuan-M1-14B-Instruct
Baichuan-M1-14B-Instruct is a machine learning model from baichuan-inc. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
<div align="center" <h1 Baichuan-M1-14B-Instruct </h1 </div
Downloads · 30 days
573
0% of all-time downloads
All-time downloads
372K
Public
Parameters
14.5B
28.9 GB on disk
Likes
67
Public
Click a slice to open those files.
.safetensors28.9 GB · 100%
From the Hugging Face model README
<a name="intro"></a>
Baichuan-14B-M1 is the industry's first open-source large language model developed from scratch by Baichuan Intelligence, specifically optimized for medical scenarios. While excelling in general capabilities, it demonstrates powerful performance in the medical field. It achieves results comparable to models of similar size in most general benchmark evaluations, while outperforming models five times larger in medical scenarios. Below are the core features of the model:
<a name="data"></a>
We conducted meticulous data collection and synthesis for the medical field, including:
<a name="structure"></a>
<a name="training"></a>
We innovatively adopted a multi-stage curriculum learning and alignment optimization approach, systematically enhancing model capabilities through the following two parts:
Training is divided into three stages, progressively optimizing the model's general and medical domain capabilities:
Enhancing model generation quality, logical reasoning, and user preference alignment through reinforcement learning and pairwise data optimization:
This combined approach of multi-stage and alignment optimization enables the model to achieve exceptional performance in both general and medical domain capabilities.
<a name="benchmark"></a>
Our evaluation covers all mainstream benchmarks, achieving excellent metrics in both open-source and closed-source evaluations, demonstrating outstanding medical scenario capabilities while maintaining strong general performance.
<table style="border: 1px solid #000; border-collapse: collapse; width: 100%; text-align: center;"> <thead> <tr> <th>Category</th> <th>Benchmark</th> <th style="font-size:15px;">Baichuan-M1-14B-Instruct</th> <th style="font-size:15px;">Qwen2.5-14B-Instruct</th> <th style="font-size:15px;">Qwen2.5-72B-Instruct</th> <th style="font-size:15px;">claude-3.5-sonnet-20241022</th> <th style="font-size:15px;">gpt-4o</th> </tr> </thead> <tbody> <tr> <td colspan="2" style="text-align: center;">Average Score</td> <td>72.23</td> <td>65.39</td> <td>70.51</td> <td>74.85</td> <td>75.00</td> </tr> <tr> <td rowspan="7" style="vertical-align: middle;">Clinical Practice</td> <td style="text-align: left;">cmbclin</td> <td>77.40</td> <td>71.51</td> <td>75.36</td> <td>78.37</td> <td>75.36</td> </tr> <tr> <td style="text-align: left;">clinicalbench_diag</td> <td>70.90</td> <td>68.85</td> <td>72.23</td> <td>75.00</td> <td>73.05</td> </tr> <tr> <td style="text-align: left;">clinicalbench_hos</td> <td>70.05</td> <td>68.83</td> <td>70.53</td> <td>65.58</td> <td>69.38</td> </tr> <tr> <td style="text-align: left;">clinicalbench_treat</td> <td>56.38</td> <td>55.03</td> <td>57.30</td> <td>64.03</td> <td>59.35</td> </tr> <tr> <td style="text-align: left;">rarearena_rdc</td> <td>81.80</td> <td>66.40</td> <td>76.20</td> <td>89.60</td> <td>88.40</td> </tr> <tr> <td style="text-align: left;">rarearena_rds</td> <td>54.00</td> <td>42.60</td> <td>49.80</td> <td>59.80</td> <td>57.20</td> </tr> <tr> <td style="text-align: left;">rarebench</td> <td>59.60</td> <td>52.80</td> <td>60.60</td> <td>65.30</td> <td>62.80</td> </tr> <tr> <td rowspan="10" style="vertical-align: middle;">Exams</td> <td style="text-align: left;">cmexam</td> <td>80.10</td> <td>77.70</td> <td>82.70</td> <td>77.50</td> <td>78.00</td> </tr> <tr> <td style="text-align: left;">Pediatric Qualification Exam</td> <td>78.48</td> <td>74.68</td> <td>84.81</td> <td>76.58</td> <td>78.48</td> </tr> <tr> <td style="text-align: left;">Internal Medicine Qualification Exam</td> <td>83.42</td> <td>86.10</td> <td>87.17</td> <td>87.70</td> <td>83.42</td> </tr> <tr> <td style="text-align: left;">General Practice Qualification Exam</td> <td>87.07</td> <td>88.44</td> <td>88.44</td> <td>81.63</td> <td>84.35</td> </tr> <tr> <td style="text-align: left;">USMLE</td> <td>78.00</td> <td>67.20</td> <td>76.70</td> <td>85.90</td> <td>87.10</td> </tr> <tr> <td style="text-align: left;">medbullets</td> <td>66.88</td> <td>54.22</td> <td>64.29</td> <td>72.40</td> <td>75.97</td> </tr> <tr> <td style="text-align: left;">mediq</td> <td>83.40</td> <td>66.80</td> <td>79.90</td> <td>88.80</td> <td>90.20</td> </tr> <tr> <td style="text-align: left;">nejmqa</td> <td>49.75</td> <td>45.69</td> <td>50.76</td> <td>69.54</td> <td>54.31</td> </tr> <tr> <td style="text-align: left;">pubmedqa</td> <td>75.20</td> <td>76.40</td> <td>75.60</td> <td>77.00</td> <td>77.60</td> </tr> <tr> <td style="text-align: left;">redisqa</td> <td>74.50</td> <td>69.70</td> <td>75.00</td> <td>83.20</td> <td>82.80</td> </tr> <tr> <td rowspan="5" style="vertical-align: middle;">Basic Capabilities</td> <td style="text-align: left;">mednli_dis</td> <td>80.40</td> <td>68.90</td> <td>74.90</td> <td>58.30</td> <td>79.80</td> </tr> <tr> <td style="text-align: left;">medcalc</td> <td>56.00</td> <td>31.40</td> <td>37.90</td> <td>52.60</td> <td>49.00</td> </tr> <tr> <td style="text-align: left;">MMLU-anatomy</td> <td>80.00</td> <td>67.41</td> <td>71.11</td> <td>86.67</td> <td>91.11</td> </tr> <tr> <td style="text-align: left;">MMLU-virology</td> <td>54.82</td> <td>56.02</td> <td>53.01</td> <td>54.22</td> <td>57.23</td> </tr> <tr> <td style="text-align: left;">MMLU-genetics</td> <td>91.00</td> <td>82.00</td> <td>87.00</td> <td>97.00</td> <td>95.00</td> </tr> </tbody> </table><a name="quick"></a>
We recommend using the latest version of the Transformers library (at least 4.47.0). The following code snippet demonstrates how to use the Baichuan-M1-14B-Instruct model:
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
# 1. Load pre-trained model and tokenizer
model_name = "baichuan-inc/Baichuan-M1-14B-Instruct"
tokenizer = AutoTokenizer.from_pretrained(model_name,trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(model_name,trust_remote_code=True,torch_dtype = torch.bfloat16).cuda()
# 2. Input prompt text
prompt = "May I ask you some questions about medical knowledge?"
# 3. Encode the input text for the model
messages = [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
# 4. Generate text
generated_ids = model.generate(
**model_inputs,
max_new_tokens=512
)
generated_ids = [
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]
# 5. Decode the generated text
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
# 6. Output the result
print("Generated text:")
print(response)
<a name="declare"></a>
The use of the model must comply with 《Baichuan-M1-14B模型社区许可协议》.
The development team of Baichuan has not developed any commercial applications based on this model. All users must comply with laws and regulations and must not use the model for harmful national security or illegal purposes.
<a name="reference"></a>
If you need to cite our work, please use the following reference:
@article{baichuan-m1-2025,
title={Baichuan-M1: Pushing the Medical Capability of Large Language Models},
author={Bingning Wang, Haizhou Zhao, Huozhi Zhou, Liang Song, Mingyu Xu, Wei Cheng, Xiangrong Zeng, Yupeng Zhang, Yuqi Huo, Zecheng Wang, Zhengyun Zhao and others},
journal={arXiv preprint arXiv:2502.12671},
year={2025}
}