Ling-3.1

Research❖ Ant 2026Sep 30

We’re introducing Ling-3.1-flash, an upgraded native hybrid reasoning model designed for complex, real-world tasks. With 560B total parameters, 25B active parameters per token, and a 1M-token context window, Ling-3.1-flash builds upon Ling-3.0-flash with improvements in architecture and performance on real-world tasks.

🤗 Hugging Face   |   🤖 ModelScope   |   🐙 OpenRouter  

With stronger real-world capabilities, Ling-3.1-flash shows improvements across a range of real-world tasks, including general-purpose agents, search, office productivity, and software engineering. It demonstrates strong performance on benchmarks such as GDPVal-AA V2.1, HealthBench Professional, FrontierSWE, and Terminal-Bench 4.0, covering office tasks, healthcare, software engineering, and terminal-based tool use. The model also shows improvements in specialized domains such as finance and materials science.

Model Overview

The table and diagram below summarize the model’s specifications and architecture.

ArchitectureHybrid-linear MoE
Parameter ScaleTotal 560B, Activated 25B
Transformer Layers63 KDA + 9 Gated MLA (7:1)
Number of Dense Layers4
Number of Routed Experts512
Number of Shared Experts1
Number of Activated Experts8
Attention Heads64
Hidden Size4096
Expert Intermediate Size1280
Dense Intermediate Size10240
Vocabulary Size157184

Ling-3.1-flash model architecture

Evaluation

We have conducted a comprehensive evaluation of Ling-3.1-flash across multiple authoritative benchmarks. Ling-3.1-flash performs strongly on representative coding/agentic benchmarks including Terminal-Bench 4.0, SWE-bench Pro, FrontierSWE, GDPVal-AA V2.1, Automationbench, MCP-Atlas, and SkillsBench, among others. In practice, Ling-3.1-flash delivers a strong user experience across Claude Code, Kilo Code, Qwen Code, Hermes Agent, OpenClaw, and other frameworks. Beyond agentic tasks, Ling-3.1-flash performs strongly on real-world tasks across STEM, healthcare, and finance.

We also introduce LingCode, a harness built on the open-source coding agent Pi and enhanced to support complex, long-horizon coding tasks that run for hours, involve hundreds of rounds of tool calls, and require repeated context compaction. LingCode delivers significant performance gains on some coding agent tasks, and we are considering open-sourcing it in the future.

BenchmarkLing-3.1-flashDeepseek-V4.1-FlashKimi K3GLM 5.3GLM 5.3 flashClaude Opus 5GPT-5.6 Sol
STEM & Health
HLE37.4439.2046.9042.3039.9054.9049.50
CritPt16.2914.3023.4019.1015.4029.1032.30
Supermatbench (QA)51.2343.2150.6234.57---
Supermatbench (Agent)31.7537.2557.7427.73---
Healthbench Professional65.3550.3749.5649.5649.0759.860.76
Coding
SWE-bench Multilingual88.5090.0090.3390.6790.0089.50-
SWE-bench Pro68.7456.7764.8461.8363.0679.2064.60
SWE Atlas – Codebase QnA64.5154.0366.0059.0061.2962.0054.00
DeepSWE59.7074.2067.5066.9063.4068.8072.67
FrontierSWE75.16-73.5274.3458.55-71.30
Terminal-Bench-2.181.1890.6088.3088.2084.3089.1088.80
Terminal-Bench-4.046.0331.2012.6041.9032.8049.0039.90
CyberGym87.9088.1080.0084.50--84.50
Agentic
TAU3-Banking47.8042.5046.0050.3047.2042.1044.30
Automationbench (Public)52.5054.8046.7048.2048.8050.3045.80
SkillsBench68.7071.3063.6059.4061.3063.7073.50
MCP-Atlas83.0082.2084.2081.8081.0085.8083.60
GDPval-AA v2.11673160015241644164117081588
Search
Browsecomp91.67-91.2076.33-90.8090.40
Draco85.4979.8577.5078.1078.5588.6077.70
WideSearch83.3280.8178.8681.8380.2484.0086.30
Finance
Finance Agent V257.8761.5761.1160.4959.2662.9656.48
Finsearch81.7483.1681.7481.3879.8884.7582.89
Multi-turn
MultiChallenge69.7872.1255.9863.8962.6064.9866.32

Note:

  • DeepSWE, Terminal-Bench-4.0, SWE Atlas – Codebase QnA and SWE-bench Pro: Evaluated using LingCode, a harness extensively customized from Pi.
  • Healthbench Professional: Evaluated in the AQ environment.
  • Supermatbench: A materials chemistry benchmark jointly developed with Peking University.

Quickstart

The day-0 SGLang image includes Ling-3.1-flash support, MTP (NEXTN) speculative decoding, and Hopper decode optimizations:

docker pull lmsysorg/sglang:dev-ling-3.1-flash

Run Inference

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/Ling-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": "Ling-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.

vLLM

Environment Preparation

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

Run Inference

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}'

Training Content Summary

The public training-content summary identifying Ling-3.1-flash is available below. Please refer to the document for its covered model versions, training-content scope, summary version, and update date.

This summary concerns training-content disclosure; it does not replace the model’s technical documentation, usage terms, or license.