TL;DR
- LingSante-3.1-flash is an MIT-licensed medical-domain Mixture-of-Experts model published on Hugging Face on November 19, 2026. It keeps the architecture of its base model Ling-3.1-flash: 72 layers (63 linear-attention KDA layers plus 9 gated MLA layers), 512 routed experts, 8 active per token, and a card claim of 560B total and 25B active parameters.
- The checkpoint is FP8 (E4M3, 128x128 blocks): 67 files, 573.8 GB on disk (534.4 GiB). The safetensors header counts 572.1B parameters, about 2% above the 560B on the card.
- Arithmetic from the published config: the weights alone take 66.8 GiB per GPU on an 8-way split. That leaves about 44.8 GiB per H200 at the card's own 0.85 memory setting, and no room on 8 H100 80 GB cards at that setting.
- Only 9 of 72 layers keep a growing attention cache. With the latent cache layout, that is about 10 GiB per sequence at 1M tokens, not hundreds.
- The card's quality claims (second overall on a professional-behavior benchmark behind GPT-6 Astra, fifth of 23 configurations on InclusionMed with a score of 45.064) are the publisher's own figures. I did not rerun them.
What is LingSante-3.1-flash, and why does a medical model matter for infrastructure teams?
Most coverage of medical language models stops at benchmark names. Infrastructure teams ask a different question: can we host it, and what does a long clinical record cost in memory? Health systems often cannot send records to a hosted API, so an open-weight model under the MIT license is attractive only if it fits hardware they can actually buy.
LingSante-3.1-flash is a continued-training variant of Ling-3.1-flash for medical reasoning, professional healthcare communication, evidence-based research, and long multi-step tasks. The card lists native medical-mixed pretraining, mid-training, supervised fine-tuning, task-specific reinforcement learning, and multi-teacher on-policy distillation. It also states plainly that the model is for research and evaluation, is not a medical device, and must not be the independent basis for diagnosis, prescriptions, or treatment. I repeat that because everything below is about memory and serving, not about clinical value.
The previous healthcare release in the same family, Ling-3.0-flash-Sante, had 124B total and 5.1B active parameters according to the card. The new one is a much larger sibling at 560B total.
What do the published specifications say?
All values below come from the model card and from config.json in the repository, read on November 26, 2026.
| Item | Value |
|---|---|
| Architecture | Hybrid-linear MoE (BailingMoeV3ForCausalLM) |
| Layers | 72 = 63 KDA + 9 gated MLA (7:1 groups of 8) |
| Dense layers | 4 |
| Routed experts / active per token | 512 / 8 (plus 1 shared) |
| Hidden size / heads | 4096 / 64 |
| MLA latent: kv_lora_rank, q_lora_rank | 512, 1536 |
| qk head dim (nope + rope) | 128 + 64 = 192 |
| Quantization | FP8 E4M3, dynamic activations, 128x128 weight blocks |
| Files / size | 67 safetensors files, 573,819,008,367 bytes |
| Header parameter count | 572,120,680,768 (570.6B in F8, 1.49B in BF16) |
| License | MIT |
Two details are worth noticing. First, the card says the context window is 1M tokens, while config.json has max_position_embeddings set to 262,144 and rope_scaling set to null. The card's table is the stated spec, and I could not tell from the files alone how the longer window is enabled, so I compute both 262K and 1M below. Second, the stored file is already FP8, so there is no further 2x saving to be had by quantizing at load time. The 534.4 GiB is the floor for the full model.
Does it fit on 8 GPUs?
The card's own server recipe uses 8 x H200 with tensor parallel 8 and expert parallel 8. The vLLM recipe adds --gpu-memory-utilization 0.85. Here is the per-GPU arithmetic, assuming the weights split evenly (real splits are slightly uneven, and replicated pieces such as embeddings and the router add a little):
weights_gib = 573_819_008_367 / 2**30 # 534.41
per_gpu = weights_gib / 8 # 66.80 GiB
h200 = 141e9 / 2**30 # 131.3 GiB per card
h100 = 80e9 / 2**30 # 74.5 GiB per card
print(h200 * 0.85 - per_gpu) # ~44.8 GiB left on H200
print(h100 * 0.85 - per_gpu) # ~-3.5 GiB on H100 80GB
On an H200 at 0.85, you get roughly 111.6 GiB of usable memory per card, minus 66.8 GiB of weights, so about 44.8 GiB remains for the attention cache, the linear-attention state, activations, CUDA graphs, and the multi-token-prediction head. On an 80 GB H100 at the same setting, usable memory is about 63.3 GiB, which is below the 66.8 GiB the weights need. Raising utilization to 0.95 gives 70.8 GiB and about 4 GiB of headroom, which is not a serving configuration for long contexts. The card says verified recipes for H100 and H800 exist in the SGLang cookbook; I did not open that page, so I cannot say how many nodes they use. A single 8 x 80 GB node looks like the wrong target for this model; two nodes, or H200 and newer, is the realistic reading of the numbers.
The card also mentions 4 x GB300 with --tp 4 --ep 4. I did not compute that case because I do not have a verified per-card memory figure from the card.
How much attention cache does a 1M-token clinical record need?
This is where the hybrid design pays off. KDA layers are linear attention: they keep a fixed-size state per sequence rather than a cache that grows with every token. Only the 9 gated MLA layers grow with context.
MLA stores a compressed latent per token instead of full per-head keys and values. From the config, the latent is kv_lora_rank 512 plus a 64-dimension rotary part, so 576 values per token per layer. In BF16 that is 1,152 bytes per layer per token:
layers_with_growing_cache = 9
values_per_token_per_layer = 512 + 64 # 576
bytes_per_value = 2 # BF16
per_token = layers_with_growing_cache * values_per_token_per_layer * bytes_per_value
# 10,368 bytes per token
for n in (32_768, 131_072, 262_144, 1_048_576):
print(n, round(per_token * n / 2**30, 2), "GiB")
# 32768 0.32 | 131072 1.27 | 262144 2.53 | 1048576 10.12
So one full 1M-token sequence costs about 10.1 GiB of latent cache, and a 262K sequence about 2.5 GiB. To see why the layout matters, compare with a conventional full per-head cache. With 64 key-value heads and a 192-dimension key plus 128-dimension value, 9 layers would need 9 x 64 x (192 + 128) x 2 = 368,640 bytes per token, which is about 360 GiB at 1M tokens. That is my upper-bound illustration for a layout the model does not use, but it shows that the difference between the layouts is roughly 36x.
Two caveats keep this honest. The numbers above are per sequence for one replica of the latent cache. Serving stacks may replicate the latent across tensor-parallel ranks, in which case each GPU holds its own copy, or they may use data-parallel attention to avoid that. If every rank holds a full copy, then 44.8 GiB per H200 corresponds to a little over four 1M-token sequences per GPU before counting anything else, and fewer once the linear-attention state, activations, and graph memory are subtracted. I did not measure any of this on hardware.
What does the quality evidence look like, and what can you trust?
The card reports three kinds of evidence, and they have different weights:
- Benchmark images. The overview and comparison charts are images on the card. I did not transcribe numbers from them.
- A leaderboard position. The card says the model sits on the performance and cost Pareto frontier of the InclusionMed benchmark, with an overall score of 45.064, fifth among 23 evaluated configurations. That is a leaderboard fact about one benchmark, reported by the publisher.
- A professional-behavior claim. The card says the model ranks second overall behind GPT-6 Astra on benchmarks for medical professional behavior.
The card itself adds that benchmark and simulated-environment results do not establish clinical effectiveness, and that long-context support does not guarantee complete retrieval of every relevant fact. For a team building on clinical documents, the second point is the one that deserves a test of your own: put a known fact at several depths in a long synthetic record and check retrieval at 32K, 128K, and beyond before you rely on the 1M figure.
How do I run it? A minimal serving sketch
The card's SGLang command, abbreviated:
docker pull 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
And a client call using the sampling settings the card recommends (temperature 1.0, top_p 0.95, top_k 20, thinking enabled):
import requests
r = requests.post("http://localhost:30000/v1/chat/completions", json={
"model": "LingSante-3.1-flash",
"messages": [{"role": "user", "content": "Summarize the evidence on X."}],
"chat_template_kwargs": {"enable_thinking": True},
"temperature": 1.0, "top_p": 0.95, "top_k": 20,
})
print(r.json()["choices"][0]["message"]["content"])
The card notes that the SGLang image includes multi-token prediction and Hopper decode optimizations, and that two environment flags give roughly 10% faster batch-1 decode. It also notes the vLLM route requires building from a specific branch.
What should a hospital or health-tech team check before adopting it?
- Memory first. Plan for 534 GiB of weights plus cache. Treat a single 8 x 80 GB node as insufficient at the card's recommended settings.
- Privacy. The card tells users to protect personal health information and follow healthcare data-governance rules. Self-hosting solves the data-transfer problem only if logs, caches, and prompts are also governed.
- Tool safety. The card recommends least-privilege tool access, auditable execution, and human approval for consequential actions, because search results and tool outputs can carry errors or malicious instructions.
- Your own evaluation. A published leaderboard rank is not a substitute for a test on your own documents, languages, and specialties. The card itself says performance varies across them.
FAQ
Is LingSante-3.1-flash open source? The weights are published under the MIT license on Hugging Face. The training data and recipe are not part of the repository, so "open-weight" is the more precise term.
How big is it on disk? 67 safetensors files totaling 573.8 GB (534.4 GiB), stored as FP8 with a small BF16 portion.
How many parameters does it have? The card says 560B total and 25B active per token. The safetensors header counts about 572.1B parameters in total.
Can it run on 8 H100 80 GB GPUs? By my arithmetic, not at the card's 0.85 memory setting: 66.8 GiB of weights per GPU exceeds the roughly 63.3 GiB usable. The card refers to H100 and H800 recipes in the SGLang cookbook, which I did not review.
How much memory does a 1M-token context need? About 10.1 GiB of latent attention cache per sequence in BF16, from 9 growing layers at 576 values per token each, before linear-attention state and activations. This is my calculation from the config, not a measurement.
Can it be used for diagnosis? No. The card states it is for research and evaluation, is not a medical device, and must not be the independent basis for diagnosis, prescriptions, or treatment.
Further reading
- Ling-3.2-air: 124B parameters, 5.5B active, and a KV cache that comes from only 7 of 42 layers
- Ling-3.1-flash and the 7:1 hybrid: how much KV cache does a 560B model need at 1M tokens?
Sources
- Model card and
config.json: https://huggingface.co/inclusionAI/LingSante-3.1-flash - Base model: https://huggingface.co/inclusionAI/Ling-3.1-flash
- SGLang cookbook referenced by the card: https://docs.sglang.io/cookbook/autoregressive/InclusionAI/Ling-3.1-flash
Top comments (0)