baichuan-inc/Baichuan-M2-32B-GPTQ-Int4

Model

12

stars

10

commits

1

linked in READMEs

Sep 3, 2025

updated

4-bit
chat
conversational
endpoints_compatible
gptq
qwen2
safetensors
text-generation
text-generation-inference
transformers
Browse cluster: Qwen Large Language Models β†’

README

Baichuan-M2-32B-GPTQ-Int4

License Hugging Face M2 GPTQ-4bit Huawei Ascend 8bit

🌟 Model Overview

Baichuan-M2-32B is Baichuan AI's medical-enhanced reasoning model, the second medical model released by Baichuan. Designed for real-world medical reasoning tasks, this model builds upon Qwen2.5-32B with an innovative Large Verifier System. Through domain-specific fine-tuning on real-world medical questions, it achieves breakthrough medical performance while maintaining strong general capabilities.

Model Features:

Baichuan-M2 incorporates three core technical innovations: First, through the Large Verifier System, it combines medical scenario characteristics to design a comprehensive medical verification framework, including patient simulators and multi-dimensional verification mechanisms; second, through medical domain adaptation enhancement via Mid-Training, it achieves lightweight and efficient medical domain adaptation while preserving general capabilities; finally, it employs a multi-stage reinforcement learning strategy, decomposing complex RL tasks into hierarchical training stages to progressively enhance the model's medical knowledge, reasoning, and patient interaction capabilities.

Core Highlights:

  • πŸ† World's Leading Open-Source Medical Model: Outperforms all open-source models and many proprietary models on HealthBench, achieving medical capabilities closest to GPT-5
  • 🧠 Doctor-Thinking Alignment: Trained on real clinical cases and patient simulators, with clinical diagnostic thinking and robust patient interaction capabilities
  • ⚑ Efficient Deployment: Supports 4-bit quantization for single-RTX4090 deployment, with 58.5% higher token throughput in MTP version for single-user scenarios

πŸ“Š Performance Metrics

HealthBench Scores

Model NameHealthBenchHealthBench-HardHealthBench-Consensus
Baichuan-M260.134.791.5
gpt-oss-120b57.63090
Qwen3-235B-A22B-Thinking-250755.225.990.6
Deepseek-R1-052853.622.691.5
GLM-4.547.818.785.3
Kimi-K24310.790.9
gpt-oss-20b42.510.882.6

General Performance

BenchmarkBaichuan-M2-32BQwen3-32B (Thinking)
AIME2483.481.4
AIME2572.972.9
Arena-Hard-v2.045.844.5
CFBench77.675.7
WritingBench8.567.90

Note: AIME uses max_tokens=64k, others use 32k; temperature=0.6 for all tests.

πŸ”§ Technical Features

πŸ“— Technical Blog: Blog - Baichuan-M2

πŸ“‘ Technical Report: Arxiv - Baichuan-M2

Large Verifier System

  • Patient Simulator: Virtual patient system based on real clinical cases
  • Multi-Dimensional Verification: 8 dimensions including medical accuracy, response completeness, and follow-up awareness
  • Dynamic Scoring: Real-time generation of adaptive evaluation criteria for complex clinical scenarios

Medical Domain Adaptation

  • Mid-Training: Medical knowledge injection while preserving general capabilities
  • Reinforcement Learning: Multi-stage RL strategy optimization
  • General-Specialized Balance: Carefully balanced medical, general, and mathematical composite training data

βš™οΈ Quick Start

For deployment, you can use sglang>=0.4.6.post1 or vllm>=0.9.0 or to create an OpenAI-compatible API endpoint:

  • SGLang:
    python -m sglang.launch_server --model-path baichuan-inc/Baichuan-M2-32B-GPTQ-Int4 --reasoning-parser qwen3
    

