inclusionAI/Ling-3.2-air
Ling-3.2-air vision-language MoE with block-FP8 weights and optional 1M-token YaRN
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 8The interactive builder loads with JavaScript. Append .md to this page's URL, query string included, for any configuration's command as Markdown — e.g. /inclusionAI/Ling-3.2-air.md.
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
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)