vllm - 💡(How to fix) Fix [Bug][Deepseek v4][DBO]: AssertionError: positions is required for C128A metadata build File

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

AssertionError: positions is required for C128A metadata build File ".../vllm/v1/attention/backends/mla/flashmla_sparse.py", line 661

Fix Action

Fix / Workaround

============================== CPU Info

Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Address sizes: 52 bits physical, 57 bits virtual Byte Order: Little Endian CPU(s): 180 On-line CPU(s) list: 0-179 Vendor ID: GenuineIntel BIOS Vendor ID: QEMU Model name: Intel(R) Xeon(R) Platinum 8457C BIOS Model name: pc-i440fx-5.2 CPU @ 0.0GHz BIOS CPU family: 1 CPU family: 6 Model: 143 Thread(s) per core: 2 Core(s) per socket: 45 Socket(s): 2 Stepping: 8 BogoMIPS: 5200.00 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves avx512_bf16 wbnoinvd arat avx512vbmi umip pku ospke waitpkg avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid cldemote movdiri movdir64b md_clear arch_capabilities Hypervisor vendor: KVM Virtualization type: full L1d cache: 4.2 MiB (90 instances) L1i cache: 2.8 MiB (90 instances) L2 cache: 180 MiB (90 instances) L3 cache: 195 MiB (2 instances) NUMA node(s): 2 NUMA node0 CPU(s): 0-89 NUMA node1 CPU(s): 90-179 Vulnerability Itlb multihit: Not affected Vulnerability L1tf: Not affected Vulnerability Mds: Not affected Vulnerability Meltdown: Not affected Vulnerability Mmio stale data: Unknown: No mitigations Vulnerability Retbleed: Not affected Vulnerability Spec store bypass: Vulnerable Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Vulnerability Spectre v2: Vulnerable, IBPB: disabled, STIBP: disabled, PBRSB-eIBRS: Vulnerable Vulnerability Srbds: Not affected Vulnerability Tsx async abort: Mitigation; TSX disabled

Code Example

Collecting environment information...
==============================
        System Info
