Update README.md
Browse files
README.md
CHANGED
|
@@ -7,7 +7,9 @@ license: mit
|
|
| 7 |
<p align="center">🤗 <a href="https://huggingface.co/inclusionAI">Hugging Face</a> | 🤖 <a href="https://modelscope.cn/organization/inclusionAI">ModelScope </a> | 🐙 <a href="https://openrouter.ai/inclusionai/ling-3.0-tiny:free">OpenRouter </a> </p>
|
| 8 |
|
| 9 |
# Introduction
|
| 10 |
-
We are introducing Ling-3.0-tiny, a
|
|
|
|
|
|
|
| 11 |
|
| 12 |
Key highlights of the model are summarized below:
|
| 13 |
|
|
@@ -16,13 +18,13 @@ Key highlights of the model are summarized below:
|
|
| 16 |
+ **Local and Edge Deployment:** Designed for efficient local deployment, Ling-3.0-tiny has been validated on **NVIDIA DGX Spark, Apple Silicon MacBook, and Mac mini**, enabling capable reasoning and agentic workloads without datacenter-class GPUs. With FP8, Ling-3.0-tiny reaches around **100-105 tokens/s on DGX Spark** and **86-90 tokens/s on an M4 Pro MacBook**, with approximately **8.34 GiB peak memory usage** at an 8K context length.
|
| 17 |
|
| 18 |
# Model Overview
|
| 19 |
-
Ling-3.0-tiny
|
| 20 |
|
| 21 |
The architecture of Ling-3.0-tiny is not designed to optimize a single technical metric; instead, it aims to translate efficiency into real-world task performance.
|
| 22 |
|
| 23 |
+ A 3:1 KDA–MLA architecture (3 KDA layers and 1 MLA layer in every 4-layer block) enables more efficient long-context processing;
|
| 24 |
-
+ A sparse MoE with 128 experts activates 8 routed experts and 1 shared expert per token, enabling
|
| 25 |
-
+ Native hybrid reasoning enables fast responses for routine tasks and multi-step reasoning for complex tasks within
|
| 26 |
|
| 27 |
Together, these designs target three goals:
|
| 28 |
|
|
@@ -34,15 +36,17 @@ Together, these designs target three goals:
|
|
| 34 |

|
| 35 |
|
| 36 |
# Evaluation
|
| 37 |
-
We evaluated Ling-3.0-tiny across
|
| 38 |
-
|
| 39 |
-
|
|
|
|
| 40 |
|
| 41 |
The following table presents representative benchmarks for Ling-3.0-tiny:
|
| 42 |
|
| 43 |

