Skip to content

[Bug]: DeepSeek-R1 can not run with mtp #4990

@Potabk

Description

@Potabk

Your current environment

The output of `python collect_env.py`
Collecting environment information...
PyTorch version: 2.8.0+cpu
Is debug build: False

OS: Ubuntu 22.04.5 LTS (aarch64)
GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04.2) 11.4.0
Clang version: Could not collect
CMake version: version 4.2.0
Libc version: glibc-2.35

Python version: 3.11.13 (main, Nov 20 2025, 16:57:00) [GCC 11.4.0] (64-bit runtime)
Python platform: Linux-5.10.0-182.0.0.95.r1941_123.hce2.aarch64-aarch64-with-glibc2.35

CPU:
Architecture:                         aarch64
CPU op-mode(s):                       64-bit
Byte Order:                           Little Endian
CPU(s):                               320
On-line CPU(s) list:                  0-319
Vendor ID:                            HiSilicon
Model:                                0
Thread(s) per core:                   1
Core(s) per cluster:                  80
Socket(s):                            -
Cluster(s):                           4
Stepping:                             0x0
Frequency boost:                      disabled
CPU max MHz:                          3000.0000
CPU min MHz:                          400.0000
BogoMIPS:                             200.00
Flags:                                fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm ssbs sb paca pacg dcpodp flagm2 frint svei8mm svef32mm svef64mm svebf16 i8mm bf16 dgh rng ecv
L1d cache:                            20 MiB (320 instances)
L1i cache:                            20 MiB (320 instances)
L2 cache:                             400 MiB (320 instances)
L3 cache:                             560 MiB (8 instances)
NUMA node(s):                         8
NUMA node0 CPU(s):                    0-39
NUMA node1 CPU(s):                    40-79
NUMA node2 CPU(s):                    80-119
NUMA node3 CPU(s):                    120-159
NUMA node4 CPU(s):                    160-199
NUMA node5 CPU(s):                    200-239
NUMA node6 CPU(s):                    240-279
NUMA node7 CPU(s):                    280-319
Vulnerability Gather data sampling:   Not affected
Vulnerability Itlb multihit:          Not affected
Vulnerability L1tf:                   Not affected
Vulnerability Mds:                    Not affected
Vulnerability Meltdown:               Not affected
Vulnerability Mmio stale data:        Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed:               Not affected
Vulnerability Spec rstack overflow:   Not affected
Vulnerability Spec store bypass:      Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:             Mitigation; __user pointer sanitization
Vulnerability Spectre v2:             Not affected
Vulnerability Srbds:                  Not affected
Vulnerability Tsx async abort:        Not affected

Versions of relevant libraries:
[pip3] mypy==1.11.1
[pip3] mypy_extensions==1.1.0
[pip3] numpy==1.26.4
[pip3] pyzmq==27.1.0
[pip3] sentence-transformers==5.2.0
[pip3] torch==2.8.0+cpu
[pip3] torch_npu==2.8.0
[pip3] torchvision==0.23.0
[pip3] transformers==4.57.1
[pip3] zmq==0.0.0
[conda] Could not collect
vLLM Version: 0.12.0
vLLM Ascend Version: 0.11.0rc1.dev626+g358194625 (git sha: 358194625)

ENV Variables:
ATB_OPSRUNNER_KERNEL_CACHE_LOCAL_COUNT=1
ATB_STREAM_SYNC_EVERY_RUNNER_ENABLE=0
ATB_OPSRUNNER_SETUP_CACHE_ENABLE=1
ATB_WORKSPACE_MEM_ALLOC_GLOBAL=1
ATB_DEVICE_TILING_BUFFER_BLOCK_NUM=32
ASCEND_VISIBLE_DEVICES=3,6,14,7,10,12,0,5,9,13,1,15,8,2,4,11
ATB_STREAM_SYNC_EVERY_KERNEL_ENABLE=0
ASCEND_RUNTIME_OPTIONS=
ATB_OPSRUNNER_KERNEL_CACHE_GLOABL_COUNT=5
VLLM_USE_MODELSCOPE=true
ATB_HOME_PATH=/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1
ASCEND_TOOLKIT_HOME=/usr/local/Ascend/ascend-toolkit/latest
ATB_COMPARE_TILING_EVERY_KERNEL=0
ASCEND_OPP_PATH=/usr/local/Ascend/ascend-toolkit/latest/opp
LD_LIBRARY_PATH=/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/lib:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/examples:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/tests/atbopstest:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64/plugin:/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/opskernel:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/nnengine:/usr/local/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe/op_tiling/lib/linux/aarch64:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_0/lib:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_0/examples:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_0/tests/atbopstest:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64/plugin:/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/opskernel:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/nnengine:/usr/local/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe/op_tiling:/usr/local/Ascend/driver/lib64/common/:/usr/local/Ascend/driver/lib64/driver/:
ASCEND_AICPU_PATH=/usr/local/Ascend/ascend-toolkit/latest
ATB_STREAM_SYNC_EVERY_OPERATION_ENABLE=0
ASCEND_HOME_PATH=/usr/local/Ascend/ascend-toolkit/latest
ATB_MATMUL_SHUFFLE_K_ENABLE=1
ATB_WORKSPACE_MEM_ALLOC_ALG_TYPE=1
ATB_HOST_TILING_BUFFER_BLOCK_NUM=128
ATB_SHARE_MEMORY_NAME_SUFFIX=
TORCH_DEVICE_BACKEND_AUTOLOAD=1
PYTORCH_NVML_BASED_CUDA_CHECK=1
TORCHINDUCTOR_COMPILE_THREADS=1


