{
  "hf_id": "OpenGVLab/InternVL3_5-241B-A28B",
  "meta": {
    "title": "InternVL3_5-241B-A28B (Ascend historical deployment)",
    "slug": "internvl3-5-241b-a28b",
    "provider": "OpenGVLab",
    "description": "InternVL3.5 241B-A28B W8A8 on Atlas 800I A3. This recipe records the vLLM Ascend v0.30.0 deployment, the release in which official support ended.",
    "date_added": "2026-11-20",
    "date_updated": "2026-11-21",
    "tasks": [
      "multimodal"
    ],
    "default_hardware": "ascend_910c",
    "hardware": {
      "ascend_910c": "supported"
    }
  },
  "recommended_command": {
    "hardware": "ascend_910c",
    "strategy": "single_node_tp",
    "variant": "default",
    "hub": "huggingface",
    "checkpoint_url": "https://huggingface.co/Eco-Tech/InternVL3_5-241B-A28B-w8a8",
    "node_count": 1,
    "deploy_type": "single_node",
    "env": {
      "VLLM_USE_MODELSCOPE": "True",
      "MODELSCOPE_CACHE": "/root/.cache/huggingface/modelscope",
      "PYTORCH_NPU_ALLOC_CONF": "expandable_segments:True",
      "TASK_QUEUE_ENABLE": "1",
      "HCCL_OP_EXPANSION_MODE": "AIV",
      "OMP_PROC_BIND": "false",
      "OMP_NUM_THREADS": "1",
      "HCCL_BUFFSIZE": "1536",
      "ASCEND_RT_VISIBLE_DEVICES": "0,1,2,3,4,5,6,7"
    },
    "docker_image": "quay.io/ascend/vllm-ascend@sha256:0b8bf5b484d49c667ceab717347eb3a8695388429aebd9084b79fa0f57a545c0",
    "command": "vllm serve Eco-Tech/InternVL3_5-241B-A28B-w8a8 \\\n  --host 127.0.0.1 \\\n  --port 2001 \\\n  --served-model-name internvl3_5 \\\n  --trust-remote-code \\\n  --max-model-len 40960 \\\n  --max-num-batched-tokens 4096 \\\n  --data-parallel-size 2 \\\n  --max-num-seqs 70 \\\n  --gpu-memory-utilization 0.9 \\\n  --compilation-config '{\"cudagraph_mode\":\"FULL_DECODE_ONLY\"}' \\\n  --additional-config '{\"weight_nz_mode\":1,\"enable_cpu_binding\":true,\"enable_fused_mc2\":1}' \\\n  --mm-processor-cache-gb 0 \\\n  --enable-chunked-prefill \\\n  --enable-expert-parallel \\\n  --safetensors-load-strategy prefetch \\\n  --revision 14f6db45aad1fcc208903a1507285baa30ab0583 \\\n  --tensor-parallel-size 4",
    "argv": [
      "vllm",
      "serve",
      "Eco-Tech/InternVL3_5-241B-A28B-w8a8",
      "--host",
      "127.0.0.1",
      "--port",
      "2001",
      "--served-model-name",
      "internvl3_5",
      "--trust-remote-code",
      "--max-model-len",
      "40960",
      "--max-num-batched-tokens",
      "4096",
      "--data-parallel-size",
      "2",
      "--max-num-seqs",
      "70",
      "--gpu-memory-utilization",
      "0.9",
      "--compilation-config",
      "{\"cudagraph_mode\":\"FULL_DECODE_ONLY\"}",
      "--additional-config",
      "{\"weight_nz_mode\":1,\"enable_cpu_binding\":true,\"enable_fused_mc2\":1}",
      "--mm-processor-cache-gb",
      "0",
      "--enable-chunked-prefill",
      "--enable-expert-parallel",
      "--safetensors-load-strategy",
      "prefetch",
      "--revision",
      "14f6db45aad1fcc208903a1507285baa30ab0583",
      "--tensor-parallel-size",
      "4"
    ],
    "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 --ipc=host \\\n  -v ~/.cache/huggingface:/root/.cache/huggingface \\\n  -e VLLM_USE_MODELSCOPE=True \\\n  -e MODELSCOPE_CACHE=/root/.cache/huggingface/modelscope \\\n  -e PYTORCH_NPU_ALLOC_CONF=expandable_segments:True \\\n  -e TASK_QUEUE_ENABLE=1 \\\n  -e HCCL_OP_EXPANSION_MODE=AIV \\\n  -e OMP_PROC_BIND=false \\\n  -e OMP_NUM_THREADS=1 \\\n  -e HCCL_BUFFSIZE=1536 \\\n  -e ASCEND_RT_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 \\\n  quay.io/ascend/vllm-ascend@sha256:0b8bf5b484d49c667ceab717347eb3a8695388429aebd9084b79fa0f57a545c0 \\\n  vllm serve Eco-Tech/InternVL3_5-241B-A28B-w8a8 \\\n  --host 127.0.0.1 \\\n  --port 2001 \\\n  --served-model-name internvl3_5 \\\n  --trust-remote-code \\\n  --max-model-len 40960 \\\n  --max-num-batched-tokens 4096 \\\n  --data-parallel-size 2 \\\n  --max-num-seqs 70 \\\n  --gpu-memory-utilization 0.9 \\\n  --compilation-config '{\"cudagraph_mode\":\"FULL_DECODE_ONLY\"}' \\\n  --additional-config '{\"weight_nz_mode\":1,\"enable_cpu_binding\":true,\"enable_fused_mc2\":1}' \\\n  --mm-processor-cache-gb 0 \\\n  --enable-chunked-prefill \\\n  --enable-expert-parallel \\\n  --safetensors-load-strategy prefetch \\\n  --revision 14f6db45aad1fcc208903a1507285baa30ab0583 \\\n  --tensor-parallel-size 4",
    "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",
      "--ipc=host",
      "-v",
      "~/.cache/huggingface:/root/.cache/huggingface",
      "-e",
      "VLLM_USE_MODELSCOPE=True",
      "-e",
      "MODELSCOPE_CACHE=/root/.cache/huggingface/modelscope",
      "-e",
      "PYTORCH_NPU_ALLOC_CONF=expandable_segments:True",
      "-e",
      "TASK_QUEUE_ENABLE=1",
      "-e",
      "HCCL_OP_EXPANSION_MODE=AIV",
      "-e",
      "OMP_PROC_BIND=false",
      "-e",
      "OMP_NUM_THREADS=1",
      "-e",
      "HCCL_BUFFSIZE=1536",
      "-e",
      "ASCEND_RT_VISIBLE_DEVICES=0,1,2,3,4,5,6,7",
      "quay.io/ascend/vllm-ascend@sha256:0b8bf5b484d49c667ceab717347eb3a8695388429aebd9084b79fa0f57a545c0",
      "vllm",
      "serve",
      "Eco-Tech/InternVL3_5-241B-A28B-w8a8",
      "--host",
      "127.0.0.1",
      "--port",
      "2001",
      "--served-model-name",
      "internvl3_5",
      "--trust-remote-code",
      "--max-model-len",
      "40960",
      "--max-num-batched-tokens",
      "4096",
      "--data-parallel-size",
      "2",
      "--max-num-seqs",
      "70",
      "--gpu-memory-utilization",
      "0.9",
      "--compilation-config",
      "{\"cudagraph_mode\":\"FULL_DECODE_ONLY\"}",
      "--additional-config",
      "{\"weight_nz_mode\":1,\"enable_cpu_binding\":true,\"enable_fused_mc2\":1}",
      "--mm-processor-cache-gb",
      "0",
      "--enable-chunked-prefill",
      "--enable-expert-parallel",
      "--safetensors-load-strategy",
      "prefetch",
      "--revision",
      "14f6db45aad1fcc208903a1507285baa30ab0583",
      "--tensor-parallel-size",
      "4"
    ],
    "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": "/OpenGVLab/InternVL3_5-241B-A28B/hw/ascend_910c.json"
    }
  },
  "model": {
    "model_id": "OpenGVLab/InternVL3_5-241B-A28B",
    "architecture": "moe",
    "parameter_count": "240.7B",
    "active_parameters": "28B",
    "context_length": 40960,
    "min_vllm_version": "0.30.0",
    "docker_image": "quay.io/ascend/vllm-ascend@sha256:0b8bf5b484d49c667ceab717347eb3a8695388429aebd9084b79fa0f57a545c0",
    "nightly_required": false,
    "default_frontend": "python",
    "base_args": [
      "--host",
      "127.0.0.1",
      "--port",
      "2001",
      "--served-model-name",
      "internvl3_5",
      "--trust-remote-code",
      "--max-model-len",
      "40960",
      "--max-num-batched-tokens",
      "4096",
      "--data-parallel-size",
      "2",
      "--max-num-seqs",
      "70",
      "--gpu-memory-utilization",
      "0.9",
      "--compilation-config",
      "{\"cudagraph_mode\":\"FULL_DECODE_ONLY\"}",
      "--additional-config",
      "{\"weight_nz_mode\":1,\"enable_cpu_binding\":true,\"enable_fused_mc2\":1}",
      "--mm-processor-cache-gb",
      "0",
      "--enable-chunked-prefill",
      "--enable-expert-parallel",
      "--safetensors-load-strategy",
      "prefetch",
      "--revision",
      "14f6db45aad1fcc208903a1507285baa30ab0583"
    ],
    "base_env": {
      "VLLM_USE_MODELSCOPE": "True",
      "MODELSCOPE_CACHE": "/root/.cache/huggingface/modelscope",
      "PYTORCH_NPU_ALLOC_CONF": "expandable_segments:True",
      "TASK_QUEUE_ENABLE": "1",
      "HCCL_OP_EXPANSION_MODE": "AIV",
      "OMP_PROC_BIND": "false",
      "OMP_NUM_THREADS": "1",
      "HCCL_BUFFSIZE": "1536",
      "ASCEND_RT_VISIBLE_DEVICES": "0,1,2,3,4,5,6,7"
    },
    "install": {
      "docker": {
        "command": "docker pull quay.io/ascend/vllm-ascend@sha256:0b8bf5b484d49c667ceab717347eb3a8695388429aebd9084b79fa0f57a545c0",
        "note": "InternVL3.5 is discontinued since vLLM Ascend v0.30.0. No support is claimed for later releases. Start the container using the Guide."
      }
    }
  },
  "variants": {
    "default": {
      "model_id": "Eco-Tech/InternVL3_5-241B-A28B-w8a8",
      "precision": "int8",
      "label": "W8A8 (Ascend)",
      "description": "The Guide was tested on one Atlas 800I A3 node with TP4 × DP2 + EP, 8 logical devices, and port 2001. Coverage includes an image request, a GSM8K sample, full MMMU and a text benchmark. The generated Docker command has no runtime verification.",
      "vram_minimum_gb": 289,
      "supported_hardware": [
        "ascend_910c"
      ],
      "tp": 4,
      "hardware_overrides": {
        "ascend_910c": {
          "docker_image": "quay.io/ascend/vllm-ascend@sha256:0b8bf5b484d49c667ceab717347eb3a8695388429aebd9084b79fa0f57a545c0",
          "docker_ipc": "host",
          "docker_serve_command": "vllm serve"
        }
      },
      "json": "/Eco-Tech/InternVL3_5-241B-A28B-w8a8.json"
    }
  },
  "strategy_min_gpus": 8,
  "hardware_overrides": {},
  "hardware_notes": {
    "ascend_910c": {
      "title": "Tested A3 deployment",
      "body": "Follow the Guide to start the container with 8 logical devices and the /models mount. Run the Guide's Serve and image request on port 2001. The generated Docker command uses ModelScope and the mounted host cache. Use the Guide for the tested local weights and image request.",
      "link": {
        "href": "#check-readiness-and-run-image-inference",
        "label": "Verify in Guide"
      }
    }
  },
  "notes": [
    {
      "title": "Historical release boundary",
      "when": {
        "hardware": [
          "ascend_910c"
        ]
      },
      "body": "InternVL3.5 241B-A28B has been discontinued in vLLM Ascend since v0.30.0.\nThis recipe records the deployment tested with the pinned v0.30.0 image.\nLater releases, main and nightly are outside its validation scope."
    }
  ],
  "guide": "## Atlas 800I A3 / W8A8 / TP4 DP2 EP\n\nInternVL3.5 241B-A28B pairs an InternViT vision encoder with a Qwen3 language model for image understanding and multimodal dialogue. This sparse MoE checkpoint has 240.7B total parameters and about 28B active parameters.\n\nThis guide serves the W8A8 checkpoint on one A3 node with TP4 × DP2 + EP across eight logical devices. It covers an image request, an eight-question GSM8K check, the full 900-example MMMU validation set and a text benchmark. The runs used the pinned vLLM Ascend v0.30.0 image. Official support ended in v0.30.0. Later releases, main and nightly are outside this deployment’s validation scope. The historical tutorial documents single-node serving and lists multi-node PD separation as unsupported.\n\nStart the Guide's Docker container on the host. It maps devices 0–7, mounts the host's /models and uses /models as the working directory. Start the service in that container and use the Guide's verification commands on port 2001.\n\nThe generated Docker command is configured to load the same checkpoint revision from ModelScope. Its host cache needs room for the checkpoint and access to ModelScope. For an image request against that server, use an HTTPS image URL or a Base64 data URL in `image_url.url`. The generated Docker path has not been run on A3. The steps below reproduce the tested local deployment.\n\n### Prepare the checkpoint\n\nBefore starting the container, use Git and Git LFS on the host to download the exact W8A8 checkpoint into a new directory under /models.\n\n```shell\nCHECKPOINT=/models/Eco-Tech/InternVL3_5-241B-A28B-w8a8\nREVISION=14f6db45aad1fcc208903a1507285baa30ab0583\ngit lfs version &&\nmkdir -p /models/Eco-Tech &&\nGIT_LFS_SKIP_SMUDGE=1 git clone --no-checkout \\\n  https://www.modelscope.cn/Eco-Tech/InternVL3_5-241B-A28B-w8a8.git \"$CHECKPOINT\" &&\ngit -C \"$CHECKPOINT\" lfs install --local &&\nGIT_LFS_SKIP_SMUDGE=1 git -C \"$CHECKPOINT\" checkout --detach \"$REVISION\" &&\ngit -C \"$CHECKPOINT\" lfs pull origin &&\ngit -C \"$CHECKPOINT\" lfs fsck --objects HEAD\n```\n\n### Original tiger photo\n\nRun on the host. This command also verifies an original JPEG already staged at the destination.\n\n```shell\n(\n  set -euo pipefail\n  asset_dir=/models/evidence/internvl-release-retest\n  mkdir -p \"$asset_dir\"\n  if [ ! -f \"$asset_dir/tiger.jpeg\" ]; then\n    curl -fL --retry 3 --connect-timeout 10 --max-time 60 \\\n      https://modelscope.oss-cn-beijing.aliyuncs.com/resource/tiger.jpeg \\\n      -o \"$asset_dir/tiger.jpeg.download\"\n    cd \"$asset_dir\"\n    echo '303d9137e3f494f2fb83dc2fafa05c4143eab2316a0438a8335fe661ee8b97bf  tiger.jpeg.download' | sha256sum -c -\n    mv tiger.jpeg.download tiger.jpeg\n  fi\n  cd \"$asset_dir\"\n  echo '303d9137e3f494f2fb83dc2fafa05c4143eab2316a0438a8335fe661ee8b97bf  tiger.jpeg' | sha256sum -c -\n)\n```\n\n### A3 release container\n\nRun the container command on the host. Run the serve and evaluation commands in separate shells inside the release container. Stage the original tiger image and pinned evaluator files before evaluation.\n\n```bash\n# A3 release container\n# quay.io/ascend/vllm-ascend:v0.30.0-a3-openeuler\nIMAGE=quay.io/ascend/vllm-ascend@sha256:0b8bf5b484d49c667ceab717347eb3a8695388429aebd9084b79fa0f57a545c0\ndocker run --rm -it --name internvl241-release --net=host --ipc=host \\\n  --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/davinci_manager --device /dev/devmm_svm --device /dev/hisi_hdc \\\n  -v /usr/local/Ascend/driver:/usr/local/Ascend/driver \\\n  -v /usr/local/dcmi:/usr/local/dcmi \\\n  -v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \\\n  -v /etc/ascend_install.info:/etc/ascend_install.info \\\n  -v /models:/models -w /models \"$IMAGE\" bash\n```\n\n### Start the server\n\nThe service listens on the loopback interface.\n\n```bash\n# A3 release serve\ncd /models\nexport PYTORCH_NPU_ALLOC_CONF=expandable_segments:True\nexport TASK_QUEUE_ENABLE=1\nexport HCCL_OP_EXPANSION_MODE=AIV\nexport OMP_PROC_BIND=false\nexport OMP_NUM_THREADS=1\nexport HCCL_BUFFSIZE=1536\nexport ASCEND_RT_VISIBLE_DEVICES=0,1,2,3,4,5,6,7\nvllm serve Eco-Tech/InternVL3_5-241B-A28B-w8a8 \\\n  --host 127.0.0.1 \\\n  --port 2001 \\\n  --served-model-name internvl3_5 \\\n  --trust-remote-code \\\n  --max-model-len 40960 \\\n  --max-num-batched-tokens 4096 \\\n  --tensor-parallel-size 4 \\\n  --data-parallel-size 2 \\\n  --max-num-seqs 70 \\\n  --gpu-memory-utilization 0.9 \\\n  --compilation-config '{\"cudagraph_mode\":\"FULL_DECODE_ONLY\"}' \\\n  --additional-config '{\"weight_nz_mode\":1,\"enable_cpu_binding\":true,\"enable_fused_mc2\":1}' \\\n  --mm-processor-cache-gb 0 \\\n  --enable-chunked-prefill \\\n  --enable-expert-parallel \\\n  --safetensors-load-strategy prefetch \\\n  --allowed-local-media-path /models/evidence/internvl-release-retest\n```\n\n### Check readiness and run image inference\n\nPlace the original tutorial photo at `/models/evidence/internvl-release-retest/tiger.jpeg` before running this block. Confirm that the response describes a tiger lying on grass.\n\n```bash\n# A3 release image inference\ncurl --noproxy '*' -fsS --connect-timeout 5 --max-time 15 http://127.0.0.1:2001/health -w 'Health HTTP %{http_code}\\n' &&\ncurl --noproxy '*' -fsS --connect-timeout 5 --max-time 15 http://127.0.0.1:2001/v1/models -w '\\nModels HTTP %{http_code}\\n' &&\ncurl --noproxy '*' --fail-with-body --silent --show-error --connect-timeout 5 --max-time 120 \\\n  http://127.0.0.1:2001/v1/chat/completions -H 'Content-Type: application/json' \\\n  --data-binary '{\"model\":\"internvl3_5\",\"temperature\":0,\"max_tokens\":64,\"messages\":[{\"role\":\"user\",\"content\":[{\"type\":\"image_url\",\"image_url\":{\"url\":\"file:///models/evidence/internvl-release-retest/tiger.jpeg\"}},{\"type\":\"text\",\"text\":\"What animal is shown in the image, and what is it doing?\"}]}]}' \\\n  --write-out \"\\nImage request HTTP %{http_code}\\n\"\n```\n\n### AISBench GSM8K demo setup\n\nRun in the verification shell inside the release container. Verify the OpenCompass GSM8K train and test files before running the demo.\n\n```shell\n(\n  set -euo pipefail\n  bench=/models/tools/aisbench-241b\n  revision=e968d1bd7f48404bd913b95560f33938072336fa\n  git init -q \"$bench/benchmark\"\n  git -C \"$bench/benchmark\" fetch --depth=1 https://gitee.com/aisbench/benchmark.git \"$revision\" \\\n    || git -C \"$bench/benchmark\" fetch --depth=1 https://github.com/AISBench/benchmark.git \"$revision\"\n  git -C \"$bench/benchmark\" checkout --detach \"$revision\"\n  python3 -m venv \"$bench/venv\"\n  \"$bench/venv/bin/python\" -m pip install -e \"$bench/benchmark\" --use-pep517\n  \"$bench/venv/bin/python\" -m pip install \\\n    -r \"$bench/benchmark/requirements/api.txt\" -r \"$bench/benchmark/requirements/extra.txt\"\n  cd \"$bench/benchmark/ais_bench/datasets\"\n  curl -fL --retry 3 https://opencompass.oss-cn-shanghai.aliyuncs.com/datasets/data/gsm8k.zip -o \"$bench/gsm8k.zip\"\n  unzip -oq \"$bench/gsm8k.zip\"\n  sha256sum -c <<'SHA'\n17f347dc51477c50d4efb83959dbb7c56297aba886e5544ee2aaed3024813465  gsm8k/train.jsonl\n3730d312f6e3440559ace48831e51066acaca737f6eabec99bccb9e4b3c39d14  gsm8k/test.jsonl\nSHA\n)\n```\n\n### Run the AISBench GSM8K demo\n\nUse the pinned AISBench checkout and eight-example GSM8K demo. Preserve the predictions and scores.\n\n```bash\n# A3 release AISBench GSM8K demo\nout=/models/evidence/internvl-release-retest/internvl241\nmkdir -p \"$out\"\ncat > \"$out/gsm8k-demo.py\" <<'PY'\nfrom mmengine.config import read_base\nwith read_base():\n    from ais_bench.benchmark.configs.models.vllm_api.vllm_api_general_chat import models\n    from ais_bench.benchmark.configs.datasets.demo.demo_gsm8k_gen_4_shot_cot_chat_prompt import gsm8k_datasets as datasets\nmodels[0][\"model\"] = \"internvl3_5\"\nmodels[0][\"host_ip\"] = \"127.0.0.1\"\nmodels[0][\"host_port\"] = 2001\nmodels[0][\"batch_size\"] = 1\nmodels[0][\"max_out_len\"] = 512\nmodels[0][\"generation_kwargs\"][\"temperature\"] = 0\nwork_dir = \"/models/evidence/internvl-release-retest/internvl241/aisbench-results\"\nPY\n(cd /models/tools/aisbench-241b/benchmark && /models/tools/aisbench-241b/venv/bin/ais_bench \"$out/gsm8k-demo.py\")\n```\n\n### MMMU evaluator and dataset setup\n\nRun in the verification shell inside the release container. This prepares all four task files from the locked lmms-eval commit and verifies the pinned MMMU validation Parquet and its 900 rows. Set HF_ENDPOINT if you need a different Hugging Face endpoint.\n\n```shell\n(\n  set -euo pipefail\n  vision=/models/tools/internvl-mmmu-21eff4c\n  task_dir=/models/evidence/internvl-release-retest/mmmu-task\n  revision=21eff4c82912300f5213114afe67bee4c0e0a31c\n  data_revision=364f2e2eb107b36e07ff4c5a15f5947a759cef47\n  mkdir -p \"$task_dir\"\n  git init -q \"$vision/lmms-eval\"\n  git -C \"$vision/lmms-eval\" fetch --depth=1 https://github.com/EvolvingLMMs-Lab/lmms-eval.git \"$revision\"\n  git -C \"$vision/lmms-eval\" checkout --detach \"$revision\"\n  python3 -m venv --system-site-packages \"$vision/venv\"\n  \"$vision/venv/bin/python\" -m pip install -e \"$vision/lmms-eval\"\n  for helper in _default_template_yaml arial.ttf utils.py; do\n    git -C \"$vision/lmms-eval\" show \"$revision:lmms_eval/tasks/mmmu/$helper\" > \"$task_dir/$helper\"\n  done\n  git -C \"$vision/lmms-eval\" show \"$revision:lmms_eval/tasks/mmmu/mmmu_val.yaml\" |\n    sed -e \"/^dataset_path:/a dataset_kwargs:\\n  revision: $data_revision\\n  data_files:\\n    validation: data/validation-00000-of-00001.parquet\" \\\n      -e 's/^task: \"mmmu_val\"$/task: \"mmmu_val_pinned\"/' > \"$task_dir/mmmu_val_pinned.yaml\"\n  cd \"$task_dir\"\n  sha256sum -c <<'SHA'\nf7877d5a314f6b94d15f906188f2c7f189edc8b5058faf0f87942a9174fbb481  _default_template_yaml\n35c0f3559d8db569e36c31095b8a60d441643d95f59139de40e23fada819b833  arial.ttf\naf694572294100a7d2cec604812a8bfcd910bae9ed0ed870735624f10ebe75b0  mmmu_val_pinned.yaml\nb15aab0b4002a463969b1ece0049b5435179092c4b7f9c42f747b19128c32672  utils.py\nSHA\n  export HF_ENDPOINT=\"${HF_ENDPOINT:-https://hf-mirror.com}\"\n  export HF_HOME=\"$vision/hf-cache\" HF_HUB_DISABLE_XET=1\n  \"$vision/venv/bin/python\" - <<'PY'\nfrom hashlib import file_digest\nfrom datasets import load_dataset\nfrom huggingface_hub import hf_hub_download\n\nrepo = \"lmms-lab-encoder/MMMU\"\nrev = \"364f2e2eb107b36e07ff4c5a15f5947a759cef47\"\nname = \"data/validation-00000-of-00001.parquet\"\nwith open(hf_hub_download(repo, name, revision=rev, repo_type=\"dataset\"), \"rb\") as stream:\n    assert file_digest(stream, \"sha256\").hexdigest() == \"18e0e97776217e7b5fc992dc9594014e7adc0cc0473f624ea957c18702e16681\"\nassert len(load_dataset(repo, revision=rev, data_files={\"validation\": name}, split=\"validation\")) == 900\nPY\n)\n```\n\n### Run the MMMU diagnostic trial\n\nCheck the API and evaluator with six samples.\n\n```bash\n# A3 release pinned MMMU trial\nout=/models/evidence/internvl-release-retest/internvl241\nmkdir -p \"$out\"\nexport HF_ENDPOINT=\"${HF_ENDPOINT:-https://hf-mirror.com}\"\nexport HF_HOME=/models/tools/internvl-mmmu-21eff4c/hf-cache HF_HUB_DISABLE_XET=1\nexport OPENAI_API_KEY=EMPTY PYTHONUNBUFFERED=1 TOKENIZERS_PARALLELISM=false\ntask_dir=/models/evidence/internvl-release-retest/mmmu-task\n/models/tools/internvl-mmmu-21eff4c/venv/bin/python -m lmms_eval --model openai \\\n  --model_args model_version=internvl3_5,base_url=http://127.0.0.1:2001/v1,num_concurrent=1,timeout=120,max_retries=1 \\\n  --include_path \"$task_dir\" --tasks mmmu_val_pinned --batch_size 1 --seed 0 \\\n  --gen_kwargs temperature=0,max_new_tokens=128 --log_samples \\\n  --output_path \"$out/mmmu-trial\" --limit 6\n```\n\n### Run the full MMMU validation\n\nUse all 900 validation examples from the pinned MMMU revision at temperature 0 and a 128-token cap.\n\n```bash\n# A3 release pinned MMMU full\nout=/models/evidence/internvl-release-retest/internvl241\nmkdir -p \"$out\"\nexport HF_ENDPOINT=\"${HF_ENDPOINT:-https://hf-mirror.com}\"\nexport HF_HOME=/models/tools/internvl-mmmu-21eff4c/hf-cache HF_HUB_DISABLE_XET=1\nexport OPENAI_API_KEY=EMPTY PYTHONUNBUFFERED=1 TOKENIZERS_PARALLELISM=false\ntask_dir=/models/evidence/internvl-release-retest/mmmu-task\n/models/tools/internvl-mmmu-21eff4c/venv/bin/python -m lmms_eval --model openai \\\n  --model_args model_version=internvl3_5,base_url=http://127.0.0.1:2001/v1,num_concurrent=1,timeout=120,max_retries=1 \\\n  --include_path \"$task_dir\" --tasks mmmu_val_pinned --batch_size 1 --seed 0 \\\n  --gen_kwargs temperature=0,max_new_tokens=128 --log_samples \\\n  --output_path \"$out/mmmu-full\"\n```\n\n### Run the text benchmark\n\nRun three seeds, each with five warm-ups and 100 measured text requests. Record TTFT, TPOT, ITL and token throughput.\n\n```bash\n# A3 release text benchmark\nout=/models/evidence/internvl-release-retest/internvl241/text-benchmark\nmkdir -p \"$out\"\nfor seed in 0 1 2; do\n  vllm bench serve --backend vllm \\\n    --model /models/Eco-Tech/InternVL3_5-241B-A28B-w8a8 --served-model-name internvl3_5 \\\n    --base-url http://127.0.0.1:2001 --endpoint /v1/completions --dataset-name random \\\n    --random-input-len 2048 --random-output-len 128 --random-range-ratio 0 --random-prefix-len 0 \\\n    --seed \"$seed\" --num-prompts 100 --num-warmups 5 --max-concurrency 1 --request-rate inf --ignore-eos \\\n    --percentile-metrics ttft,tpot,itl,e2el --metric-percentiles 50,99 \\\n    --save-result --save-detailed --result-dir \"$out\" --result-filename \"seed-$seed.json\"\ndone\n```\n\n### Sources\n\n- [Historical tutorial](https://docs.vllm.ai/projects/ascend/en/v0.23.0/tutorials/models/InternVL3.5.html)\n- [Main tutorial support status](https://docs.vllm.ai/projects/ascend/en/main/tutorials/models/InternVL3.5.html)",
  "source": {
    "source": "vllm-ascend",
    "repo": "vllm-project/vllm-ascend",
    "ref": "main",
    "sha": "6b4d41666331194e442dc12344cdc7f335a4b4dd",
    "path": "recipes/models/OpenGVLab/InternVL3_5-241B-A28B.yaml",
    "edit_url": "https://github.com/vllm-project/vllm-ascend/edit/main/recipes/models/OpenGVLab/InternVL3_5-241B-A28B.yaml",
    "overlays": []
  }
}