Views
No views yet
enable_thinking. It delivers balanced performance across general agent tasks, coding, mathematical and scientific reasoning, and instruction following.

- Thinking mode is enabled by default. The recommended sampling parameters for Ling-3.0-tiny are
temperature=1.0,top_p=0.95, andtop_k=20.- 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.
docker pull lmsysorg/sglang:dev-Ling-3.0-tiny1docker run --rm --gpus all --ipc=host --shm-size 32g \
2 -p 30000:30000 \
3 -e HF_TOKEN=<your-hf-token> \
4 lmsysorg/sglang:dev-Ling-3.0-tiny \
5 env SGLANG_ALLOW_OVERWRITE_LONGER_CONTEXT_LEN=1 \
6 python3 -m sglang.launch_server \
7 --model-path inclusionAI/Ling-3.0-tiny \
8 --tp 1 \
9 --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}}' \
10 --context-length 262144 \
11 --speculative-algorithm NEXTN \
12 --mem-fraction-static 0.8 \
13 --host 0.0.0.0 \
14 --port 30000ling3 reasoning parser. Disable it per request with "chat_template_kwargs": {"enable_thinking": false}. We recommend the sampling parameters temperature=1.0, top_p=0.95, and top_k=20.1curl -s http://localhost:30000/v1/chat/completions \
2 -H "Content-Type: application/json" \
3 -d '{"model": "auto",
4 "messages": [{"role": "user", "content": "What is the capital of France?"}],
5 "stream": true,
6 "temperature": 1.0,
7 "top_k": 20,
8 "top_p": 0.95
9 }'--reasoning-parser ling3 / --tool-call-parser ling3, the HiCache + Mooncake L3 setup, and GSM8K / bench_serving reproduction commands, see the cookbook page linked above.1pip install uv
2
3uv venv ~/my_ling_env
4
5source ~/my_ling_env/bin/activate
6
7git clone https://github.com/vllm-project/vllm.git
8
9cd vllm
10
11VLLM_USE_PRECOMPILED=1 uv pip install --editable . --torch-backend=auto${PORT}:1vllm serve "$MODEL_PATH" \
2 --port "$PORT" \
3 --trust-remote-code \
4 --served-model-name auto \
5 --tensor-parallel-size 1 \
6 --gpu-memory-utilization 0.85 \
7 --enable-prefix-caching \
8 --mamba-cache-mode align \
9 --enable-auto-tool-choice \
10 --tool-call-parser ling3 \
11 --reasoning-parser ling3enable_thinking=true with temperature=1.0, top_p=0.95, and top_k=20.1curl -s http://${MASTER_IP}:${PORT}/v1/chat/completions \
2 -H "Content-Type: application/json" \
3 -d '{"model": "auto",
4 "messages": [{"role": "user", "content": "What is the capital of France?"}],
5 "chat_template_kwargs": {"enable_thinking": true},
6 "stream": true,
7 "temperature": 1.0,
8 "top_k": 20,
9 "top_p": 0.95
10 }'
- This configuration has been verified on an M4 Pro Mac with 48 GB of unified memory.
1git clone https://github.com/ollama/ollama.git
2cd ollama
3git fetch origin refs/pull/17643/head:bailing-moe-v3
4git switch bailing-moe-v3
5
6cmake -B build .
7cmake --build build --parallel 8
- Support is currently provided by ollama/ollama#17643 and is limited to running via MLX on Apple Silicon.
- Use the local
./ollamaexecutable built from source in this section. This functionality is not yet included in the official Ollama release.
/absolute/path/to/bf16_weights with the absolute path to the BF16 model weights directory. The imported model will be named ling-tiny-bf16:1printf 'FROM /absolute/path/to/bf16_weights\n' > /tmp/Modelfile.ling
2./ollama create ling-tiny-bf16 --experimental -f /tmp/Modelfile.ling1# The service listens on http://127.0.0.1:11434 by default
2OLLAMA_CONTEXT_LENGTH=8192 ./ollama serve1curl -sS http://127.0.0.1:11434/api/generate -d '{
2 "model": "ling-tiny-bf16",
3 "prompt": "<role>SYSTEM</role>detailed thinking on<|role_end|><role>HUMAN</role>Calculate 17 × 23 and output only the number.<|role_end|><role>ASSISTANT</role>\n<think>",
4 "raw": true,
5 "think": true,
6 "stream": false,
7 "options": {
8 "temperature": 1.0,
9 "top_p": 0.95,
10 "top_k": 20,
11 "num_predict": 2048
12 }
13}' | jq -r .response