|
| 44 |
|
| 45 |
-
> All Ling-3.0-tiny evaluation results use Thinking mode; the recommended sampling parameters are `temperature=1.0`, `top_p=0.95`, and `top_k=20`.
|
|
|
|
| 46 |
|
| 47 |
# Quickstart
|
| 48 |
## SGLang
|
|
@@ -98,7 +102,7 @@ curl -s http://localhost:30000/v1/chat/completions \
|
|
| 98 |
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.
|
| 99 |
|
| 100 |
## vLLM
|
| 101 |
-
### Install
|
| 102 |
```bash
|
| 103 |
pip install uv
|
| 104 |
|
|
@@ -114,7 +118,7 @@ VLLM_USE_PRECOMPILED=1 uv pip install --editable . --torch-backend=auto
|
|
| 114 |
```
|
| 115 |
|
| 116 |
### Run Inference
|
| 117 |
-
Here is the example to run Ling-3.0-tiny with
|
| 118 |
|
| 119 |
**Server**
|
| 120 |
|
|
@@ -134,7 +138,7 @@ vllm serve "$MODEL_PATH" \
|
|
| 134 |
|
| 135 |
**Client**
|
| 136 |
|
| 137 |
-
We recommend
|
| 138 |
|
| 139 |
```bash
|
| 140 |
curl -s http://${MASTER_IP}:${PORT}/v1/chat/completions \
|
|
@@ -150,8 +154,7 @@ curl -s http://${MASTER_IP}:${PORT}/v1/chat/completions \
|
|
| 150 |
```
|
| 151 |
|
| 152 |
## Ollama
|
| 153 |
-
> This configuration has been verified on an M4 Pro Mac with 48 GB of unified memory.
|
| 154 |
-
>
|
| 155 |
|
| 156 |
### Preparation and Build
|
| 157 |
```bash
|
|
@@ -164,10 +167,8 @@ cmake -B build .
|
|
| 164 |
cmake --build build --parallel 8
|
| 165 |
```
|
| 166 |
|
| 167 |
-
> Support is currently provided by [ollama/ollama#17643](https://github.com/ollama/ollama/pull/17643) and is limited to running via MLX on Apple Silicon.
|
| 168 |
-
>
|
| 169 |
-
> Use the local `./ollama` executable built from source in this section. This functionality is not yet included in the official Ollama release.
|
| 170 |
-
>
|
| 171 |
|
| 172 |
### Import Model
|
| 173 |
Replace `/absolute/path/to/bf16_weights` with the absolute path to the BF16 model weights directory. The imported model will be named `ling-tiny-bf16`:
|
|
|
|
| 7 |
<p align="center">🤗 <a href="https://huggingface.co/inclusionAI">Hugging Face</a> | 🤖 <a href="https://modelscope.cn/organization/inclusionAI">ModelScope </a> | 🐙 <a href="https://openrouter.ai/inclusionai/ling-3.0-tiny:free">OpenRouter </a> </p>
|
| 8 |
|
| 9 |
# Introduction
|
| 10 |
+
We are introducing **Ling-3.0-tiny**, a lightweight hybrid reasoning MoE model with **7.9B** total parameters and only **1.3B** activated parameters per token.
|
| 11 |
+
It is designed to deliver strong reasoning and agentic capabilities under a small inference compute footprint, making advanced model capabilities more accessible for local and resource-constrained deployment.
|
| 12 |
+
BF16, FP8, and INT4 weights are provided for a wide range of hardware and deployment settings.
|
| 13 |
|
| 14 |
Key highlights of the model are summarized below:
|
| 15 |
|
|
|
|
| 18 |
+ **Local and Edge Deployment:** Designed for efficient local deployment, Ling-3.0-tiny has been validated on **NVIDIA DGX Spark, Apple Silicon MacBook, and Mac mini**, enabling capable reasoning and agentic workloads without datacenter-class GPUs. With FP8, Ling-3.0-tiny reaches around **100-105 tokens/s on DGX Spark** and **86-90 tokens/s on an M4 Pro MacBook**, with approximately **8.34 GiB peak memory usage** at an 8K context length.
|
| 19 |
|
| 20 |
# Model Overview
|
| 21 |
+
Ling-3.0-tiny inherits the hybrid linear attation architecture of Ling-3.0 series, while being specifically optimized for lightweight and accessible deployment. The model has 7.9B total parameters, with only 1.3B parameters activated per token.
|
| 22 |
|
| 23 |
The architecture of Ling-3.0-tiny is not designed to optimize a single technical metric; instead, it aims to translate efficiency into real-world task performance.
|
| 24 |
|
| 25 |
+ A 3:1 KDA–MLA architecture (3 KDA layers and 1 MLA layer in every 4-layer block) enables more efficient long-context processing;
|
| 26 |
+
+ A sparse MoE with 128 experts activates 8 routed experts and 1 shared expert per token, enabling broad model capabilities with only 1.3B activated parameters per token.
|
| 27 |
+
+ Native hybrid reasoning enables fast responses for routine tasks and multi-step reasoning for complex tasks within a single model.
|
| 28 |
|
| 29 |
Together, these designs target three goals:
|
| 30 |
|
|
|
|
| 36 |

|
| 37 |
|
| 38 |
# Evaluation
|
| 39 |
+
We evaluated Ling-3.0-tiny across agentic tasks, coding, long-context understanding, knowledge reliability, mathematical and scientific reasoning, and instruction following.
|
| 40 |
+
Ling-3.0-tiny achieves a score of **25** on the Artificial Analysis Intelligence Index v4.1.1 and **16** on the Artificial Analysis Agentic Index.
|
| 41 |
+
In Artificial Analysis testing, Ling-3.0-tiny reaches an output speed of over **160 tokens/s**, with approximately **18 seconds** of end-to-end latency for a 500-token response, including reasoning time.
|
| 42 |
+
These results highlight the model's efficiency relative to its 1.3B activated parameter footprint.
|
| 43 |
|
| 44 |
The following table presents representative benchmarks for Ling-3.0-tiny:
|
| 45 |
|
| 46 |

|
| 47 |
|
| 48 |
+
> + All Ling-3.0-tiny evaluation results use Thinking mode; the recommended sampling parameters are `temperature=1.0`, `top_p=0.95`, and `top_k=20`.
|
| 49 |
+
> + 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=1.0, max_new_tokens=32K, with a 256K context window.
|
| 50 |
|
| 51 |
# Quickstart
|
| 52 |
## SGLang
|
|
|
|
| 102 |
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.
|
| 103 |
|
| 104 |
## vLLM
|
| 105 |
+
### Install vLLM with Ling-3.0 Support
|
| 106 |
```bash
|
| 107 |
pip install uv
|
| 108 |
|
|
|
|
| 118 |
```
|
| 119 |
|
| 120 |
### Run Inference
|
| 121 |
+
Here is the example to run Ling-3.0-tiny with a single GPU, where the server port is `${PORT}`:
|
| 122 |
|
| 123 |
**Server**
|
| 124 |
|
|
|
|
| 138 |
|
| 139 |
**Client**
|
| 140 |
|
| 141 |
+
For better performance, We recommend setting `enable_thinking=true` with `temperature=1.0`, `top_p=0.95`, and `top_k=20`.
|
| 142 |
|
| 143 |
```bash
|
| 144 |
curl -s http://${MASTER_IP}:${PORT}/v1/chat/completions \
|
|
|
|
| 154 |
```
|
| 155 |
|
| 156 |
## Ollama
|
| 157 |
+
> + This configuration has been verified on an M4 Pro Mac with 48 GB of unified memory.
|
|
|
|
| 158 |
|
| 159 |
### Preparation and Build
|
| 160 |
```bash
|
|
|
|
| 167 |
cmake --build build --parallel 8
|
| 168 |
```
|
| 169 |
|
| 170 |
+
> + Support is currently provided by [ollama/ollama#17643](https://github.com/ollama/ollama/pull/17643) and is limited to running via MLX on Apple Silicon.
|
| 171 |
+
> + Use the local `./ollama` executable built from source in this section. This functionality is not yet included in the official Ollama release.
|
|
|
|
|
|
|
| 172 |
|
| 173 |
### Import Model
|
| 174 |
Replace `/absolute/path/to/bf16_weights` with the absolute path to the BF16 model weights directory. The imported model will be named `ling-tiny-bf16`:
|