Downloads · 30 days
220
15% of all-time downloads
baichuan-inc/Baichuan-M3-235B-FP8
Baichuan-M3-235B-FP8 is a text generation model from baichuan-inc. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
220
15% of all-time downloads
All-time downloads
1.5K
Public
Parameters
235B
238 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors238 GB · 100%
How the weights are stored.
F8_E4M3234B · 99%
From the Hugging Face model README
From Inquiry to Decision: Building Trustworthy Medical AI
🏥 Experience AI-Powered Medical Inquiry: ying.ai
</div>Baichuan-M3 is Baichuan AI's new-generation medical-enhanced large language model, a major milestone following Baichuan-M2.
In contrast to prior approaches that primarily focus on static question answering or superficial role-playing, Baichuan-M3 is trained to explicitly model the clinical decision-making process, aiming to improve usability and reliability in real-world medical practice. Rather than merely producing "plausible-sounding answers" or high-frequency vague recommendations like "you should see a doctor soon," the model is trained to proactively acquire critical clinical information, construct coherent medical reasoning pathways, and systematically constrain hallucination-prone behaviors.
HealthBench is OpenAI's authoritative medical benchmark, constructed by 262 practicing physicians from 60 countries, comprising 5,000 high-fidelity multi-turn clinical conversations.
<div align="center"> <img src="https://raw.githubusercontent.com/baichuan-inc/Baichuan-M3-235B/main/images/hb_metrics.png" alt="HealthBench Performance" width="80%"> </div>Compared to Baichuan-M2, Baichuan-M3 improves by 28 percentage points on HealthBench-Hard, reaching 44.4 and surpassing GPT-5.2. It also ranks first on the HealthBench Total leaderboard.
For hallucination evaluation, we decompose long-form responses into fine-grained, verifiable atomic medical claims and validate each against authoritative medical evidence. Even in a tool-free setting, Baichuan-M3 achieves lower hallucination rate than GPT-5.2.
SCAN-bench is our end-to-end clinical decision-making benchmark that simulates the complete clinical workflow from patient encounter to final diagnosis, evaluating models' high-fidelity clinical inquiry capabilities through three stations: History Taking, Ancillary Investigations, and Final Diagnosis.
<div align="center"> <img src="https://raw.githubusercontent.com/baichuan-inc/Baichuan-M3-235B/main/images/scan_metrics.png" alt="SCAN-bench Performance" width="80%"> </div>Baichuan-M3 ranks first across all three core dimensions, outperforming the second-best model by 12.4 points in Clinical Inquiry.
📢 The SCAN-bench will be open-sourced soon. Stay tuned.
📖 For detailed technical information, please refer to: Tech Blog
To address reward sparsity and credit assignment challenges in long clinical interactions, we propose SPAR (Step-Penalized Advantage with Relative baseline): it decomposes clinical workflows into four stages—history taking, differential diagnosis, laboratory testing, and final diagnosis—each with independent rewards, combined with process-level rewards for precise credit assignment, driving the model to construct auditable and complete decision logic.
By integrating factual verification directly into the RL loop, we build an online hallucination detection module that validates model-generated medical claims against authoritative medical evidence in real-time, supported by efficient caching mechanisms for online RL training. A dynamic reward aggregation strategy adaptively balances task learning and factual constraints based on the model's capability stage, significantly enhancing medical factual reliability without sacrificing reasoning depth.
Adopts a three-stage multi-expert fusion training paradigm (Domain-Specific RL → Offline Distillation → MOPD), combined with Gated Eagle3 speculative decoding (96% speedup) and W4 quantization (only 26% memory) for efficient deployment.
from transformers import AutoTokenizer, AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("baichuan-inc/Baichuan-M3-235B-FP8", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("baichuan-inc/Baichuan-M3-235B-FP8")
messages = [{"role": "user", "content": "I've been having headaches lately, especially worse in the afternoon. What should I do?"}]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
thinking_mode='on'
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(
**model_inputs,
max_new_tokens=32768,
temperature=0.6
)
response = tokenizer.decode(generated_ids[0][len(model_inputs.input_ids[0]):], skip_special_tokens=True)
print(response)
Create an OpenAI-compatible API endpoint using sglang>=0.5.7:
# SGLang
python -m sglang.launch_server --model-path baichuan-inc/Baichuan-M3-235B-FP8 --tp 4 --reasoning-parser qwen3
(sglang>=0.5.7)cp -f /path/to/draft/llama_eagle3.py /sgl-workspace/sglang/python/sglang/srt/models/
python3 -m sglang.launch_server \
--model-path baichuan-inc/Baichuan-M3-235B-FP8 \
--tensor-parallel-size 4 \
--trust-remote-code \
--mem-fraction-static 0.8 \
--host 0.0.0.0 \
--port 80 \
--speculative-algorithm EAGLE3 \
--speculative-draft-model-path baichuan-inc/Baichuan-M3-235B-FP8/draft \
--speculative-num-steps 5 \
--speculative-eagle-topk 8 \
--speculative-num-draft-tokens 32 \
--reasoning-parser qwen3
Licensed under the Apache License 2.0. Research and commercial use permitted.
Thank you to the open-source community. We commit to continuous contribution and advancement of healthcare AI.
Advancing Medical AI from "Answering Correctly" to "Supporting Decisions"
</div>@article{Baichuan-M3 Technical Report,
title={Baichuan-M3: Modeling Clinical Inquiry for Reliable Medical Decision-Making},
author={Baichuan-M3 Team: Chengfeng Dou, Fan Yang, Fei Li, Jiyuan Jia, Qiang Ju, Shuai Wang, Tianpeng Li, Xiangrong Zeng, Yijie Zhou, Hongda Zhang, Jinyang Tai, Linzhuang Sun, Peidong Guo, Yichuan Mo, Xiaochuan Wang, Hengfu Cui, Zhishou Zhang},
journal={arXiv preprint arXiv:2602.06570},
year={2026}
}