To turn on kv cache FP8 quantization: shell python -m sglang.launch_server --model-path baichuan-inc/Baichuan-M2-32B-GPTQ-Int4 --reasoning-parser qwen3 --kv-cache-dtype fp8_e4m3 --attention-backend flashinfer

  • vLLM:
    vllm serve baichuan-inc/Baichuan-M2-32B-GPTQ-Int4  --reasoning-parser qwen3
    

To turn on kv cache FP8 quantization: shell vllm serve baichuan-inc/Baichuan-M2-32B-GPTQ-Int4 --reasoning-parser qwen3 --kv_cache_dtype fp8_e4m3

MTP inference with SGLang

  1. Replace the qwen2.py file in the sglang installation directory with draft/qwen2.py.
  2. Launch sglang:
python3 -m sglang.launch_server \
--model Baichuan-M2-32B-GPTQ-Int4 \
--speculative-algorithm EAGLE3 \
--speculative-draft-model-path Baichuan-M2-32B-GPTQ-Int4/draft \
--speculative-num-steps 6 \
--speculative-eagle-topk 10 \
--speculative-num-draft-tokens 32 \
--mem-fraction 0.9 \
--cuda-graph-max-bs 2 \
--reasoning-parser qwen3 \
--dtype bfloat16

⚠️ Usage Notices

  1. Medical Disclaimer: For research and reference only; cannot replace professional medical diagnosis or treatment
  2. Intended Use Cases: Medical education, health consultation, clinical decision support
  3. Safe Use: Recommended under guidance of medical professionals

πŸ“„ License

Licensed under the Apache License 2.0. Research and commercial use permitted.

🀝 Acknowledgements

  • Base Model: Qwen2.5-32B
  • Training Framework: verl
  • Inference Engines: vLLM, SGLang
  • Quantization: AutoRound, GPTQ

Thank you to the open-source community. We commit to continuous contribution and advancement of healthcare AI.

πŸ“ž Contact Us


Empowering Healthcare with AI, Making Health Accessible to All

Contributors

yuanshuai

9 commits

Jayok6

1 commits

baichuan-inc/Baichuan-M2-32B-GPTQ-Int4

Model

12

stars

10

commits

1

linked in READMEs

Sep 3, 2025

updated

4-bit
chat
conversational
endpoints_compatible
gptq
qwen2
safetensors
text-generation
text-generation-inference
transformers
Browse cluster: Qwen Large Language Models β†’

README

Baichuan-M2-32B-GPTQ-Int4

License Hugging Face M2 GPTQ-4bit Huawei Ascend 8bit

🌟 Model Overview

Baichuan-M2-32B is Baichuan AI's medical-enhanced reasoning model, the second medical model released by Baichuan. Designed for real-world medical reasoning tasks, this model builds upon Qwen2.5-32B with an innovative Large Verifier System. Through domain-specific fine-tuning on real-world medical questions, it achieves breakthrough medical performance while maintaining strong general capabilities.

Model Features:

Baichuan-M2 incorporates three core technical innovations: First, through the Large Verifier System, it combines medical scenario characteristics to design a comprehensive medical verification framework, including patient simulators and multi-dimensional verification mechanisms; second, through medical domain adaptation enhancement via Mid-Training, it achieves lightweight and efficient medical domain adaptation while preserving general capabilities; finally, it employs a multi-stage reinforcement learning strategy, decomposing complex RL tasks into hierarchical training stages to progressively enhance the model's medical knowledge, reasoning, and patient interaction capabilities.

Core Highlights:

  • πŸ† World's Leading Open-Source Medical Model: Outperforms all open-source models and many proprietary models on HealthBench, achieving medical capabilities closest to GPT-5
  • 🧠 Doctor-Thinking Alignment: Trained on real clinical cases and patient simulators, with clinical diagnostic thinking and robust patient interaction capabilities
  • ⚑ Efficient Deployment: Supports 4-bit quantization for single-RTX4090 deployment, with 58.5% higher token throughput in MTP version for single-user scenarios