NPU:
+------------------------------------------------------------------------------------------------+
| npu-smi 25.2.1                   Version: 25.2.1                                               |
+---------------------------+---------------+----------------------------------------------------+
| NPU   Name                | Health        | Power(W)    Temp(C)           Hugepages-Usage(page)|
| Chip  Phy-ID              | Bus-Id        | AICore(%)   Memory-Usage(MB)  HBM-Usage(MB)        |
+===========================+===============+====================================================+
| 0     Ascend910           | OK            | 165.3       36                0    / 0             |
| 0     0                   | 0000:9D:00.0  | 0           0    / 0          3143 / 65536         |
+------------------------------------------------------------------------------------------------+
| 0     Ascend910           | OK            | -           36                0    / 0             |
| 1     1                   | 0000:9F:00.0  | 0           0    / 0          2887 / 65536         |
+===========================+===============+====================================================+
| 1     Ascend910           | OK            | 163.6       35                0    / 0             |
| 0     2                   | 0000:99:00.0  | 0           0    / 0          3141 / 65536         |
+------------------------------------------------------------------------------------------------+
| 1     Ascend910           | OK            | -           35                0    / 0             |
| 1     3                   | 0000:9B:00.0  | 0           0    / 0          2882 / 65536         |
+===========================+===============+====================================================+
| 2     Ascend910           | OK            | 161.5       34                0    / 0             |
| 0     4                   | 0000:95:00.0  | 0           0    / 0          3133 / 65536         |
+------------------------------------------------------------------------------------------------+
| 2     Ascend910           | OK            | -           34                0    / 0             |
| 1     5                   | 0000:97:00.0  | 0           0    / 0          2886 / 65536         |
+===========================+===============+====================================================+
| 3     Ascend910           | OK            | 165.0       34                0    / 0             |
| 0     6                   | 0000:91:00.0  | 0           0    / 0          3139 / 65536         |
+------------------------------------------------------------------------------------------------+
| 3     Ascend910           | OK            | -           34                0    / 0             |
| 1     7                   | 0000:93:00.0  | 0           0    / 0          2886 / 65536         |
+===========================+===============+====================================================+
| 4     Ascend910           | OK            | 167.1       34                0    / 0             |
| 0     8                   | 0000:8D:00.0  | 0           0    / 0          3143 / 65536         |
+------------------------------------------------------------------------------------------------+
| 4     Ascend910           | OK            | -           35                0    / 0             |
| 1     9                   | 0000:8F:00.0  | 0           0    / 0          2879 / 65536         |
+===========================+===============+====================================================+
| 5     Ascend910           | OK            | 165.7       34                0    / 0             |
| 0     10                  | 0000:89:00.0  | 0           0    / 0          3140 / 65536         |
+------------------------------------------------------------------------------------------------+
| 5     Ascend910           | OK            | -           37                0    / 0             |
| 1     11                  | 0000:8B:00.0  | 0           0    / 0          2881 / 65536         |
+===========================+===============+====================================================+
| 6     Ascend910           | OK            | 162.5       36                0    / 0             |
| 0     12                  | 0000:85:00.0  | 0           0    / 0          3143 / 65536         |
+------------------------------------------------------------------------------------------------+
| 6     Ascend910           | OK            | -           36                0    / 0             |
| 1     13                  | 0000:87:00.0  | 0           0    / 0          2876 / 65536         |
+===========================+===============+====================================================+
| 7     Ascend910           | OK            | 158.6       35                0    / 0             |
| 0     14                  | 0000:81:00.0  | 0           0    / 0          3145 / 65536         |
+------------------------------------------------------------------------------------------------+
| 7     Ascend910           | OK            | -           36                0    / 0             |
| 1     15                  | 0000:83:00.0  | 0           0    / 0          2876 / 65536         |
+===========================+===============+====================================================+
+---------------------------+---------------+----------------------------------------------------+
| NPU     Chip              | Process id    | Process name             | Process memory(MB)      |
+===========================+===============+====================================================+
| No running processes found in NPU 0                                                            |
+===========================+===============+====================================================+
| No running processes found in NPU 1                                                            |
+===========================+===============+====================================================+
| No running processes found in NPU 2                                                            |
+===========================+===============+====================================================+
| No running processes found in NPU 3                                                            |
+===========================+===============+====================================================+
| No running processes found in NPU 4                                                            |
+===========================+===============+====================================================+
| No running processes found in NPU 5                                                            |
+===========================+===============+====================================================+
| No running processes found in NPU 6                                                            |
+===========================+===============+====================================================+
| No running processes found in NPU 7                                                            |
+===========================+===============+====================================================+

