thehekimoghlu commited on
Commit
758bdd7
·
verified ·
1 Parent(s): 09ffd26

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +273 -3
README.md CHANGED
@@ -1,3 +1,273 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+
4
+ ---
5
+ license: mit
6
+ pipeline_tag: text-generation
7
+ library_name: transformers
8
+ ---
9
+
10
+ <p align="center">
11
+ <img src="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*4QxcQrBlTiAAAAAAQXAAAAgAemJ7AQ/original" width="100"/>
12
+ </p>
13
+
14
+ <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://zenmux.ai/inclusionai/ling-1t?utm_source=hf_inclusionAI">Experience Now</a></p>
15
+
16
+
17
+ ## Introduction
18
+
19
+ **Ling-1T** is the first flagship *non-thinking* model in the Ling 2.0 series, featuring **1 trillion total parameters** with **≈ 50 billion active parameters per token**.
20
+ Built on the Ling 2.0 architecture, Ling-1T is designed to push the limits of *efficient reasoning* and *scalable cognition*.
21
+
22
+ Pre-trained on **20 trillion+ high-quality, reasoning-dense tokens**, Ling-1T-base supports up to **128K context length** and adopts an **evolutionary chain-of-thought (Evo-CoT)** process across mid-training and post-training.
23
+ This curriculum greatly enhances the model’s efficiency and reasoning depth, allowing Ling-1T to achieve **state-of-the-art performance** on multiple complex reasoning benchmarks—balancing **accuracy** and **efficiency**.
24
+
25
+
26
+ ### Flagship-Level Efficient Reasoning
27
+
28
+ <p align="center">
29
+ <img src="https://mdn.alipayobjects.com/huamei_bcz3yt/afts/img/YiXwTb4Q_vsAAAAAT-AAAAgADkV7AQFr/original"/>
30
+ <p>
31
+
32
+ <p align="center">
33
+ <img src="https://mdn.alipayobjects.com/huamei_bcz3yt/afts/img/MEh7Q5FtzbAAAAAAUQAAAAgADkV7AQFr/original"/>
34
+ <p>
35
+
36
+ We comprehensively evaluated Ling-1T against leading flagship models, including both **open-source giants** (e.g., *DeepSeek-V3.1-Terminus*, *Kimi-K2-Instruct-0905*) and **closed-source APIs** (*GPT-5-main*, *Gemini-2.5-Pro*).
37
+ Across code generation, software development, competition-level mathematics, professional math, and logical reasoning, Ling-1T consistently demonstrates **superior complex reasoning ability** and overall advantage.
38
+
39
+ In the **AIME 25** benchmark, Ling-1T extends the **Pareto frontier** of reasoning accuracy vs. reasoning length, showcasing its strength in **“efficient thinking and precise reasoning.”**
40
+
41
+ <p align="center">
42
+ <img src="https://mdn.alipayobjects.com/huamei_bcz3yt/afts/img/J8ciS5KbIrwAAAAAceAAAAgADkV7AQFr/original"/>
43
+ <p>
44
+
45
+ ### Aesthetic Understanding and Front-End Generation
46
+
47
+ Ling-1T excels in visual reasoning and front-end code generation tasks, combining deep semantic understanding with precise code synthesis.
48
+ We introduce a hybrid *Syntax–Function–Aesthetics* reward mechanism, enabling the model to not only generate correct and functional code but also demonstrate a refined sense of **visual aesthetics**.
49
+ On **ArtifactsBench**, [Ling-1T](https://zenmux.ai/inclusionai/ling-1t?utm_source=hf_inclusionAI) ranks **first among open-source models**, and the benchmark visualizations in this card were, in fact, *generated by Ling-1T itself*.
50
+
51
+
52
+ ### Emergent Intelligence at Trillion-Scale
53
+
54
+ Scaling to the trillion-parameter level has revealed strong **emergent reasoning and transfer capabilities**.
55
+ For example, in the **BFCL V3** tool-use benchmark, Ling-1T achieves **≈ 70% tool-call accuracy** with only light instruction tuning—despite having seen no large-scale trajectory data during training.
56
+ [Ling-1T](https://zenmux.ai/inclusionai/ling-1t?utm_source=hf_inclusionAI) can:
57
+
58
+ * Interpret complex natural-language instructions
59
+ * Transform abstract logic into functional visual components
60
+ * Generate cross-platform compatible front-end code
61
+ * Create stylistically controlled marketing copy and multi-lingual text
62
+
63
+ These capabilities form the foundation for **general, collaborative human–AI intelligence**, which we aim to advance together with the open-source community through Ling-1T’s release.
64
+
65
+
66
+ ### Pre-Training at Trillion Scale
67
+
68
+ The Ling 2.0 architecture was designed from the ground up for trillion-scale efficiency, guided by the **Ling Scaling Law** ([arXiv:2507.17702](https://arxiv.org/abs/2507.17702)).
69
+ This ensures architectural and hyperparameter scalability even under **1e25–1e26 FLOPs** of compute.
70
+
71
+ Key architectural innovations include:
72
+
73
+ * **1T total / 50B active parameters** with a **1/32 MoE activation ratio**
74
+ * **MTP layers** for enhanced compositional reasoning
75
+ * **Aux-loss-free**, **sigmoid-scoring expert routing** with **zero-mean updates**
76
+ * **QK Normalization** for fully stable convergence
77
+
78
+ <p align="center">
79
+ <img src="https://mdn.alipayobjects.com/huamei_bcz3yt/afts/img/naA9TJe7ttIAAAAAVRAAAAgADkV7AQFr/original"/>
80
+ <p>
81
+
82
+ Ling-1T is the **largest FP8-trained foundation model** known to date.
83
+ FP8 mixed-precision training yields **15%+ end-to-end speedup**, improved memory efficiency, and maintains **≤ 0.1% loss deviation** from BF16 across **1T tokens**.
84
+ A fine-grained, **heterogeneous 1F1B interleaved pipeline** further boosts utilization by 40 %+.
85
+ System-level optimizations—fused kernels, communication scheduling, recomputation, checkpointing, simulation, and telemetry—ensure stable trillion-scale training.
86
+
87
+ <p align="center">
88
+ <img src="https://mdn.alipayobjects.com/huamei_bcz3yt/afts/img/y5UVSKACgLEAAAAAVcAAAAgADkV7AQFr/original"/>
89
+ <p>
90
+
91
+ Pre-training used over **20T high-quality tokens**, with **> 40% reasoning-dense data** in later stages.
92
+ Mid-training introduced **curated chain-of-thought corpora** for “**reasoning pre-activation**”, improving downstream reasoning stability.
93
+ A custom **WSM (Warmup–Stable–Merge)** LR scheduler([arXiv:2507.17634](https://arxiv.org/abs/2507.17634)) with mid-train checkpoint merging simulates LR decay and boosts generalization.
94
+
95
+
96
+ ### Post-Training and Evo-CoT Optimization
97
+
98
+ Built upon mid-training reasoning activation, post-training adopts **Evo-CoT (Evolutionary Chain-of-Thought)** for progressive reasoning enhancement under controllable cost.
99
+ This approach continually expands the **Pareto frontier** of reasoning accuracy vs. efficiency—ideal for reflexive non-thinking models.
100
+
101
+ For reinforcement learning, we introduce **LPO (Linguistics-Unit Policy Optimization)** —a novel sentence-level policy optimization method.
102
+ Unlike GRPO (token-level) or GSPO (sequence-level) algorithms, LPO treats *sentences* as the natural semantic action units, enabling precise alignment between rewards and reasoning behavior.
103
+ Empirically, LPO offers superior **training stability** and **generalization** across reasoning tasks.
104
+
105
+ <p align="center">
106
+ <img src="https://mdn.alipayobjects.com/huamei_bcz3yt/afts/img/kbEWT4BGEQQAAAAAWwAAAAgADkV7AQFr/original"/>
107
+ <p>
108
+ <p align="center">
109
+ <img src="https://mdn.alipayobjects.com/huamei_bcz3yt/afts/img/aF5LRqK5LMcAAAAAZHAAAAgADkV7AQFr/original"/>
110
+ <p>
111
+
112
+ ## Evaluation
113
+
114
+ Ling-1T has been extensively evaluated across **knowledge**, **code**, **math**, **reasoning**, **agent**, and **alignment** benchmarks.
115
+ It currently stands as the **best open-source flagship non-thinking model**, rivaling closed-source APIs in complex reasoning while maintaining exceptional efficiency and interpretability.
116
+
117
+ <p align="center">
118
+ <img src="https://mdn.alipayobjects.com/huamei_bcz3yt/afts/img/KrwiQZEDHV0AAAAAWkAAAAgADkV7AQFr/original"/>
119
+ <p>
120
+
121
+
122
+ ## Model Downloads
123
+
124
+ You can download Ling-1T from the following table. If you are located in mainland China, we also provide the model on ModelScope.cn to speed up the download process.
125
+
126
+ <center>
127
+
128
+ | **Model** | **Context Length** | **Download** |
129
+ | :-------: | :----------------: | :-------------------------------------------------------------------------------------------------------------------------------------------: |
130
+ | Ling-1T | 32K -> 128K (YaRN) | [🤗 HuggingFace](https://huggingface.co/inclusionAI/Ling-1T) &nbsp;&nbsp; [🤖 ModelScope](https://www.modelscope.cn/models/inclusionAI/Ling-1T) |
131
+
132
+ </center>
133
+
134
+ Note: If you are interested in previous version, please visit the past model collections in [Huggingface](https://huggingface.co/inclusionAI) or [ModelScope](https://modelscope.cn/organization/inclusionAI).
135
+
136
+
137
+ ## Quickstart
138
+
139
+ ### 🚀 Try Online
140
+
141
+ You can experience Ling-1T online at: [ZenMux](https://zenmux.ai/inclusionai/ling-1t?utm_source=hf_inclusionAI)
142
+
143
+ ### 🔌 API Usage
144
+
145
+ You can also use Ling-1T through API calls:
146
+
147
+ ```python
148
+ from openai import OpenAI
149
+
150
+ # 1. Initialize the OpenAI client
151
+ client = OpenAI(
152
+ # 2. Point the base URL to the ZenMux endpoint
153
+ base_url="https://zenmux.ai/api/v1",
154
+ # 3. Replace with the API Key from your ZenMux user console
155
+ api_key="<your ZENMUX_API_KEY>",
156
+ )
157
+
158
+ # 4. Make a request
159
+ completion = client.chat.completions.create(
160
+ # 5. Specify the model to use in the format "provider/model-name"
161
+ model="inclusionai/ling-1t",
162
+ messages=[
163
+ {
164
+ "role": "user",
165
+ "content": "What is the meaning of life?"
166
+ }
167
+ ]
168
+ )
169
+
170
+ print(completion.choices[0].message.content)
171
+ ```
172
+
173
+ ## Deployment
174
+
175
+ ### SGLang
176
+
177
+ #### Environment Preparation
178
+
179
+ We will later submit our model to the SGLang official release. Now we can prepare the environment by following these steps:
180
+ ```shell
181
+ pip3 install -U sglang sgl-kernel
182
+ ```
183
+
184
+ #### Run Inference
185
+
186
+ Both BF16 and FP8 models are supported by SGLang now. It depends on the dtype of the model in ${MODEL_PATH}.
187
+
188
+ Here is the example to run Ling-1T with multiple GPU nodes, where the master node IP is ${MASTER_IP} and server port is ${PORT}:
189
+
190
+ - Start server:
191
+ ```bash
192
+ # Node 0:
193
+ python -m sglang.launch_server --model-path $MODEL_PATH --tp-size 8 --pp-size 4 --dp-size 1 --trust-remote-code --dist-init-addr $MASTER_IP:2345 --port $PORT --nnodes 4 --node-rank 0
194
+
195
+ # Node 1:
196
+ python -m sglang.launch_server --model-path $MODEL_PATH --tp-size 8 --pp-size 4 --dp-size 1 --trust-remote-code --dist-init-addr $MASTER_IP:2345 --port $PORT --nnodes 4 --node-rank 1
197
+
198
+ # Node 2:
199
+ python -m sglang.launch_server --model-path $MODEL_PATH --tp-size 8 --pp-size 4 --dp-size 1 --trust-remote-code --dist-init-addr $MASTER_IP:2345 --port $PORT --nnodes 4 --node-rank 2
200
+
201
+ # Node 3:
202
+ python -m sglang.launch_server --model-path $MODEL_PATH --tp-size 8 --pp-size 4 --dp-size 1 --trust-remote-code --dist-init-addr $MASTER_IP:2345 --port $PORT --nnodes 4 --node-rank 3
203
+
204
+ # This is only an example. Please adjust arguments according to your actual environment.
205
+ ```
206
+
207
+ - Client:
208
+
209
+ ```shell
210
+ curl -s http://${MASTER_IP}:${PORT}/v1/chat/completions \
211
+ -H "Content-Type: application/json" \
212
+ -d '{"model": "auto", "messages": [{"role": "user", "content": "What is the capital of France?"}]}'
213
+ ```
214
+
215
+ More usage can be found [here](https://docs.sglang.ai/basic_usage/send_request.html)
216
+
217
+ ### vLLM
218
+
219
+ #### Environment Preparation
220
+
221
+ ```bash
222
+ pip install vllm==0.11.0
223
+ ```
224
+
225
+ #### Run Inference:
226
+
227
+ Here is the example to deploy the model with multiple GPU nodes, where the master node IP is ${MASTER_IP}, server port is ${PORT} and the path of model is ${MODEL_PATH}:
228
+
229
+ ```bash
230
+ # step 1. start ray on all nodes
231
+
232
+ # step 2. start vllm server only on node 0:
233
+ vllm serve $MODEL_PATH --port $PORT --served-model-name my_model --trust-remote-code --tensor-parallel-size 8 --pipeline-parallel-size 4 --gpu-memory-utilization 0.85
234
+
235
+ # This is only an example, please adjust arguments according to your actual environment.
236
+ ```
237
+
238
+ To handle long context in vLLM using YaRN, we need to follow these two steps:
239
+ 1. Add a `rope_scaling` field to the model's `config.json` file, for example:
240
+ ```json
241
+ {
242
+ ...,
243
+ "rope_scaling": {
244
+ "factor": 4.0,
245
+ "original_max_position_embeddings": 32768,
246
+ "type": "yarn"
247
+ }
248
+ }
249
+ ```
250
+ 2. Use an additional parameter `--max-model-len` to specify the desired maximum context length when starting the vLLM service.
251
+
252
+ For detailed guidance, please refer to the vLLM [`instructions`](https://docs.vllm.ai/en/latest/).
253
+
254
+
255
+
256
+ ## Limitations & Future Plans
257
+
258
+ While **[Ling-1T](https://zenmux.ai/inclusionai/ling-1t?utm_source=hf_inclusionAI)** has made strong progress in efficient reasoning, cross-domain generalization, and training efficiency, several limitations remain:
259
+
260
+ * **GQA-based attention**: stable for long-context reasoning but relatively costly. Future versions will adopt **hybrid attention** to improve efficiency.
261
+ * **Limited agentic ability**: current model has room to grow in multi-turn interaction, long-term memory, and tool use.
262
+ * **Instruction and identity issues**: occasional deviations or role confusion may occur; future updates will enhance **alignment and consistency**.
263
+
264
+ The future versions of Ling-1T will continue to evolve in architecture, reasoning, and alignment, advancing the series toward more general intelligence.
265
+
266
+
267
+ ## License
268
+
269
+ This code repository is licensed under [the MIT License](https://github.com/inclusionAI/Ling-V2/blob/main/LICENSE).
270
+
271
+ ## FAQ
272
+ Recommended temperature? **0.7**
273
+ Recommended top_p? **0.95**