🤗 Hugging Face | 🤖 ModelScope
LingSante-3.1-air-VL-MXFP4 is a lightweight, natively multimodal mixture-of-experts (MoE) model for real-world healthcare. Built on LingSante-3.1-air-VL, it has 124B parameters and 5.5B active parameters per token. It accepts text and images and supports 256K-token context window. It is the first large multimodal medical model that Ant Group's healthcare team has released as open source.
The model's four clinical focus areas are medical imaging reports, multimodal health assessment (skin disease recognition, dietary and nutritional analysis, and medical report interpretation), medical search and evidence synthesis, and medical GUI agents. It also retains strong capabilities in general multimodal tasks, document and chart understanding, and tool use. Search, tool use, and GUI workflows require an external environment that provides tools, maintains state, and validates actions.
This version uses Round-to-Nearest (RTN) post-training quantization. Routed-expert weights are quantized directly from BF16 to MXFP4, selected language-model matrices are quantized to FP8, and the remaining tensors are preserved in their original BF16 or FP32 precision.
Important. LingSante-3.1-air-VL-MXFP4 is a research model and is not a medical device. Its outputs may be incomplete or inaccurate and must not substitute for professional medical advice, diagnosis, or treatment. High-risk use requires review by qualified personnel, independent validation, and compliance with applicable privacy, safety, and healthcare regulations.
| Property | Value |
|---|---|
| Source model | LingSante-3.1-air-VL |
| Weight format | Mixed MXFP4 / FP8 / BF16 / FP32 |
| Checkpoint size (all files) | 64.80 GiB (69.58 GB; 69,578,795,992 bytes) |
| MXFP4 representation | E2M1 weights; group size 32; shared E8M0 scales; two FP4 values packed per byte |
| Algorithm | RTN (round-to-nearest), without additional training |
| Calibration | None |
| Quantized modules | Routed expert gate_proj, up_proj, and down_proj |
| Quantized in FP8 | Selected dense MLP, shared-expert, KDA, and attention matrices; E4M3 weights with 128×128 blocks and power-of-two scales stored in FP32 |
| Retained in BF16 | Vision encoder, multimodal projection, embeddings, lm_head, router weights, normalization parameters, and other excluded BF16 tensors |
| Retained in FP32 | KDA A_log, dt_bias, and router expert_bias |
| Expert activation precision | Runtime-dependent; determined by the selected MoE backend and kernel configuration |
| MTP | Not included |
| Recommended deployment | 4 × NVIDIA H20-3e; TP4 / EP4 / DP1 |
The following figure presents benchmark results reported for LingSante-3.1-air-VL, the source model of this MXFP4-RTN release. These scores refer to the source model and do not represent measurements of the quantized checkpoint.
LingSante-3.1-air-VL-MXFP4 is a mixed-precision checkpoint produced directly from the BF16/FP32 source checkpoint using data-free RTN post-training quantization. No calibration data or additional training is used.
gate_proj, up_proj, and down_proj weights. The format uses E2M1 values, a group size of 32, shared E8M0 scales, and two FP4 values packed per byte.lm_head, router weights, normalization parameters, and other excluded BF16 tensors.A_log and dt_bias, and router expert_bias.Routed-expert weights are converted directly from BF16 to MXFP4; this conversion does not involve dequantizing an FP8 source checkpoint. This release does not include MTP prediction-layer weights.
Tokenizer assets, special-token configuration, chat templates, and source RoPE settings are preserved. Long-context extensions and activation precision are configured separately by the serving runtime.
MXFP4 reduces the storage required for routed-expert weights compared with FP8 or BF16 representations. Inference latency, throughput, and memory use depend on hardware, activation precision, kernel implementation, parallelism, batch size, and sequence length.
Use a SGLang build that supports bailing_moe_v3_vl, mixed FP8/MXFP4 checkpoint loading, multimodal processing, the FlashInfer MXFP4 MoE backend, multimodal YaRN, and the ling3 parsers.
docker pull lmsysorg/sglang:dev-Ling-3.0-flash-VL
Server (4× 141GB-class GPUs, TP4, 256K context with YaRN):
MODEL_PATH=inclusionAI/LingSante-3.1-air-VL-MXFP4
MODEL_NAME=LingSante-3.1-air-VL-MXFP4
PORT=30000
SGLANG_IMAGE=lmsysorg/sglang:dev-Ling-3.0-flash-VL
docker pull "$SGLANG_IMAGE"
docker run --rm --gpus all --ipc=host --shm-size 32g \
-p "${PORT}:${PORT}" \
-e HF_TOKEN \
"$SGLANG_IMAGE" \
env CUDA_VISIBLE_DEVICES=0,1,2,3 \
OMP_NUM_THREADS=1 MKL_NUM_THREADS=1 \
SGLANG_ALLOW_OVERWRITE_LONGER_CONTEXT_LEN=1 \
SGLANG_FLASHINFER_MOE_FUSED_FINALIZE=1 \
python3 -m sglang.launch_server \
--model-path "$MODEL_PATH" \
--served-model-name "$MODEL_NAME" \
--host 0.0.0.0 \
--port "$PORT" \
--trust-remote-code \
--enable-cache-report \
--tp-size 4 \
--context-length 262144 \
--json-model-override-args '{"text_config":{"max_position_embeddings":262144,"rope_parameters":{"rope_type":"yarn","factor":2.0,"rope_theta":6000000,"partial_rotary_factor":0.5,"original_max_position_embeddings":131072,"mrope_section":[8,12,12],"video_rope":true}}}' \
--chunked-prefill-size 8192 \
--dtype bfloat16 \
--mem-fraction-static 0.80 \
--max-running-requests 32 \
--max-mamba-cache-size 320 \
--attention-backend flashinfer \
--mm-attention-backend triton_attn \
--moe-runner-backend flashinfer_mxfp4 \
--disable-shared-experts-fusion \
--tool-call-parser ling3 \
--reasoning-parser ling3 \
--disable-cuda-graph
On 8× 80GB H100/H800, use --tp 8 instead. Hopper decode optimizations can be enabled with SGLANG_ENABLE_FP8_BLOCK_GEMV=1 and SGLANG_ENABLE_FUSED_KDA_OUTPUT_QUANT=1.
Client
SERVER_IP=127.0.0.1
PORT=30000
curl -N -sS "http://${SERVER_IP}:${PORT}/v1/chat/completions" \
-H 'Content-Type: application/json' \
-d '{
"model": "LingSante-3.1-air-VL-MXFP4",
"messages": [{"role": "user", "content": [
{"type": "image_url", "image_url": {"url": "<image-url>"}},
{"type": "text", "text": "Read this chest X-ray and draft a structured imaging report."}
]}],
"chat_template_kwargs": {"enable_thinking": true},
"stream": true,
"max_tokens": 4096,
"temperature": 1.0,
"top_k": 20,
"top_p": 0.95
}'
model-00001-of-00050.safetensors 2.5 GiBmodel-00050-of-00050.safetensors 1.7 GiBmodel-00040-of-00050.safetensors 1.3 GiBmodel-00024-of-00050.safetensors 1.3 GiBmodel-00045-of-00050.safetensors 1.3 GiBmodel-00018-of-00050.safetensors 1.3 GiBmodel-00039-of-00050.safetensors 1.3 GiBmodel-00043-of-00050.safetensors 1.3 GiBmodel-00029-of-00050.safetensors 1.3 GiBmodel-00022-of-00050.safetensors 1.3 GiBmodel-00013-of-00050.safetensors 1.3 GiBmodel-00031-of-00050.safetensors 1.3 GiBmodel-00047-of-00050.safetensors 1.3 GiBmodel-00026-of-00050.safetensors 1.3 GiBmodel-00048-of-00050.safetensors 1.3 GiBmodel-00023-of-00050.safetensors 1.3 GiBmodel-00044-of-00050.safetensors 1.3 GiBmodel-00015-of-00050.safetensors 1.3 GiBmodel-00038-of-00050.safetensors 1.3 GiBmodel-00016-of-00050.safetensors 1.3 GiBmodel-00028-of-00050.safetensors 1.3 GiBmodel-00032-of-00050.safetensors 1.3 GiBmodel-00037-of-00050.safetensors 1.3 GiBmodel-00017-of-00050.safetensors 1.3 GiBmodel-00021-of-00050.safetensors 1.3 GiBmodel-00033-of-00050.safetensors 1.3 GiBmodel-00011-of-00050.safetensors 1.3 GiBmodel-00003-of-00050.safetensors 1.3 GiBmodel-00008-of-00050.safetensors 1.3 GiBmodel-00010-of-00050.safetensors 1.3 GiBmodel-00002-of-00050.safetensors 1.3 GiBmodel-00006-of-00050.safetensors 1.3 GiBmodel-00007-of-00050.safetensors 1.3 GiBmodel-00019-of-00050.safetensors 1.3 GiBmodel-00034-of-00050.safetensors 1.3 GiBmodel-00027-of-00050.safetensors 1.3 GiBmodel-00042-of-00050.safetensors 1.3 GiBmodel-00012-of-00050.safetensors 1.3 GiBmodel-00049-of-00050.safetensors 1.3 GiBmodel-00005-of-00050.safetensors 1.3 GiBmodel-00036-of-00050.safetensors 1.3 GiBmodel-00035-of-00050.safetensors 1.2 GiBmodel-00014-of-00050.safetensors 1.2 GiBmodel-00030-of-00050.safetensors 1.2 GiBmodel-00046-of-00050.safetensors 1.2 GiBmodel-00025-of-00050.safetensors 1.2 GiBmodel-00020-of-00050.safetensors 1.2 GiBmodel-00041-of-00050.safetensors 1.2 GiBmodel-00009-of-00050.safetensors 1.2 GiBmodel-00004-of-00050.safetensors 1.2 GiB