==============================
OS                           : Ubuntu 24.04.3 LTS (x86_64)
GCC version                  : (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0
Clang version                : Could not collect
CMake version                : Could not collect
Libc version                 : glibc-2.39

==============================
       PyTorch Info
==============================
PyTorch version              : 2.11.0+cu130
Is debug build               : False
CUDA used to build PyTorch   : 13.0
ROCM used to build PyTorch   : N/A
XPU used to build PyTorch    : N/A

==============================
      Python Environment
==============================
Python version               : 3.12.3 (main, Mar 23 2026, 19:04:32) [GCC 13.3.0] (64-bit runtime)
Python platform              : Linux-5.4.250-9-velinux1u2-amd64-x86_64-with-glibc2.39

==============================
       CUDA / GPU Info
==============================
Is CUDA available            : True
CUDA runtime version         : 13.0.88
CUDA_MODULE_LOADING set to   :
GPU models and configuration :
GPU 0: NVIDIA H20
GPU 1: NVIDIA H20
GPU 2: NVIDIA H20
GPU 3: NVIDIA H20
GPU 4: NVIDIA H20
GPU 5: NVIDIA H20
GPU 6: NVIDIA H20
GPU 7: NVIDIA H20

Nvidia driver version        : 535.161.08
cuDNN version                : Could not collect
HIP runtime version          : N/A
MIOpen runtime version       : N/A
Is XNNPACK available         : True

==============================
          CPU Info
==============================
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Address sizes:                   52 bits physical, 57 bits virtual
Byte Order:                      Little Endian
CPU(s):                          180
On-line CPU(s) list:             0-179
Vendor ID:                       GenuineIntel
BIOS Vendor ID:                  QEMU
Model name:                      Intel(R) Xeon(R) Platinum 8457C
BIOS Model name:                 pc-i440fx-5.2  CPU @ 0.0GHz
BIOS CPU family:                 1
CPU family:                      6
Model:                           143
Thread(s) per core:              2
Core(s) per socket:              45
Socket(s):                       2
Stepping:                        8
BogoMIPS:                        5200.00
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves avx512_bf16 wbnoinvd arat avx512vbmi umip pku ospke waitpkg avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid cldemote movdiri movdir64b md_clear arch_capabilities
Hypervisor vendor:               KVM
Virtualization type:             full
L1d cache:                       4.2 MiB (90 instances)
L1i cache:                       2.8 MiB (90 instances)
L2 cache:                        180 MiB (90 instances)
L3 cache:                        195 MiB (2 instances)
NUMA node(s):                    2
NUMA node0 CPU(s):               0-89
NUMA node1 CPU(s):               90-179
Vulnerability Itlb multihit:     Not affected
Vulnerability L1tf:              Not affected
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Not affected
Vulnerability Mmio stale data:   Unknown: No mitigations
Vulnerability Retbleed:          Not affected
Vulnerability Spec store bypass: Vulnerable
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Vulnerable, IBPB: disabled, STIBP: disabled, PBRSB-eIBRS: Vulnerable
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Mitigation; TSX disabled

==============================
Versions of relevant libraries
==============================
[pip3] flashinfer-python==0.6.8.post1
[pip3] numpy==2.2.6
[pip3] nvidia-cublas==13.1.0.3
[pip3] nvidia-cuda-cupti==13.0.85
[pip3] nvidia-cuda-nvrtc==13.0.88
[pip3] nvidia-cuda-runtime==13.0.96
[pip3] nvidia-cudnn-cu13==9.19.0.56
[pip3] nvidia-cudnn-frontend==1.18.0
[pip3] nvidia-cufft==12.0.0.61
[pip3] nvidia-cufile==1.15.1.6
[pip3] nvidia-curand==10.4.0.35
[pip3] nvidia-cusolver==12.0.4.66
[pip3] nvidia-cusparse==12.6.3.3
[pip3] nvidia-cusparselt-cu13==0.8.0
[pip3] nvidia-cutlass-dsl==4.4.2
[pip3] nvidia-cutlass-dsl-libs-base==4.4.2
[pip3] nvidia-ml-py==13.595.45
[pip3] nvidia-nccl-cu13==2.28.9
[pip3] nvidia-nvjitlink==13.0.88
[pip3] nvidia-nvshmem-cu13==3.4.5
[pip3] nvidia-nvtx==13.0.85
[pip3] pyzmq==27.1.0
[pip3] tokenspeed-triton==3.7.10.post20260505
[pip3] torch==2.11.0+cu130
[pip3] torch_c_dlpack_ext==0.1.5
[pip3] torchaudio==2.11.0+cu130
[pip3] torchvision==0.26.0+cu130
[pip3] transformers==5.8.1
[pip3] triton==3.6.0
[conda] Could not collect

==============================
         vLLM Info
==============================
ROCM Version                 : Could not collect
vLLM Version                 : 0.21.0
vLLM Build Flags:
  CUDA Archs: 7.5 8.0 8.6 8.9 9.0 10.0 12.0+PTX; ROCm: Disabled; XPU: Disabled
GPU Topology:
    GPU0    GPU1    GPU2    GPU3    GPU4    GPU5    GPU6    GPU7    NIC0    NIC1    NIC2    NIC3    NIC4    NIC5    CPU Affinity    NUMA Affinity    GPU NUMA ID
GPU0     X    NV18    NV18    NV18    NV18    NV18    NV18    NV18    SYS    PIX    NODE    SYS    SYS    SYS    0-89    0        N/A
GPU1    NV18     X    NV18    NV18    NV18    NV18    NV18    NV18    SYS    PIX    NODE    SYS    SYS    SYS    0-89    0        N/A
GPU2    NV18    NV18     X    NV18    NV18    NV18    NV18    NV18    SYS    NODE    PIX    SYS    SYS    SYS    0-89    0        N/A
GPU3    NV18    NV18    NV18     X    NV18    NV18    NV18    NV18    SYS    NODE    PIX    SYS    SYS    SYS    0-89    0        N/A
GPU4    NV18    NV18    NV18    NV18     X    NV18    NV18    NV18    SYS    SYS    SYS    PIX    NODE    SYS    90-179    1        N/A
GPU5    NV18    NV18    NV18    NV18    NV18     X    NV18    NV18    SYS    SYS    SYS    PIX    NODE    SYS    90-179    1        N/A
GPU6    NV18    NV18    NV18    NV18    NV18    NV18     X    NV18    SYS    SYS    SYS    NODE    PIX    SYS    90-179    1        N/A
GPU7    NV18    NV18    NV18    NV18    NV18    NV18    NV18     X    SYS    SYS    SYS    NODE    PIX    SYS    90-179    1        N/A
NIC0    SYS    SYS    SYS    SYS    SYS    SYS    SYS    SYS     X    SYS    SYS    SYS    SYS    PHB
NIC1    PIX    PIX    NODE    NODE    SYS    SYS    SYS    SYS    SYS     X    NODE    SYS    SYS    SYS
NIC2    NODE    NODE    PIX    PIX    SYS    SYS    SYS    SYS    SYS    NODE     X    SYS    SYS    SYS
NIC3    SYS    SYS    SYS    SYS    PIX    PIX    NODE    NODE    SYS    SYS    SYS     X    NODE    SYS
NIC4    SYS    SYS    SYS    SYS    NODE    NODE    PIX    PIX    SYS    SYS    SYS    NODE     X    SYS
NIC5    SYS    SYS    SYS    SYS    SYS    SYS    SYS    SYS    PHB    SYS    SYS    SYS    SYS     X

Environment Variables
NCCL_DEBUG=INFO
NCCL_SOCKET_IFNAME=eth0
VLLM_ENABLE_CUDA_COMPATIBILITY=0
VLLM_MOONCAKE_BOOTSTRAP_PORT=8998
LD_LIBRARY_PATH=/usr/local/nvidia/lib64:/usr/local/cuda/lib64:/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/usr/local/cuda/lib64
VLLM_ENGINE_READY_TIMEOUT_S=3600
NCCL_IB_QPS_PER_CONNECTION=8
NCCL_MIN_NCHANNELS=24
VLLM_RPC_TIMEOUT=600000
CUDA_VERSION=13.0.2
TORCH_CUDA_ARCH_LIST=7.5 8.0 8.6 8.9 9.0 10.0 12.0+PTX
NCCL_IB_ECE_ENABLE=0
VLLM_LOG_STATS_INTERVAL=1
NVIDIA_DRIVER_CAPABILITIES=compute,utility
VLLM_DISABLE_COMPILE_CACHE=1
VLLM_USAGE_SOURCE=production-docker-image
NVIDIA_VISIBLE_DEVICES=5,6,7,0,1,2,3,4
PYTORCH_NVML_BASED_CUDA_CHECK=1
TORCHINDUCTOR_COMPILE_THREADS=1
TORCHINDUCTOR_CACHE_DIR=/tmp/torchinductor_root

---

AssertionError: positions is required for C128A metadata build File ".../vllm/v1/attention/backends/mla/flashmla_sparse.py", line 661

---

(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962] WorkerProc hit an exception.
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962] Traceback (most recent call last):
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 957, in worker_busy_loop
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]     output = func(*args, **kwargs)
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]              ^^^^^^^^^^^^^^^^^^^^^
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/worker_base.py", line 337, in execute_model
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]     return self.worker.execute_model(scheduler_output)
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]   File "/usr/local/lib/python3.12/dist-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]     return func(*args, **kwargs)
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_worker.py", line 843, in execute_model
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]     output = self.model_runner.execute_model(
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]   File "/usr/local/lib/python3.12/dist-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]     return func(*args, **kwargs)
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_model_runner.py", line 4053, in execute_model
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]     self._build_attention_metadata(
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_model_runner.py", line 2353, in _build_attention_metadata
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]     _build_attn_group_metadata(kv_cache_gid, attn_gid, _cm, ubid)
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_model_runner.py", line 2300, in _build_attn_group_metadata
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]     attn_metadata_i = builder.build(
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]                       ^^^^^^^^^^^^^^
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/attention/backends/mla/flashmla_sparse.py", line 641, in build
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]     c128a_fields = self._build_c128a_metadata(cm, req_id_per_token)
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/attention/backends/mla/flashmla_sparse.py", line 682, in _build_c128a_metadata
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]     assert cm.positions is not None, (
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]            ^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962] AssertionError: positions is required for C128A metadata build
RAW_BUFFERClick to expand / collapse