CANN:
package_name=Ascend-cann-toolkit
version=8.3.RC2
innerversion=V100R001C23SPC002B210
compatible_version=[V100R001C15],[V100R001C18],[V100R001C19],[V100R001C20],[V100R001C21],[V100R001C23]
arch=aarch64
os=linux
path=/usr/local/Ascend/ascend-toolkit/8.3.RC2/aarch64-linux

🐛 Describe the bug

launch server

#!/bin/sh

# this obtained through ifconfig
# nic_name is the network interface name corresponding to local_ip of the current node
nic_name="eth0"
local_ip="10.0.0.205"

# AIV
export HCCL_OP_EXPANSION_MODE="AIV"
export HCCL_IF_IP=$local_ip
export GLOO_SOCKET_IFNAME=$nic_name
export TP_SOCKET_IFNAME=$nic_name
export HCCL_SOCKET_IFNAME=$nic_name
export VLLM_ASCEND_ENABLE_MLAPO=1
export VLLM_USE_MODELSCOPE=True

vllm serve vllm-ascend/DeepSeek-R1-W8A8 \
  --host 0.0.0.0 \
  --port 8000 \
  --data-parallel-size 4 \
  --tensor-parallel-size 4 \
  --quantization ascend \
  --seed 1024 \
  --served-model-name deepseek_r1 \
  --enable-expert-parallel \
  --max-num-seqs 16 \
  --max-model-len 16384 \
  --max-num-batched-tokens 4096 \
  --trust-remote-code \
  --gpu-memory-utilization 0.92 \
  --speculative-config '{"num_speculative_tokens":1,"method":"mtp"}' \
  --compilation-config '{"cudagraph_mode":"FULL_DECODE_ONLY"}'

curl http://0.0.0.0:8000/v1/completions \
    -H "Content-Type: application/json" \
    -d '{
        "model": "deepseek_r1",
        "prompt": "The future of AI is",
        "max_tokens": 50,
        "temperature": 0
    }'

error

 return func(*args, **kwargs)
