{
  "hf_id": "inclusionAI/Ling-3.2-air",
  "meta": {
    "title": "Ling-3.2-air",
    "slug": "ling-3-2-air",
    "provider": "inclusionAI",
    "description": "Ling-3.2-air vision-language MoE with block-FP8 weights and optional 1M-token YaRN",
    "date_added": "2026-11-23",
    "date_updated": "2026-11-24",
    "tasks": [
      "text",
      "multimodal"
    ],
    "related_recipes": [
      "inclusionAI/Ling-3.1-flash",
      "inclusionAI/Ling-3.0-flash-VL"
    ]
  },
  "recommended_command": {
    "hardware": "h200",
    "strategy": "single_node_tep",
    "variant": "default",
    "node_count": 1,
    "deploy_type": "single_node",
    "env": {},
    "docker_image": "vllm/vllm-openai:nightly",
    "command": "vllm serve inclusionAI/Ling-3.2-air \\\n  --trust-remote-code \\\n  --dtype bfloat16 \\\n  --gpu-memory-utilization 0.9 \\\n  --enable-chunked-prefill \\\n  --enable-prefix-caching \\\n  --compilation-config '{\"cudagraph_mode\":\"FULL_AND_PIECEWISE\"}' \\\n  --enable-expert-parallel \\\n  --tensor-parallel-size 8",
    "argv": [
      "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_command": "docker run --gpus all \\\n  --privileged --ipc=host -p 8000:8000 \\\n  -v ~/.cache/huggingface:/root/.cache/huggingface \\\n  vllm/vllm-openai:nightly inclusionAI/Ling-3.2-air \\\n  --trust-remote-code \\\n  --dtype bfloat16 \\\n  --gpu-memory-utilization 0.9 \\\n  --enable-chunked-prefill \\\n  --enable-prefix-caching \\\n  --compilation-config '{\"cudagraph_mode\":\"FULL_AND_PIECEWISE\"}' \\\n  --enable-expert-parallel \\\n  --tensor-parallel-size 8",
    "docker_argv": [
      "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"
    ],
    "strategy_spec": {
      "name": "single_node_tep",
      "deploy_type": "single_node",
      "display_name": "Tensor + Expert Parallel",
      "short_label": "TEP",
      "orientation": "balanced",
      "description": "Single-node TEP. TP splits dense layers and EP splits expert layers across local GPUs. TP must be set to GPU count to avoid OOM from replicated dense layers. For MoE models only.\n",
      "hardware_match": {
        "min_gpus": 2,
        "max_gpus": 8,
        "multi_node": false,
        "architecture": "moe"
      },
      "vllm_args": [
        "--enable-expert-parallel"
      ],
      "parallel_flag": "--tensor-parallel-size"
    },
    "hardware_profile": {
      "brand": "NVIDIA",
      "generation": "hopper",
      "compute_arch": "sm90",
      "display_name": "H200",
      "description": "NVIDIA H200 SXM 141 GB HBM3e · 8-GPU HGX node",
      "gpu_count": 8,
      "vram_gb": 1128,
      "multi_node": false
    },
    "alternatives": {
      "single_node_tp": "/inclusionAI/Ling-3.2-air/strategies/single_node_tp.json",
      "kv_store_centralized_mooncake": "/inclusionAI/Ling-3.2-air/strategies/kv_store_centralized_mooncake.json",
      "kv_store_distributed_mooncake": "/inclusionAI/Ling-3.2-air/strategies/kv_store_distributed_mooncake.json"
    },
    "by_hardware": {
      "h200": "/inclusionAI/Ling-3.2-air/hw/h200.json",
      "h100": "/inclusionAI/Ling-3.2-air/hw/h100.json",
      "b200": "/inclusionAI/Ling-3.2-air/hw/b200.json",
      "gb200": "/inclusionAI/Ling-3.2-air/hw/gb200.json",
      "b300": "/inclusionAI/Ling-3.2-air/hw/b300.json",
      "gb300": "/inclusionAI/Ling-3.2-air/hw/gb300.json",
      "mi300x": "/inclusionAI/Ling-3.2-air/hw/mi300x.json",
      "mi325x": "/inclusionAI/Ling-3.2-air/hw/mi325x.json",
      "mi350x": "/inclusionAI/Ling-3.2-air/hw/mi350x.json",
      "mi355x": "/inclusionAI/Ling-3.2-air/hw/mi355x.json"
    }
  },
  "model": {
    "model_id": "inclusionAI/Ling-3.2-air",
    "min_vllm_version": "0.35.0",
    "nightly_required": true,
    "docker_image": {
      "nvidia": "vllm/vllm-openai:nightly",
      "amd": "vllm/vllm-openai-rocm:nightly"
    },
    "architecture": "moe",
    "parameter_count": "~125B",
    "context_length": 262080,
    "base_args": [
      "--trust-remote-code",
      "--dtype",
      "bfloat16",
      "--gpu-memory-utilization",
      "0.9",
      "--enable-chunked-prefill",
      "--enable-prefix-caching",
      "--compilation-config",
      "{\"cudagraph_mode\":\"FULL_AND_PIECEWISE\"}"
    ],
    "install": {
      "pip": {
        "command": "uv venv\nsource .venv/bin/activate\nuv pip install -U vllm --pre \\\n  --extra-index-url https://wheels.vllm.ai/nightly/cu130 \\\n  --extra-index-url https://download.pytorch.org/whl/cu130 \\\n  --index-strategy unsafe-best-match",
        "note": "vLLM 0.35.0 isn't released yet — nightly required. Nightly wheels are CUDA 13 (cu130) only; the host needs an r580+ NVIDIA driver."
      },
      "docker": {
        "command": "docker pull vllm/vllm-openai:nightly"
      }
    }
  },
  "features": {
    "tool_calling": {
      "description": "Enable Ling 3 automatic tool calling",
      "args": [
        "--enable-auto-tool-choice",
        "--tool-call-parser",
        "ling3"
      ]
    },
    "reasoning": {
      "description": "Split Ling 3 thinking traces into reasoning",
      "args": [
        "--reasoning-parser",
        "ling3"
      ]
    },
    "long_context": {
      "label": "YaRN 1M",
      "description": "Extend to 1,048,576 tokens with 4x YaRN over a 262,144-token original window",
      "args": [
        "--hf-overrides",
        "{\"text_config\":{\"max_position_embeddings\":1048576,\"rope_parameters\":{\"rope_type\":\"yarn\",\"factor\":4.0,\"original_max_position_embeddings\":262144,\"partial_rotary_factor\":0.5,\"rope_theta\":6000000,\"mrope_section\":[8,12,12],\"mscale\":1.0,\"mscale_all_dim\":0.0}}}",
        "--max-model-len",
        "1048576"
      ]
    }
  },
  "opt_in_features": [
    "tool_calling",
    "reasoning",
    "long_context"
  ],
  "variants": {
    "default": {
      "precision": "fp8",
      "vram_minimum_gb": 150,
      "tp": 8,
      "description": "Block-FP8 E4M3 weights, 128x128 block scaling, with BF16 compute."
    }
  },
  "guide": "## Overview\n\n`inclusionAI/Ling-3.2-air` uses the\n`BailingMoeV3VLForConditionalGeneration` architecture with a hybrid\nMLA/KDA text backbone, 42 layers, 512 routed experts (8 active per token),\nand a vision encoder. Weights use block-FP8 E4M3 with 128x128 scaling\nand dynamic activation quantization; excluded modules remain BF16.\n\n## Prerequisites\n\n- **vLLM:** latest nightly with Bailing multimodal YaRN support; v0.34.0 lacks this path\n- **Deployment:** a single node with 8 GPUs, defaulting to TP8 + EP8; TP8 is also available\n- **Precision:** block FP8 weights with BF16 compute\n- **Context length:** 262,080 tokens; optional 1,048,576-token YaRN\n- **Memory:** about 150 GB aggregate VRAM as a loading estimate; allow additional KV-cache capacity\n\nThe parameter count is estimated from the supplied configuration.\nThis recipe has not yet been validated on GPU.\n\n## YaRN Context Extension\n\nThe optional YaRN configuration uses `factor=4.0` and an original window\nof 262,144 tokens. Overrides target `text_config.rope_parameters`, retain\n`mrope_section=[8,12,12]`, and set the context limit to 1,048,576 tokens.\nYaRN stays opt-in because it changes short-context behavior and increases\nKV-cache requirements.\n\n## Image Requests\n\n```python\nimport base64\nfrom pathlib import Path\nfrom openai import OpenAI\n\nclient = OpenAI(base_url=\"http://localhost:8000/v1\", api_key=\"EMPTY\")\nimage = base64.b64encode(Path(\"image.png\").read_bytes()).decode(\"ascii\")\nresponse = client.chat.completions.create(\n    model=\"inclusionAI/Ling-3.2-air\",\n    messages=[{\n        \"role\": \"user\",\n        \"content\": [\n            {\"type\": \"image_url\", \"image_url\": {\"url\": f\"data:image/png;base64,{image}\"}},\n            {\"type\": \"text\", \"text\": \"Describe the image.\"},\n        ],\n    }],\n    temperature=0.0,\n    max_tokens=1024,\n)\nprint(response.choices[0].message.content)\n```\n\n## References\n\n- [Ling-3.2-air checkpoint](https://huggingface.co/inclusionAI/Ling-3.2-air)\n- [Official Ling VL video and YaRN support](https://github.com/vllm-project/vllm/pull/65848)\n- [vLLM nightly installation](https://docs.vllm.ai/en/latest/getting_started/installation/gpu/#install-the-latest-code)\n",
  "source": {
    "source": "recipes",
    "repo": "vllm-project/recipes",
    "ref": "main",
    "sha": null,
    "path": "models/inclusionAI/Ling-3.2-air.yaml",
    "edit_url": "https://github.com/vllm-project/recipes/edit/main/models/inclusionAI/Ling-3.2-air.yaml",
    "overlays": []
  }
}