-
-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Description
Your current environment
The output of python collect_env.py
Collecting environment information...
==============================
System Info
==============================
OS : Ubuntu 22.04.4 LTS (x86_64)
GCC version : (Ubuntu 11.4.0-1ubuntu1~22.04.2) 11.4.0
Clang version : Could not collect
CMake version : Could not collect
Libc version : glibc-2.35
==============================
PyTorch Info
==============================
PyTorch version : 2.7.1+cu126
Is debug build : False
CUDA used to build PyTorch : 12.6
ROCM used to build PyTorch : N/A
==============================
Python Environment
==============================
Python version : 3.12.11 | packaged by conda-forge | (main, Jun 4 2025, 14:45:31) [GCC 13.3.0] (64-bit runtime)
Python platform : Linux-6.8.0-65-generic-x86_64-with-glibc2.35
==============================
CUDA / GPU Info
==============================
Is CUDA available : True
CUDA runtime version : 12.2.140
CUDA_MODULE_LOADING set to : LAZY
GPU models and configuration :
GPU 0: NVIDIA RTX 6000 Ada Generation
GPU 1: NVIDIA RTX 6000 Ada Generation
GPU 2: NVIDIA RTX 6000 Ada Generation
GPU 3: NVIDIA RTX 6000 Ada Generation
Nvidia driver version : 535.247.01
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: 46 bits physical, 57 bits virtual
Byte Order: Little Endian
CPU(s): 40
On-line CPU(s) list: 0-39
Vendor ID: GenuineIntel
Model name: Intel(R) Xeon(R) w7-3445
CPU family: 6
Model: 143
Thread(s) per core: 2
Core(s) per socket: 20
Socket(s): 1
Stepping: 8
CPU max MHz: 4800.0000
CPU min MHz: 800.0000
BogoMIPS: 5184.00
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cat_l2 cdp_l3 intel_ppin cdp_l2 ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local split_lock_detect user_shstk avx_vnni avx512_bf16 wbnoinvd dtherm ida arat pln pts hwp hwp_act_window hwp_epp hwp_pkg_req vnmi avx512vbmi umip pku ospke waitpkg avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg tme avx512_vpopcntdq la57 rdpid bus_lock_detect cldemote movdiri movdir64b enqcmd fsrm md_clear serialize tsxldtrk pconfig arch_lbr ibt amx_bf16 avx512_fp16 amx_tile amx_int8 flush_l1d arch_capabilities
Virtualization: VT-x
L1d cache: 960 KiB (20 instances)
L1i cache: 640 KiB (20 instances)
L2 cache: 40 MiB (20 instances)
L3 cache: 52.5 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-39
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; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Mitigation; Enhanced / Automatic IBRS; IBPB conditional; RSB filling; PBRSB-eIBRS SW sequence; BHI BHI_DIS_S
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Not affected
==============================
Versions of relevant libraries
==============================
[pip3] mypy_extensions==1.1.0
[pip3] numpy==2.2.6
[pip3] nvidia-cublas-cu12==12.6.4.1
[pip3] nvidia-cuda-cupti-cu12==12.6.80
[pip3] nvidia-cuda-nvrtc-cu12==12.6.77
[pip3] nvidia-cuda-runtime-cu12==12.6.77
[pip3] nvidia-cudnn-cu12==9.5.1.17
[pip3] nvidia-cudnn-frontend==1.14.0
[pip3] nvidia-cufft-cu12==11.3.0.4
[pip3] nvidia-cufile-cu12==1.11.1.6
[pip3] nvidia-curand-cu12==10.3.7.77
[pip3] nvidia-cusolver-cu12==11.7.1.2
[pip3] nvidia-cusparse-cu12==12.5.4.2
[pip3] nvidia-cusparselt-cu12==0.6.3
[pip3] nvidia-ml-py==12.575.51
[pip3] nvidia-nccl-cu12==2.26.2
[pip3] nvidia-nvjitlink-cu12==12.6.85
[pip3] nvidia-nvtx-cu12==12.6.77
[pip3] onnx==1.18.0
[pip3] onnxruntime==1.22.1
[pip3] pynvml==12.0.0
[pip3] pyzmq==27.0.1
[pip3] sentence-transformers==5.1.0
[pip3] torch==2.7.1
[pip3] torchaudio==2.7.1+cu126
[pip3] torchvision==0.22.1
[pip3] transformers==4.55.2
[pip3] triton==3.3.1
[conda] numpy 2.2.6 pypi_0 pypi
[conda] nvidia-cublas-cu12 12.6.4.1 pypi_0 pypi
[conda] nvidia-cuda-cupti-cu12 12.6.80 pypi_0 pypi
[conda] nvidia-cuda-nvrtc-cu12 12.6.77 pypi_0 pypi
[conda] nvidia-cuda-runtime-cu12 12.6.77 pypi_0 pypi
[conda] nvidia-cudnn-cu12 9.5.1.17 pypi_0 pypi
[conda] nvidia-cudnn-frontend 1.14.0 pypi_0 pypi
[conda] nvidia-cufft-cu12 11.3.0.4 pypi_0 pypi
[conda] nvidia-cufile-cu12 1.11.1.6 pypi_0 pypi
[conda] nvidia-curand-cu12 10.3.7.77 pypi_0 pypi
[conda] nvidia-cusolver-cu12 11.7.1.2 pypi_0 pypi
[conda] nvidia-cusparse-cu12 12.5.4.2 pypi_0 pypi
[conda] nvidia-cusparselt-cu12 0.6.3 pypi_0 pypi
[conda] nvidia-ml-py 12.575.51 pypi_0 pypi
[conda] nvidia-nccl-cu12 2.26.2 pypi_0 pypi
[conda] nvidia-nvjitlink-cu12 12.6.85 pypi_0 pypi
[conda] nvidia-nvtx-cu12 12.6.77 pypi_0 pypi
[conda] pynvml 12.0.0 pypi_0 pypi
[conda] pyzmq 27.0.1 pypi_0 pypi
[conda] sentence-transformers 5.1.0 pypi_0 pypi
[conda] torch 2.7.1 pypi_0 pypi
[conda] torchaudio 2.7.1+cu126 pypi_0 pypi
[conda] torchvision 0.22.1 pypi_0 pypi
[conda] transformers 4.55.2 pypi_0 pypi
[conda] triton 3.3.1 pypi_0 pypi
==============================
vLLM Info
==============================
ROCM Version : Could not collect
Neuron SDK Version : N/A
vLLM Version : 0.10.1.dev714+g4fc722eca (git sha: 4fc722eca)
vLLM Build Flags:
CUDA Archs: Not Set; ROCm: Disabled; Neuron: Disabled
GPU Topology:
GPU0 GPU1 GPU2 GPU3 CPU Affinity NUMA Affinity GPU NUMA ID
GPU0 X SYS SYS SYS 0-39 0 N/A
GPU1 SYS X SYS SYS 0-39 0 N/A
GPU2 SYS SYS X SYS 0-39 0 N/A
GPU3 SYS SYS SYS X 0-39 0 N/A
Legend:
X = Self
SYS = Connection traversing PCIe as well as the SMP interconnect between NUMA nodes (e.g., QPI/UPI)
NODE = Connection traversing PCIe as well as the interconnect between PCIe Host Bridges within a NUMA node
PHB = Connection traversing PCIe as well as a PCIe Host Bridge (typically the CPU)
PXB = Connection traversing multiple PCIe bridges (without traversing the PCIe Host Bridge)
PIX = Connection traversing at most a single PCIe bridge
NV# = Connection traversing a bonded set of # NVLinks
==============================
Environment Variables
==============================
LD_LIBRARY_PATH=/home/turx/cuda-12.2/lib64:/home/turx/cuda-12.2/lib64:
CUDA_HOME=/home/turx/cuda-12.2
CUDA_HOME=/home/turx/cuda-12.2
NCCL_CUMEM_ENABLE=0
PYTORCH_NVML_BASED_CUDA_CHECK=1
TORCHINDUCTOR_COMPILE_THREADS=1
CUDA_MODULE_LOADING=LAZY
🐛 Describe the bug
When I was running MxBAI v2 Large and Qwen 3 0.6B rerankers with --runner pooling, the issue was triggered by having the first req_id be None, which cannot be handled in the loop as a dict key.
To reproduce this issue, just load the models:
CUDA_VISIBLE_DEVICES=0 vllm serve mixedbread-ai/mxbai-rerank-large-v2 --port 8004 --gpu_memory_utilization 0.9 --max_model_len 8192 --hf_overrides '{"architectures": ["Qwen2ForSequenceClassification"],"classifier_from_token": ["0", "1"], "method": "from_2_way_softmax"}' --runner pooling &
CUDA_VISIBLE_DEVICES=1 vllm serve Qwen/Qwen3-Reranker-0.6B --port 8005 --gpu_memory_utilization 0.9 --max_model_len 32768 --hf_overrides '{"architectures": ["Qwen3ForSequenceClassification"],"classifier_from_token": ["no", "yes"],"is_original_qwen3_reranker": true}' --runner pooling &and then request the /score endpoint with:
response = requests.post(
f"http://127.0.0.1:8004/score",
json={
"model": "mixedbread-ai/mxbai-rerank-large-v2",
"text_1": queries, # list[str]
"text_2": texts, # list[str]
"truncate_prompt_tokens": 8192,
}
)Code for formatting queries and texts for Qwen 3 is the same as https://github.com/vllm-project/vllm/blob/main/examples/offline_inference/qwen3_reranker.py
The specific commit that introduces the issue is bf7f470, since its parent 4fc722e does not have this issue. The issue exists in both v0.10.1 and v0.10.1.1 releases.
When I was debugging, in the first two batches, where the number of requests was increasing, there was no issue. After removing (set to None) requests completed from the second batch, before adding requests to the third batch, the last request was not removed (so the list becomes [None, None, ..., score-*-*], and at this time, self.num_reqs == 1 also affects new_req_index (in vllm/v1/worker/gpu_input_batch.py:add_request()), leaving the 0 index of the request list None.
By git blaming, I suspect this is affected by the recent change in these lines for adding a request to a list of None requests: bf7f470#diff-52422ec3f789d0cddb8ac608c%5B%E2%80%A6%5D5fbc64fb76ebffe0889d2L258-L279. However, just rolling back the selected lines does not help, since self.num_reqs is still returned as the new index.
Error Log
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] EngineCore encountered a fatal error.
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] Traceback (most recent call last):
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] File "/home/turx/miniforge3/envs/rerank/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 693, in run_engine_core
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] engine_core.run_busy_loop()
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] File "/home/turx/miniforge3/envs/rerank/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 720, in run_busy_loop
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] self._process_engine_step()
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] File "/home/turx/miniforge3/envs/rerank/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 745, in _process_engine_step
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] outputs, model_executed = self.step_fn()
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] ^^^^^^^^^^^^^^
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] File "/home/turx/miniforge3/envs/rerank/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 288, in step
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] model_output = self.execute_model_with_error_logging(
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] File "/home/turx/miniforge3/envs/rerank/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 274, in execute_model_with_error_l
ogging
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] raise err
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] File "/home/turx/miniforge3/envs/rerank/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 265, in execute_model_with_error_l
ogging
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] return model_fn(scheduler_output)
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] ^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] File "/home/turx/miniforge3/envs/rerank/lib/python3.12/site-packages/vllm/v1/executor/abstract.py", line 87, in execute_model
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] output = self.collective_rpc("execute_model",
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] File "/home/turx/miniforge3/envs/rerank/lib/python3.12/site-packages/vllm/executor/uniproc_executor.py", line 58, in collective_rpc
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] answer = run_method(self.driver_worker, method, args, kwargs)
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] File "/home/turx/miniforge3/envs/rerank/lib/python3.12/site-packages/vllm/utils/__init__.py", line 3007, in run_method
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] return func(*args, **kwargs)
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] ^^^^^^^^^^^^^^^^^^^^^
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] File "/home/turx/miniforge3/envs/rerank/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] return func(*args, **kwargs)
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] ^^^^^^^^^^^^^^^^^^^^^
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] File "/home/turx/miniforge3/envs/rerank/lib/python3.12/site-packages/vllm/v1/worker/gpu_worker.py", line 362, in execute_model
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] output = self.model_runner.execute_model(scheduler_output,
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] File "/home/turx/miniforge3/envs/rerank/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] return func(*args, **kwargs)
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] ^^^^^^^^^^^^^^^^^^^^^
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] File "/home/turx/miniforge3/envs/rerank/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 1522, in execute_model
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] max_query_len) = (self._prepare_inputs(scheduler_output))
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] File "/home/turx/miniforge3/envs/rerank/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 712, in _prepare_input
s
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] tokens = [scheduler_output.num_scheduled_tokens[i] for i in req_ids]
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
(EngineCore_0 pid=109153) ERROR 08-19 16:33:20 [core.py:702] KeyError: None
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.