(Worker_DP2_TP3_EP11 pid=1388) ERROR 12-13 11:25:59 [multiproc_executor.py:822]     return func(*args, **kwargs)
(Worker_DP2_TP2_EP10 pid=1309) ERROR 12-13 11:25:59 [multiproc_executor.py:822]     update_mla_attn_params(
(Worker_DP2_TP0_EP8 pid=1201) ERROR 12-13 11:25:59 [multiproc_executor.py:822]   File "/vllm-workspace/vllm-ascend/vllm_ascend/worker/model_runner_v1.py", line 2258, in _dummy_run
(Worker_DP3_TP0_EP12 pid=1199) ERROR 12-13 11:25:59 [multiproc_executor.py:822]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_DP2_TP1_EP9 pid=1229) ERROR 12-13 11:25:59 [multiproc_executor.py:822]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_DP1_TP3_EP7 pid=1394) ERROR 12-13 11:25:59 [multiproc_executor.py:822]     return func(*args, **kwargs)
(Worker_DP3_TP1_EP13 pid=1227) ERROR 12-13 11:25:59 [multiproc_executor.py:822]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_DP3_TP3_EP15 pid=1385) ERROR 12-13 11:25:59 [multiproc_executor.py:822]   File "/vllm-workspace/vllm-ascend/vllm_ascend/compilation/acl_graph.py", line 248, in update_mla_attn_params
(Worker_DP3_TP2_EP14 pid=1305) ERROR 12-13 11:25:59 [multiproc_executor.py:822]     update_mla_attn_params(
(Worker_DP1_TP2_EP6 pid=1308) ERROR 12-13 11:25:59 [multiproc_executor.py:822]     for key, param, handle, event in zip(
(Worker_DP1_TP0_EP4 pid=1202) ERROR 12-13 11:25:59 [multiproc_executor.py:822]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_DP2_TP3_EP11 pid=1388) ERROR 12-13 11:25:59 [multiproc_executor.py:822]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_DP2_TP2_EP10 pid=1309) ERROR 12-13 11:25:59 [multiproc_executor.py:822]   File "/vllm-workspace/vllm-ascend/vllm_ascend/compilation/acl_graph.py", line 248, in update_mla_attn_params
(Worker_DP2_TP0_EP8 pid=1201) ERROR 12-13 11:25:59 [multiproc_executor.py:822]     self.drafter.dummy_run(
(Worker_DP3_TP0_EP12 pid=1199) ERROR 12-13 11:25:59 [multiproc_executor.py:822]   File "/vllm-workspace/vllm-ascend/vllm_ascend/worker/model_runner_v1.py", line 2258, in _dummy_run
(Worker_DP2_TP1_EP9 pid=1229) ERROR 12-13 11:25:59 [multiproc_executor.py:822]   File "/vllm-workspace/vllm-ascend/vllm_ascend/worker/model_runner_v1.py", line 2258, in _dummy_run
(Worker_DP1_TP3_EP7 pid=1394) ERROR 12-13 11:25:59 [multiproc_executor.py:822]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_DP3_TP1_EP13 pid=1227) ERROR 12-13 11:25:59 [multiproc_executor.py:822]   File "/vllm-workspace/vllm-ascend/vllm_ascend/spec_decode/mtp_proposer.py", line 325, in dummy_run
(Worker_DP3_TP3_EP15 pid=1385) ERROR 12-13 11:25:59 [multiproc_executor.py:822]     for key, param, handle, event in zip(
(Worker_DP3_TP2_EP14 pid=1305) ERROR 12-13 11:25:59 [multiproc_executor.py:822]   File "/vllm-workspace/vllm-ascend/vllm_ascend/compilation/acl_graph.py", line 248, in update_mla_attn_params
(Worker_DP1_TP2_EP6 pid=1308) ERROR 12-13 11:25:59 [multiproc_executor.py:822]                                      ^^^^
(Worker_DP1_TP0_EP4 pid=1202) ERROR 12-13 11:25:59 [multiproc_executor.py:822]   File "/vllm-workspace/vllm-ascend/vllm_ascend/spec_decode/mtp_proposer.py", line 325, in dummy_run
(Worker_DP2_TP3_EP11 pid=1388) ERROR 12-13 11:25:59 [multiproc_executor.py:822]   File "/vllm-workspace/vllm-ascend/vllm_ascend/spec_decode/mtp_proposer.py", line 325, in dummy_run
(Worker_DP2_TP2_EP10 pid=1309) ERROR 12-13 11:25:59 [multiproc_executor.py:822]     for key, param, handle, event in zip(
(Worker_DP2_TP0_EP8 pid=1201) ERROR 12-13 11:25:59 [multiproc_executor.py:822]   File "/usr/local/python3.11.13/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 120, in decorate_context
(Worker_DP3_TP0_EP12 pid=1199) ERROR 12-13 11:25:59 [multiproc_executor.py:822]     self.drafter.dummy_run(
(Worker_DP2_TP1_EP9 pid=1229) ERROR 12-13 11:25:59 [multiproc_executor.py:822]     self.drafter.dummy_run(
(Worker_DP1_TP3_EP7 pid=1394) ERROR 12-13 11:25:59 [multiproc_executor.py:822]   File "/vllm-workspace/vllm-ascend/vllm_ascend/spec_decode/mtp_proposer.py", line 325, in dummy_run
(Worker_DP3_TP1_EP13 pid=1227) ERROR 12-13 11:25:59 [multiproc_executor.py:822]     update_mla_attn_params(
(Worker_DP3_TP3_EP15 pid=1385) ERROR 12-13 11:25:59 [multiproc_executor.py:822]                                      ^^^^
(Worker_DP3_TP2_EP14 pid=1305) ERROR 12-13 11:25:59 [multiproc_executor.py:822]     for key, param, handle, event in zip(
(Worker_DP1_TP2_EP6 pid=1308) ERROR 12-13 11:25:59 [multiproc_executor.py:822] TypeError: 'NoneType' object is not iterable
(Worker_DP1_TP0_EP4 pid=1202) ERROR 12-13 11:25:59 [multiproc_executor.py:822]     update_mla_attn_params(
(Worker_DP2_TP3_EP11 pid=1388) ERROR 12-13 11:25:59 [multiproc_executor.py:822]     update_mla_attn_params(
(Worker_DP2_TP2_EP10 pid=1309) ERROR 12-13 11:25:59 [multiproc_executor.py:822]                                      ^^^^
(Worker_DP2_TP0_EP8 pid=1201) ERROR 12-13 11:25:59 [multiproc_executor.py:822]     return func(*args, **kwargs)
(Worker_DP3_TP0_EP12 pid=1199) ERROR 12-13 11:25:59 [multiproc_executor.py:822]   File "/usr/local/python3.11.13/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 120, in decorate_context
(Worker_DP2_TP1_EP9 pid=1229) ERROR 12-13 11:25:59 [multiproc_executor.py:822]   File "/usr/local/python3.11.13/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 120, in decorate_context
(Worker_DP1_TP3_EP7 pid=1394) ERROR 12-13 11:25:59 [multiproc_executor.py:822]     update_mla_attn_params(
(Worker_DP3_TP1_EP13 pid=1227) ERROR 12-13 11:25:59 [multiproc_executor.py:822]   File "/vllm-workspace/vllm-ascend/vllm_ascend/compilation/acl_graph.py", line 248, in update_mla_attn_params
(Worker_DP3_TP3_EP15 pid=1385) ERROR 12-13 11:25:59 [multiproc_executor.py:822] TypeError: 'NoneType' object is not iterable
(Worker_DP3_TP2_EP14 pid=1305) ERROR 12-13 11:25:59 [multiproc_executor.py:822]                                      ^^^^
(Worker_DP1_TP2_EP6 pid=1308) ERROR 12-13 11:25:59 [multiproc_executor.py:822]
(Worker_DP1_TP0_EP4 pid=1202) ERROR 12-13 11:25:59 [multiproc_executor.py:822]   File "/vllm-workspace/vllm-ascend/vllm_ascend/compilation/acl_graph.py", line 248, in update_mla_attn_params
(Worker_DP2_TP3_EP11 pid=1388) ERROR 12-13 11:25:59 [multiproc_executor.py:822]   File "/vllm-workspace/vllm-ascend/vllm_ascend/compilation/acl_graph.py", line 248, in update_mla_attn_params
(Worker_DP2_TP2_EP10 pid=1309) ERROR 12-13 11:25:59 [multiproc_executor.py:822] TypeError: 'NoneType' object is not iterable
(Worker_DP2_TP0_EP8 pid=1201) ERROR 12-13 11:25:59 [multiproc_executor.py:822]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_DP3_TP0_EP12 pid=1199) ERROR 12-13 11:25:59 [multiproc_executor.py:822]     return func(*args, **kwargs)
(Worker_DP2_TP1_EP9 pid=1229) ERROR 12-13 11:25:59 [multiproc_executor.py:822]     return func(*args, **kwargs)
(Worker_DP1_TP3_EP7 pid=1394) ERROR 12-13 11:25:59 [multiproc_executor.py:822]   File "/vllm-workspace/vllm-ascend/vllm_ascend/compilation/acl_graph.py", line 248, in update_mla_attn_params
(Worker_DP3_TP1_EP13 pid=1227) ERROR 12-13 11:25:59 [multiproc_executor.py:822]     for key, param, handle, event in zip(
(Worker_DP3_TP3_EP15 pid=1385) ERROR 12-13 11:25:59 [multiproc_executor.py:822]
(Worker_DP3_TP2_EP14 pid=1305) ERROR 12-13 11:25:59 [multiproc_executor.py:822] TypeError: 'NoneType' object is not iterable
(Worker_DP1_TP0_EP4 pid=1202) ERROR 12-13 11:25:59 [multiproc_executor.py:822]     for key, param, handle, event in zip(
(Worker_DP2_TP3_EP11 pid=1388) ERROR 12-13 11:25:59 [multiproc_executor.py:822]     for key, param, handle, event in zip(
(Worker_DP2_TP2_EP10 pid=1309) ERROR 12-13 11:25:59 [multiproc_executor.py:822]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions