vllm - ✅(Solved) Fix [Bug]: bge-m3 /pooling endpoint breaks in the latest main branch [2 pull requests, 2 comments, 1 participants]

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…
GitHub stats
vllm-project/vllm#37868Fetched 2026-04-08 01:17:26
View on GitHub
Comments
2
Participants
1
Timeline
8
Reactions
0
Participants
Timeline (top)
cross-referenced ×3commented ×2closed ×1labeled ×1

Error Message

(EngineCore pid=67718) ERROR 03-23 15:40:54 [dump_input.py:72] Dumping input data for V1 LLM engine (0.18.1rc1.dev38+ga16133a0f) with config: model='BAAI/BAAI/bge-m3', speculative_config=None, tokenizer='BAAI/BAAI/bge-m3', skip_tokenizer_init=False, tokenizer_mode=auto, revision=None, tokenizer_revision=None, trust_remote_code=False, dtype=torch.float16, max_seq_len=8192, download_dir=None, load_format=auto, tensor_parallel_size=1, pipeline_parallel_size=1, data_parallel_size=1, decode_context_parallel_size=1, dcp_comm_backend=ag_rs, disable_custom_all_reduce=False, quantization=None, enforce_eager=False, enable_return_routed_experts=False, kv_cache_dtype=auto, device_config=cuda, structured_outputs_config=StructuredOutputsConfig(backend='auto', disable_any_whitespace=False, disable_additional_properties=False, reasoning_parser='', reasoning_parser_plugin='', enable_in_reasoning=False), observability_config=ObservabilityConfig(show_hidden_metrics_for_version=None, otlp_traces_endpoint=None, collect_detailed_traces=None, kv_cache_metrics=False, kv_cache_metrics_sample=0.01, cudagraph_metrics=False, enable_layerwise_nvtx_tracing=False, enable_mfu_metrics=False, enable_mm_processor_stats=False, enable_logging_iteration_details=False), seed=0, served_model_name=BAAI/BAAI/bge-m3, enable_prefix_caching=False, enable_chunked_prefill=False, pooler_config=PoolerConfig(pooling_type=None, seq_pooling_type='CLS', tok_pooling_type='ALL', use_activation=True, dimensions=None, enable_chunked_processing=False, max_embed_len=None, logit_bias=None, step_tag_id=None, returned_token_ids=None), compilation_config={'mode': <CompilationMode.VLLM_COMPILE: 3>, 'debug_dump_path': None, 'cache_dir': '/root/.cache/vllm/torch_compile_cache/e44841742f', 'compile_cache_save_format': 'binary', 'backend': 'inductor', 'custom_ops': ['none'], 'splitting_ops': ['vllm::unified_attention', 'vllm::unified_attention_with_output', 'vllm::unified_mla_attention', 'vllm::unified_mla_attention_with_output', 'vllm::mamba_mixer2', 'vllm::mamba_mixer', 'vllm::short_conv', 'vllm::linear_attention', 'vllm::plamo2_mamba_mixer', 'vllm::gdn_attention_core', 'vllm::olmo_hybrid_gdn_full_forward', 'vllm::kda_attention', 'vllm::sparse_attn_indexer', 'vllm::rocm_aiter_sparse_attn_indexer', 'vllm::unified_kv_cache_update', 'vllm::unified_mla_kv_cache_update'], 'compile_mm_encoder': False, 'compile_sizes': [], 'compile_ranges_endpoints': [8192], 'inductor_compile_config': {'enable_auto_functionalized_v2': False, 'combo_kernels': True, 'benchmark_combo_kernel': True}, 'inductor_passes': {}, 'cudagraph_mode': <CUDAGraphMode.PIECEWISE: 1>, 'cudagraph_num_of_warmups': 1, 'cudagraph_capture_sizes': [1, 2, 4, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120, 128, 136, 144, 152, 160, 168, 176, 184, 192, 200, 208, 216, 224, 232, 240, 248, 256, 272, 288, 304, 320, 336, 352, 368, 384, 400, 416, 432, 448, 464, 480, 496, 512], 'cudagraph_copy_inputs': False, 'cudagraph_specialize_lora': True, 'use_inductor_graph_partition': False, 'pass_config': {'fuse_norm_quant': False, 'fuse_act_quant': False, 'fuse_attn_quant': False, 'enable_sp': False, 'fuse_gemm_comms': False, 'fuse_allreduce_rms': False}, 'max_cudagraph_capture_size': 512, 'dynamic_shapes_config': {'type': <DynamicShapesType.BACKED: 'backed'>, 'evaluate_guards': False, 'assume_32_bit_indexing': False}, 'local_cache_dir': '/root/.cache/vllm/torch_compile_cache/e44841742f/rank_0_0/backbone', 'fast_moe_cold_start': True, 'static_all_moe_layers': []}, (EngineCore pid=67718) ERROR 03-23 15:40:54 [dump_input.py:79] Dumping scheduler output for model execution: SchedulerOutput(scheduled_new_reqs=[NewRequestData(req_id=pool-a697394010a73a4c-0-93050ebb,prompt_token_ids_len=7,prefill_token_ids_len=None,mm_features=[],sampling_params=None,block_ids=(),num_computed_tokens=0,lora_request=None,prompt_embeds_shape=None)], scheduled_cached_reqs=CachedRequestData(req_ids=[],resumed_req_ids=set(),new_token_ids_lens=[],all_token_ids_lens={},new_block_ids=[],num_computed_tokens=[],num_output_tokens=[]), num_scheduled_tokens={pool-a697394010a73a4c-0-93050ebb: 7}, total_num_scheduled_tokens=7, scheduled_spec_decode_tokens={}, scheduled_encoder_inputs={}, num_common_prefix_blocks=[], finished_req_ids=[], free_encoder_mm_hashes=[], preempted_req_ids=[], has_structured_output_requests=false, pending_structured_output_tokens=false, num_invalid_spec_tokens=null, kv_connector_metadata=null, ec_connector_metadata=null, new_block_ids_to_zero=null) (EngineCore pid=67718) ERROR 03-23 15:40:54 [dump_input.py:81] Dumping scheduler stats: SchedulerStats(num_running_reqs=1, num_waiting_reqs=0, step_counter=0, current_wave=0, kv_cache_usage=0, encoder_cache_usage=0.0, prefix_cache_stats=PrefixCacheStats(reset=False, requests=0, queries=0, hits=0, preempted_requests=0, preempted_queries=0, preempted_hits=0), connector_prefix_cache_stats=None, kv_cache_eviction_events=[], spec_decoding_stats=None, kv_connector_stats=None, waiting_lora_adapters={}, running_lora_adapters={}, cudagraph_stats=None, perf_stats=None) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] EngineCore encountered a fatal error. (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] Traceback (most recent call last): (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/engine/core.py", line 1101, in run_engine_core (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] engine_core.run_busy_loop() (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/engine/core.py", line 1142, in run_busy_loop (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] self._process_engine_step() (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/engine/core.py", line 1181, in _process_engine_step (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] outputs, model_executed = self.step_fn() (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/engine/core.py", line 451, in step_with_batch_queue (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] exec_future = self.model_executor.execute_model( (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/executor/uniproc_executor.py", line 114, in execute_model (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] output.result() (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/concurrent/futures/_base.py", line 449, in result (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self.__get_result() (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] raise self._exception (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/executor/uniproc_executor.py", line 84, in collective_rpc (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] result = run_method(self.driver_worker, method, args, kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/serial_utils.py", line 510, in run_method (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return func(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/worker/worker_base.py", line 332, in execute_model (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self.worker.execute_model(scheduler_output)

Root Cause

<detail> <code> <pre> (APIServer pid=67656) INFO: 127.0.0.1:51488 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51500 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51506 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51514 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51516 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51532 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51542 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51550 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51560 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51572 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51588 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51590 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51602 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51604 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51614 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51628 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51638 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51640 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51648 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51660 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51666 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51670 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51674 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51688 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51694 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51702 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51712 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51714 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51718 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51724 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:35498 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:35512 - "POST /pooling HTTP/1.1" 200 OK /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [0,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [1,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [2,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [3,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [4,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [5,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [6,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [7,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [8,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [9,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [10,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [11,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [12,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [13,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [14,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [15,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [16,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [17,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [18,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [19,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [20,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [21,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [22,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [23,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [24,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [25,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [26,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [27,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [28,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [29,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [30,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [31,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. (EngineCore pid=67718) ERROR 03-23 15:40:54 [dump_input.py:72] Dumping input data for V1 LLM engine (0.18.1rc1.dev38+ga16133a0f) with config: model='BAAI/BAAI/bge-m3', speculative_config=None, tokenizer='BAAI/BAAI/bge-m3', skip_tokenizer_init=False, tokenizer_mode=auto, revision=None, tokenizer_revision=None, trust_remote_code=False, dtype=torch.float16, max_seq_len=8192, download_dir=None, load_format=auto, tensor_parallel_size=1, pipeline_parallel_size=1, data_parallel_size=1, decode_context_parallel_size=1, dcp_comm_backend=ag_rs, disable_custom_all_reduce=False, quantization=None, enforce_eager=False, enable_return_routed_experts=False, kv_cache_dtype=auto, device_config=cuda, structured_outputs_config=StructuredOutputsConfig(backend='auto', disable_any_whitespace=False, disable_additional_properties=False, reasoning_parser='', reasoning_parser_plugin='', enable_in_reasoning=False), observability_config=ObservabilityConfig(show_hidden_metrics_for_version=None, otlp_traces_endpoint=None, collect_detailed_traces=None, kv_cache_metrics=False, kv_cache_metrics_sample=0.01, cudagraph_metrics=False, enable_layerwise_nvtx_tracing=False, enable_mfu_metrics=False, enable_mm_processor_stats=False, enable_logging_iteration_details=False), seed=0, served_model_name=BAAI/BAAI/bge-m3, enable_prefix_caching=False, enable_chunked_prefill=False, pooler_config=PoolerConfig(pooling_type=None, seq_pooling_type='CLS', tok_pooling_type='ALL', use_activation=True, dimensions=None, enable_chunked_processing=False, max_embed_len=None, logit_bias=None, step_tag_id=None, returned_token_ids=None), compilation_config={'mode': <CompilationMode.VLLM_COMPILE: 3>, 'debug_dump_path': None, 'cache_dir': '/root/.cache/vllm/torch_compile_cache/e44841742f', 'compile_cache_save_format': 'binary', 'backend': 'inductor', 'custom_ops': ['none'], 'splitting_ops': ['vllm::unified_attention', 'vllm::unified_attention_with_output', 'vllm::unified_mla_attention', 'vllm::unified_mla_attention_with_output', 'vllm::mamba_mixer2', 'vllm::mamba_mixer', 'vllm::short_conv', 'vllm::linear_attention', 'vllm::plamo2_mamba_mixer', 'vllm::gdn_attention_core', 'vllm::olmo_hybrid_gdn_full_forward', 'vllm::kda_attention', 'vllm::sparse_attn_indexer', 'vllm::rocm_aiter_sparse_attn_indexer', 'vllm::unified_kv_cache_update', 'vllm::unified_mla_kv_cache_update'], 'compile_mm_encoder': False, 'compile_sizes': [], 'compile_ranges_endpoints': [8192], 'inductor_compile_config': {'enable_auto_functionalized_v2': False, 'combo_kernels': True, 'benchmark_combo_kernel': True}, 'inductor_passes': {}, 'cudagraph_mode': <CUDAGraphMode.PIECEWISE: 1>, 'cudagraph_num_of_warmups': 1, 'cudagraph_capture_sizes': [1, 2, 4, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120, 128, 136, 144, 152, 160, 168, 176, 184, 192, 200, 208, 216, 224, 232, 240, 248, 256, 272, 288, 304, 320, 336, 352, 368, 384, 400, 416, 432, 448, 464, 480, 496, 512], 'cudagraph_copy_inputs': False, 'cudagraph_specialize_lora': True, 'use_inductor_graph_partition': False, 'pass_config': {'fuse_norm_quant': False, 'fuse_act_quant': False, 'fuse_attn_quant': False, 'enable_sp': False, 'fuse_gemm_comms': False, 'fuse_allreduce_rms': False}, 'max_cudagraph_capture_size': 512, 'dynamic_shapes_config': {'type': <DynamicShapesType.BACKED: 'backed'>, 'evaluate_guards': False, 'assume_32_bit_indexing': False}, 'local_cache_dir': '/root/.cache/vllm/torch_compile_cache/e44841742f/rank_0_0/backbone', 'fast_moe_cold_start': True, 'static_all_moe_layers': []}, (EngineCore pid=67718) ERROR 03-23 15:40:54 [dump_input.py:79] Dumping scheduler output for model execution: SchedulerOutput(scheduled_new_reqs=[NewRequestData(req_id=pool-a697394010a73a4c-0-93050ebb,prompt_token_ids_len=7,prefill_token_ids_len=None,mm_features=[],sampling_params=None,block_ids=(),num_computed_tokens=0,lora_request=None,prompt_embeds_shape=None)], scheduled_cached_reqs=CachedRequestData(req_ids=[],resumed_req_ids=set(),new_token_ids_lens=[],all_token_ids_lens={},new_block_ids=[],num_computed_tokens=[],num_output_tokens=[]), num_scheduled_tokens={pool-a697394010a73a4c-0-93050ebb: 7}, total_num_scheduled_tokens=7, scheduled_spec_decode_tokens={}, scheduled_encoder_inputs={}, num_common_prefix_blocks=[], finished_req_ids=[], free_encoder_mm_hashes=[], preempted_req_ids=[], has_structured_output_requests=false, pending_structured_output_tokens=false, num_invalid_spec_tokens=null, kv_connector_metadata=null, ec_connector_metadata=null, new_block_ids_to_zero=null) (EngineCore pid=67718) ERROR 03-23 15:40:54 [dump_input.py:81] Dumping scheduler stats: SchedulerStats(num_running_reqs=1, num_waiting_reqs=0, step_counter=0, current_wave=0, kv_cache_usage=0, encoder_cache_usage=0.0, prefix_cache_stats=PrefixCacheStats(reset=False, requests=0, queries=0, hits=0, preempted_requests=0, preempted_queries=0, preempted_hits=0), connector_prefix_cache_stats=None, kv_cache_eviction_events=[], spec_decoding_stats=None, kv_connector_stats=None, waiting_lora_adapters={}, running_lora_adapters={}, cudagraph_stats=None, perf_stats=None) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] EngineCore encountered a fatal error. (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] Traceback (most recent call last): (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/engine/core.py", line 1101, in run_engine_core (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] engine_core.run_busy_loop() (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/engine/core.py", line 1142, in run_busy_loop (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] self._process_engine_step() (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/engine/core.py", line 1181, in _process_engine_step (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] outputs, model_executed = self.step_fn() (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/engine/core.py", line 451, in step_with_batch_queue (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] exec_future = self.model_executor.execute_model( (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/executor/uniproc_executor.py", line 114, in execute_model (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] output.result() (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/concurrent/futures/_base.py", line 449, in result (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self.__get_result() (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] raise self._exception (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/executor/uniproc_executor.py", line 84, in collective_rpc (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] result = run_method(self.driver_worker, method, args, kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/serial_utils.py", line 510, in run_method (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return func(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/worker/worker_base.py", line 332, in execute_model (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self.worker.execute_model(scheduler_output) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return func(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/worker/gpu_worker.py", line 803, in execute_model (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] output = self.model_runner.execute_model( (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return func(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/worker/gpu_model_runner.py", line 3799, in execute_model (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] model_output = self._model_forward( (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/worker/gpu_model_runner.py", line 3294, in _model_forward (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self.model( (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1776, in _wrapped_call_impl (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self._call_impl(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1787, in _call_impl (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return forward_call(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/model_executor/models/roberta.py", line 133, in forward (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self.model( (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/compilation/decorators.py", line 463, in __call__ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self.aot_compiled_fn(self, *args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/_dynamo/aot_compile.py", line 124, in __call__ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self.fn(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/model_executor/models/bert.py", line 388, in forward (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] def forward( (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/compilation/caching.py", line 211, in __call__ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self.optimized_call(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/fx/graph_module.py", line 936, in call_wrapped (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self._wrapped_call(self, *args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/fx/graph_module.py", line 455, in __call__ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] raise e (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/fx/graph_module.py", line 442, in __call__ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return super(self.cls, obj).__call__(*args, **kwargs) # type: ignore[misc] (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1776, in _wrapped_call_impl (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self._call_impl(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1787, in _call_impl (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return forward_call(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "<eval_with_key>.50", line 460, in forward (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] submod_45 = self.submod_45(getitem_110, s72, getitem_111, getitem_112, getitem_113); getitem_110 = getitem_111 = getitem_112 = submod_45 = None (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/fx/graph_module.py", line 936, in call_wrapped (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self._wrapped_call(self, *args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/fx/graph_module.py", line 455, in __call__ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] raise e (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/fx/graph_module.py", line 442, in __call__ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return super(self.cls, obj).__call__(*args, **kwargs) # type: ignore[misc] (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1776, in _wrapped_call_impl (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self._call_impl(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1787, in _call_impl (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return forward_call(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "<eval_with_key>.96", line 6, in forward (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_22, key_22, value_22, output_67, 'model.encoder.layer.22.attention.output.attn', kv_cache_dummy_dep = unified_kv_cache_update); query_22 = key_22 = value_22 = output_67 = unified_kv_cache_update = unified_attention_with_output = None (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/_ops.py", line 1209, in __call__ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self._op(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/model_executor/layers/attention/kv_transfer_utils.py", line 39, in wrapper (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return func(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/model_executor/layers/attention/attention.py", line 699, in unified_attention_with_output (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] self.impl.forward( (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/attention/backends/flash_attn.py", line 689, in forward (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self._forward_encoder_attention( (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/attention/backends/flash_attn.py", line 963, in _forward_encoder_attention (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] flash_attn_varlen_func( (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/vllm_flash_attn/flash_attn_interface.py", line 300, in flash_attn_varlen_func (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] out, softmax_lse = torch.ops._vllm_fa2_C.varlen_fwd( (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/_ops.py", line 1209, in __call__ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self._op(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] torch.AcceleratorError: CUDA error: device-side assert triggered (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] Search for `cudaErrorAssert' in https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html for more information. (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] For debugging consider passing CUDA_LAUNCH_BLOCKING=1 (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions. (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] (EngineCore pid=67718) Process EngineCore: (APIServer pid=67656) ERROR 03-23 15:40:54 [async_llm.py:707] AsyncLLM output_handler failed. (APIServer pid=67656) ERROR 03-23 15:40:54 [async_llm.py:707] Traceback (most recent call last): (APIServer pid=67656) ERROR 03-23 15:40:54 [async_llm.py:707] File "/root/autodl-tmp/vllm/vllm/v1/engine/async_llm.py", line 663, in output_handler (APIServer pid=67656) ERROR 03-23 15:40:54 [async_llm.py:707] outputs = await engine_core.get_output_async() (APIServer pid=67656) ERROR 03-23 15:40:54 [async_llm.py:707] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (APIServer pid=67656) ERROR 03-23 15:40:54 [async_llm.py:707] File "/root/autodl-tmp/vllm/vllm/v1/engine/core_client.py", line 985, in get_output_async (APIServer pid=67656) ERROR 03-23 15:40:54 [async_llm.py:707] raise self._format_exception(outputs) from None (APIServer pid=67656) ERROR 03-23 15:40:54 [async_llm.py:707] vllm.v1.engine.exceptions.EngineDeadError: EngineCore encountered an issue. See stack trace (above) for the root cause. (EngineCore pid=67718) Traceback (most recent call last): (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap (EngineCore pid=67718) self.run() (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/multiprocessing/process.py", line 108, in run (EngineCore pid=67718) self._target(*self._args, **self._kwargs) (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/engine/core.py", line 1112, in run_engine_core (EngineCore pid=67718) raise e (APIServer pid=67656) INFO: 127.0.0.1:35516 - "POST /pooling HTTP/1.1" 500 Internal Server Error (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/engine/core.py", line 1101, in run_engine_core (EngineCore pid=67718) engine_core.run_busy_loop() (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/engine/core.py", line 1142, in run_busy_loop (EngineCore pid=67718) self._process_engine_step() (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/engine/core.py", line 1181, in _process_engine_step (EngineCore pid=67718) outputs, model_executed = self.step_fn() (EngineCore pid=67718) ^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/engine/core.py", line 451, in step_with_batch_queue (EngineCore pid=67718) exec_future = self.model_executor.execute_model( (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/executor/uniproc_executor.py", line 114, in execute_model (EngineCore pid=67718) output.result() (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/concurrent/futures/_base.py", line 449, in result (EngineCore pid=67718) return self.__get_result() (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result (EngineCore pid=67718) raise self._exception (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/executor/uniproc_executor.py", line 84, in collective_rpc (EngineCore pid=67718) result = run_method(self.driver_worker, method, args, kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/serial_utils.py", line 510, in run_method (EngineCore pid=67718) return func(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/worker/worker_base.py", line 332, in execute_model (EngineCore pid=67718) return self.worker.execute_model(scheduler_output) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context (EngineCore pid=67718) return func(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/worker/gpu_worker.py", line 803, in execute_model (EngineCore pid=67718) output = self.model_runner.execute_model( (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context (EngineCore pid=67718) return func(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/worker/gpu_model_runner.py", line 3799, in execute_model (EngineCore pid=67718) model_output = self._model_forward( (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/worker/gpu_model_runner.py", line 3294, in _model_forward (EngineCore pid=67718) return self.model( (EngineCore pid=67718) ^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1776, in _wrapped_call_impl (EngineCore pid=67718) return self._call_impl(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1787, in _call_impl (EngineCore pid=67718) return forward_call(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/model_executor/models/roberta.py", line 133, in forward (EngineCore pid=67718) return self.model( (EngineCore pid=67718) ^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/compilation/decorators.py", line 463, in __call__ (EngineCore pid=67718) return self.aot_compiled_fn(self, *args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/_dynamo/aot_compile.py", line 124, in __call__ (EngineCore pid=67718) return self.fn(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/model_executor/models/bert.py", line 388, in forward (EngineCore pid=67718) def forward( (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/compilation/caching.py", line 211, in __call__ (EngineCore pid=67718) return self.optimized_call(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/fx/graph_module.py", line 936, in call_wrapped (EngineCore pid=67718) return self._wrapped_call(self, *args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/fx/graph_module.py", line 455, in __call__ (EngineCore pid=67718) raise e (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/fx/graph_module.py", line 442, in __call__ (EngineCore pid=67718) return super(self.cls, obj).__call__(*args, **kwargs) # type: ignore[misc] (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1776, in _wrapped_call_impl (EngineCore pid=67718) return self._call_impl(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1787, in _call_impl (EngineCore pid=67718) return forward_call(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "<eval_with_key>.50", line 460, in forward (EngineCore pid=67718) submod_45 = self.submod_45(getitem_110, s72, getitem_111, getitem_112, getitem_113); getitem_110 = getitem_111 = getitem_112 = submod_45 = None (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/fx/graph_module.py", line 936, in call_wrapped (EngineCore pid=67718) return self._wrapped_call(self, *args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/fx/graph_module.py", line 455, in __call__ (EngineCore pid=67718) raise e (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/fx/graph_module.py", line 442, in __call__ (EngineCore pid=67718) return super(self.cls, obj).__call__(*args, **kwargs) # type: ignore[misc] (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1776, in _wrapped_call_impl (EngineCore pid=67718) return self._call_impl(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1787, in _call_impl (EngineCore pid=67718) return forward_call(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "<eval_with_key>.96", line 6, in forward (EngineCore pid=67718) unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_22, key_22, value_22, output_67, 'model.encoder.layer.22.attention.output.attn', kv_cache_dummy_dep = unified_kv_cache_update); query_22 = key_22 = value_22 = output_67 = unified_kv_cache_update = unified_attention_with_output = None (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/_ops.py", line 1209, in __call__ (EngineCore pid=67718) return self._op(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/model_executor/layers/attention/kv_transfer_utils.py", line 39, in wrapper (EngineCore pid=67718) return func(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/model_executor/layers/attention/attention.py", line 699, in unified_attention_with_output (EngineCore pid=67718) self.impl.forward( (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/attention/backends/flash_attn.py", line 689, in forward (EngineCore pid=67718) return self._forward_encoder_attention( (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/attention/backends/flash_attn.py", line 963, in _forward_encoder_attention (EngineCore pid=67718) flash_attn_varlen_func( (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/vllm_flash_attn/flash_attn_interface.py", line 300, in flash_attn_varlen_func (EngineCore pid=67718) out, softmax_lse = torch.ops._vllm_fa2_C.varlen_fwd( (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/_ops.py", line 1209, in __call__ (EngineCore pid=67718) return self._op(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) torch.AcceleratorError: CUDA error: device-side assert triggered (EngineCore pid=67718) Search for `cudaErrorAssert' in https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html for more information. (EngineCore pid=67718) CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. (EngineCore pid=67718) For debugging consider passing CUDA_LAUNCH_BLOCKING=1 (EngineCore pid=67718) Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions. (EngineCore pid=67718) (APIServer pid=67656) INFO: Shutting down [rank0]:[W323 15:40:54.198880817 ProcessGroupNCCL.cpp:1553] Warning: WARNING: destroy_process_group() was not called before program exit, which can leak resources. For more info, please see https://pytorch.org/docs/stable/distributed.html#shutdown (function operator()) (APIServer pid=67656) INFO: Waiting for application shutdown. (APIServer pid=67656) INFO: Application shutdown complete. (APIServer pid=67656) INFO: Finished server process [67656] </pre> </code> </detail>

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): 208 On-line CPU(s) list: 0-207 Vendor ID: GenuineIntel Model name: Intel(R) Xeon(R) Platinum 8470Q CPU family: 6 Model: 143 Thread(s) per core: 2 Core(s) per socket: 52 Socket(s): 2 Stepping: 8 Frequency boost: enabled CPU max MHz: 2101.0000 CPU min MHz: 800.0000 BogoMIPS: 4200.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 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 invpcid_single intel_ppin cdp_l2 ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi 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 avx_vnni avx512_bf16 wbnoinvd dtherm ida arat pln pts 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 amx_bf16 avx512_fp16 amx_tile amx_int8 flush_l1d arch_capabilities Virtualization: VT-x L1d cache: 4.9 MiB (104 instances) L1i cache: 3.3 MiB (104 instances) L2 cache: 208 MiB (104 instances) L3 cache: 210 MiB (2 instances) NUMA node(s): 2 NUMA node0 CPU(s): 0-51,104-155 NUMA node1 CPU(s): 52-103,156-207 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 Retbleed: Not affected Vulnerability Spec rstack overflow: Not affected Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Vulnerability Spectre v2: Mitigation; Enhanced IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS SW sequence Vulnerability Srbds: Not affected Vulnerability Tsx async abort: Not affected

PR fix notes

PR #37873: [Bugfix] RoBERTa position_id accumulation in CUDA graph padding region

Description (problem / solution / changelog)

Fix a crash that affected all RoBERTa-based embedding models (BAAI/bge-m3, XLM-RoBERTa, stsb-roberta, bge-reranker-v2-m3) when CUDA graphs are enabled. After approximately max_position_embeddings / 2 requests the server crashes with: Assertion 'index out of bounds: 0 <= tmp25 < 8194' failed.

  • gpu_model_runner keeps a persistent GPU buffer self.positions that is reused across every request. Each request refreshes only the first num_scheduled_tokens entries via copy_to_gpu; the remaining padding slots [num_scheduled_tokens : num_input_tokens_padded] are not reset.
  • RoBERTa models call replace_roberta_positions outside the CUDA graph (before BertModel.forward), which does an in-place position_ids += padding_idx + 1 on the full padded tensor, including the stale padding slots. Because those slots are never reset by copy_to_gpu, each request adds another +(padding_idx + 1) to them.

For BAAI/bge-m3 (max_position_embeddings = 8194, padding_idx = 1, offset = 2) with short sentences (6 tokens) padded to 8:

padding slot value after K requests  =  V_init + 2K
overflow when                         >= 8194
K                                     = (8194 - V_init) / 2  ≈  3999

Fixes #37868

Related #37648 #37868

Purpose

Test Plan

Reproduce the bug

CUDA_LAUNCH_BLOCKING=1 vllm serve BAAI/bge-m3 --port 9001 \
  --hf-overrides '{"architectures": ["BgeM3EmbeddingModel"]}' \
  --runner pooling

# Send 10000 sequential requests
for i in $(seq 1 10000); do
  response=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:9001/pooling \
    -H "Content-Type: application/json" \
    -d '{"model": "BAAI/bge-m3", "task": "embed",
         "input": ["test sentence number '$i'"]}')
  if [ "$response" != "200" ]; then
    echo "FAILED at index $i (HTTP $response)"; break
  fi
done

Existing tests

pytest tests/models/language/pooling/test_bge_m3.py -v -s
pytest tests/models/language/pooling/test_embedding.py -v -s -k "stsb-roberta"
pytest tests/models/language/pooling/test_multi_vector_retrieval.py -v -s
pytest tests/models/language/pooling/test_scoring.py -v -s

Test Result

Tested on RTX 5090 (Blackwell, sm_120), vLLM 0.18.1rc1.dev38+ga16133a0f:

Before fixAfter fix
10000 sequential BGE-M3 /pooling requestsCrash at index ~3999All pass
test_bge_m3.py (dense / sparse / ColBERT scores)PassPass
test_embedding.py[stsb-roberta-base-v2]PassPass
test_multi_vector_retrieval.pyPassPass
test_scoring.py (bge-reranker-v2-m3)PassPass

<details> <summary> Essential Elements of an Effective PR Description Checklist </summary>
  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.
  • (Optional) Release notes update. If your change is user facing, please update the release notes draft in the Google Doc.
</details>

Changed files

  • vllm/v1/worker/gpu_model_runner.py (modified, +2/-0)

PR #37884: [Bugfix] Fix RoBERTa position_ids accumulation on CUDA graph padding

Description (problem / solution / changelog)

Purpose

Fix a crash in all RoBERTa-based pooling/embedding models (BGE-M3, XLM-RoBERTa, stsb-roberta, bge-reranker-v2-m3) when CUDA graphs are enabled. After ~4000 sequential requests the server dies with an out-of-bounds position embedding index.

Root cause: replace_roberta_positions() did an in-place position_ids += padding_idx + 1 on the persistent GPU positions buffer. The model runner refreshes only the first num_scheduled_tokens entries via copy_to_gpu each request — the remaining CUDA-graph padding slots keep their stale values. Every request adds another +(padding_idx + 1) to those slots, and eventually the values exceed max_position_embeddings.

For BAAI/bge-m3 (padding_idx=1, offset=2) with short inputs padded to 8 tokens, overflow happens after (8194 - V_init) / 2 ≈ 4000 requests.

Fix: move the padding_idx + 1 offset into RobertaEmbedding.forward as a non-in-place add (position_ids + offset instead of position_ids += offset). This computes the correct positions each call without mutating the persistent buffer. Also fix the same in-place += pattern in the transformers LegacyMixin.

Fixes #37648 Fixes #37868

Related: #37873 (alternative fix that zeroes the padding region in _preprocess)

Test Plan

Reproduce the bug (before fix)

vllm serve BAAI/bge-m3 --port 9001 \
  --hf-overrides '{"architectures": ["BgeM3EmbeddingModel"]}'

for i in $(seq 1 5000); do
  resp=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:9001/pooling \
    -H "Content-Type: application/json" \
    -d '{"model": "BAAI/bge-m3", "task": "embed", "input": ["test '$i'"]}')
  [ "$resp" != "200" ] && echo "FAIL at $i (HTTP $resp)" && break
done

Existing tests

pytest tests/models/language/pooling/test_bge_m3.py -v -s
pytest tests/models/language/pooling/test_embedding.py -v -s -k "stsb-roberta"
pytest tests/models/language/pooling/test_scoring.py -v -s

<details> <summary> Essential Elements of an Effective PR Description Checklist </summary>
  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
</details>

Changed files

  • vllm/model_executor/models/roberta.py (modified, +8/-24)
  • vllm/model_executor/models/transformers/legacy.py (modified, +4/-2)

Code Example

==============================
        System Info
==============================
OS                           : Ubuntu 22.04.5 LTS (x86_64)
GCC version                  : (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Clang version                : Could not collect
CMake version                : version 4.2.3
Libc version                 : glibc-2.35

==============================
       PyTorch Info
==============================
PyTorch version              : 2.10.0+cu128
Is debug build               : False
CUDA used to build PyTorch   : 12.8
ROCM used to build PyTorch   : N/A

==============================
      Python Environment
==============================
Python version               : 3.12.3 | packaged by Anaconda, Inc. | (main, May  6 2024, 19:46:43) [GCC 11.2.0] (64-bit runtime)
Python platform              : Linux-5.15.0-94-generic-x86_64-with-glibc2.35

==============================
       CUDA / GPU Info
==============================
Is CUDA available            : True
CUDA runtime version         : 12.8.93
CUDA_MODULE_LOADING set to   : 
GPU models and configuration : GPU 0: NVIDIA GeForce RTX 5090
Nvidia driver version        : 580.76.05
cuDNN version                : Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.9.8.0
/usr/lib/x86_64-linux-gnu/libcudnn_adv.so.9.8.0
/usr/lib/x86_64-linux-gnu/libcudnn_cnn.so.9.8.0
/usr/lib/x86_64-linux-gnu/libcudnn_engines_precompiled.so.9.8.0
/usr/lib/x86_64-linux-gnu/libcudnn_engines_runtime_compiled.so.9.8.0
/usr/lib/x86_64-linux-gnu/libcudnn_graph.so.9.8.0
/usr/lib/x86_64-linux-gnu/libcudnn_heuristic.so.9.8.0
/usr/lib/x86_64-linux-gnu/libcudnn_ops.so.9.8.0
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):                             208
On-line CPU(s) list:                0-207
Vendor ID:                          GenuineIntel
Model name:                         Intel(R) Xeon(R) Platinum 8470Q
CPU family:                         6
Model:                              143
Thread(s) per core:                 2
Core(s) per socket:                 52
Socket(s):                          2
Stepping:                           8
Frequency boost:                    enabled
CPU max MHz:                        2101.0000
CPU min MHz:                        800.0000
BogoMIPS:                           4200.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 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 invpcid_single intel_ppin cdp_l2 ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi 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 avx_vnni avx512_bf16 wbnoinvd dtherm ida arat pln pts 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 amx_bf16 avx512_fp16 amx_tile amx_int8 flush_l1d arch_capabilities
Virtualization:                     VT-x
L1d cache:                          4.9 MiB (104 instances)
L1i cache:                          3.3 MiB (104 instances)
L2 cache:                           208 MiB (104 instances)
L3 cache:                           210 MiB (2 instances)
NUMA node(s):                       2
NUMA node0 CPU(s):                  0-51,104-155
NUMA node1 CPU(s):                  52-103,156-207
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 Retbleed:             Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass:    Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:           Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:           Mitigation; Enhanced IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS SW sequence
Vulnerability Srbds:                Not affected
Vulnerability Tsx async abort:      Not affected

==============================
Versions of relevant libraries
==============================
[pip3] flashinfer-python==0.6.6
[pip3] numpy==2.2.6
[pip3] nvidia-cublas-cu12==12.8.4.1
[pip3] nvidia-cuda-cupti-cu12==12.8.90
[pip3] nvidia-cuda-nvrtc-cu12==12.8.93
[pip3] nvidia-cuda-runtime-cu12==12.8.90
[pip3] nvidia-cudnn-cu12==9.10.2.21
[pip3] nvidia-cudnn-frontend==1.18.0
[pip3] nvidia-cufft-cu12==11.3.3.83
[pip3] nvidia-cufile-cu12==1.13.1.3
[pip3] nvidia-curand-cu12==10.3.9.90
[pip3] nvidia-cusolver-cu12==11.7.3.90
[pip3] nvidia-cusparse-cu12==12.5.8.93
[pip3] nvidia-cusparselt-cu12==0.7.1
[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-cu12==2.27.5
[pip3] nvidia-nvjitlink-cu12==12.8.93
[pip3] nvidia-nvshmem-cu12==3.4.5
[pip3] nvidia-nvtx-cu12==12.8.90
[pip3] pyzmq==26.4.0
[pip3] torch==2.10.0+cu128
[pip3] torch_c_dlpack_ext==0.1.5
[pip3] torchaudio==2.10.0+cu128
[pip3] torchvision==0.25.0+cu128
[pip3] transformers==4.57.6
[pip3] triton==3.6.0
[conda] flashinfer-python         0.6.6                    pypi_0    pypi
[conda] numpy                     2.2.6                    pypi_0    pypi
[conda] nvidia-cublas-cu12        12.8.4.1                 pypi_0    pypi
[conda] nvidia-cuda-cupti-cu12    12.8.90                  pypi_0    pypi
[conda] nvidia-cuda-nvrtc-cu12    12.8.93                  pypi_0    pypi
[conda] nvidia-cuda-runtime-cu12  12.8.90                  pypi_0    pypi
[conda] nvidia-cudnn-cu12         9.10.2.21                pypi_0    pypi
[conda] nvidia-cudnn-frontend     1.18.0                   pypi_0    pypi
[conda] nvidia-cufft-cu12         11.3.3.83                pypi_0    pypi
[conda] nvidia-cufile-cu12        1.13.1.3                 pypi_0    pypi
[conda] nvidia-curand-cu12        10.3.9.90                pypi_0    pypi
[conda] nvidia-cusolver-cu12      11.7.3.90                pypi_0    pypi
[conda] nvidia-cusparse-cu12      12.5.8.93                pypi_0    pypi
[conda] nvidia-cusparselt-cu12    0.7.1                    pypi_0    pypi
[conda] nvidia-cutlass-dsl        4.4.2                    pypi_0    pypi
[conda] nvidia-cutlass-dsl-libs-base 4.4.2                    pypi_0    pypi
[conda] nvidia-ml-py              13.595.45                pypi_0    pypi
[conda] nvidia-nccl-cu12          2.27.5                   pypi_0    pypi
[conda] nvidia-nvjitlink-cu12     12.8.93                  pypi_0    pypi
[conda] nvidia-nvshmem-cu12       3.4.5                    pypi_0    pypi
[conda] nvidia-nvtx-cu12          12.8.90                  pypi_0    pypi
[conda] pyzmq                     26.4.0                   pypi_0    pypi
[conda] torch                     2.10.0+cu128             pypi_0    pypi
[conda] torch-c-dlpack-ext        0.1.5                    pypi_0    pypi
[conda] torchaudio                2.10.0+cu128             pypi_0    pypi
[conda] torchvision               0.25.0+cu128             pypi_0    pypi
[conda] transformers              4.57.6                   pypi_0    pypi
[conda] triton                    3.6.0                    pypi_0    pypi

==============================
         vLLM Info
==============================
ROCM Version                 : Could not collect
vLLM Version                 : 0.18.1rc1.dev38+ga16133a0f (git sha: a16133a0f)
vLLM Build Flags:
  CUDA Archs: Not Set; ROCm: Disabled
GPU Topology:
        GPU0    CPU Affinity    NUMA Affinity   GPU NUMA ID
GPU0     X      0-51,104-155    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
==============================
NVIDIA_VISIBLE_DEVICES=GPU-414ba206-367a-435d-24fe-e48e11caf70b
NVIDIA_REQUIRE_CUDA=cuda>=12.8 brand=unknown,driver>=470,driver<471 brand=grid,driver>=470,driver<471 brand=tesla,driver>=470,driver<471 brand=nvidia,driver>=470,driver<471 brand=quadro,driver>=470,driver<471 brand=quadrortx,driver>=470,driver<471 brand=nvidiartx,driver>=470,driver<471 brand=vapps,driver>=470,driver<471 brand=vpc,driver>=470,driver<471 brand=vcs,driver>=470,driver<471 brand=vws,driver>=470,driver<471 brand=cloudgaming,driver>=470,driver<471 brand=unknown,driver>=535,driver<536 brand=grid,driver>=535,driver<536 brand=tesla,driver>=535,driver<536 brand=nvidia,driver>=535,driver<536 brand=quadro,driver>=535,driver<536 brand=quadrortx,driver>=535,driver<536 brand=nvidiartx,driver>=535,driver<536 brand=vapps,driver>=535,driver<536 brand=vpc,driver>=535,driver<536 brand=vcs,driver>=535,driver<536 brand=vws,driver>=535,driver<536 brand=cloudgaming,driver>=535,driver<536 brand=unknown,driver>=550,driver<551 brand=grid,driver>=550,driver<551 brand=tesla,driver>=550,driver<551 brand=nvidia,driver>=550,driver<551 brand=quadro,driver>=550,driver<551 brand=quadrortx,driver>=550,driver<551 brand=nvidiartx,driver>=550,driver<551 brand=vapps,driver>=550,driver<551 brand=vpc,driver>=550,driver<551 brand=vcs,driver>=550,driver<551 brand=vws,driver>=550,driver<551 brand=cloudgaming,driver>=550,driver<551 brand=unknown,driver>=560,driver<561 brand=grid,driver>=560,driver<561 brand=tesla,driver>=560,driver<561 brand=nvidia,driver>=560,driver<561 brand=quadro,driver>=560,driver<561 brand=quadrortx,driver>=560,driver<561 brand=nvidiartx,driver>=560,driver<561 brand=vapps,driver>=560,driver<561 brand=vpc,driver>=560,driver<561 brand=vcs,driver>=560,driver<561 brand=vws,driver>=560,driver<561 brand=cloudgaming,driver>=560,driver<561 brand=unknown,driver>=565,driver<566 brand=grid,driver>=565,driver<566 brand=tesla,driver>=565,driver<566 brand=nvidia,driver>=565,driver<566 brand=quadro,driver>=565,driver<566 brand=quadrortx,driver>=565,driver<566 brand=nvidiartx,driver>=565,driver<566 brand=vapps,driver>=565,driver<566 brand=vpc,driver>=565,driver<566 brand=vcs,driver>=565,driver<566 brand=vws,driver>=565,driver<566 brand=cloudgaming,driver>=565,driver<566
NCCL_VERSION=2.25.1-1
NVIDIA_DRIVER_CAPABILITIES=compute,utility,graphics,video
NVIDIA_PRODUCT_NAME=CUDA
CUDA_VERSION=12.8.1
LD_LIBRARY_PATH=/usr/local/cuda/lib64
OMP_NUM_THREADS=25
MKL_NUM_THREADS=25
PYTORCH_NVML_BASED_CUDA_CHECK=1
TORCHINDUCTOR_COMPILE_THREADS=1
TORCHINDUCTOR_CACHE_DIR=/tmp/torchinductor_root

---

for i in $(seq 1 10000); do
  response=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:9001/pooling \
    -H "Content-Type: application/json" \
    -d '{"model": "BAAI/BAAI/bge-m3", "task": "embed", "input": ["test sentence number '$i'"]}')
  
  if [ "$response" != "200" ]; then
    echo "FAILED at index $i (HTTP $response)"
    break
  else
    echo "OK: $i"
  fi
done
RAW_BUFFERClick to expand / collapse

Your current environment

<details> <summary>The output of <code>python collect_env.py</code></summary>
==============================
        System Info
==============================
OS                           : Ubuntu 22.04.5 LTS (x86_64)
GCC version                  : (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Clang version                : Could not collect
CMake version                : version 4.2.3
Libc version                 : glibc-2.35

==============================
       PyTorch Info
==============================
PyTorch version              : 2.10.0+cu128
Is debug build               : False
CUDA used to build PyTorch   : 12.8
ROCM used to build PyTorch   : N/A

==============================
      Python Environment
==============================
Python version               : 3.12.3 | packaged by Anaconda, Inc. | (main, May  6 2024, 19:46:43) [GCC 11.2.0] (64-bit runtime)
Python platform              : Linux-5.15.0-94-generic-x86_64-with-glibc2.35

==============================
       CUDA / GPU Info
==============================
Is CUDA available            : True
CUDA runtime version         : 12.8.93
CUDA_MODULE_LOADING set to   : 
GPU models and configuration : GPU 0: NVIDIA GeForce RTX 5090
Nvidia driver version        : 580.76.05
cuDNN version                : Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.9.8.0
/usr/lib/x86_64-linux-gnu/libcudnn_adv.so.9.8.0
/usr/lib/x86_64-linux-gnu/libcudnn_cnn.so.9.8.0
/usr/lib/x86_64-linux-gnu/libcudnn_engines_precompiled.so.9.8.0
/usr/lib/x86_64-linux-gnu/libcudnn_engines_runtime_compiled.so.9.8.0
/usr/lib/x86_64-linux-gnu/libcudnn_graph.so.9.8.0
/usr/lib/x86_64-linux-gnu/libcudnn_heuristic.so.9.8.0
/usr/lib/x86_64-linux-gnu/libcudnn_ops.so.9.8.0
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):                             208
On-line CPU(s) list:                0-207
Vendor ID:                          GenuineIntel
Model name:                         Intel(R) Xeon(R) Platinum 8470Q
CPU family:                         6
Model:                              143
Thread(s) per core:                 2
Core(s) per socket:                 52
Socket(s):                          2
Stepping:                           8
Frequency boost:                    enabled
CPU max MHz:                        2101.0000
CPU min MHz:                        800.0000
BogoMIPS:                           4200.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 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 invpcid_single intel_ppin cdp_l2 ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi 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 avx_vnni avx512_bf16 wbnoinvd dtherm ida arat pln pts 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 amx_bf16 avx512_fp16 amx_tile amx_int8 flush_l1d arch_capabilities
Virtualization:                     VT-x
L1d cache:                          4.9 MiB (104 instances)
L1i cache:                          3.3 MiB (104 instances)
L2 cache:                           208 MiB (104 instances)
L3 cache:                           210 MiB (2 instances)
NUMA node(s):                       2
NUMA node0 CPU(s):                  0-51,104-155
NUMA node1 CPU(s):                  52-103,156-207
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 Retbleed:             Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass:    Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:           Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:           Mitigation; Enhanced IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS SW sequence
Vulnerability Srbds:                Not affected
Vulnerability Tsx async abort:      Not affected

==============================
Versions of relevant libraries
==============================
[pip3] flashinfer-python==0.6.6
[pip3] numpy==2.2.6
[pip3] nvidia-cublas-cu12==12.8.4.1
[pip3] nvidia-cuda-cupti-cu12==12.8.90
[pip3] nvidia-cuda-nvrtc-cu12==12.8.93
[pip3] nvidia-cuda-runtime-cu12==12.8.90
[pip3] nvidia-cudnn-cu12==9.10.2.21
[pip3] nvidia-cudnn-frontend==1.18.0
[pip3] nvidia-cufft-cu12==11.3.3.83
[pip3] nvidia-cufile-cu12==1.13.1.3
[pip3] nvidia-curand-cu12==10.3.9.90
[pip3] nvidia-cusolver-cu12==11.7.3.90
[pip3] nvidia-cusparse-cu12==12.5.8.93
[pip3] nvidia-cusparselt-cu12==0.7.1
[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-cu12==2.27.5
[pip3] nvidia-nvjitlink-cu12==12.8.93
[pip3] nvidia-nvshmem-cu12==3.4.5
[pip3] nvidia-nvtx-cu12==12.8.90
[pip3] pyzmq==26.4.0
[pip3] torch==2.10.0+cu128
[pip3] torch_c_dlpack_ext==0.1.5
[pip3] torchaudio==2.10.0+cu128
[pip3] torchvision==0.25.0+cu128
[pip3] transformers==4.57.6
[pip3] triton==3.6.0
[conda] flashinfer-python         0.6.6                    pypi_0    pypi
[conda] numpy                     2.2.6                    pypi_0    pypi
[conda] nvidia-cublas-cu12        12.8.4.1                 pypi_0    pypi
[conda] nvidia-cuda-cupti-cu12    12.8.90                  pypi_0    pypi
[conda] nvidia-cuda-nvrtc-cu12    12.8.93                  pypi_0    pypi
[conda] nvidia-cuda-runtime-cu12  12.8.90                  pypi_0    pypi
[conda] nvidia-cudnn-cu12         9.10.2.21                pypi_0    pypi
[conda] nvidia-cudnn-frontend     1.18.0                   pypi_0    pypi
[conda] nvidia-cufft-cu12         11.3.3.83                pypi_0    pypi
[conda] nvidia-cufile-cu12        1.13.1.3                 pypi_0    pypi
[conda] nvidia-curand-cu12        10.3.9.90                pypi_0    pypi
[conda] nvidia-cusolver-cu12      11.7.3.90                pypi_0    pypi
[conda] nvidia-cusparse-cu12      12.5.8.93                pypi_0    pypi
[conda] nvidia-cusparselt-cu12    0.7.1                    pypi_0    pypi
[conda] nvidia-cutlass-dsl        4.4.2                    pypi_0    pypi
[conda] nvidia-cutlass-dsl-libs-base 4.4.2                    pypi_0    pypi
[conda] nvidia-ml-py              13.595.45                pypi_0    pypi
[conda] nvidia-nccl-cu12          2.27.5                   pypi_0    pypi
[conda] nvidia-nvjitlink-cu12     12.8.93                  pypi_0    pypi
[conda] nvidia-nvshmem-cu12       3.4.5                    pypi_0    pypi
[conda] nvidia-nvtx-cu12          12.8.90                  pypi_0    pypi
[conda] pyzmq                     26.4.0                   pypi_0    pypi
[conda] torch                     2.10.0+cu128             pypi_0    pypi
[conda] torch-c-dlpack-ext        0.1.5                    pypi_0    pypi
[conda] torchaudio                2.10.0+cu128             pypi_0    pypi
[conda] torchvision               0.25.0+cu128             pypi_0    pypi
[conda] transformers              4.57.6                   pypi_0    pypi
[conda] triton                    3.6.0                    pypi_0    pypi

==============================
         vLLM Info
==============================
ROCM Version                 : Could not collect
vLLM Version                 : 0.18.1rc1.dev38+ga16133a0f (git sha: a16133a0f)
vLLM Build Flags:
  CUDA Archs: Not Set; ROCm: Disabled
GPU Topology:
        GPU0    CPU Affinity    NUMA Affinity   GPU NUMA ID
GPU0     X      0-51,104-155    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
==============================
NVIDIA_VISIBLE_DEVICES=GPU-414ba206-367a-435d-24fe-e48e11caf70b
NVIDIA_REQUIRE_CUDA=cuda>=12.8 brand=unknown,driver>=470,driver<471 brand=grid,driver>=470,driver<471 brand=tesla,driver>=470,driver<471 brand=nvidia,driver>=470,driver<471 brand=quadro,driver>=470,driver<471 brand=quadrortx,driver>=470,driver<471 brand=nvidiartx,driver>=470,driver<471 brand=vapps,driver>=470,driver<471 brand=vpc,driver>=470,driver<471 brand=vcs,driver>=470,driver<471 brand=vws,driver>=470,driver<471 brand=cloudgaming,driver>=470,driver<471 brand=unknown,driver>=535,driver<536 brand=grid,driver>=535,driver<536 brand=tesla,driver>=535,driver<536 brand=nvidia,driver>=535,driver<536 brand=quadro,driver>=535,driver<536 brand=quadrortx,driver>=535,driver<536 brand=nvidiartx,driver>=535,driver<536 brand=vapps,driver>=535,driver<536 brand=vpc,driver>=535,driver<536 brand=vcs,driver>=535,driver<536 brand=vws,driver>=535,driver<536 brand=cloudgaming,driver>=535,driver<536 brand=unknown,driver>=550,driver<551 brand=grid,driver>=550,driver<551 brand=tesla,driver>=550,driver<551 brand=nvidia,driver>=550,driver<551 brand=quadro,driver>=550,driver<551 brand=quadrortx,driver>=550,driver<551 brand=nvidiartx,driver>=550,driver<551 brand=vapps,driver>=550,driver<551 brand=vpc,driver>=550,driver<551 brand=vcs,driver>=550,driver<551 brand=vws,driver>=550,driver<551 brand=cloudgaming,driver>=550,driver<551 brand=unknown,driver>=560,driver<561 brand=grid,driver>=560,driver<561 brand=tesla,driver>=560,driver<561 brand=nvidia,driver>=560,driver<561 brand=quadro,driver>=560,driver<561 brand=quadrortx,driver>=560,driver<561 brand=nvidiartx,driver>=560,driver<561 brand=vapps,driver>=560,driver<561 brand=vpc,driver>=560,driver<561 brand=vcs,driver>=560,driver<561 brand=vws,driver>=560,driver<561 brand=cloudgaming,driver>=560,driver<561 brand=unknown,driver>=565,driver<566 brand=grid,driver>=565,driver<566 brand=tesla,driver>=565,driver<566 brand=nvidia,driver>=565,driver<566 brand=quadro,driver>=565,driver<566 brand=quadrortx,driver>=565,driver<566 brand=nvidiartx,driver>=565,driver<566 brand=vapps,driver>=565,driver<566 brand=vpc,driver>=565,driver<566 brand=vcs,driver>=565,driver<566 brand=vws,driver>=565,driver<566 brand=cloudgaming,driver>=565,driver<566
NCCL_VERSION=2.25.1-1
NVIDIA_DRIVER_CAPABILITIES=compute,utility,graphics,video
NVIDIA_PRODUCT_NAME=CUDA
CUDA_VERSION=12.8.1
LD_LIBRARY_PATH=/usr/local/cuda/lib64
OMP_NUM_THREADS=25
MKL_NUM_THREADS=25
PYTORCH_NVML_BASED_CUDA_CHECK=1
TORCHINDUCTOR_COMPILE_THREADS=1
TORCHINDUCTOR_CACHE_DIR=/tmp/torchinductor_root
</details>

🐛 Describe the bug

Run vllm command: vllm serve BAAI/BAAI/bge-m3 --port 9001 --hf-overrides '{"architectures": ["BgeM3EmbeddingModel"]}'

Then run

for i in $(seq 1 10000); do
  response=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:9001/pooling \
    -H "Content-Type: application/json" \
    -d '{"model": "BAAI/BAAI/bge-m3", "task": "embed", "input": ["test sentence number '$i'"]}')
  
  if [ "$response" != "200" ]; then
    echo "FAILED at index $i (HTTP $response)"
    break
  else
    echo "OK: $i"
  fi
done

It breaks at index 3999.

<detail> <code> <pre> (APIServer pid=67656) INFO: 127.0.0.1:51488 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51500 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51506 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51514 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51516 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51532 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51542 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51550 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51560 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51572 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51588 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51590 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51602 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51604 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51614 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51628 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51638 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51640 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51648 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51660 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51666 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51670 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51674 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51688 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51694 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51702 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51712 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51714 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51718 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:51724 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:35498 - "POST /pooling HTTP/1.1" 200 OK (APIServer pid=67656) INFO: 127.0.0.1:35512 - "POST /pooling HTTP/1.1" 200 OK /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [0,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [1,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [2,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [3,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [4,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [5,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [6,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [7,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [8,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [9,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [10,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [11,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [12,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [13,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [14,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [15,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [16,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [17,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [18,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [19,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [20,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [21,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [22,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [23,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [24,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [25,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [26,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [27,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [28,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [29,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [30,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. /tmp/torchinductor_root/m4/cm4u7uibteuellcqaa6onyn7lx6gqmxefc4moz6ef74cr5rqyf76.py:61: unknown: block: [7,0,0], thread: [31,0,0] Assertion `index out of bounds: 0 <= tmp25 < 8194` failed. (EngineCore pid=67718) ERROR 03-23 15:40:54 [dump_input.py:72] Dumping input data for V1 LLM engine (0.18.1rc1.dev38+ga16133a0f) with config: model='BAAI/BAAI/bge-m3', speculative_config=None, tokenizer='BAAI/BAAI/bge-m3', skip_tokenizer_init=False, tokenizer_mode=auto, revision=None, tokenizer_revision=None, trust_remote_code=False, dtype=torch.float16, max_seq_len=8192, download_dir=None, load_format=auto, tensor_parallel_size=1, pipeline_parallel_size=1, data_parallel_size=1, decode_context_parallel_size=1, dcp_comm_backend=ag_rs, disable_custom_all_reduce=False, quantization=None, enforce_eager=False, enable_return_routed_experts=False, kv_cache_dtype=auto, device_config=cuda, structured_outputs_config=StructuredOutputsConfig(backend='auto', disable_any_whitespace=False, disable_additional_properties=False, reasoning_parser='', reasoning_parser_plugin='', enable_in_reasoning=False), observability_config=ObservabilityConfig(show_hidden_metrics_for_version=None, otlp_traces_endpoint=None, collect_detailed_traces=None, kv_cache_metrics=False, kv_cache_metrics_sample=0.01, cudagraph_metrics=False, enable_layerwise_nvtx_tracing=False, enable_mfu_metrics=False, enable_mm_processor_stats=False, enable_logging_iteration_details=False), seed=0, served_model_name=BAAI/BAAI/bge-m3, enable_prefix_caching=False, enable_chunked_prefill=False, pooler_config=PoolerConfig(pooling_type=None, seq_pooling_type='CLS', tok_pooling_type='ALL', use_activation=True, dimensions=None, enable_chunked_processing=False, max_embed_len=None, logit_bias=None, step_tag_id=None, returned_token_ids=None), compilation_config={'mode': <CompilationMode.VLLM_COMPILE: 3>, 'debug_dump_path': None, 'cache_dir': '/root/.cache/vllm/torch_compile_cache/e44841742f', 'compile_cache_save_format': 'binary', 'backend': 'inductor', 'custom_ops': ['none'], 'splitting_ops': ['vllm::unified_attention', 'vllm::unified_attention_with_output', 'vllm::unified_mla_attention', 'vllm::unified_mla_attention_with_output', 'vllm::mamba_mixer2', 'vllm::mamba_mixer', 'vllm::short_conv', 'vllm::linear_attention', 'vllm::plamo2_mamba_mixer', 'vllm::gdn_attention_core', 'vllm::olmo_hybrid_gdn_full_forward', 'vllm::kda_attention', 'vllm::sparse_attn_indexer', 'vllm::rocm_aiter_sparse_attn_indexer', 'vllm::unified_kv_cache_update', 'vllm::unified_mla_kv_cache_update'], 'compile_mm_encoder': False, 'compile_sizes': [], 'compile_ranges_endpoints': [8192], 'inductor_compile_config': {'enable_auto_functionalized_v2': False, 'combo_kernels': True, 'benchmark_combo_kernel': True}, 'inductor_passes': {}, 'cudagraph_mode': <CUDAGraphMode.PIECEWISE: 1>, 'cudagraph_num_of_warmups': 1, 'cudagraph_capture_sizes': [1, 2, 4, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120, 128, 136, 144, 152, 160, 168, 176, 184, 192, 200, 208, 216, 224, 232, 240, 248, 256, 272, 288, 304, 320, 336, 352, 368, 384, 400, 416, 432, 448, 464, 480, 496, 512], 'cudagraph_copy_inputs': False, 'cudagraph_specialize_lora': True, 'use_inductor_graph_partition': False, 'pass_config': {'fuse_norm_quant': False, 'fuse_act_quant': False, 'fuse_attn_quant': False, 'enable_sp': False, 'fuse_gemm_comms': False, 'fuse_allreduce_rms': False}, 'max_cudagraph_capture_size': 512, 'dynamic_shapes_config': {'type': <DynamicShapesType.BACKED: 'backed'>, 'evaluate_guards': False, 'assume_32_bit_indexing': False}, 'local_cache_dir': '/root/.cache/vllm/torch_compile_cache/e44841742f/rank_0_0/backbone', 'fast_moe_cold_start': True, 'static_all_moe_layers': []}, (EngineCore pid=67718) ERROR 03-23 15:40:54 [dump_input.py:79] Dumping scheduler output for model execution: SchedulerOutput(scheduled_new_reqs=[NewRequestData(req_id=pool-a697394010a73a4c-0-93050ebb,prompt_token_ids_len=7,prefill_token_ids_len=None,mm_features=[],sampling_params=None,block_ids=(),num_computed_tokens=0,lora_request=None,prompt_embeds_shape=None)], scheduled_cached_reqs=CachedRequestData(req_ids=[],resumed_req_ids=set(),new_token_ids_lens=[],all_token_ids_lens={},new_block_ids=[],num_computed_tokens=[],num_output_tokens=[]), num_scheduled_tokens={pool-a697394010a73a4c-0-93050ebb: 7}, total_num_scheduled_tokens=7, scheduled_spec_decode_tokens={}, scheduled_encoder_inputs={}, num_common_prefix_blocks=[], finished_req_ids=[], free_encoder_mm_hashes=[], preempted_req_ids=[], has_structured_output_requests=false, pending_structured_output_tokens=false, num_invalid_spec_tokens=null, kv_connector_metadata=null, ec_connector_metadata=null, new_block_ids_to_zero=null) (EngineCore pid=67718) ERROR 03-23 15:40:54 [dump_input.py:81] Dumping scheduler stats: SchedulerStats(num_running_reqs=1, num_waiting_reqs=0, step_counter=0, current_wave=0, kv_cache_usage=0, encoder_cache_usage=0.0, prefix_cache_stats=PrefixCacheStats(reset=False, requests=0, queries=0, hits=0, preempted_requests=0, preempted_queries=0, preempted_hits=0), connector_prefix_cache_stats=None, kv_cache_eviction_events=[], spec_decoding_stats=None, kv_connector_stats=None, waiting_lora_adapters={}, running_lora_adapters={}, cudagraph_stats=None, perf_stats=None) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] EngineCore encountered a fatal error. (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] Traceback (most recent call last): (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/engine/core.py", line 1101, in run_engine_core (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] engine_core.run_busy_loop() (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/engine/core.py", line 1142, in run_busy_loop (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] self._process_engine_step() (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/engine/core.py", line 1181, in _process_engine_step (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] outputs, model_executed = self.step_fn() (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/engine/core.py", line 451, in step_with_batch_queue (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] exec_future = self.model_executor.execute_model( (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/executor/uniproc_executor.py", line 114, in execute_model (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] output.result() (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/concurrent/futures/_base.py", line 449, in result (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self.__get_result() (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] raise self._exception (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/executor/uniproc_executor.py", line 84, in collective_rpc (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] result = run_method(self.driver_worker, method, args, kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/serial_utils.py", line 510, in run_method (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return func(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/worker/worker_base.py", line 332, in execute_model (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self.worker.execute_model(scheduler_output) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return func(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/worker/gpu_worker.py", line 803, in execute_model (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] output = self.model_runner.execute_model( (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return func(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/worker/gpu_model_runner.py", line 3799, in execute_model (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] model_output = self._model_forward( (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/worker/gpu_model_runner.py", line 3294, in _model_forward (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self.model( (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1776, in _wrapped_call_impl (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self._call_impl(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1787, in _call_impl (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return forward_call(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/model_executor/models/roberta.py", line 133, in forward (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self.model( (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/compilation/decorators.py", line 463, in __call__ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self.aot_compiled_fn(self, *args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/_dynamo/aot_compile.py", line 124, in __call__ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self.fn(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/model_executor/models/bert.py", line 388, in forward (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] def forward( (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/compilation/caching.py", line 211, in __call__ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self.optimized_call(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/fx/graph_module.py", line 936, in call_wrapped (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self._wrapped_call(self, *args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/fx/graph_module.py", line 455, in __call__ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] raise e (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/fx/graph_module.py", line 442, in __call__ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return super(self.cls, obj).__call__(*args, **kwargs) # type: ignore[misc] (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1776, in _wrapped_call_impl (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self._call_impl(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1787, in _call_impl (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return forward_call(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "<eval_with_key>.50", line 460, in forward (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] submod_45 = self.submod_45(getitem_110, s72, getitem_111, getitem_112, getitem_113); getitem_110 = getitem_111 = getitem_112 = submod_45 = None (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/fx/graph_module.py", line 936, in call_wrapped (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self._wrapped_call(self, *args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/fx/graph_module.py", line 455, in __call__ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] raise e (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/fx/graph_module.py", line 442, in __call__ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return super(self.cls, obj).__call__(*args, **kwargs) # type: ignore[misc] (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1776, in _wrapped_call_impl (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self._call_impl(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1787, in _call_impl (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return forward_call(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "<eval_with_key>.96", line 6, in forward (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_22, key_22, value_22, output_67, 'model.encoder.layer.22.attention.output.attn', kv_cache_dummy_dep = unified_kv_cache_update); query_22 = key_22 = value_22 = output_67 = unified_kv_cache_update = unified_attention_with_output = None (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/_ops.py", line 1209, in __call__ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self._op(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/model_executor/layers/attention/kv_transfer_utils.py", line 39, in wrapper (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return func(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/model_executor/layers/attention/attention.py", line 699, in unified_attention_with_output (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] self.impl.forward( (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/attention/backends/flash_attn.py", line 689, in forward (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self._forward_encoder_attention( (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/v1/attention/backends/flash_attn.py", line 963, in _forward_encoder_attention (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] flash_attn_varlen_func( (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/autodl-tmp/vllm/vllm/vllm_flash_attn/flash_attn_interface.py", line 300, in flash_attn_varlen_func (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] out, softmax_lse = torch.ops._vllm_fa2_C.varlen_fwd( (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] File "/root/miniconda3/lib/python3.12/site-packages/torch/_ops.py", line 1209, in __call__ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] return self._op(*args, **kwargs) (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] torch.AcceleratorError: CUDA error: device-side assert triggered (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] Search for `cudaErrorAssert' in https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html for more information. (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] For debugging consider passing CUDA_LAUNCH_BLOCKING=1 (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions. (EngineCore pid=67718) ERROR 03-23 15:40:54 [core.py:1110] (EngineCore pid=67718) Process EngineCore: (APIServer pid=67656) ERROR 03-23 15:40:54 [async_llm.py:707] AsyncLLM output_handler failed. (APIServer pid=67656) ERROR 03-23 15:40:54 [async_llm.py:707] Traceback (most recent call last): (APIServer pid=67656) ERROR 03-23 15:40:54 [async_llm.py:707] File "/root/autodl-tmp/vllm/vllm/v1/engine/async_llm.py", line 663, in output_handler (APIServer pid=67656) ERROR 03-23 15:40:54 [async_llm.py:707] outputs = await engine_core.get_output_async() (APIServer pid=67656) ERROR 03-23 15:40:54 [async_llm.py:707] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (APIServer pid=67656) ERROR 03-23 15:40:54 [async_llm.py:707] File "/root/autodl-tmp/vllm/vllm/v1/engine/core_client.py", line 985, in get_output_async (APIServer pid=67656) ERROR 03-23 15:40:54 [async_llm.py:707] raise self._format_exception(outputs) from None (APIServer pid=67656) ERROR 03-23 15:40:54 [async_llm.py:707] vllm.v1.engine.exceptions.EngineDeadError: EngineCore encountered an issue. See stack trace (above) for the root cause. (EngineCore pid=67718) Traceback (most recent call last): (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap (EngineCore pid=67718) self.run() (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/multiprocessing/process.py", line 108, in run (EngineCore pid=67718) self._target(*self._args, **self._kwargs) (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/engine/core.py", line 1112, in run_engine_core (EngineCore pid=67718) raise e (APIServer pid=67656) INFO: 127.0.0.1:35516 - "POST /pooling HTTP/1.1" 500 Internal Server Error (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/engine/core.py", line 1101, in run_engine_core (EngineCore pid=67718) engine_core.run_busy_loop() (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/engine/core.py", line 1142, in run_busy_loop (EngineCore pid=67718) self._process_engine_step() (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/engine/core.py", line 1181, in _process_engine_step (EngineCore pid=67718) outputs, model_executed = self.step_fn() (EngineCore pid=67718) ^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/engine/core.py", line 451, in step_with_batch_queue (EngineCore pid=67718) exec_future = self.model_executor.execute_model( (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/executor/uniproc_executor.py", line 114, in execute_model (EngineCore pid=67718) output.result() (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/concurrent/futures/_base.py", line 449, in result (EngineCore pid=67718) return self.__get_result() (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result (EngineCore pid=67718) raise self._exception (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/executor/uniproc_executor.py", line 84, in collective_rpc (EngineCore pid=67718) result = run_method(self.driver_worker, method, args, kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/serial_utils.py", line 510, in run_method (EngineCore pid=67718) return func(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/worker/worker_base.py", line 332, in execute_model (EngineCore pid=67718) return self.worker.execute_model(scheduler_output) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context (EngineCore pid=67718) return func(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/worker/gpu_worker.py", line 803, in execute_model (EngineCore pid=67718) output = self.model_runner.execute_model( (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context (EngineCore pid=67718) return func(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/worker/gpu_model_runner.py", line 3799, in execute_model (EngineCore pid=67718) model_output = self._model_forward( (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/worker/gpu_model_runner.py", line 3294, in _model_forward (EngineCore pid=67718) return self.model( (EngineCore pid=67718) ^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1776, in _wrapped_call_impl (EngineCore pid=67718) return self._call_impl(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1787, in _call_impl (EngineCore pid=67718) return forward_call(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/model_executor/models/roberta.py", line 133, in forward (EngineCore pid=67718) return self.model( (EngineCore pid=67718) ^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/compilation/decorators.py", line 463, in __call__ (EngineCore pid=67718) return self.aot_compiled_fn(self, *args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/_dynamo/aot_compile.py", line 124, in __call__ (EngineCore pid=67718) return self.fn(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/model_executor/models/bert.py", line 388, in forward (EngineCore pid=67718) def forward( (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/compilation/caching.py", line 211, in __call__ (EngineCore pid=67718) return self.optimized_call(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/fx/graph_module.py", line 936, in call_wrapped (EngineCore pid=67718) return self._wrapped_call(self, *args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/fx/graph_module.py", line 455, in __call__ (EngineCore pid=67718) raise e (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/fx/graph_module.py", line 442, in __call__ (EngineCore pid=67718) return super(self.cls, obj).__call__(*args, **kwargs) # type: ignore[misc] (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1776, in _wrapped_call_impl (EngineCore pid=67718) return self._call_impl(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1787, in _call_impl (EngineCore pid=67718) return forward_call(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "<eval_with_key>.50", line 460, in forward (EngineCore pid=67718) submod_45 = self.submod_45(getitem_110, s72, getitem_111, getitem_112, getitem_113); getitem_110 = getitem_111 = getitem_112 = submod_45 = None (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/fx/graph_module.py", line 936, in call_wrapped (EngineCore pid=67718) return self._wrapped_call(self, *args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/fx/graph_module.py", line 455, in __call__ (EngineCore pid=67718) raise e (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/fx/graph_module.py", line 442, in __call__ (EngineCore pid=67718) return super(self.cls, obj).__call__(*args, **kwargs) # type: ignore[misc] (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1776, in _wrapped_call_impl (EngineCore pid=67718) return self._call_impl(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1787, in _call_impl (EngineCore pid=67718) return forward_call(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "<eval_with_key>.96", line 6, in forward (EngineCore pid=67718) unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_22, key_22, value_22, output_67, 'model.encoder.layer.22.attention.output.attn', kv_cache_dummy_dep = unified_kv_cache_update); query_22 = key_22 = value_22 = output_67 = unified_kv_cache_update = unified_attention_with_output = None (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/_ops.py", line 1209, in __call__ (EngineCore pid=67718) return self._op(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/model_executor/layers/attention/kv_transfer_utils.py", line 39, in wrapper (EngineCore pid=67718) return func(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/model_executor/layers/attention/attention.py", line 699, in unified_attention_with_output (EngineCore pid=67718) self.impl.forward( (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/attention/backends/flash_attn.py", line 689, in forward (EngineCore pid=67718) return self._forward_encoder_attention( (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/v1/attention/backends/flash_attn.py", line 963, in _forward_encoder_attention (EngineCore pid=67718) flash_attn_varlen_func( (EngineCore pid=67718) File "/root/autodl-tmp/vllm/vllm/vllm_flash_attn/flash_attn_interface.py", line 300, in flash_attn_varlen_func (EngineCore pid=67718) out, softmax_lse = torch.ops._vllm_fa2_C.varlen_fwd( (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) File "/root/miniconda3/lib/python3.12/site-packages/torch/_ops.py", line 1209, in __call__ (EngineCore pid=67718) return self._op(*args, **kwargs) (EngineCore pid=67718) ^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=67718) torch.AcceleratorError: CUDA error: device-side assert triggered (EngineCore pid=67718) Search for `cudaErrorAssert' in https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html for more information. (EngineCore pid=67718) CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. (EngineCore pid=67718) For debugging consider passing CUDA_LAUNCH_BLOCKING=1 (EngineCore pid=67718) Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions. (EngineCore pid=67718) (APIServer pid=67656) INFO: Shutting down [rank0]:[W323 15:40:54.198880817 ProcessGroupNCCL.cpp:1553] Warning: WARNING: destroy_process_group() was not called before program exit, which can leak resources. For more info, please see https://pytorch.org/docs/stable/distributed.html#shutdown (function operator()) (APIServer pid=67656) INFO: Waiting for application shutdown. (APIServer pid=67656) INFO: Application shutdown complete. (APIServer pid=67656) INFO: Finished server process [67656] </pre> </code> </detail>

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.

extent analysis

Fix Plan

The error message indicates a CUDA error due to a device-side assert triggered. This can be caused by various factors, including incorrect model configuration, incompatible CUDA versions, or issues with the PyTorch installation.

To fix this issue, try the following steps:

  1. Update PyTorch and CUDA: Ensure that you are using the latest versions of PyTorch and CUDA. You can update PyTorch using pip install --upgrade torch and CUDA using the official NVIDIA website.
  2. Check model configuration: Verify that the model configuration is correct, including the architecture, input shape, and other hyperparameters.
  3. Disable CUDA caching: Try disabling CUDA caching by setting the environment variable CUDA_CACHE_DISABLE=1 before running the script.
  4. Enable CUDA debugging: Enable CUDA debugging by setting the environment variable CUDA_LAUNCH_BLOCKING=1 before running the script.
  5. Recompile the model: Recompile the model using the vllm command with the --recompile flag.

Example code to update PyTorch and CUDA:

pip install --upgrade torch

Example code to disable CUDA caching and enable CUDA debugging:

export CUDA_CACHE_DISABLE=1
export CUDA_LAUNCH_BLOCKING=1

Example code to recompile the model:

vllm serve BAAI/BAAI/bge-m3 --port 9001 --hf-overrides '{"architectures": ["BgeM3EmbeddingModel"]}' --recompile

Verification

To verify that the fix worked, run the script again and check for any error messages. If the issue persists, try debugging the CUDA kernel errors using the CUDA_LAUNCH_BLOCKING=1 environment variable.

Extra Tips

  • Make sure to check the PyTorch and CUDA documentation for any known issues or compatibility problems.
  • If you are using a custom model, ensure that it is correctly implemented and compatible with the PyTorch version you are using.
  • Consider using a debugger like pdb or gdb to step through the code and identify the source of the error.

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