yuxintian commited on
Commit
2cee8ec
·
verified ·
1 Parent(s): a55856f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +51 -143
README.md CHANGED
@@ -2,29 +2,41 @@
2
  license: mit
3
  pipeline_tag: text-generation
4
  ---
 
5
  <p align="center">
6
  <img src="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*4QxcQrBlTiAAAAAAQXAAAAgAemJ7AQ/original" width="100"/>
7
  </p>
8
  <p align="center">🤗 <a href="https://huggingface.co/inclusionAI">Hugging Face</a>&nbsp;&nbsp; | &nbsp;&nbsp;🤖 <a href="https://modelscope.cn/organization/inclusionAI">ModelScope </a>&nbsp;&nbsp; | &nbsp;&nbsp;🐙 <a href="https://openrouter.ai/inclusionai/ling-3.0-flash:free">OpenRouter </a>&nbsp;&nbsp;</p>
9
 
10
  ## Introduction
11
- We're introducing Ling-3.0-flash, our next-generation native hybrid reasoning model. Operating with **124B** total and **5.1B** active parameters (~12.4% and ~8.1% of our previous 1T-class flagship Ring-2.6-1T), Ling-3.0-flash matches or outperforms its predecessor across key benchmarks.
 
 
 
 
 
 
12
 
13
- Key highlights of the model are summarized below:
 
14
 
15
- + **Native Hybrid-Linear Architecture:** Ling-3.0 adopts a native hybrid linear attention architecture from the very start of pretraining (5:1 alternating stacking of Kimi Delta Attention (KDA) and MLA), upgraded with KDA fine-grained diagonal gating and 1/64 sparse MoE. With 124B total parameters and 5.1B activated parameters, it achieves a synergistic leap in long-context efficiency and computational cost.
16
- + **Remarkable Efficiency & Performance:** Engineered for speed, compute efficiency, and production deployment, Ling-3.0-flash delivers class-defying performance against both larger SOTA competitors and previous-generation flagships. Activating only 5.1B parameters per token, it provides impressive reasoning, instruction following, and long-context capabilities to empower complex agentic workflows in production environments.
17
- + **Comprehensive Agentic Evolution:** Tailored for real-world productivity workflows, the model incorporates 10,000+ interactive training environments to achieve end-to-end closed-loop execution across Coding, General, and Deep Research Agent tasks. It natively integrates the SGLang HiCache + Mooncake hierarchical caching architecture (featuring physical dual-pools and a cluster-shared L3 cache), eliminating redundant recomputation during long-horizon interactions and reducing Time to First Token (TTFT) by 60% to over 80% in long-input scenarios.
18
 
