Deployment
Install SGLang
Install SGLang
Use the Ling-3.2-air image, built from the model-support pull request #52593. It is published for both Select Docker in the command panel to launch the image on the host. The Python command runs inside a container started from the same image. See Install with Docker for host setup.
linux/amd64 (B200, B300, H200, H20-3e, H100, H800) and linux/arm64 (GB300):Command
- Spec Decode → Off — the default. Standard decoding.
- Spec Decode → MTP (NEXTN) — speculative decoding with the MTP layer built into the checkpoint, on the same layout. On the measured GPUs it is slower than standard decoding; see MTP (NEXTN).
Playground
The Playground changes the tensor-parallel size of the selected recipe and shows the command diff. Commands it changes are not verified; the coverage table lists which TP sizes each GPU can run.1. Model introduction
Ling-3.2-air shares the native multimodal architecture of Ling-3.0-flash-VL (BailingMoeV3VLForConditionalGeneration). It is a hybrid-linear Mixture-of-Experts model with 124B total and 5.5B activated parameters.
- Language model: 42 layers, 35 Kimi Delta Attention (KDA) and 7 gated Multi-head Latent Attention (MLA) in a 5:1 pattern. The first 2 layers are dense; the rest use 512 routed experts (8 active per token) plus 1 shared expert, with an expert intermediate size of 768. One MTP layer is included for speculative decoding.
- Vision: a 27-layer vision encoder with 16-pixel patches and 2×2 spatial merging feeds image and video tokens to the language model. Positions use three-axis M-RoPE.
- Precision: language-model weights are FP8 E4M3 in 128×128 blocks with dynamic activation quantization; the vision encoder, projector, embeddings and LM head are not quantized. The checkpoint is about 129 GB.
- Context: 1,048,576 tokens, through YaRN (factor 4) over a 262,144-token native window, configured in the checkpoint’s
config.json. - Capabilities: image, multi-image and video input; reasoning, on by default; structured tool calling.
temperature=1.0, top_p=0.95, top_k=20, from the checkpoint’s generation_config.json. SGLang applies them to requests that do not set these fields.
2. Configuration tips
Coverage
| Hardware | Layout | Status |
|---|---|---|
| 2× B200 | TP2 | Verified, MTP and standard decoding |
| 4× GB300 | TP4 | Verified, MTP and standard decoding |
| 4× B300, H200 or H20-3e | TP4 | Not verified; model-card layout |
| 8× H100 or H800 | TP8 | Not verified; model-card layout |
| Other TP sizes | TP2, TP4 or TP8 | Not verified; set TP in the Playground. TP2 is unavailable on 80 GB GPUs, and TP8 on a four-GPU GB300 node. |
| AMD, Ascend, multi-node, PD disaggregation | — | Not covered: no recipe has been run, and the image targets NVIDIA GPUs. |
Parallelism and memory
- The recipes leave attention and MoE backends, memory fraction and context length at their defaults. SGLang detects FP8 from the checkpoint.
- At TP2 each rank holds 384 expert channels, three full 128-wide FP8 blocks. At TP4 and TP8 the per-rank slice (192 or 96) is not block-aligned, so SGLang pads it to the next block while loading; the TP4 padded path ran on GB300, and TP8 has not been run.
- Measured per-GPU weight memory: 59.8 GB on B200 at TP2 and 39.6 GB on GB300 at TP4. With MTP and the 1M context, the KV pool held 5,717,321 tokens on 2× B200 and 15,666,058 tokens on 4× GB300.
--trust-remote-codelets SGLang load the model config and multimodal processor that the checkpoint declares throughauto_map.--reasoning-parser auto --tool-call-parser autoboth resolve toling3from the chat template;--reasoning-parser ling3 --tool-call-parser ling3is equivalent. Reasoning is returned inmessage.reasoning_content, and tool calls inmessage.tool_calls.
MTP (NEXTN)
Standard decoding is the default recipe; MTP is an option.--speculative-algorithm NEXTNloads the draft layer from the same checkpoint and defaults to 3 steps, top-k 1, and 4 draft tokens; no draft model path is needed.- Measured accept length was 2.81 on B200 TP2 and 2.79 on GB300 TP4 over full GSM8K, and 2.49 on GB300 TP4 over ShareGPT prompts (tokens per verify step, including the target’s bonus token). Full GSM8K accuracy with MTP was within 0.4 points of standard decoding on the same GPU.
- With MTP, SGLang caps concurrent requests at 48 unless
--max-running-requestsis set; the measured recipes use this default. Set it for your target concurrency, within the KV-pool capacity. - MTP had lower output throughput and higher TTFT and TPOT than standard decoding, both in the random-prompt benchmarks on the cards and on real ShareGPT prompts:
| Decoding | Concurrency | Output tok/s | TTFT P50 (ms) | TPOT P50 (ms) |
|---|---|---|---|---|
| Standard | 1 | 279.2 | 29 | 3.51 |
| MTP (NEXTN) | 1 | 169.1 | 161 | 5.60 |
| Standard | 16 | 2011.2 | 41 | 7.80 |
| MTP (NEXTN) | 16 | 1356.1 | 179 | 11.30 |
Long context
The checkpoint configuration extends the 262,144-token native window to 1,048,576 tokens with YaRN (factor 4) on all three M-RoPE axes. SGLang reads this at startup, so the recipes need no context-length or RoPE flags. Single-needle retrieval with MTP, with the needle at 75% depth, thinking disabled, and the cache flushed before each request:| Hardware | Prompt tokens | Result | TTFT (s) |
|---|---|---|---|
| 2× B200, TP2 | 199,998 | Retrieved, stop | 9.7 |
| 2× B200, TP2 | 399,940 | Retrieved, stop | 13.9 |
| 2× B200, TP2 | 900,100 | Retrieved, stop | 42.7 |
| 4× GB300, TP4 | 399,940 | Retrieved, stop | 16.3 |
Thinking budget and GSM8K
Thinking is on by default. In full GSM8K runs with a 65,536-token budget, 2 to 7 of the 1,319 responses reached the budget, most of them while still reasoning, and ended withfinish_reason: length. Set max_tokens for your task, and disable thinking for short answers with "chat_template_kwargs": {"enable_thinking": false}.
To reproduce the accuracy on the benchmark cards, evaluate all 1,319 questions with the checkpoint’s sampling settings and check accuracy, finish_reason, truncation, and request errors together:
Command
3. Advanced usage
The examples below usetemperature=0 so the output matches the capture; remove it to use the checkpoint’s sampling defaults. The outputs were captured on 2× B200 at TP2 with MTP and the 1M-token configuration. The later examples reuse this client.
3.1 Reasoning
Thinking is on by default. Theling3 parser streams reasoning in delta.reasoning_content and the answer in delta.content.
Streaming reasoning request (Python)
Streaming reasoning request (Python)
Python
Example Output
Example Output
Output
extra_body={"chat_template_kwargs": {"enable_thinking": False}}; reasoning_content is then empty.
3.2 Tool calling
Theling3 tool-call parser returns structured calls in message.tool_calls, with finish_reason set to tool_calls. Print reasoning_content and content as well, and keep the complete assistant message when you send the tool result back.
Tool request (Python)
Tool request (Python)
Python
Example Output
Example Output
Output
3.3 Image understanding
Send images asimage_url content parts. For multi-image input, put several image_url parts in one message.
Image request (Python)
Image request (Python)
Python
Example Output
Example Output
Output
3.4 Video understanding
Send clips asvideo_url content parts.
Video request (Python)
Video request (Python)
Python
Example Output
Example Output
Output
