Skip to main content

Deployment

Use the Ling-3.2-air image, built from the model-support pull request #52593. It is published for both linux/amd64 (B200, B300, H200, H20-3e, H100, H800) and linux/arm64 (GB300):
Command
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.
Pick your hardware to generate the launch command. Each GPU has one tensor-parallel layout: TP2 on B200, TP4 on GB300, B300, H200 and H20-3e, and TP8 on H100 and H800.
  • 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).
The B200 and GB300 recipes ran on the release weights through full 1319-question GSM8K, text, reasoning, tool-call, image and video probes, and speed benchmarks; the MTP recipes also passed long-context retrieval. The other GPUs use the model card’s layouts and are not verified.

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.
Checkpoint: inclusionAI/Ling-3.2-air. License: MIT. Generation defaults: 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

HardwareLayoutStatus
2× B200TP2Verified, MTP and standard decoding
4× GB300TP4Verified, MTP and standard decoding
4× B300, H200 or H20-3eTP4Not verified; model-card layout
8× H100 or H800TP8Not verified; model-card layout
Other TP sizesTP2, TP4 or TP8Not 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-code lets SGLang load the model config and multimodal processor that the checkpoint declares through auto_map.
  • --reasoning-parser auto --tool-call-parser auto both resolve to ling3 from the chat template; --reasoning-parser ling3 --tool-call-parser ling3 is equivalent. Reasoning is returned in message.reasoning_content, and tool calls in message.tool_calls.

MTP (NEXTN)

Standard decoding is the default recipe; MTP is an option.
  • --speculative-algorithm NEXTN loads 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-requests is 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:
DecodingConcurrencyOutput tok/sTTFT P50 (ms)TPOT P50 (ms)
Standard1279.2293.51
MTP (NEXTN)1169.11615.60
Standard162011.2417.80
MTP (NEXTN)161356.117911.30
The ShareGPT runs used 4× GB300 at TP4 with the native 256K-token RoPE configuration: the first user turn of each conversation through the chat endpoint with the default thinking template, temperature 0, at most 512 output tokens with EOS respected, 48 prompts at concurrency 1 and 256 at concurrency 16, after one discarded 16-prompt warm-up pass, with the cache flushed before each pass. Output throughput counts actual generated tokens, including reasoning.
Command
For the concurrency-1 row, use --num-prompts 48 --max-concurrency 1.

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:
HardwarePrompt tokensResultTTFT (s)
2× B200, TP2199,998Retrieved, stop9.7
2× B200, TP2399,940Retrieved, stop13.9
2× B200, TP2900,100Retrieved, stop42.7
4× GB300, TP4399,940Retrieved, stop16.3
These are single synthetic cases at one depth; they show that the 1M window is reachable, not general long-context quality.

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 with finish_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 use temperature=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. The ling3 parser streams reasoning in delta.reasoning_content and the answer in delta.content.
Python
Output
To request a direct answer, pass extra_body={"chat_template_kwargs": {"enable_thinking": False}}; reasoning_content is then empty.

3.2 Tool calling

The ling3 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.
Python
Output

3.3 Image understanding

Send images as image_url content parts. For multi-image input, put several image_url parts in one message.
Python
Output

3.4 Video understanding

Send clips as video_url content parts.
Python
Output