Loadable REXL3 pack of inclusionAI/LingSante-3.1-air-VL.
Quantized by vcruz305 with SAGE, our own mixed-precision quantization method for REXL3. The method is not published.
Sized for a single 96 GB GPU or 128 GB-class unified-memory device (74.37 GiB GPU-resident footprint including the unquantized BF16 vision encoder qwen3_moe_vit and linear_proj, 79.92 GB on disk), leaving headroom for full 262K context Gated MLA KV cache and 35-layer KDA recurrent states. Accepts text and image inputs, as the upstream model does.
Teacher-forced, full-vocabulary (157,184 tokens) float64 comparison against inclusionAI/LingSante-3.1-air-VL on the untouched independent split (28,683 assistant-turn predictions, text inputs):
| Metric | Value |
|---|---|
| Top-1 Agreement | 94.89% |
| Mean KLD | 0.0257 |
| Item | Value |
|---|---|
| Format | REXL3 |
| Profile | 5.12 bpw SAGE |
| Resident footprint | 74.37 GiB GPU-resident (79.92 GB total on disk) |
| Shards | 15 (model-00001-of-00015.safetensors .. model-00015-of-00015.safetensors) |
| Index | model.safetensors.index.json |
SAGE is our own mixed-precision quantization method for REXL3. The method is not published.
This pack is a quantization of inclusionAI/LingSante-3.1-air-VL. All model weights, tokenizer files, chat template, and architecture definitions originate from that release; only the numerical precision of the weight tensors was changed.
MIT, same as inclusionAI/LingSante-3.1-air-VL. Cite inclusionAI for the base model. This repository is the REXL3 pack only.
inclusionAI/LingSante-3.1-air-VL)The section below is reproduced verbatim from the upstream
inclusionAI/LingSante-3.1-air-VLmodel card for reference. Reported benchmark evaluations, hardware notes, and training details below apply to the original unquantized source checkpoint.
🤗 Hugging Face | 🤖 ModelScope
LingSante-3.1-air-VL is a lightweight, natively multimodal mixture-of-experts (MoE) model for real-world healthcare. Built on Ling-3.0-flash-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.
Important. LingSante-3.1-air-VL 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.
The evaluations cover multimodal healthcare applications, imaging reports, complex multimodal medical reasoning, multimodal medical understanding, and medical text. They also cover general multimodal tasks, including document and chart understanding, along with multimodal search and GUI agents.
Results
The LingSante-3.1-air-VL runtime includes native multimodal support, MTP (NEXTN) speculative decoding, and long-context optimizations.
docker pull lmsysorg/sglang:dev-Ling-3.0-flash-VL
Server (4× 141GB-class GPUs, TP4, 256K context with YaRN):
docker run --rm --gpus all --ipc=host --shm-size 32g \
-p 30000:30000 \
-e HF_TOKEN=<your-hf-token> \
lmsysorg/sglang:dev-Ling-3.0-flash-VL \
env SGLANG_ALLOW_OVERWRITE_LONGER_CONTEXT_LEN=1 \
python3 -m sglang.launch_server \
--model-path inclusionAI/LingSante-3.1-air-VL \
--tp 4 \
--context-length 262144 \
--json-model-override-args '{"rope_scaling":{"rope_type":"yarn","factor":2.0,"rope_theta":6000000,"partial_rotary_factor":0.5,"original_max_position_embeddings":131072}}' \
--trust-remote-code \
--reasoning-parser ling3 \
--tool-call-parser ling3 \
--host 0.0.0.0 --port 30000
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
curl -s http://localhost:30000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model": "inclusionAI/LingSante-3.1-air-VL",
"messages": [{"role": "user", "content": [
{"type": "image_url", "image_url": {"url": "https://example.com/chest_xray.png"}},
{"type": "text", "text": "Read this chest X-ray and draft a structured imaging report."}
]}],
"chat_template_kwargs": {"enable_thinking": true},
"stream": true,
"temperature": 1.0,
"top_k": 20,
"top_p": 0.95}'
pip install uv
uv venv ~/my_ling_env
source ~/my_ling_env/bin/activate
git clone https://github.com/inclusionAI/vllm-ling-v3.git
cd vllm-ling-v3
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 4 \
--gpu-memory-utilization 0.85 \
--enable-prefix-caching \
--mamba-cache-mode align \
--enable-auto-tool-choice \
--tool-call-parser ling3 \
--reasoning-parser ling3
Client
curl -s http://${MASTER_IP}:${PORT}/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model": "auto",
"messages": [{"role": "user", "content": [
{"type": "image_url", "image_url": {"url": "https://example.com/skin_photo.jpg"}},
{"type": "text", "text": "What might this skin lesion be? Ask follow-up questions if needed."}
]}],
"chat_template_kwargs": {"enable_thinking": true},
"stream": true,
"temperature": 1.0,
"top_k": 20,
"top_p": 0.95}'
model-00014-of-00015.safetensors 5.4 GBmodel-00010-of-00015.safetensors 5.4 GBmodel-00002-of-00015.safetensors 5.4 GBmodel-00012-of-00015.safetensors 5.4 GBmodel-00008-of-00015.safetensors 5.4 GBmodel-00005-of-00015.safetensors 5.4 GBmodel-00011-of-00015.safetensors 5.4 GBmodel-00013-of-00015.safetensors 5.4 GBmodel-00004-of-00015.safetensors 5.4 GBmodel-00003-of-00015.safetensors 5.4 GBmodel-00001-of-00015.safetensors 5.4 GBmodel-00009-of-00015.safetensors 5.4 GBmodel-00006-of-00015.safetensors 5.4 GBmodel-00007-of-00015.safetensors 5.4 GBmodel-00015-of-00015.safetensors 4.7 GB