Your current environment

<details> <summary>The output of <code>python collect_env.py</code></summary>
Collecting environment information...
==============================
        System Info
==============================
OS                           : Ubuntu 24.04.3 LTS (x86_64)
GCC version                  : (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0
Clang version                : Could not collect
CMake version                : Could not collect
Libc version                 : glibc-2.39

==============================
       PyTorch Info
==============================
PyTorch version              : 2.11.0+cu130
Is debug build               : False
CUDA used to build PyTorch   : 13.0
ROCM used to build PyTorch   : N/A
XPU used to build PyTorch    : N/A

==============================
      Python Environment
==============================
Python version               : 3.12.3 (main, Mar 23 2026, 19:04:32) [GCC 13.3.0] (64-bit runtime)
Python platform              : Linux-5.4.250-9-velinux1u2-amd64-x86_64-with-glibc2.39

==============================
       CUDA / GPU Info
==============================
Is CUDA available            : True
CUDA runtime version         : 13.0.88
CUDA_MODULE_LOADING set to   :
GPU models and configuration :
GPU 0: NVIDIA H20
GPU 1: NVIDIA H20
GPU 2: NVIDIA H20
GPU 3: NVIDIA H20
GPU 4: NVIDIA H20
GPU 5: NVIDIA H20
GPU 6: NVIDIA H20
GPU 7: NVIDIA H20

Nvidia driver version        : 535.161.08
cuDNN version                : Could not collect
HIP runtime version          : N/A
MIOpen runtime version       : N/A
Is XNNPACK available         : True

==============================
          CPU Info
==============================
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Address sizes:                   52 bits physical, 57 bits virtual
Byte Order:                      Little Endian
CPU(s):                          180
On-line CPU(s) list:             0-179
Vendor ID:                       GenuineIntel
BIOS Vendor ID:                  QEMU
Model name:                      Intel(R) Xeon(R) Platinum 8457C
BIOS Model name:                 pc-i440fx-5.2  CPU @ 0.0GHz
BIOS CPU family:                 1
CPU family:                      6
Model:                           143
Thread(s) per core:              2
Core(s) per socket:              45
Socket(s):                       2
Stepping:                        8
BogoMIPS:                        5200.00
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves avx512_bf16 wbnoinvd arat avx512vbmi umip pku ospke waitpkg avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid cldemote movdiri movdir64b md_clear arch_capabilities
Hypervisor vendor:               KVM
Virtualization type:             full
L1d cache:                       4.2 MiB (90 instances)
L1i cache:                       2.8 MiB (90 instances)
L2 cache:                        180 MiB (90 instances)
L3 cache:                        195 MiB (2 instances)
NUMA node(s):                    2
NUMA node0 CPU(s):               0-89
NUMA node1 CPU(s):               90-179
Vulnerability Itlb multihit:     Not affected
Vulnerability L1tf:              Not affected
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Not affected
Vulnerability Mmio stale data:   Unknown: No mitigations
Vulnerability Retbleed:          Not affected
Vulnerability Spec store bypass: Vulnerable
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Vulnerable, IBPB: disabled, STIBP: disabled, PBRSB-eIBRS: Vulnerable
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Mitigation; TSX disabled

==============================
Versions of relevant libraries
==============================
[pip3] flashinfer-python==0.6.8.post1
[pip3] numpy==2.2.6
[pip3] nvidia-cublas==13.1.0.3
[pip3] nvidia-cuda-cupti==13.0.85
[pip3] nvidia-cuda-nvrtc==13.0.88
[pip3] nvidia-cuda-runtime==13.0.96
[pip3] nvidia-cudnn-cu13==9.19.0.56
[pip3] nvidia-cudnn-frontend==1.18.0
[pip3] nvidia-cufft==12.0.0.61
[pip3] nvidia-cufile==1.15.1.6
[pip3] nvidia-curand==10.4.0.35
[pip3] nvidia-cusolver==12.0.4.66
[pip3] nvidia-cusparse==12.6.3.3
[pip3] nvidia-cusparselt-cu13==0.8.0
[pip3] nvidia-cutlass-dsl==4.4.2
[pip3] nvidia-cutlass-dsl-libs-base==4.4.2
[pip3] nvidia-ml-py==13.595.45
[pip3] nvidia-nccl-cu13==2.28.9
[pip3] nvidia-nvjitlink==13.0.88
[pip3] nvidia-nvshmem-cu13==3.4.5
[pip3] nvidia-nvtx==13.0.85
[pip3] pyzmq==27.1.0
[pip3] tokenspeed-triton==3.7.10.post20260505
[pip3] torch==2.11.0+cu130
[pip3] torch_c_dlpack_ext==0.1.5
[pip3] torchaudio==2.11.0+cu130
[pip3] torchvision==0.26.0+cu130
[pip3] transformers==5.8.1
[pip3] triton==3.6.0
[conda] Could not collect

==============================
         vLLM Info
==============================
ROCM Version                 : Could not collect
vLLM Version                 : 0.21.0
vLLM Build Flags:
  CUDA Archs: 7.5 8.0 8.6 8.9 9.0 10.0 12.0+PTX; ROCm: Disabled; XPU: Disabled
GPU Topology:
    GPU0    GPU1    GPU2    GPU3    GPU4    GPU5    GPU6    GPU7    NIC0    NIC1    NIC2    NIC3    NIC4    NIC5    CPU Affinity    NUMA Affinity    GPU NUMA ID
GPU0     X    NV18    NV18    NV18    NV18    NV18    NV18    NV18    SYS    PIX    NODE    SYS    SYS    SYS    0-89    0        N/A
GPU1    NV18     X    NV18    NV18    NV18    NV18    NV18    NV18    SYS    PIX    NODE    SYS    SYS    SYS    0-89    0        N/A
GPU2    NV18    NV18     X    NV18    NV18    NV18    NV18    NV18    SYS    NODE    PIX    SYS    SYS    SYS    0-89    0        N/A
GPU3    NV18    NV18    NV18     X    NV18    NV18    NV18    NV18    SYS    NODE    PIX    SYS    SYS    SYS    0-89    0        N/A
GPU4    NV18    NV18    NV18    NV18     X    NV18    NV18    NV18    SYS    SYS    SYS    PIX    NODE    SYS    90-179    1        N/A
GPU5    NV18    NV18    NV18    NV18    NV18     X    NV18    NV18    SYS    SYS    SYS    PIX    NODE    SYS    90-179    1        N/A
GPU6    NV18    NV18    NV18    NV18    NV18    NV18     X    NV18    SYS    SYS    SYS    NODE    PIX    SYS    90-179    1        N/A
GPU7    NV18    NV18    NV18    NV18    NV18    NV18    NV18     X    SYS    SYS    SYS    NODE    PIX    SYS    90-179    1        N/A
NIC0    SYS    SYS    SYS    SYS    SYS    SYS    SYS    SYS     X    SYS    SYS    SYS    SYS    PHB
NIC1    PIX    PIX    NODE    NODE    SYS    SYS    SYS    SYS    SYS     X    NODE    SYS    SYS    SYS
NIC2    NODE    NODE    PIX    PIX    SYS    SYS    SYS    SYS    SYS    NODE     X    SYS    SYS    SYS
NIC3    SYS    SYS    SYS    SYS    PIX    PIX    NODE    NODE    SYS    SYS    SYS     X    NODE    SYS
NIC4    SYS    SYS    SYS    SYS    NODE    NODE    PIX    PIX    SYS    SYS    SYS    NODE     X    SYS
NIC5    SYS    SYS    SYS    SYS    SYS    SYS    SYS    SYS    PHB    SYS    SYS    SYS    SYS     X

Environment Variables
NCCL_DEBUG=INFO
NCCL_SOCKET_IFNAME=eth0
VLLM_ENABLE_CUDA_COMPATIBILITY=0
VLLM_MOONCAKE_BOOTSTRAP_PORT=8998
LD_LIBRARY_PATH=/usr/local/nvidia/lib64:/usr/local/cuda/lib64:/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/usr/local/cuda/lib64
VLLM_ENGINE_READY_TIMEOUT_S=3600
NCCL_IB_QPS_PER_CONNECTION=8
NCCL_MIN_NCHANNELS=24
VLLM_RPC_TIMEOUT=600000
CUDA_VERSION=13.0.2
TORCH_CUDA_ARCH_LIST=7.5 8.0 8.6 8.9 9.0 10.0 12.0+PTX
NCCL_IB_ECE_ENABLE=0
VLLM_LOG_STATS_INTERVAL=1
NVIDIA_DRIVER_CAPABILITIES=compute,utility
VLLM_DISABLE_COMPILE_CACHE=1
VLLM_USAGE_SOURCE=production-docker-image
NVIDIA_VISIBLE_DEVICES=5,6,7,0,1,2,3,4
PYTORCH_NVML_BASED_CUDA_CHECK=1
TORCHINDUCTOR_COMPILE_THREADS=1
TORCHINDUCTOR_CACHE_DIR=/tmp/torchinductor_root
</details>

🐛 Describe the bug

When serving DeepSeek V4 Flash with DBO enabled on the prefill side, long-prompt requests can crash the prefill worker during attention metadata construction.

The crash happens when a long prefill request triggers DBO ubatching. vLLM rebuilds CommonAttentionMetadata for each ubatch, but the rebuilt metadata on the DBO path drops the positions field. Later, DeepSeek V4 Flash MLA sparse hits the C128A metadata path, which requires cm.positions, and fails with:

AssertionError: positions is required for C128A metadata build File ".../vllm/v1/attention/backends/mla/flashmla_sparse.py", line 661

Reproduction conditions

This reproduces reliably in the following setup:

  • Model: DeepSeek V4 Flash
  • Deployment: PD-disaggregated deployment
  • Side: prefill
  • vLLM: 0.21.0
  • DBO: enabled
  • dboPrefillTokenThreshold: configured low enough to trigger ubatching on long prompts
  • Workload: lm_eval on gsm8k

Log

(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962] WorkerProc hit an exception.
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962] Traceback (most recent call last):
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 957, in worker_busy_loop
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]     output = func(*args, **kwargs)
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]              ^^^^^^^^^^^^^^^^^^^^^
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/worker_base.py", line 337, in execute_model
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]     return self.worker.execute_model(scheduler_output)
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]   File "/usr/local/lib/python3.12/dist-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]     return func(*args, **kwargs)
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_worker.py", line 843, in execute_model
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]     output = self.model_runner.execute_model(
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]   File "/usr/local/lib/python3.12/dist-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]     return func(*args, **kwargs)
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_model_runner.py", line 4053, in execute_model
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]     self._build_attention_metadata(
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_model_runner.py", line 2353, in _build_attention_metadata
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]     _build_attn_group_metadata(kv_cache_gid, attn_gid, _cm, ubid)
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_model_runner.py", line 2300, in _build_attn_group_metadata
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]     attn_metadata_i = builder.build(
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]                       ^^^^^^^^^^^^^^
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/attention/backends/mla/flashmla_sparse.py", line 641, in build
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]     c128a_fields = self._build_c128a_metadata(cm, req_id_per_token)
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/attention/backends/mla/flashmla_sparse.py", line 682, in _build_c128a_metadata
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]     assert cm.positions is not None, (
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962]            ^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_DP1_EP1 pid=10457) ERROR 05-29 16:21:42 [multiproc_executor.py:962] AssertionError: positions is required for C128A metadata build

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

vllm - 💡(How to fix) Fix [Bug][Deepseek v4][DBO]: AssertionError: positions is required for C128A metadata build File