πŸ“Š Performance Metrics

HealthBench Scores

Model NameHealthBenchHealthBench-HardHealthBench-Consensus
Baichuan-M260.134.791.5
gpt-oss-120b57.63090
Qwen3-235B-A22B-Thinking-250755.225.990.6
Deepseek-R1-052853.622.691.5
GLM-4.547.818.785.3
Kimi-K24310.790.9
gpt-oss-20b42.510.882.6

General Performance

BenchmarkBaichuan-M2-32BQwen3-32B (Thinking)
AIME2483.481.4
AIME2572.972.9
Arena-Hard-v2.045.844.5
CFBench77.675.7
WritingBench8.567.90

Note: AIME uses max_tokens=64k, others use 32k; temperature=0.6 for all tests.

πŸ”§ Technical Features

πŸ“— Technical Blog: Blog - Baichuan-M2

πŸ“‘ Technical Report: Arxiv - Baichuan-M2

Large Verifier System

  • Patient Simulator: Virtual patient system based on real clinical cases
  • Multi-Dimensional Verification: 8 dimensions including medical accuracy, response completeness, and follow-up awareness
  • Dynamic Scoring: Real-time generation of adaptive evaluation criteria for complex clinical scenarios

Medical Domain Adaptation

  • Mid-Training: Medical knowledge injection while preserving general capabilities
  • Reinforcement Learning: Multi-stage RL strategy optimization
  • General-Specialized Balance: Carefully balanced medical, general, and mathematical composite training data

βš™οΈ Quick Start

For deployment, you can use sglang>=0.4.6.post1 or vllm>=0.9.0 or to create an OpenAI-compatible API endpoint:

  • SGLang:
    python -m sglang.launch_server --model-path baichuan-inc/Baichuan-M2-32B-GPTQ-Int4 --reasoning-parser qwen3
    

To turn on kv cache FP8 quantization: shell python -m sglang.launch_server --model-path baichuan-inc/Baichuan-M2-32B-GPTQ-Int4 --reasoning-parser qwen3 --kv-cache-dtype fp8_e4m3 --attention-backend flashinfer

  • vLLM:
    vllm serve baichuan-inc/Baichuan-M2-32B-GPTQ-Int4  --reasoning-parser qwen3
    

To turn on kv cache FP8 quantization: shell vllm serve baichuan-inc/Baichuan-M2-32B-GPTQ-Int4 --reasoning-parser qwen3 --kv_cache_dtype fp8_e4m3

MTP inference with SGLang

  1. Replace the qwen2.py file in the sglang installation directory with draft/qwen2.py.
  2. Launch sglang:
python3 -m sglang.launch_server \
--model Baichuan-M2-32B-GPTQ-Int4 \
--speculative-algorithm EAGLE3 \
--speculative-draft-model-path Baichuan-M2-32B-GPTQ-Int4/draft \
--speculative-num-steps 6 \
--speculative-eagle-topk 10 \
--speculative-num-draft-tokens 32 \
--mem-fraction 0.9 \
--cuda-graph-max-bs 2 \
--reasoning-parser qwen3 \
--dtype bfloat16

⚠️ Usage Notices

  1. Medical Disclaimer: For research and reference only; cannot replace professional medical diagnosis or treatment
  2. Intended Use Cases: Medical education, health consultation, clinical decision support
  3. Safe Use: Recommended under guidance of medical professionals

πŸ“„ License

Licensed under the Apache License 2.0. Research and commercial use permitted.

🀝 Acknowledgements

  • Base Model: Qwen2.5-32B
  • Training Framework: verl
  • Inference Engines: vLLM, SGLang
  • Quantization: AutoRound, GPTQ

Thank you to the open-source community. We commit to continuous contribution and advancement of healthcare AI.

πŸ“ž Contact Us


Empowering Healthcare with AI, Making Health Accessible to All

Contributors

yuanshuai

9 commits

Jayok6

1 commits