19
- <!-- Benchmark comparison chart across models -->
20
- ![](https://intranetproxy.alipay.com/skylark/lark/0/2026/png/23157180/1785831264180-d6ca4404-acef-4424-84db-fbc5a4c6db5f.png)
21
 
22
  ## Model Overview
23
- The model summary information and architecture diagram are as follows:
 
 
 
 
24
 
25
- | Architecture | Hybrid-linear MoE |
26
  | --- | --- |
27
- | Parameter Scale | Total 124B, Activated 5.1B |
 
28
  | Transformer Layers | 35 KDA + 7 Gated MLA (5:1) |
29
  | Number of Dense Layers | 2 |
30
  | Number of Routed Experts | 512 |
@@ -34,140 +46,36 @@ The model summary information and architecture diagram are as follows:
34
  | Hidden Size | 2560 |
35
  | Expert Intermediate Size | 768 |
36
  | Dense Intermediate Size | 6144 |
37
- | Vocabulary Size | 157184 |
38
- | Context Training Schedule | 8K -> 32K -> 256K |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
- <!-- Ling-3.0-flash architecture diagram -->
41
- ![](https://intranetproxy.alipay.com/skylark/lark/0/2026/png/23157180/1785822388609-79c06c50-2ea9-40d9-888b-0ff4072a724c.png)
 
42
 
43
- ## Evaluation
44
- We have conducted a comprehensive evaluation of Ling-3.0-flash across multiple authoritative benchmarks. **Ling-3.0-flash** performs strongly on representative code/agent benchmarks such as **SWE-Bench Pro, SWE-Bench Multilingual, Tau3-banking-AA**, **MCP-Atlas** and **SkillsBench, etc**. In practice, Ling-3.0-flash delivers a strong user experience across frameworks including **Claude Code**,**Kilo Code**,**Qwen Code**,**Hermes Agent**,and **OpenClaw**, etc. Beyond agentic tasks, Ling-3.0-flash also delivers strong performance across **general knowledge**,**mathematical reasoning**,**instruction following**,and **long-context understanding**.
45
 
46
- <!-- Benchmark evaluation results comparison chart -->
47
- ![](https://intranetproxy.alipay.com/skylark/lark/0/2026/png/23157180/1785843565924-387dbbd7-90f8-4241-a58d-664cc5e6b486.png)
48
 
49
- > + Thinking mode is enabled by default. Unless otherwise specified, the default parameters for Ling-3.0-flash are as follows: `temperature=0.6, top_p=0.95, top_k=20`.
50
- > + SWE-Bench Series: Evaluated using OpenHands as the agent harness with tailored prompts. Decoding uses `temperature=0.6, top_p=0.95, max_new_tokens=32K`, with a 256K context window.
51
- > + Terminal-Bench 2.1: Evaluated under the Artificial Analysis (AA) protocol using the default Terminus 2 harness, a unified 2-hour timeout, the provided JSON parser in preserve-thinking mode, and 3 runs per task (mean). Decoding uses `temperature=0.6, top_p=1.0, max_new_tokens=32K`, with a 256K context window.
52
- > + MiniAppBench: A 500-task coding benchmark evaluating whether models can turn a single user request into complete, usable interactive HTML apps in real-world application-generation scenarios. Evaluated with `temperature=1.0, top_p=1.0, max_tokens=128K`.
53
- > + AntSWEBench: AntSWEBench is an internally used software engineering benchmark that covers mainstream programming languages such as Java, JavaScript, and Python, including various development scenarios like new feature, bug fix, and code refactoring.
54
- > + Tau3-banking-AA: Aligned with the AA leaderboard, utilizing GPT-5.4-mini (medium reasoning) for both the user simulator and the natural-language assertion judge.
55
- > + MCP-Atlas: Evaluated on the 500-task public set using the official v1 harness with a 20-turn limit and Gemini-2.5-Pro as the claim-coverage judger.
56
- > + SkillsBench: Evaluated via kilo-code on 87 tasks (excluding external API-dependent tasks), averaged over 3 runs.
57
- > + GDPval v2-AA: Evaluated on the public 220-task benchmark using the official Stirrup harness, with a 250-turn limit and a 5-hour timeout.
58
- > + Search-agent: For all search‑agent tasks, evaluations are performed using an internal harness. The basic ReAct paradigm is adopted for single-agent evaluation, while a multi-agent setup is employed for BrowseComp. The reported metric is the average pass@1.
59
- > - WideSearch: Evaluated using the official prompt and the official judge model GPT-4.1 on the corrected version of the dataset.
60
- > - Draco: Scored based on official rubrics per question, with the final score calculated as the average across all questions using Claude Opus 4.6 as the scoring model.
61
- > - BrowseComp (Single-Agent): Evaluated using a resume strategy for context management: once the context reaches a 64K-token threshold, the trajectory is summarized, the original history is discarded, and execution is resumed from the summary.
62
- > - BrowseComp (Multi-Agent): Evaluated using an internal multi-agent search harness based on SearchSwarm/Tongyi DeepResearch, configured with `temperature=0.85, top_p=0.95, max_tokens=8K`, and main/sub-agent context windows of 128K and 64K, respectively.
63
- >
64
-
65
- ## Quickstart
66
- ### SGLang
67
-
68
- The hardware- and recipe-specific launch matrix (BF16/FP8 × Low-Latency / High-Throughput / HiCache + Mooncake), with a live command generator and verified configurations, lives in the SGLang cookbook:
69
-
70
- **Cookbook:** https://docs.sglang.io/cookbook/autoregressive/InclusionAI/Ling-3.0-flash
71
-
72
- #### Install SGLang
73
-
74
- Use the pre-built image that tracks the Ling-3.0 runtime:
75
-
76
- ```bash
77
- docker pull lmsysorg/sglang:dev-Ling-3.0-flash
78
- ```
79
-
80
- #### Run Inference
81
-
82
- Recommended low-latency recipe (built-in MTP / NEXTN, 256K YaRN context) on 4× 141GB-class GPUs (H20-3e) or 4-GPU Blackwell nodes:
83
-
84
- ```bash
85
- docker run --rm --gpus all --ipc=host --shm-size 32g \
86
- -p 30000:30000 \
87
- -e HF_TOKEN=<your-hf-token> \
88
- lmsysorg/sglang:dev-Ling-3.0-flash \
89
- env SGLANG_ALLOW_OVERWRITE_LONGER_CONTEXT_LEN=1 \
90
- python3 -m sglang.launch_server \
91
- --model-path inclusionAI/Ling-3.0-flash \
92
- --tp 4 \
93
- --context-length 262144 \
94
- --speculative-algorithm NEXTN \
95
- --mem-fraction-static 0.8 \
96
- --host 0.0.0.0 \
97
- --port 30000
98
- ```
99
-
100
- On 80GB cards (H100 / H800) use `--tp 8` with the same flags; see the cookbook cell for your hardware.
101
-
102
- **Client**
103
-
104
- Thinking is enabled by default by both the chat template and the `ling3` reasoning parser. Disable it per request with `"chat_template_kwargs": {"enable_thinking": false}`. We recommend the sampling parameters `temperature=0.6`, `top_p=0.95`, and `top_k=20`.
105
-
106
- ```bash
107
- curl -s http://localhost:30000/v1/chat/completions \
108
- -H "Content-Type: application/json" \
109
- -d '{"model": "inclusionAI/Ling-3.0-flash",
110
- "messages": [{"role": "user", "content": "hello!"}],
111
- "stream": true,
112
- "temperature": 0.6,
113
- "top_k": 20,
114
- "top_p": 0.95
115
- }'
116
- ```
117
-
118
- For `--reasoning-parser ling3` / `--tool-call-parser ling3`, the HiCache + Mooncake L3 setup, and GSM8K / `bench_serving` reproduction commands, see the cookbook page linked above.
119
-
120
- ### vLLM
121
- #### Install our vLLM
122
- ```bash
123
- pip install uv
124
-
125
- uv venv ~/my_ling_env
126
-
127
- source ~/my_ling_env/bin/activate
128
-
129
- git clone -b ling_3_0 https://github.com/inclusionAI/vllm-ling-v3.git
130
-
131
- cd vllm-ling-v3
132
-
133
- VLLM_USE_PRECOMPILED=1 uv pip install --editable . --torch-backend=auto
134
- ```
135
-
136
- #### Run Inference
137
- Here is the example to run Ling-3.0-flash with 4 GPUs, where the server port is `${PORT}`:
138
-
139
- **Server**
140
-
141
- Since the model is trained with MTP, we recommend enabling MTP during inference (i.e., --speculative-config) for lower latency.
142
-
143
- ```bash
144
- vllm serve "$MODEL_PATH" \
145
- --port "$PORT" \
146
- --trust-remote-code \
147
- --served-model-name auto \
148
- --tensor-parallel-size 4 \
149
- --gpu-memory-utilization 0.85 \
150
- --enable-prefix-caching \
151
- --mamba-cache-mode align \
152
- --enable-auto-tool-choice \
153
- --tool-call-parser ling3 \
154
- --reasoning-parser ling3 \
155
- --speculative-config '{"method":"mtp","num_speculative_tokens":3}'
156
- ```
157
-
158
- **Client**
159
-
160
- We recommend using the sampling parameters `temperature=0.6`, `top_p=0.95`, and `top_k=20`, and enabling `enable_thinking` for better performance.
161
-
162
- ```bash
163
- curl -s http://${MASTER_IP}:${PORT}/v1/chat/completions \
164
- -H "Content-Type: application/json" \
165
- -d '{"model": "auto",
166
- "messages": [{"role": "user", "content": "hello!"}],
167
- "chat_template_kwargs": {"enable_thinking": true},
168
- "stream": true,
169
- "temperature": 0.6,
170
- "top_k": 20,
171
- "top_p": 0.95
172
- }'
173
- ```
 
2
  license: mit
3
  pipeline_tag: text-generation
4
  ---
5
+
6
  <p align="center">
7
  <img src="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*4QxcQrBlTiAAAAAAQXAAAAgAemJ7AQ/original" width="100"/>
8
  </p>
9
  <p align="center">🤗 <a href="https://huggingface.co/inclusionAI">Hugging Face</a>&nbsp;&nbsp; | &nbsp;&nbsp;🤖 <a href="https://modelscope.cn/organization/inclusionAI">ModelScope </a>&nbsp;&nbsp; | &nbsp;&nbsp;🐙 <a href="https://openrouter.ai/inclusionai/ling-3.0-flash:free">OpenRouter </a>&nbsp;&nbsp;</p>
10
 
11
  ## Introduction
12
+ We have open-sourced the Ling-3.0 series, our most efficient language foundation model family to date. To support research and community-driven innovation, we are releasing **a collection of checkpoints during the training process** as following:
13
+
14
+ | Model | Pre-trained | Mid-trained | Merged (i.e., [WSM](https://arxiv.org/abs/2507.17634)) |
15
+ | --- | --- | --- | --- |
16
+ | Ling-3.0-tiny | [**Ling-3.0-tiny-base-30T**](https://huggingface.co/inclusionAI/Ling-3.0-tiny-base-30T) | [**Ling-3.0-tiny-base-midtrain**](https://huggingface.co/inclusionAI/Ling-3.0-tiny-base-midtrain) | [**Ling-3.0-tiny-base**](https://huggingface.co/inclusionAI/Ling-3.0-tiny-base) |
17
+ | Ling-3.0-flash | [**Ling-3.0-flash-base-30T**](https://huggingface.co/inclusionAI/Ling-3.0-flash-base-30T) | [**Ling-3.0-flash-base-midtrain**](https://huggingface.co/inclusionAI/Ling-3.0-flash-base-midtrain) | [**Ling-3.0-flash-base**](https://huggingface.co/inclusionAI/Ling-3.0-flash-base) |
18
+
19
 
20
+
21
+ These checkpoints correspond to different stages of the training process:
22
 
23
+ + **Pretrained checkpoint** have completed large-scale pretraining but have not undergone mid-training, WSM merging (or learning-rate decay), or post-training.
24
+ + **Mid-trained checkpoint** have completed mid-training but have not undergone WSM merging (or learning-rate decay) or post-training.
25
+ + **Merged checkpoints** have undergone [WSM](https://arxiv.org/abs/2507.17634) merging (or learning-rate decay) based on the mid-training checkpoints but have not undergone post-training.
26
 
27
+ These checkpoints are released to support continued pretraining, fine-tuning, and further research. For the post-trained model, please see and see [Ling-3.0-tiny](https://huggingface.co/inclusionAI/Ling-3.0-tiny) and [Ling-3.0-flash](https://huggingface.co/inclusionAI/Ling-3.0-flash).
 
28
 
29
  ## Model Overview
30
+ ### Key features
31
+ + **Highly sparse (1/64) MoE architecture:** 512 routed experts, with only 8 routed experts and 1 shared expert activated per token. This enables broad model capabilities while activating just 5.1B (Non-emb) parameters per token;
32
+ + **Native hybrid linear attention:** Ling-3.0 series adopt a native hybrid linear attention architecture from the very start of pretraining by combining KDA with Gated MLA to enable efficient processing of long-context inputs.
33
+ + **[Warmup-Stable and Merge](https://arxiv.org/abs/2507.17634):** We replace conventional learning-rate decay with weighted checkpoint merging. By eliminating the decay phase, our Base Model is better suited for continual pretraining and dynamic data expansion, while enabling offline exploration of different decay profiles without rerunning costly experiments for each strategy.
34
+ + **Scale Seamlessly:** Ling-3.0-tiny-base and Ling-3.0-flash-base share the same training recipe, enabling community to experiment on the Ling-3.0-tiny-base first and then scale validated training strategies to the larger Ling-3.0-flash-base.
35
 
36
+ | Model Type | Base (final checkpoint of mid-training) |
37
  | --- | --- |
38
+ | Architecture | Hybrid-linear MoE |
39
+ | Parameter Scale | Totoal 124B, Activated 5.1B (Non-emb) |
40
  | Transformer Layers | 35 KDA + 7 Gated MLA (5:1) |
41
  | Number of Dense Layers | 2 |
42
  | Number of Routed Experts | 512 |
 
46
  | Hidden Size | 2560 |
47
  | Expert Intermediate Size | 768 |
48
  | Dense Intermediate Size | 6144 |
49
+ | Vocabulary Size | 157,184 |
50
+
51
+
52
+ <img src="https://intranetproxy.alipay.com/skylark/lark/0/2026/png/62256938/1787121194497-5a39e2a5-8f80-4ed8-81df-3304577bf317.png" width="952" title="" crop="0,0,1,1" id="u730ab9e7" class="ne-image">
53
+
54
+ ## Base Model Evaluation
55
+ To systematically assess the capabilities of the base model, we use a comprehensive benchmark suite covering several key domains, including mathematics, coding, reasoning, multilingual understanding, and long-context comprehension. The performance of the pretrained base checkpoint, i.e., `Ling-3.0-flash-base`, is compared below:
56
+
57
+ <img src="https://intranetproxy.alipay.com/skylark/lark/0/2026/png/62256938/1787147691544-c61cbb0e-568c-4d5e-a2d9-12a709f003d0.png" width="1431.5" title="" crop="0,0,1,1" id="uf61ea7a7" class="ne-image">
58
+
59
+ ## **Intended Use**
60
+ Recommended use cases:
61
+
62
+ + Continued pre-training
63
+ + Mid-training
64
+ + Supervised fine-tuning for domain adaptation
65
+ + Preference optimization and RL post-training Distillation research
66
+ + Long-context and MoE systems research
67
+
68
+ Not recommended as-is for:
69
 
70
+ + Direct end-user chat deployment
71
+ + Safety-critical applications without additional alignment and evaluation
72
+ + Production use without post-training and task-specific validation
73
 
74
+ ## Usage
75
+ For fine-tuning examples, please refer to our [ling-cookbook](https://github.com/inclusionAI/ling-cookbook/).
76
 
77
+ ## FAQ
78
+ If you have any question, please feel free to add a discussion.
79
 
80
+ ## License
81
+ This model is released under the **MIT License**.