{
  "hf_id": "Qwen/Qwen3-VL-Embedding-2B",
  "meta": {
    "title": "Qwen3-VL-Embedding-2B",
    "slug": "Qwen3-VL-Embedding-2B",
    "provider": "Qwen",
    "description": "2B vision-language embedding model. Single-card pooling verified on Atlas A3 (Ascend 910C) and Atlas 300I DUO (310P) with vLLM Ascend 0.23.0.",
    "date_added": "2026-10-19",
    "date_updated": "2026-11-27",
    "tasks": [
      "embedding"
    ],
    "performance_headline": "Atlas A3: LeCaRDv2 0.65931, embeddings bench 153.13 req/s (vLLM Ascend 0.23.0)",
    "default_hardware": "ascend_910c",
    "hardware": {
      "ascend_910c": "verified"
    }
  },
  "recommended_command": {
    "hardware": "ascend_910c",
    "strategy": "single_node_tp",
    "variant": "default",
    "hub": "huggingface",
    "checkpoint_url": "https://huggingface.co/Qwen/Qwen3-VL-Embedding-2B",
    "node_count": 1,
    "deploy_type": "single_node",
    "env": {
      "PYTORCH_NPU_ALLOC_CONF": "expandable_segments:True"
    },
    "docker_image": "quay.io/ascend/vllm-ascend:v0.23.0-a3",
    "command": "vllm serve Qwen/Qwen3-VL-Embedding-2B \\\n  --runner pooling \\\n  --max-model-len 32768 \\\n  --enforce-eager \\\n  --tensor-parallel-size 1",
    "argv": [
      "vllm",
      "serve",
      "Qwen/Qwen3-VL-Embedding-2B",
      "--runner",
      "pooling",
      "--max-model-len",
      "32768",
      "--enforce-eager",
      "--tensor-parallel-size",
      "1"
    ],
    "docker_command": "docker run --device /dev/davinci0 --device /dev/davinci1 --device /dev/davinci2 --device /dev/davinci3 \\\n  --device /dev/davinci4 --device /dev/davinci5 --device /dev/davinci6 --device /dev/davinci7 \\\n  --device /dev/davinci8 --device /dev/davinci9 --device /dev/davinci10 --device /dev/davinci11 \\\n  --device /dev/davinci12 --device /dev/davinci13 --device /dev/davinci14 --device /dev/davinci15 \\\n  --device /dev/davinci_manager --device /dev/hisi_hdc \\\n  -v /usr/local/Ascend/driver:/usr/local/Ascend/driver \\\n  -v /etc/ascend_install.info:/etc/ascend_install.info \\\n  -v /usr/local/dcmi:/usr/local/dcmi \\\n  -v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \\\n  --privileged --net=host --shm-size=16g \\\n  -v ~/.cache/huggingface:/root/.cache/huggingface \\\n  -e PYTORCH_NPU_ALLOC_CONF=expandable_segments:True \\\n  quay.io/ascend/vllm-ascend:v0.23.0-a3 \\\n  vllm serve Qwen/Qwen3-VL-Embedding-2B \\\n  --runner pooling \\\n  --max-model-len 32768 \\\n  --enforce-eager \\\n  --tensor-parallel-size 1",
    "docker_argv": [
      "docker",
      "run",
      "--device",
      "/dev/davinci0",
      "--device",
      "/dev/davinci1",
      "--device",
      "/dev/davinci2",
      "--device",
      "/dev/davinci3",
      "--device",
      "/dev/davinci4",
      "--device",
      "/dev/davinci5",
      "--device",
      "/dev/davinci6",
      "--device",
      "/dev/davinci7",
      "--device",
      "/dev/davinci8",
      "--device",
      "/dev/davinci9",
      "--device",
      "/dev/davinci10",
      "--device",
      "/dev/davinci11",
      "--device",
      "/dev/davinci12",
      "--device",
      "/dev/davinci13",
      "--device",
      "/dev/davinci14",
      "--device",
      "/dev/davinci15",
      "--device",
      "/dev/davinci_manager",
      "--device",
      "/dev/hisi_hdc",
      "-v",
      "/usr/local/Ascend/driver:/usr/local/Ascend/driver",
      "-v",
      "/etc/ascend_install.info:/etc/ascend_install.info",
      "-v",
      "/usr/local/dcmi:/usr/local/dcmi",
      "-v",
      "/usr/local/bin/npu-smi:/usr/local/bin/npu-smi",
      "--privileged",
      "--net=host",
      "--shm-size",
      "16g",
      "-v",
      "~/.cache/huggingface:/root/.cache/huggingface",
      "-e",
      "PYTORCH_NPU_ALLOC_CONF=expandable_segments:True",
      "quay.io/ascend/vllm-ascend:v0.23.0-a3",
      "vllm",
      "serve",
      "Qwen/Qwen3-VL-Embedding-2B",
      "--runner",
      "pooling",
      "--max-model-len",
      "32768",
      "--enforce-eager",
      "--tensor-parallel-size",
      "1"
    ],
    "strategy_spec": {
      "name": "single_node_tp",
      "deploy_type": "single_node",
      "display_name": "Tensor Parallel",
      "short_label": "TP",
      "orientation": "latency",
      "description": "Single-node tensor parallel. Splits the model across all local GPUs. TP size is set to the GPU count at deploy time. The simplest multi-GPU strategy — works for all model architectures.\n",
      "hardware_match": {
        "min_gpus": 1,
        "max_gpus": 8,
        "multi_node": false
      },
      "vllm_args": [],
      "parallel_flag": "--tensor-parallel-size"
    },
    "hardware_profile": {
      "brand": "Huawei",
      "generation": "npu",
      "display_name": "Ascend 910C",
      "description": "Huawei Ascend 910C · 16× NPU · 64 GB HBM each · Atlas 800 A3 · vLLM Ascend backend",
      "gpu_count": 16,
      "vram_gb": 1024,
      "multi_node": false,
      "restricted": true
    },
    "by_hardware": {
      "ascend_910c": "/Qwen/Qwen3-VL-Embedding-2B/hw/ascend_910c.json"
    }
  },
  "model": {
    "model_id": "Qwen/Qwen3-VL-Embedding-2B",
    "min_vllm_version": "0.23.0",
    "architecture": "dense",
    "parameter_count": "2B",
    "active_parameters": "2B",
    "context_length": 32768,
    "base_args": [
      "--runner",
      "pooling",
      "--max-model-len",
      "32768"
    ],
    "install": {
      "pip": {
        "command": "uv venv\nsource .venv/bin/activate\nuv pip install -U vllm --torch-backend auto"
      },
      "docker": {
        "command": "docker pull vllm/vllm-openai:latest"
      }
    }
  },
  "variants": {
    "default": {
      "precision": "bf16",
      "vram_minimum_gb": 8,
      "supported_hardware": [
        "ascend_910c"
      ],
      "hardware_overrides": {
        "ascend_910c": {
          "docker_image": "quay.io/ascend/vllm-ascend:v0.23.0-a3",
          "docker_serve_command": "vllm serve",
          "extra_args": [
            "--enforce-eager"
          ],
          "extra_env": {
            "PYTORCH_NPU_ALLOC_CONF": "expandable_segments:True"
          }
        }
      },
      "description": "BF16 pooling on one Ascend 910C die; --enforce-eager required on the verified 0.23.0 stack"
    }
  },
  "guide": "## Overview\n\nQwen3-VL-Embedding-2B produces vectors for text and mixed multimodal inputs\n(retrieval, clustering, similarity). This Ascend-owned recipe records verified\nsingle-card pooling on Atlas A3 (Ascend 910C) and Atlas 300I DUO (310P) with\nvLLM 0.23.0 / vLLM Ascend 0.23.0. Atlas 800I A2 commands from the official\ntutorial are included as an untested reference. The recipes renderer has no\ndedicated 310P hardware profile yet, so 310P evidence is documented in prose.\n\n## Launching the Server\n\n### Ascend 910C / Atlas 800 A3 (verified)\n\nOn the verified vLLM Ascend 0.23.0 stack, engine init failed during torch.compile\nunless `--enforce-eager` is set. Default dtype is bfloat16. The default command\nuses `--max-model-len 32768` (model context); lower it for low-memory hosts.\n\n```bash\nexport ASCEND_RT_VISIBLE_DEVICES=0\nexport PYTORCH_NPU_ALLOC_CONF=expandable_segments:True\n\nvllm serve Qwen/Qwen3-VL-Embedding-2B \\\n  --runner pooling \\\n  --max-model-len 32768 \\\n  --enforce-eager \\\n  --port 8000\n```\n\nSmoke: HTTP 200, dimension 2048, `prompt_tokens` 39.\n\nEmbeddings bench (`vllm bench serve --backend openai-embeddings --dataset-name random\n--endpoint /v1/embeddings --random-input 200`, no request-rate limit, 1000 requests):\n1000/1000 success, 153.13 req/s, 30626.58 tok/s, mean E2E 4644.98 ms, P99 6426.33 ms.\n\nAccuracy: MTEB `LeCaRDv2` **0.65931** via `VllmEncoderWrapper`\n(`revision=\"norm\"`, `dtype=\"float16\"`, `max_model_len=10240`, `enforce_eager=True`,\n`enable_chunked_prefill=False`, `batch_size=1`). Default chunked prefill stalled at\n151/159 prompts on this host.\n\n### Atlas 300I DUO / 310P (verified on hardware; no renderer profile yet)\n\nUse a low `--max-model-len` on 310P to avoid oversized attention masks / OOM.\n\n```bash\nexport ASCEND_RT_VISIBLE_DEVICES=0\nexport PYTORCH_NPU_ALLOC_CONF=expandable_segments:True\n\nvllm serve Qwen/Qwen3-VL-Embedding-2B \\\n  --runner pooling \\\n  --dtype float16 \\\n  --max-model-len 1024 \\\n  --compilation-config '{\"cudagraph_capture_sizes\": [1024,512]}' \\\n  --additional-config '{\"ascend_compilation_config\": {\"fuse_norm_quant\": false}}' \\\n  --port 8000\n```\n\n`--runner pooling` is required. Keep `--max-model-len` explicit. `No module named\n'triton'` is expected on 310P. Verified 310P3 smoke: HTTP 200, dimension 2048,\n`prompt_tokens` 39, leading values match the tutorial sample.\n\n### Atlas 800I A2 (tutorial reference, not verified here)\n\n```bash\nvllm serve Qwen/Qwen3-VL-Embedding-2B \\\n  --runner pooling \\\n  --max-model-len 1024 \\\n  --port 8000\n```\n\n## Client Usage\n\n```bash\ncurl -sS http://localhost:8000/v1/embeddings \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"model\": \"Qwen/Qwen3-VL-Embedding-2B\",\n    \"input\": [\n      \"The capital of China is Beijing.\",\n      \"Gravity is a force that attracts two bodies towards each other. It gives weight to physical objects and is responsible for the movement of planets around the sun.\"\n    ]\n  }'\n```\n\n## Troubleshooting\n\n- **Startup OOM:** set `--max-model-len 1024` and `--dtype float16` on 310P.\n- **Not an embeddings response:** restart with `--runner pooling`.\n- **A3 compile failure:** add `--enforce-eager`.\n\n## References\n\n- Downstream Ascend recipes (merged): https://github.com/vllm-ascend/vllm-ascend-recipes/pull/117\n- [Qwen3-VL-Embedding tutorial](https://docs.vllm.ai/projects/ascend/en/latest/tutorials/models/Qwen3-VL-Embedding.html)\n- [ModelScope](https://www.modelscope.cn/models/Qwen/Qwen3-VL-Embedding-2B)\n",
  "source": {
    "source": "vllm-ascend",
    "repo": "vllm-project/vllm-ascend",
    "ref": "main",
    "sha": "16a052054acfb3a51bdf010a3aedca3dcf51c869",
    "path": "recipes/models/Qwen/Qwen3-VL-Embedding-2B.yaml",
    "edit_url": "https://github.com/vllm-project/vllm-ascend/edit/main/recipes/models/Qwen/Qwen3-VL-Embedding-2B.yaml",
    "overlays": []
  }
}