# inclusionAI/Ling-3.2-air — vLLM serving recipe

> Ling-3.2-air vision-language MoE with block-FP8 weights and optional 1M-token YaRN

Configuration: hardware `h200` (8× H200) · strategy `single_node_tep` (Tensor + Expert Parallel) · variant `default` (FP8) · features none

- Interactive page: https://recipes.vllm.ai/inclusionAI/Ling-3.2-air
- This configuration as JSON: https://recipes.vllm.ai/inclusionAI/Ling-3.2-air.json?hardware=h200

The commands below were rendered for exactly this configuration and take precedence over any example in the guide.

## Other configurations

Change the query string (the same parameters as the page URL) and fetch this URL again. Unknown or incompatible values fall back to the recipe default, so check the Configuration line.

- `hardware`: `h100`, `h200`, `b200`, `gb200`, `b300`, `gb300`, `mi300x`, `mi325x`, `mi350x`, `mi355x`
- `variant`: `default`
- `strategy`: `single_node_tp`, `single_node_tep` (multi-node strategies also need `nodes=<n>`)
- `features`: comma-separated list of `tool_calling`, `reasoning`, `long_context` (default: none). Use `features=none` to turn them all off.

## Install

Requires vLLM >= 0.35.0 (not released yet — nightly wheel).

vLLM 0.35.0 isn't released yet — nightly required. Nightly wheels are CUDA 13 (cu130) only; the host needs an r580+ NVIDIA driver.

```bash
uv venv
source .venv/bin/activate
uv pip install -U vllm --pre \
  --extra-index-url https://wheels.vllm.ai/nightly/cu130 \
  --extra-index-url https://download.pytorch.org/whl/cu130 \
  --index-strategy unsafe-best-match
```

Docker image: `vllm/vllm-openai:nightly`

## Serve

```bash
vllm serve inclusionAI/Ling-3.2-air \
  --trust-remote-code \
  --dtype bfloat16 \
  --gpu-memory-utilization 0.9 \
  --enable-chunked-prefill \
  --enable-prefix-caching \
  --compilation-config '{"cudagraph_mode":"FULL_AND_PIECEWISE"}' \
  --enable-expert-parallel \
  --tensor-parallel-size 8
```

Docker equivalent:

```bash
docker run --gpus all \
  --privileged --ipc=host -p 8000:8000 \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  vllm/vllm-openai:nightly inclusionAI/Ling-3.2-air \
  --trust-remote-code \
  --dtype bfloat16 \
  --gpu-memory-utilization 0.9 \
  --enable-chunked-prefill \
  --enable-prefix-caching \
  --compilation-config '{"cudagraph_mode":"FULL_AND_PIECEWISE"}' \
  --enable-expert-parallel \
  --tensor-parallel-size 8
```

## Guide

> Background reference. Commands in it are examples and may target another configuration — use the Serve section above.

### Overview

`inclusionAI/Ling-3.2-air` uses the
`BailingMoeV3VLForConditionalGeneration` architecture with a hybrid
MLA/KDA text backbone, 42 layers, 512 routed experts (8 active per token),
and a vision encoder. Weights use block-FP8 E4M3 with 128x128 scaling
and dynamic activation quantization; excluded modules remain BF16.

### Prerequisites

- **vLLM:** latest nightly with Bailing multimodal YaRN support; v0.34.0 lacks this path
- **Deployment:** a single node with 8 GPUs, defaulting to TP8 + EP8; TP8 is also available
- **Precision:** block FP8 weights with BF16 compute
- **Context length:** 262,080 tokens; optional 1,048,576-token YaRN
- **Memory:** about 150 GB aggregate VRAM as a loading estimate; allow additional KV-cache capacity

The parameter count is estimated from the supplied configuration.
This recipe has not yet been validated on GPU.

### YaRN Context Extension

The optional YaRN configuration uses `factor=4.0` and an original window
of 262,144 tokens. Overrides target `text_config.rope_parameters`, retain
`mrope_section=[8,12,12]`, and set the context limit to 1,048,576 tokens.
YaRN stays opt-in because it changes short-context behavior and increases
KV-cache requirements.

### Image Requests

```python
import base64
from pathlib import Path
from openai import OpenAI

client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")
image = base64.b64encode(Path("image.png").read_bytes()).decode("ascii")
response = client.chat.completions.create(
    model="inclusionAI/Ling-3.2-air",
    messages=[{
        "role": "user",
        "content": [
            {"type": "image_url", "image_url": {"url": f"data:image/png;base64,{image}"}},
            {"type": "text", "text": "Describe the image."},
        ],
    }],
    temperature=0.0,
    max_tokens=1024,
)
print(response.choices[0].message.content)
```

### References

- [Ling-3.2-air checkpoint](https://huggingface.co/inclusionAI/Ling-3.2-air)
- [Official Ling VL video and YaRN support](https://github.com/vllm-project/vllm/pull/65848)
- [vLLM nightly installation](https://docs.vllm.ai/en/latest/getting_started/installation/gpu/#install-the-latest-code)
