🤗 Hugging Face | 🤖 ModelScope | 🔗 Computrix(API)
LingSante-3.1-flash is an open-weight Mixture-of-Experts model that combines complex medical reasoning, professional healthcare communication, evidence-based deep research, and long-horizon medical tasks. Built on Ling-3.1-flash, it has 560 billion total parameters, activates 25 billion parameters per token, and supports a 1-million-token context window.
Real-world medical tasks present challenges that go beyond general intelligence, including incomplete health information, substantial patient heterogeneity, and strict operational and compliance requirements. To address these demands, LingSante-3.1-flash is trained to unify medical reasoning and workflow execution through native medical-mixed pretraining, mid-training, supervised fine-tuning, task-specific reinforcement learning, and multi-teacher on-policy distillation. The model can verify evidence across scenarios, deliver professional judgments, and independently complete multi-stage workflows.
LingSante-3.1-flash is intended for research and evaluation. It is not a medical device and must not be used as an independent basis for diagnosis, prescriptions, or treatment.
LingSante-3.1-flash retains the architecture of Ling-3.1-flash.
| Specification | Value |
|---|---|
| Architecture | Hybrid-linear MoE |
| Total parameters | 560B |
| Activated parameters per token | 25B |
| Context window | 1M tokens |
| Transformer layers | 63 KDA + 9 Gated MLA (7:1) |
| Dense layers | 4 |
| Routed experts | 512 |
| Shared experts | 1 |
| Activated routed experts per token | 8 |
| Attention heads | 64 |
| Hidden size | 4096 |
| Expert intermediate size | 1280 |
| Dense intermediate size | 10240 |
| Vocabulary size | 157184 |
General and medical data are used together throughout pretraining, mid-training, and supervised fine-tuning. Medical data provide domain knowledge and clinically grounded training examples, while general data help maintain broad capabilities such as reasoning, coding, search, and tool use.
During post-training, we further improve the model with reinforcement learning for medical reasoning, tool use, search, and professional behavior. These training setups are designed to strengthen not only task performance, but also the quality, reliability, and efficiency of execution under real-world constraints.
Finally, we bring these capabilities together through multi-teacher on-policy distillation, transferring complementary strengths into a single model while preserving strong performance across both medical and general tasks.
We evaluate LingSante-3.1-flash across a wide range of medical and general benchmarks. The model performs strongly on representative benchmarks for medical knowledge, reasoning, and alignment, while also achieving strong results on internal evaluations for diagnostic understanding, safety, and evidence-based reasoning.
Beyond medical QA, LingSante-3.1-flash shows strong performance in more realistic medical settings that require search, verification, and tool use. These results highlight the model’s ability to move beyond answer generation toward evidence-grounded medical problem solving. LingSante-3.1-flash also performs well on benchmarks that reflect professional medical workflows and long-horizon execution.
Overall, the results show that LingSante-3.1-flash combines strong medical reasoning, professional behavior, and workflow execution in a single model.
Performance and Cost : LingSante-3.1-Flash lies on the performance–cost Pareto frontier of the InclusionMed medical AI benchmark. With an overall score of 45.064, it ranked fifth among the 23 model configurations evaluated, delivering competitive performance on medical tasks at a relatively low inference cost.
The day-0 SGLang image includes LingSante-3.1-flash support, MTP (NEXTN) speculative decoding, and Hopper decode optimizations:
docker pull lmsysorg/sglang:dev-ling-3.1-flash
Server (8 × H200, TP8 + EP8):
docker run --gpus all --network host --ipc=host --rm \
lmsysorg/sglang:dev-ling-3.1-flash \
python3 -m sglang.launch_server \
--model-path inclusionAI/LingSante-3.1-flash \
--tp 8 --ep 8 \
--speculative-algorithm NEXTN \
--host 0.0.0.0 --port 30000
On 4 × GB300, use --tp 4 --ep 4 instead. Hopper decode optimizations (optional, ~10% faster batch-1 decode) can be enabled with SGLANG_ENABLE_FP8_BLOCK_GEMV=1 and SGLANG_ENABLE_FUSED_KDA_OUTPUT_QUANT=1.
Client
curl -s http://localhost:30000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model": "LingSante-3.1-flash",
"messages": [{"role": "user", "content": "What is the capital of France?"}],
"chat_template_kwargs": {"enable_thinking": true},
"stream": true,
"temperature": 1.0,
"top_k": 20,
"top_p": 0.95}'
Verified recipes for H200, GB300, H800, H100, and B200, plus HiCache (Mooncake L3), reasoning on/off, tool calling, and measured accuracy/speed numbers, are in the SGLang Ling-3.1-flash cookbook.
pip install uv
uv venv ~/my_ling_env
source ~/my_ling_env/bin/activate
git clone -b vllm https://github.com/vllm-project/vllm.git
cd vllm
VLLM_USE_PRECOMPILED=1 uv pip install --editable . --torch-backend=auto
Server
vllm serve "$MODEL_PATH" \
--port "$PORT" \
--trust-remote-code \
--served-model-name auto \
--tensor-parallel-size 8 \
--gpu-memory-utilization 0.85 \
--enable-prefix-caching \
--enable-expert-parallel \
--mamba-cache-mode align \
--enable-auto-tool-choice \
--tool-call-parser ling3 \
--reasoning-parser ling3 \
--speculative-config '{"method":"mtp","num_speculative_tokens":3}'
Client
It is recommended to use the sampling parameters (temperature=1.0, top_p=0.95, top_k=20) and set enable_thinking to true for better performance.
curl -s http://${MASTER_IP}:${PORT}/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model": "auto",
"messages": [{"role": "user", "content": "What is the capital of France?"}],
"chat_template_kwargs": {"enable_thinking": true},
"stream": true,
"temperature": 1.0,
"top_k": 20,
"top_p": 0.95}'
model-00001-of-00054.safetensors 10.0 GiBmodel-00009-of-00054.safetensors 10.0 GiBmodel-00012-of-00054.safetensors 10.0 GiBmodel-00015-of-00054.safetensors 10.0 GiBmodel-00018-of-00054.safetensors 10.0 GiBmodel-00019-of-00054.safetensors 10.0 GiBmodel-00021-of-00054.safetensors 10.0 GiBmodel-00022-of-00054.safetensors 10.0 GiBmodel-00024-of-00054.safetensors 10.0 GiBmodel-00025-of-00054.safetensors 10.0 GiBmodel-00027-of-00054.safetensors 10.0 GiBmodel-00028-of-00054.safetensors 10.0 GiBmodel-00030-of-00054.safetensors 10.0 GiBmodel-00031-of-00054.safetensors 10.0 GiBmodel-00033-of-00054.safetensors 10.0 GiBmodel-00034-of-00054.safetensors 10.0 GiBmodel-00036-of-00054.safetensors 10.0 GiBmodel-00037-of-00054.safetensors 10.0 GiBmodel-00039-of-00054.safetensors 10.0 GiBmodel-00040-of-00054.safetensors 10.0 GiBmodel-00042-of-00054.safetensors 10.0 GiBmodel-00043-of-00054.safetensors 10.0 GiBmodel-00045-of-00054.safetensors 10.0 GiBmodel-00046-of-00054.safetensors 10.0 GiBmodel-00049-of-00054.safetensors 10.0 GiBmodel-00052-of-00054.safetensors 10.0 GiBmodel-00048-of-00054.safetensors 10.0 GiBmodel-00051-of-00054.safetensors 10.0 GiBmodel-00016-of-00054.safetensors 10.0 GiBmodel-00013-of-00054.safetensors 10.0 GiBmodel-00010-of-00054.safetensors 10.0 GiBmodel-00008-of-00054.safetensors 10.0 GiBmodel-00011-of-00054.safetensors 10.0 GiBmodel-00014-of-00054.safetensors 10.0 GiBmodel-00053-of-00054.safetensors 10.0 GiBmodel-00017-of-00054.safetensors 10.0 GiBmodel-00050-of-00054.safetensors 10.0 GiBmodel-00047-of-00054.safetensors 10.0 GiBmodel-00020-of-00054.safetensors 10.0 GiBmodel-00023-of-00054.safetensors 10.0 GiBmodel-00026-of-00054.safetensors 10.0 GiBmodel-00029-of-00054.safetensors 10.0 GiBmodel-00032-of-00054.safetensors 10.0 GiBmodel-00035-of-00054.safetensors 10.0 GiBmodel-00038-of-00054.safetensors 10.0 GiBmodel-00041-of-00054.safetensors 10.0 GiBmodel-00044-of-00054.safetensors 10.0 GiBmodel-00007-of-00054.safetensors 10.0 GiBmodel-00003-of-00054.safetensors 10.0 GiBmodel-00006-of-00054.safetensors 10.0 GiBmodel-00004-of-00054.safetensors 10.0 GiBmodel-00005-of-00054.safetensors 10.0 GiBmodel-00002-of-00054.safetensors 9.9 GiBmodel-00054-of-00054.safetensors 6.3 GiB