TellWorldAI World Archive

Home›Practice›Practice

Practice

Deploying Ling-3.2-air with SGLang and vLLM

Ling-3.2-air is an open-weight multimodal model with 124B total and 5.5B active parameters. This guide covers serving it with SGLang and vLLM and sending an image request.

Who this is for and what you will get

This guide is for developers who want to host an open-weight multimodal model on their own GPUs and send it images or video. By the end you will have Ling-3.2-air running behind SGLang or vLLM, a working request that includes an image, and an understanding of what the main launch flags do.

What Ling-3.2-air is

Ling-3.2-air is an open-weight model. It shares the same native multimodal architecture as Ling-3.0-flash-VL[1]. The model uses a hybrid-linear Mixture-of-Experts design with 124B total parameters, of which 5.5B are activated for each token[1]. The transformer combines 35 KDA layers with 7 Gated MLA layers, a 5:1 ratio, and its first two layers are dense[1]. It has 512 routed experts and one shared expert, and eight experts are activated per token[1]. The model card lists a hidden size of 2560 and a vocabulary size of 157184[1]. The license is MIT[1].

Reading the benchmark numbers

The model card compares Ling-3.2-air with its predecessor, Ling-3.0-flash-VL[1]. The AutomationBench-AA score rises from 15.7% to 61%. The GDP.pdf all-pass rate rises from 8.4% to 16%. The AA-Briefcase v1.1 Elo rating rises from 987 to 1340, a gain of 353 points. The Terminal-Bench 4.0 pass rate on terminal tasks rises from 0% to 27%[1]. The model card also gives a score of 23 on the Artificial Analysis Intelligence Index v5.0.1[1].

On Harvey LAB-AA v1.1 the model card reports an 87.7% criterion pass rate. The all-pass rate is 8.3% before the material hallucination check and 0.8% after it[1]. These are the model card's own figures, and a different task set or setup will give different results.

Preparing the image and hardware

The SGLang image that supports Ling-3.2-air includes MTP (NEXTN) speculative decoding and Hopper decode optimizations[1]:

docker pull lmsysorg/sglang:dev-Ling-3.0-flash-VL

The recommended SGLang recipe runs a 256K context on four 141GB-class GPUs (H20-3e or H200), or on four-GPU Blackwell nodes (B300 or GB300)[1]. On 80GB cards such as the H100 or H800, the model card says to scale the recipe to --tp 8[1].

Option 1: serve with SGLang

The command below starts the container and loads the model with a context length of 262144, which is 256K[1]:

docker run --rm --gpus all --ipc=host --shm-size 32g \
  -p 30000:30000 \
  lmsysorg/sglang:dev-Ling-3.0-flash-VL \
  python3 -m sglang.launch_server \
    --model-path inclusionAI/Ling-3.2-air \
    --tp 4 \
    --context-length 262144 \
    --speculative-algorithm NEXTN \
    --trust-remote-code \
    --reasoning-parser auto \
    --tool-call-parser auto \
    --host 0.0.0.0 \
    --port 30000

--tp 4 sets four-way tensor parallelism, and --speculative-algorithm NEXTN turns on NEXTN speculative decoding. The reasoning and tool-call parsers are set to auto, which resolves them to ling3 from the chat template. You can also set them explicitly to ling3[1].

Sending an image request

The model card recommends temperature=1.0, top_p=0.95 and top_k=20, with enable_thinking set to true for better performance[1]:

curl -s http://localhost:30000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "inclusionAI/Ling-3.2-air",
    "messages": [{
      "role": "user",
      "content": [
        {"type": "image_url", "image_url": {"url": "https://example.com/image.png"}},
        {"type": "text", "text": "Describe this image in one sentence."}
      ]
    }],
    "chat_template_kwargs": {"enable_thinking": true},
    "stream": true,
    "temperature": 1.0,
    "top_k": 20,
    "top_p": 0.95
  }'

Video input uses the same message shape as images, with a content item of the form {"type": "video_url", "video_url": {"url": "..."}}[1].

Option 2: serve with vLLM

For vLLM, create a virtual environment with uv, clone the vllm-ling-v3 repository and install it in editable mode[1]:

pip install uv

uv venv ~/my_ling_env

source ~/my_ling_env/bin/activate

git clone https://github.com/inclusionAI/vllm-ling-v3.git

cd vllm-ling-v3

VLLM_USE_PRECOMPILED=1 uv pip install --editable . --torch-backend=auto

The server command sets tensor parallel size to 4 and GPU memory utilization to 0.85. It turns on prefix caching, uses the ling3 tool-call and reasoning parsers, and enables MTP speculative decoding with three tokens[1]:

vllm serve "$MODEL_PATH" \
    --port "$PORT" \
    --trust-remote-code \
    --served-model-name auto \
    --tensor-parallel-size 4 \
    --gpu-memory-utilization 0.85 \
    --enable-prefix-caching \
    --mamba-cache-mode align \
    --enable-auto-tool-choice \
    --tool-call-parser ling3 \
    --reasoning-parser ling3 \
    --speculative-config '{"method":"mtp","num_speculative_tokens":3}'

Common problems

  • Not enough memory: the model card gives recipes for four and eight GPUs, and says to scale to --tp 8 on 80GB cards[1].
  • Tool calls or reasoning output parsed incorrectly: check that the parsers resolve to ling3, or set them explicitly on the command line[1].

Next step

The full model overview, architecture diagram and evaluation tables are on the model card[1].

Adapted from the Ling-3.2-air model card on Hugging Face[1], released under the MIT License.

Sources

  1. 1
    Ling-3.2-airHugging Face

Cite this page: Deploying Ling-3.2-air with SGLang and vLLM. TellWorld, https://www.tellworld.net/practice/practice-ling-3-2-air. Updated 2026-11-24

Related news

View all