vllm - 💡(How to fix) Fix [Bug]: openbmb/MiniCPM-o-2_6 fails at startup with `Expected all tensors to be on the same device, but found at least two devices`

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

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

GitHub issue graph ai analysis

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

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

Helpful · Quick feedback

Loading…

Error Message

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

Root Cause

vllm installed with uv pip install https://github.com/vllm-project/vllm/releases/download/v0.20.1/vllm-0.20.1+cu129-cp38-abi3-manylinux_2_31_x86_64.whl --torch-backend=cu129 because I'm on Almalinux 9 so there is no way to get CUDA 13 wheels on this OS.

Fix Action

Fix / Workaround

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

Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Address sizes: 46 bits physical, 48 bits virtual Byte Order: Little Endian CPU(s): 8 On-line CPU(s) list: 0-7 Vendor ID: GenuineIntel Model name: Intel(R) Xeon(R) CPU @ 2.20GHz CPU family: 6 Model: 85 Thread(s) per core: 2 Core(s) per socket: 4 Socket(s): 1 Stepping: 7 BogoMIPS: 4400.41 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch ssbd ibrs ibpb stibp ibrs_enhanced fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves arat avx512_vnni md_clear arch_capabilities Hypervisor vendor: KVM Virtualization type: full L1d cache: 128 KiB (4 instances) L1i cache: 128 KiB (4 instances) L2 cache: 4 MiB (4 instances) L3 cache: 38.5 MiB (1 instance) NUMA node(s): 1 NUMA node0 CPU(s): 0-7 Vulnerability Gather data sampling: Not affected Vulnerability Indirect target selection: Mitigation; Aligned branch/return thunks Vulnerability Itlb multihit: Not affected Vulnerability L1tf: Not affected Vulnerability Mds: Not affected Vulnerability Meltdown: Not affected Vulnerability Mmio stale data: Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown Vulnerability Reg file data sampling: Not affected Vulnerability Retbleed: Mitigation; Enhanced IBRS Vulnerability Spec rstack overflow: Not affected Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Vulnerability Spectre v2: Mitigation; Enhanced / Automatic IBRS; IBPB conditional; PBRSB-eIBRS SW sequence; BHI SW loop, KVM SW loop Vulnerability Srbds: Not affected Vulnerability Tsa: Not affected Vulnerability Tsx async abort: Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown Vulnerability Vmscape: Not affected

Full log

(APIServer pid=63409) INFO 05-11 12:56:04 [utils.py:299] 
(APIServer pid=63409) INFO 05-11 12:56:04 [utils.py:299]        █     █     █▄   ▄█
(APIServer pid=63409) INFO 05-11 12:56:04 [utils.py:299]  ▄▄ ▄█ █     █     █ ▀▄▀ █  version 0.20.1
(APIServer pid=63409) INFO 05-11 12:56:04 [utils.py:299]   █▄█▀ █     █     █     █  model   openbmb/MiniCPM-o-2_6
(APIServer pid=63409) INFO 05-11 12:56:04 [utils.py:299]    ▀▀  ▀▀▀▀▀ ▀▀▀▀▀ ▀     ▀
(APIServer pid=63409) INFO 05-11 12:56:04 [utils.py:299] 
(APIServer pid=63409) INFO 05-11 12:56:04 [utils.py:233] non-default args: {'model_tag': 'openbmb/MiniCPM-o-2_6', 'model': 'openbmb/MiniCPM-o-2_6', 'trust_remote_code': True, 'max_model_len': 16000}
(APIServer pid=63409) INFO 05-11 12:56:05 [model.py:555] Resolved architecture: MiniCPMO
(APIServer pid=63409) INFO 05-11 12:56:05 [model.py:1680] Using max model len 16000
(APIServer pid=63409) INFO 05-11 12:56:05 [vllm.py:840] Asynchronous scheduling is enabled.
(APIServer pid=63409) INFO 05-11 12:56:05 [kernel.py:205] Final IR op priority after setting platform defaults: IrOpPriorityConfig(rms_norm=['native'])
(APIServer pid=63409) INFO 05-11 12:56:10 [nixl_utils.py:20] Setting UCX_RCACHE_MAX_UNRELEASED to '1024' to avoid a rare memory leak in UCX when using NIXL.
(APIServer pid=63409) WARNING 05-11 12:56:10 [nixl_utils.py:34] NIXL is not available
(APIServer pid=63409) WARNING 05-11 12:56:10 [nixl_utils.py:44] NIXL agent config is not available
(APIServer pid=63409) [transformers] `MiniCPMOProcessor` defines `image_processor_class = 'AutoImageProcessor'`, which is deprecated. Register the correct mapping in `AutoImageProcessor` instead.
(APIServer pid=63409) [transformers] Requested torchvision backend is not available. Falling back to pil backend.
(APIServer pid=63409) [transformers] `MiniCPMOProcessor` defines `feature_extractor_class = 'WhisperFeatureExtractor'`, which is deprecated. Register the correct mapping in `AutoFeatureExtractor` instead.
(APIServer pid=63409) [transformers] Image processor MiniCPMVImageProcessor: kwargs ['max_slice_nums'] were applied for backward compatibility. To avoid this warning, add them to valid_kwargs: create a custom TypedDict extending ImagesKwargs with these keys and set it as the `valid_kwargs` class attribute.
(EngineCore pid=63443) INFO 05-11 12:56:41 [core.py:109] Initializing a V1 LLM engine (v0.20.1) with config: model='openbmb/MiniCPM-o-2_6', speculative_config=None, tokenizer='openbmb/MiniCPM-o-2_6', skip_tokenizer_init=False, tokenizer_mode=auto, revision=None, tokenizer_revision=None, trust_remote_code=True, dtype=torch.bfloat16, max_seq_len=16000, 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, quantization_config=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=openbmb/MiniCPM-o-2_6, enable_prefix_caching=True, enable_chunked_prefill=True, pooler_config=None, compilation_config={'mode': <CompilationMode.VLLM_COMPILE: 3>, 'debug_dump_path': None, 'cache_dir': '', 'compile_cache_save_format': 'binary', 'backend': 'inductor', 'custom_ops': ['none'], 'ir_enable_torch_wrap': True, 'splitting_ops': ['vllm::unified_attention_with_output', '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::gdn_attention_core_xpu', 'vllm::olmo_hybrid_gdn_full_forward', 'vllm::kda_attention', 'vllm::sparse_attn_indexer', 'vllm::rocm_aiter_sparse_attn_indexer', 'vllm::deepseek_v4_attention', 'vllm::unified_kv_cache_update', 'vllm::unified_mla_kv_cache_update'], 'compile_mm_encoder': False, 'cudagraph_mm_encoder': False, 'encoder_cudagraph_token_budgets': [], 'encoder_cudagraph_max_vision_items_per_batch': 0, 'encoder_cudagraph_max_frames_per_batch': None, 'compile_sizes': [], 'compile_ranges_endpoints': [2048], 'inductor_compile_config': {'enable_auto_functionalized_v2': False, 'size_asserts': False, 'alignment_asserts': False, 'scalar_asserts': False, 'combo_kernels': True, 'benchmark_combo_kernel': True}, 'inductor_passes': {}, 'cudagraph_mode': <CUDAGraphMode.FULL_AND_PIECEWISE: (2, 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': None, 'fast_moe_cold_start': False, 'static_all_moe_layers': []}, kernel_config=KernelConfig(ir_op_priority=IrOpPriorityConfig(rms_norm=['native']), enable_flashinfer_autotune=True, moe_backend='auto')
(EngineCore pid=63443) WARNING 05-11 12:56:42 [nixl_utils.py:34] NIXL is not available
(EngineCore pid=63443) WARNING 05-11 12:56:42 [nixl_utils.py:44] NIXL agent config is not available
(EngineCore pid=63443) INFO 05-11 12:56:44 [parallel_state.py:1402] world_size=1 rank=0 local_rank=0 distributed_init_method=tcp://10.142.0.47:39793 backend=nccl
(EngineCore pid=63443) INFO 05-11 12:56:44 [parallel_state.py:1715] rank 0 in world size 1 is assigned as DP rank 0, PP rank 0, PCP rank 0, TP rank 0, EP rank N/A, EPLB rank N/A
(EngineCore pid=63443) [transformers] `MiniCPMOProcessor` defines `image_processor_class = 'AutoImageProcessor'`, which is deprecated. Register the correct mapping in `AutoImageProcessor` instead.
(EngineCore pid=63443) [transformers] Requested torchvision backend is not available. Falling back to pil backend.
(EngineCore pid=63443) [transformers] `MiniCPMOProcessor` defines `feature_extractor_class = 'WhisperFeatureExtractor'`, which is deprecated. Register the correct mapping in `AutoFeatureExtractor` instead.
(EngineCore pid=63443) [transformers] Image processor MiniCPMVImageProcessor: kwargs ['max_slice_nums'] were applied for backward compatibility. To avoid this warning, add them to valid_kwargs: create a custom TypedDict extending ImagesKwargs with these keys and set it as the `valid_kwargs` class attribute.
(EngineCore pid=63443) INFO 05-11 12:57:05 [gpu_model_runner.py:4777] Starting to load model openbmb/MiniCPM-o-2_6...
(EngineCore pid=63443) INFO 05-11 12:57:08 [cuda.py:368] Using FLASH_ATTN attention backend out of potential backends: ['FLASH_ATTN', 'FLASHINFER', 'TRITON_ATTN', 'FLEX_ATTENTION'].
(EngineCore pid=63443) INFO 05-11 12:57:08 [flash_attn.py:646] Using FlashAttention version 2
(EngineCore pid=63443) <frozen importlib._bootstrap_external>:1241: FutureWarning: The cuda.cudart module is deprecated and will be removed in a future release, please switch to use the cuda.bindings.runtime module instead.
(EngineCore pid=63443) <frozen importlib._bootstrap_external>:1241: FutureWarning: The cuda.nvrtc module is deprecated and will be removed in a future release, please switch to use the cuda.bindings.nvrtc module instead.
(EngineCore pid=63443) INFO 05-11 12:57:08 [cuda.py:423] Using backend AttentionBackendEnum.FLASH_ATTN for vit attention
(EngineCore pid=63443) INFO 05-11 12:57:08 [mm_encoder_attention.py:230] Using AttentionBackendEnum.FLASH_ATTN for MMEncoderAttention.
(EngineCore pid=63443) INFO 05-11 12:57:09 [weight_utils.py:904] Filesystem type for checkpoints: XFS. Checkpoint size: 16.16 GiB. Available RAM: 23.73 GiB.
(EngineCore pid=63443) INFO 05-11 12:57:09 [weight_utils.py:927] Auto-prefetch is disabled because the filesystem (XFS) is not a recognized network FS (NFS/Lustre). If you want to force prefetching, start vLLM with --safetensors-load-strategy=prefetch.
Loading safetensors checkpoint shards:   0% Completed | 0/4 [00:00<?, ?it/s]
Loading safetensors checkpoint shards:  25% Completed | 1/4 [00:14<00:43, 14.34s/it]
Loading safetensors checkpoint shards:  50% Completed | 2/4 [00:37<00:38, 19.46s/it]
Loading safetensors checkpoint shards:  75% Completed | 3/4 [00:57<00:19, 19.77s/it]
Loading safetensors checkpoint shards: 100% Completed | 4/4 [01:10<00:00, 17.21s/it]
Loading safetensors checkpoint shards: 100% Completed | 4/4 [01:10<00:00, 17.70s/it]
(EngineCore pid=63443) 
(EngineCore pid=63443) INFO 05-11 12:58:20 [default_loader.py:384] Loading weights took 70.87 seconds
(EngineCore pid=63443) INFO 05-11 12:58:21 [gpu_model_runner.py:4879] Model loading took 15.77 GiB memory and 74.269668 seconds
(EngineCore pid=63443) INFO 05-11 12:58:21 [gpu_model_runner.py:5820] Encoder cache will be initialized with a budget of 2048 tokens, and profiled with 2 video items of the maximum feature size.
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136] EngineCore failed to start.
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136] Traceback (most recent call last):
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 1110, in run_engine_core
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     engine_core = EngineCoreProc(*args, engine_index=dp_rank, **kwargs)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return func(*args, **kwargs)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 876, in __init__
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     super().__init__(
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 128, in __init__
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     kv_cache_config = self._initialize_kv_caches(vllm_config)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return func(*args, **kwargs)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 250, in _initialize_kv_caches
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     available_gpu_memory = self.model_executor.determine_available_memory()
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/executor/abstract.py", line 147, in determine_available_memory
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return self.collective_rpc("determine_available_memory")
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/executor/uniproc_executor.py", line 80, in collective_rpc
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     result = run_method(self.driver_worker, method, args, kwargs)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/serial_utils.py", line 510, in run_method
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return func(*args, **kwargs)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return func(*args, **kwargs)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/worker/gpu_worker.py", line 370, in determine_available_memory
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     self.model_runner.profile_run()
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/worker/gpu_model_runner.py", line 5836, in profile_run
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     dummy_encoder_outputs = self.model.embed_multimodal(
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 1153, in embed_multimodal
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return self._process_multimodal_inputs(modalities)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmo.py", line 804, in _process_multimodal_inputs
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     multimodal_embeddings = super()._process_multimodal_inputs(modalities)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 1143, in _process_multimodal_inputs
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     video_embeddings = self._process_vision_input(video_input)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 1124, in _process_vision_input
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     image_features_flat = self.get_vision_hidden_states(image_input)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 1493, in get_vision_hidden_states
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return self.resampler(vision_embedding, tgt_sizes)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1779, in _wrapped_call_impl
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return self._call_impl(*args, **kwargs)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1790, in _call_impl
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return forward_call(*args, **kwargs)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 233, in forward
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     x + pos_embed,  # L * B * D +  L * B * D
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     ~~^~~~~~~~~~~
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136] RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!
(EngineCore pid=63443) Process EngineCore:
(EngineCore pid=63443) Traceback (most recent call last):
(EngineCore pid=63443)   File "/home/tristan.leclercq/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap
(EngineCore pid=63443)     self.run()
(EngineCore pid=63443)   File "/home/tristan.leclercq/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/multiprocessing/process.py", line 108, in run
(EngineCore pid=63443)     self._target(*self._args, **self._kwargs)
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 1140, in run_engine_core
(EngineCore pid=63443)     raise e
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 1110, in run_engine_core
(EngineCore pid=63443)     engine_core = EngineCoreProc(*args, engine_index=dp_rank, **kwargs)
(EngineCore pid=63443)                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(EngineCore pid=63443)     return func(*args, **kwargs)
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 876, in __init__
(EngineCore pid=63443)     super().__init__(
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 128, in __init__
(EngineCore pid=63443)     kv_cache_config = self._initialize_kv_caches(vllm_config)
(EngineCore pid=63443)                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(EngineCore pid=63443)     return func(*args, **kwargs)
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 250, in _initialize_kv_caches
(EngineCore pid=63443)     available_gpu_memory = self.model_executor.determine_available_memory()
(EngineCore pid=63443)                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/executor/abstract.py", line 147, in determine_available_memory
(EngineCore pid=63443)     return self.collective_rpc("determine_available_memory")
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/executor/uniproc_executor.py", line 80, in collective_rpc
(EngineCore pid=63443)     result = run_method(self.driver_worker, method, args, kwargs)
(EngineCore pid=63443)              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/serial_utils.py", line 510, in run_method
(EngineCore pid=63443)     return func(*args, **kwargs)
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=63443)     return func(*args, **kwargs)
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/worker/gpu_worker.py", line 370, in determine_available_memory
(EngineCore pid=63443)     self.model_runner.profile_run()
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/worker/gpu_model_runner.py", line 5836, in profile_run
(EngineCore pid=63443)     dummy_encoder_outputs = self.model.embed_multimodal(
(EngineCore pid=63443)                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 1153, in embed_multimodal
(EngineCore pid=63443)     return self._process_multimodal_inputs(modalities)
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmo.py", line 804, in _process_multimodal_inputs
(EngineCore pid=63443)     multimodal_embeddings = super()._process_multimodal_inputs(modalities)
(EngineCore pid=63443)                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 1143, in _process_multimodal_inputs
(EngineCore pid=63443)     video_embeddings = self._process_vision_input(video_input)
(EngineCore pid=63443)                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 1124, in _process_vision_input
(EngineCore pid=63443)     image_features_flat = self.get_vision_hidden_states(image_input)
(EngineCore pid=63443)                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 1493, in get_vision_hidden_states
(EngineCore pid=63443)     return self.resampler(vision_embedding, tgt_sizes)
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1779, in _wrapped_call_impl
(EngineCore pid=63443)     return self._call_impl(*args, **kwargs)
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1790, in _call_impl
(EngineCore pid=63443)     return forward_call(*args, **kwargs)
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 233, in forward
(EngineCore pid=63443)     x + pos_embed,  # L * B * D +  L * B * D
(EngineCore pid=63443)     ~~^~~~~~~~~~~
(EngineCore pid=63443) RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!
[rank0]:[W511 12:58:23.880890992 ProcessGroupNCCL.cpp:1575] 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=63409) Traceback (most recent call last):
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/bin/vllm", line 10, in <module>
(APIServer pid=63409)     sys.exit(main())
(APIServer pid=63409)              ^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/entrypoints/cli/main.py", line 92, in main
(APIServer pid=63409)     args.dispatch_function(args)
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/entrypoints/cli/serve.py", line 122, in cmd
(APIServer pid=63409)     uvloop.run(run_server(args))
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/uvloop/__init__.py", line 92, in run
(APIServer pid=63409)     return runner.run(wrapper())
(APIServer pid=63409)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/runners.py", line 118, in run
(APIServer pid=63409)     return self._loop.run_until_complete(task)
(APIServer pid=63409)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "uvloop/loop.pyx", line 1518, in uvloop.loop.Loop.run_until_complete
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/uvloop/__init__.py", line 48, in wrapper
(APIServer pid=63409)     return await main
(APIServer pid=63409)            ^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/entrypoints/openai/api_server.py", line 678, in run_server
(APIServer pid=63409)     await run_server_worker(listen_address, sock, args, **uvicorn_kwargs)
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/entrypoints/openai/api_server.py", line 692, in run_server_worker
(APIServer pid=63409)     async with build_async_engine_client(
(APIServer pid=63409)   File "/home/tristan.leclercq/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/contextlib.py", line 210, in __aenter__
(APIServer pid=63409)     return await anext(self.gen)
(APIServer pid=63409)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/entrypoints/openai/api_server.py", line 100, in build_async_engine_client
(APIServer pid=63409)     async with build_async_engine_client_from_engine_args(
(APIServer pid=63409)   File "/home/tristan.leclercq/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/contextlib.py", line 210, in __aenter__
(APIServer pid=63409)     return await anext(self.gen)
(APIServer pid=63409)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/entrypoints/openai/api_server.py", line 136, in build_async_engine_client_from_engine_args
(APIServer pid=63409)     async_llm = AsyncLLM.from_vllm_config(
(APIServer pid=63409)                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/async_llm.py", line 217, in from_vllm_config
(APIServer pid=63409)     return cls(
(APIServer pid=63409)            ^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/async_llm.py", line 146, in __init__
(APIServer pid=63409)     self.engine_core = EngineCoreClient.make_async_mp_client(
(APIServer pid=63409)                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(APIServer pid=63409)     return func(*args, **kwargs)
(APIServer pid=63409)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core_client.py", line 130, in make_async_mp_client
(APIServer pid=63409)     return AsyncMPClient(*client_args)
(APIServer pid=63409)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(APIServer pid=63409)     return func(*args, **kwargs)
(APIServer pid=63409)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core_client.py", line 900, in __init__
(APIServer pid=63409)     super().__init__(
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core_client.py", line 535, in __init__
(APIServer pid=63409)     with launch_core_engines(
(APIServer pid=63409)   File "/home/tristan.leclercq/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/contextlib.py", line 144, in __exit__
(APIServer pid=63409)     next(self.gen)
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/utils.py", line 1119, in launch_core_engines
(APIServer pid=63409)     wait_for_engine_startup(
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/utils.py", line 1178, in wait_for_engine_startup
(APIServer pid=63409)     raise RuntimeError(
(APIServer pid=63409) RuntimeError: Engine core initialization failed. See root cause above. Failed core proc(s): {}

Code Example

Collecting environment information...
==============================
        System Info
==============================
OS                           : AlmaLinux 9.6 (Sage Margay) (x86_64)
GCC version                  : (GCC) 11.5.0 20240719 (Red Hat 11.5.0-5)
Clang version                : Could not collect
CMake version                : Could not collect
Libc version                 : glibc-2.34

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

==============================
      Python Environment
==============================
Python version               : 3.11.15 (main, May 10 2026, 19:28:18) [Clang 22.1.3 ] (64-bit runtime)
Python platform              : Linux-5.14.0-611.54.1.el9_7.x86_64-x86_64-with-glibc2.34
    
==============================
       CUDA / GPU Info
==============================
Is CUDA available            : True
CUDA runtime version         : Could not collect
CUDA_MODULE_LOADING set to   : 
GPU models and configuration : GPU 0: NVIDIA L4
Nvidia driver version        : 575.57.08
cuDNN version                : Could not collect
HIP runtime version          : N/A
MIOpen runtime version       : N/A
Is XNNPACK available         : True

==============================
          CPU Info
==============================
Architecture:                            x86_64
CPU op-mode(s):                          32-bit, 64-bit
Address sizes:                           46 bits physical, 48 bits virtual
Byte Order:                              Little Endian
CPU(s):                                  8
On-line CPU(s) list:                     0-7
Vendor ID:                               GenuineIntel
Model name:                              Intel(R) Xeon(R) CPU @ 2.20GHz
CPU family:                              6
Model:                                   85
Thread(s) per core:                      2
Core(s) per socket:                      4
Socket(s):                               1
Stepping:                                7
BogoMIPS:                                4400.41
Flags:                                   fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch ssbd ibrs ibpb stibp ibrs_enhanced fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves arat avx512_vnni md_clear arch_capabilities
Hypervisor vendor:                       KVM
Virtualization type:                     full
L1d cache:                               128 KiB (4 instances)
L1i cache:                               128 KiB (4 instances)
L2 cache:                                4 MiB (4 instances)
L3 cache:                                38.5 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-7
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Mitigation; Aligned branch/return thunks
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Mitigation; Enhanced IBRS
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; Enhanced / Automatic IBRS; IBPB conditional; PBRSB-eIBRS SW sequence; BHI SW loop, KVM SW loop
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown
Vulnerability Vmscape:                   Not affected

==============================
Versions of relevant libraries
==============================
[pip3] flashinfer-python==0.6.8.post1
[pip3] numpy==2.3.5
[pip3] nvidia-cublas-cu12==12.9.1.4
[pip3] nvidia-cuda-cupti-cu12==12.9.79
[pip3] nvidia-cuda-nvrtc-cu12==12.9.86
[pip3] nvidia-cuda-runtime-cu12==12.9.79
[pip3] nvidia-cudnn-cu12==9.17.1.4
[pip3] nvidia-cudnn-frontend==1.18.0
[pip3] nvidia-cufft-cu12==11.4.1.4
[pip3] nvidia-cufile-cu12==1.14.1.1
[pip3] nvidia-curand-cu12==10.3.10.19
[pip3] nvidia-cusolver-cu12==11.7.5.82
[pip3] nvidia-cusparse-cu12==12.5.10.65
[pip3] nvidia-cusparselt-cu12==0.7.1
[pip3] nvidia-cutlass-dsl==4.5.0
[pip3] nvidia-cutlass-dsl-libs-base==4.5.0
[pip3] nvidia-ml-py==13.595.45
[pip3] nvidia-nccl-cu12==2.28.9
[pip3] nvidia-nvjitlink-cu12==12.9.86
[pip3] nvidia-nvshmem-cu12==3.4.5
[pip3] nvidia-nvtx-cu12==12.9.79
[pip3] pyzmq==27.1.0
[pip3] torch==2.11.0+cu129
[pip3] torch_c_dlpack_ext==0.1.5
[pip3] torchaudio==2.11.0+cu129
[pip3] torchvision==0.26.0+cu129
[pip3] transformers==5.8.0
[pip3] triton==3.6.0
[conda] Could not collect

==============================
         vLLM Info
==============================
ROCM Version                 : Could not collect
vLLM Version                 : 0.20.1
vLLM Build Flags:
  CUDA Archs: Not Set; ROCm: Disabled; XPU: Disabled
GPU Topology:
  	GPU0	CPU Affinity	NUMA Affinity	GPU NUMA ID
GPU0	 X 	0-7	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
==============================
PYTORCH_NVML_BASED_CUDA_CHECK=1
TORCHINDUCTOR_COMPILE_THREADS=1
TORCHINDUCTOR_CACHE_DIR=/tmp/torchinductor_tristan.leclercq

---

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

---

(APIServer pid=63409) INFO 05-11 12:56:04 [utils.py:299] 
(APIServer pid=63409) INFO 05-11 12:56:04 [utils.py:299]        █     █     █▄   ▄█
(APIServer pid=63409) INFO 05-11 12:56:04 [utils.py:299]  ▄▄ ▄█ █     █     █ ▀▄▀ █  version 0.20.1
(APIServer pid=63409) INFO 05-11 12:56:04 [utils.py:299]   █▄█▀ █     █     █     █  model   openbmb/MiniCPM-o-2_6
(APIServer pid=63409) INFO 05-11 12:56:04 [utils.py:299]    ▀▀  ▀▀▀▀▀ ▀▀▀▀▀ ▀     
(APIServer pid=63409) INFO 05-11 12:56:04 [utils.py:299] 
(APIServer pid=63409) INFO 05-11 12:56:04 [utils.py:233] non-default args: {'model_tag': 'openbmb/MiniCPM-o-2_6', 'model': 'openbmb/MiniCPM-o-2_6', 'trust_remote_code': True, 'max_model_len': 16000}
(APIServer pid=63409) INFO 05-11 12:56:05 [model.py:555] Resolved architecture: MiniCPMO
(APIServer pid=63409) INFO 05-11 12:56:05 [model.py:1680] Using max model len 16000
(APIServer pid=63409) INFO 05-11 12:56:05 [vllm.py:840] Asynchronous scheduling is enabled.
(APIServer pid=63409) INFO 05-11 12:56:05 [kernel.py:205] Final IR op priority after setting platform defaults: IrOpPriorityConfig(rms_norm=['native'])
(APIServer pid=63409) INFO 05-11 12:56:10 [nixl_utils.py:20] Setting UCX_RCACHE_MAX_UNRELEASED to '1024' to avoid a rare memory leak in UCX when using NIXL.
(APIServer pid=63409) WARNING 05-11 12:56:10 [nixl_utils.py:34] NIXL is not available
(APIServer pid=63409) WARNING 05-11 12:56:10 [nixl_utils.py:44] NIXL agent config is not available
(APIServer pid=63409) [transformers] `MiniCPMOProcessor` defines `image_processor_class = 'AutoImageProcessor'`, which is deprecated. Register the correct mapping in `AutoImageProcessor` instead.
(APIServer pid=63409) [transformers] Requested torchvision backend is not available. Falling back to pil backend.
(APIServer pid=63409) [transformers] `MiniCPMOProcessor` defines `feature_extractor_class = 'WhisperFeatureExtractor'`, which is deprecated. Register the correct mapping in `AutoFeatureExtractor` instead.
(APIServer pid=63409) [transformers] Image processor MiniCPMVImageProcessor: kwargs ['max_slice_nums'] were applied for backward compatibility. To avoid this warning, add them to valid_kwargs: create a custom TypedDict extending ImagesKwargs with these keys and set it as the `valid_kwargs` class attribute.
(EngineCore pid=63443) INFO 05-11 12:56:41 [core.py:109] Initializing a V1 LLM engine (v0.20.1) with config: model='openbmb/MiniCPM-o-2_6', speculative_config=None, tokenizer='openbmb/MiniCPM-o-2_6', skip_tokenizer_init=False, tokenizer_mode=auto, revision=None, tokenizer_revision=None, trust_remote_code=True, dtype=torch.bfloat16, max_seq_len=16000, 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, quantization_config=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=openbmb/MiniCPM-o-2_6, enable_prefix_caching=True, enable_chunked_prefill=True, pooler_config=None, compilation_config={'mode': <CompilationMode.VLLM_COMPILE: 3>, 'debug_dump_path': None, 'cache_dir': '', 'compile_cache_save_format': 'binary', 'backend': 'inductor', 'custom_ops': ['none'], 'ir_enable_torch_wrap': True, 'splitting_ops': ['vllm::unified_attention_with_output', '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::gdn_attention_core_xpu', 'vllm::olmo_hybrid_gdn_full_forward', 'vllm::kda_attention', 'vllm::sparse_attn_indexer', 'vllm::rocm_aiter_sparse_attn_indexer', 'vllm::deepseek_v4_attention', 'vllm::unified_kv_cache_update', 'vllm::unified_mla_kv_cache_update'], 'compile_mm_encoder': False, 'cudagraph_mm_encoder': False, 'encoder_cudagraph_token_budgets': [], 'encoder_cudagraph_max_vision_items_per_batch': 0, 'encoder_cudagraph_max_frames_per_batch': None, 'compile_sizes': [], 'compile_ranges_endpoints': [2048], 'inductor_compile_config': {'enable_auto_functionalized_v2': False, 'size_asserts': False, 'alignment_asserts': False, 'scalar_asserts': False, 'combo_kernels': True, 'benchmark_combo_kernel': True}, 'inductor_passes': {}, 'cudagraph_mode': <CUDAGraphMode.FULL_AND_PIECEWISE: (2, 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': None, 'fast_moe_cold_start': False, 'static_all_moe_layers': []}, kernel_config=KernelConfig(ir_op_priority=IrOpPriorityConfig(rms_norm=['native']), enable_flashinfer_autotune=True, moe_backend='auto')
(EngineCore pid=63443) WARNING 05-11 12:56:42 [nixl_utils.py:34] NIXL is not available
(EngineCore pid=63443) WARNING 05-11 12:56:42 [nixl_utils.py:44] NIXL agent config is not available
(EngineCore pid=63443) INFO 05-11 12:56:44 [parallel_state.py:1402] world_size=1 rank=0 local_rank=0 distributed_init_method=tcp://10.142.0.47:39793 backend=nccl
(EngineCore pid=63443) INFO 05-11 12:56:44 [parallel_state.py:1715] rank 0 in world size 1 is assigned as DP rank 0, PP rank 0, PCP rank 0, TP rank 0, EP rank N/A, EPLB rank N/A
(EngineCore pid=63443) [transformers] `MiniCPMOProcessor` defines `image_processor_class = 'AutoImageProcessor'`, which is deprecated. Register the correct mapping in `AutoImageProcessor` instead.
(EngineCore pid=63443) [transformers] Requested torchvision backend is not available. Falling back to pil backend.
(EngineCore pid=63443) [transformers] `MiniCPMOProcessor` defines `feature_extractor_class = 'WhisperFeatureExtractor'`, which is deprecated. Register the correct mapping in `AutoFeatureExtractor` instead.
(EngineCore pid=63443) [transformers] Image processor MiniCPMVImageProcessor: kwargs ['max_slice_nums'] were applied for backward compatibility. To avoid this warning, add them to valid_kwargs: create a custom TypedDict extending ImagesKwargs with these keys and set it as the `valid_kwargs` class attribute.
(EngineCore pid=63443) INFO 05-11 12:57:05 [gpu_model_runner.py:4777] Starting to load model openbmb/MiniCPM-o-2_6...
(EngineCore pid=63443) INFO 05-11 12:57:08 [cuda.py:368] Using FLASH_ATTN attention backend out of potential backends: ['FLASH_ATTN', 'FLASHINFER', 'TRITON_ATTN', 'FLEX_ATTENTION'].
(EngineCore pid=63443) INFO 05-11 12:57:08 [flash_attn.py:646] Using FlashAttention version 2
(EngineCore pid=63443) <frozen importlib._bootstrap_external>:1241: FutureWarning: The cuda.cudart module is deprecated and will be removed in a future release, please switch to use the cuda.bindings.runtime module instead.
(EngineCore pid=63443) <frozen importlib._bootstrap_external>:1241: FutureWarning: The cuda.nvrtc module is deprecated and will be removed in a future release, please switch to use the cuda.bindings.nvrtc module instead.
(EngineCore pid=63443) INFO 05-11 12:57:08 [cuda.py:423] Using backend AttentionBackendEnum.FLASH_ATTN for vit attention
(EngineCore pid=63443) INFO 05-11 12:57:08 [mm_encoder_attention.py:230] Using AttentionBackendEnum.FLASH_ATTN for MMEncoderAttention.
(EngineCore pid=63443) INFO 05-11 12:57:09 [weight_utils.py:904] Filesystem type for checkpoints: XFS. Checkpoint size: 16.16 GiB. Available RAM: 23.73 GiB.
(EngineCore pid=63443) INFO 05-11 12:57:09 [weight_utils.py:927] Auto-prefetch is disabled because the filesystem (XFS) is not a recognized network FS (NFS/Lustre). If you want to force prefetching, start vLLM with --safetensors-load-strategy=prefetch.
Loading safetensors checkpoint shards:   0% Completed | 0/4 [00:00<?, ?it/s]
Loading safetensors checkpoint shards:  25% Completed | 1/4 [00:14<00:43, 14.34s/it]
Loading safetensors checkpoint shards:  50% Completed | 2/4 [00:37<00:38, 19.46s/it]
Loading safetensors checkpoint shards:  75% Completed | 3/4 [00:57<00:19, 19.77s/it]
Loading safetensors checkpoint shards: 100% Completed | 4/4 [01:10<00:00, 17.21s/it]
Loading safetensors checkpoint shards: 100% Completed | 4/4 [01:10<00:00, 17.70s/it]
(EngineCore pid=63443) 
(EngineCore pid=63443) INFO 05-11 12:58:20 [default_loader.py:384] Loading weights took 70.87 seconds
(EngineCore pid=63443) INFO 05-11 12:58:21 [gpu_model_runner.py:4879] Model loading took 15.77 GiB memory and 74.269668 seconds
(EngineCore pid=63443) INFO 05-11 12:58:21 [gpu_model_runner.py:5820] Encoder cache will be initialized with a budget of 2048 tokens, and profiled with 2 video items of the maximum feature size.
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136] EngineCore failed to start.
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136] Traceback (most recent call last):
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 1110, in run_engine_core
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     engine_core = EngineCoreProc(*args, engine_index=dp_rank, **kwargs)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return func(*args, **kwargs)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 876, in __init__
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     super().__init__(
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 128, in __init__
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     kv_cache_config = self._initialize_kv_caches(vllm_config)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return func(*args, **kwargs)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 250, in _initialize_kv_caches
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     available_gpu_memory = self.model_executor.determine_available_memory()
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/executor/abstract.py", line 147, in determine_available_memory
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return self.collective_rpc("determine_available_memory")
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/executor/uniproc_executor.py", line 80, in collective_rpc
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     result = run_method(self.driver_worker, method, args, kwargs)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/serial_utils.py", line 510, in run_method
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return func(*args, **kwargs)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return func(*args, **kwargs)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/worker/gpu_worker.py", line 370, in determine_available_memory
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     self.model_runner.profile_run()
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/worker/gpu_model_runner.py", line 5836, in profile_run
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     dummy_encoder_outputs = self.model.embed_multimodal(
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 1153, in embed_multimodal
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return self._process_multimodal_inputs(modalities)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmo.py", line 804, in _process_multimodal_inputs
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     multimodal_embeddings = super()._process_multimodal_inputs(modalities)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 1143, in _process_multimodal_inputs
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     video_embeddings = self._process_vision_input(video_input)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 1124, in _process_vision_input
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     image_features_flat = self.get_vision_hidden_states(image_input)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 1493, in get_vision_hidden_states
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return self.resampler(vision_embedding, tgt_sizes)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1779, in _wrapped_call_impl
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return self._call_impl(*args, **kwargs)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1790, in _call_impl
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return forward_call(*args, **kwargs)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 233, in forward
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     x + pos_embed,  # L * B * D +  L * B * D
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     ~~^~~~~~~~~~~
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136] RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!
(EngineCore pid=63443) Process EngineCore:
(EngineCore pid=63443) Traceback (most recent call last):
(EngineCore pid=63443)   File "/home/tristan.leclercq/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap
(EngineCore pid=63443)     self.run()
(EngineCore pid=63443)   File "/home/tristan.leclercq/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/multiprocessing/process.py", line 108, in run
(EngineCore pid=63443)     self._target(*self._args, **self._kwargs)
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 1140, in run_engine_core
(EngineCore pid=63443)     raise e
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 1110, in run_engine_core
(EngineCore pid=63443)     engine_core = EngineCoreProc(*args, engine_index=dp_rank, **kwargs)
(EngineCore pid=63443)                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(EngineCore pid=63443)     return func(*args, **kwargs)
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 876, in __init__
(EngineCore pid=63443)     super().__init__(
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 128, in __init__
(EngineCore pid=63443)     kv_cache_config = self._initialize_kv_caches(vllm_config)
(EngineCore pid=63443)                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(EngineCore pid=63443)     return func(*args, **kwargs)
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 250, in _initialize_kv_caches
(EngineCore pid=63443)     available_gpu_memory = self.model_executor.determine_available_memory()
(EngineCore pid=63443)                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/executor/abstract.py", line 147, in determine_available_memory
(EngineCore pid=63443)     return self.collective_rpc("determine_available_memory")
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/executor/uniproc_executor.py", line 80, in collective_rpc
(EngineCore pid=63443)     result = run_method(self.driver_worker, method, args, kwargs)
(EngineCore pid=63443)              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/serial_utils.py", line 510, in run_method
(EngineCore pid=63443)     return func(*args, **kwargs)
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=63443)     return func(*args, **kwargs)
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/worker/gpu_worker.py", line 370, in determine_available_memory
(EngineCore pid=63443)     self.model_runner.profile_run()
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/worker/gpu_model_runner.py", line 5836, in profile_run
(EngineCore pid=63443)     dummy_encoder_outputs = self.model.embed_multimodal(
(EngineCore pid=63443)                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 1153, in embed_multimodal
(EngineCore pid=63443)     return self._process_multimodal_inputs(modalities)
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmo.py", line 804, in _process_multimodal_inputs
(EngineCore pid=63443)     multimodal_embeddings = super()._process_multimodal_inputs(modalities)
(EngineCore pid=63443)                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 1143, in _process_multimodal_inputs
(EngineCore pid=63443)     video_embeddings = self._process_vision_input(video_input)
(EngineCore pid=63443)                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 1124, in _process_vision_input
(EngineCore pid=63443)     image_features_flat = self.get_vision_hidden_states(image_input)
(EngineCore pid=63443)                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 1493, in get_vision_hidden_states
(EngineCore pid=63443)     return self.resampler(vision_embedding, tgt_sizes)
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1779, in _wrapped_call_impl
(EngineCore pid=63443)     return self._call_impl(*args, **kwargs)
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1790, in _call_impl
(EngineCore pid=63443)     return forward_call(*args, **kwargs)
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 233, in forward
(EngineCore pid=63443)     x + pos_embed,  # L * B * D +  L * B * D
(EngineCore pid=63443)     ~~^~~~~~~~~~~
(EngineCore pid=63443) RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!
[rank0]:[W511 12:58:23.880890992 ProcessGroupNCCL.cpp:1575] 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=63409) Traceback (most recent call last):
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/bin/vllm", line 10, in <module>
(APIServer pid=63409)     sys.exit(main())
(APIServer pid=63409)              ^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/entrypoints/cli/main.py", line 92, in main
(APIServer pid=63409)     args.dispatch_function(args)
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/entrypoints/cli/serve.py", line 122, in cmd
(APIServer pid=63409)     uvloop.run(run_server(args))
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/uvloop/__init__.py", line 92, in run
(APIServer pid=63409)     return runner.run(wrapper())
(APIServer pid=63409)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/runners.py", line 118, in run
(APIServer pid=63409)     return self._loop.run_until_complete(task)
(APIServer pid=63409)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "uvloop/loop.pyx", line 1518, in uvloop.loop.Loop.run_until_complete
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/uvloop/__init__.py", line 48, in wrapper
(APIServer pid=63409)     return await main
(APIServer pid=63409)            ^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/entrypoints/openai/api_server.py", line 678, in run_server
(APIServer pid=63409)     await run_server_worker(listen_address, sock, args, **uvicorn_kwargs)
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/entrypoints/openai/api_server.py", line 692, in run_server_worker
(APIServer pid=63409)     async with build_async_engine_client(
(APIServer pid=63409)   File "/home/tristan.leclercq/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/contextlib.py", line 210, in __aenter__
(APIServer pid=63409)     return await anext(self.gen)
(APIServer pid=63409)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/entrypoints/openai/api_server.py", line 100, in build_async_engine_client
(APIServer pid=63409)     async with build_async_engine_client_from_engine_args(
(APIServer pid=63409)   File "/home/tristan.leclercq/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/contextlib.py", line 210, in __aenter__
(APIServer pid=63409)     return await anext(self.gen)
(APIServer pid=63409)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/entrypoints/openai/api_server.py", line 136, in build_async_engine_client_from_engine_args
(APIServer pid=63409)     async_llm = AsyncLLM.from_vllm_config(
(APIServer pid=63409)                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/async_llm.py", line 217, in from_vllm_config
(APIServer pid=63409)     return cls(
(APIServer pid=63409)            ^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/async_llm.py", line 146, in __init__
(APIServer pid=63409)     self.engine_core = EngineCoreClient.make_async_mp_client(
(APIServer pid=63409)                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(APIServer pid=63409)     return func(*args, **kwargs)
(APIServer pid=63409)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core_client.py", line 130, in make_async_mp_client
(APIServer pid=63409)     return AsyncMPClient(*client_args)
(APIServer pid=63409)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(APIServer pid=63409)     return func(*args, **kwargs)
(APIServer pid=63409)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core_client.py", line 900, in __init__
(APIServer pid=63409)     super().__init__(
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core_client.py", line 535, in __init__
(APIServer pid=63409)     with launch_core_engines(
(APIServer pid=63409)   File "/home/tristan.leclercq/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/contextlib.py", line 144, in __exit__
(APIServer pid=63409)     next(self.gen)
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/utils.py", line 1119, in launch_core_engines
(APIServer pid=63409)     wait_for_engine_startup(
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/utils.py", line 1178, in wait_for_engine_startup
(APIServer pid=63409)     raise RuntimeError(
(APIServer pid=63409) RuntimeError: Engine core initialization failed. See root cause above. Failed core proc(s): {}
RAW_BUFFERClick to expand / collapse

Your current environment

<details> <summary>The output of <code>python collect_env.py</code></summary>
Collecting environment information...
==============================
        System Info
==============================
OS                           : AlmaLinux 9.6 (Sage Margay) (x86_64)
GCC version                  : (GCC) 11.5.0 20240719 (Red Hat 11.5.0-5)
Clang version                : Could not collect
CMake version                : Could not collect
Libc version                 : glibc-2.34

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

==============================
      Python Environment
==============================
Python version               : 3.11.15 (main, May 10 2026, 19:28:18) [Clang 22.1.3 ] (64-bit runtime)
Python platform              : Linux-5.14.0-611.54.1.el9_7.x86_64-x86_64-with-glibc2.34
    
==============================
       CUDA / GPU Info
==============================
Is CUDA available            : True
CUDA runtime version         : Could not collect
CUDA_MODULE_LOADING set to   : 
GPU models and configuration : GPU 0: NVIDIA L4
Nvidia driver version        : 575.57.08
cuDNN version                : Could not collect
HIP runtime version          : N/A
MIOpen runtime version       : N/A
Is XNNPACK available         : True

==============================
          CPU Info
==============================
Architecture:                            x86_64
CPU op-mode(s):                          32-bit, 64-bit
Address sizes:                           46 bits physical, 48 bits virtual
Byte Order:                              Little Endian
CPU(s):                                  8
On-line CPU(s) list:                     0-7
Vendor ID:                               GenuineIntel
Model name:                              Intel(R) Xeon(R) CPU @ 2.20GHz
CPU family:                              6
Model:                                   85
Thread(s) per core:                      2
Core(s) per socket:                      4
Socket(s):                               1
Stepping:                                7
BogoMIPS:                                4400.41
Flags:                                   fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch ssbd ibrs ibpb stibp ibrs_enhanced fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves arat avx512_vnni md_clear arch_capabilities
Hypervisor vendor:                       KVM
Virtualization type:                     full
L1d cache:                               128 KiB (4 instances)
L1i cache:                               128 KiB (4 instances)
L2 cache:                                4 MiB (4 instances)
L3 cache:                                38.5 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-7
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Mitigation; Aligned branch/return thunks
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Mitigation; Enhanced IBRS
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; Enhanced / Automatic IBRS; IBPB conditional; PBRSB-eIBRS SW sequence; BHI SW loop, KVM SW loop
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown
Vulnerability Vmscape:                   Not affected

==============================
Versions of relevant libraries
==============================
[pip3] flashinfer-python==0.6.8.post1
[pip3] numpy==2.3.5
[pip3] nvidia-cublas-cu12==12.9.1.4
[pip3] nvidia-cuda-cupti-cu12==12.9.79
[pip3] nvidia-cuda-nvrtc-cu12==12.9.86
[pip3] nvidia-cuda-runtime-cu12==12.9.79
[pip3] nvidia-cudnn-cu12==9.17.1.4
[pip3] nvidia-cudnn-frontend==1.18.0
[pip3] nvidia-cufft-cu12==11.4.1.4
[pip3] nvidia-cufile-cu12==1.14.1.1
[pip3] nvidia-curand-cu12==10.3.10.19
[pip3] nvidia-cusolver-cu12==11.7.5.82
[pip3] nvidia-cusparse-cu12==12.5.10.65
[pip3] nvidia-cusparselt-cu12==0.7.1
[pip3] nvidia-cutlass-dsl==4.5.0
[pip3] nvidia-cutlass-dsl-libs-base==4.5.0
[pip3] nvidia-ml-py==13.595.45
[pip3] nvidia-nccl-cu12==2.28.9
[pip3] nvidia-nvjitlink-cu12==12.9.86
[pip3] nvidia-nvshmem-cu12==3.4.5
[pip3] nvidia-nvtx-cu12==12.9.79
[pip3] pyzmq==27.1.0
[pip3] torch==2.11.0+cu129
[pip3] torch_c_dlpack_ext==0.1.5
[pip3] torchaudio==2.11.0+cu129
[pip3] torchvision==0.26.0+cu129
[pip3] transformers==5.8.0
[pip3] triton==3.6.0
[conda] Could not collect

==============================
         vLLM Info
==============================
ROCM Version                 : Could not collect
vLLM Version                 : 0.20.1
vLLM Build Flags:
  CUDA Archs: Not Set; ROCm: Disabled; XPU: Disabled
GPU Topology:
  	GPU0	CPU Affinity	NUMA Affinity	GPU NUMA ID
GPU0	 X 	0-7	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
==============================
PYTORCH_NVML_BASED_CUDA_CHECK=1
TORCHINDUCTOR_COMPILE_THREADS=1
TORCHINDUCTOR_CACHE_DIR=/tmp/torchinductor_tristan.leclercq
</details>

🐛 Describe the bug

vllm installed with uv pip install https://github.com/vllm-project/vllm/releases/download/v0.20.1/vllm-0.20.1+cu129-cp38-abi3-manylinux_2_31_x86_64.whl --torch-backend=cu129 because I'm on Almalinux 9 so there is no way to get CUDA 13 wheels on this OS.

Running vllm serve openbmb/MiniCPM-o-2_6 --trust-remote-code --max-model-len=16000 fails with

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

Full log

(APIServer pid=63409) INFO 05-11 12:56:04 [utils.py:299] 
(APIServer pid=63409) INFO 05-11 12:56:04 [utils.py:299]        █     █     █▄   ▄█
(APIServer pid=63409) INFO 05-11 12:56:04 [utils.py:299]  ▄▄ ▄█ █     █     █ ▀▄▀ █  version 0.20.1
(APIServer pid=63409) INFO 05-11 12:56:04 [utils.py:299]   █▄█▀ █     █     █     █  model   openbmb/MiniCPM-o-2_6
(APIServer pid=63409) INFO 05-11 12:56:04 [utils.py:299]    ▀▀  ▀▀▀▀▀ ▀▀▀▀▀ ▀     ▀
(APIServer pid=63409) INFO 05-11 12:56:04 [utils.py:299] 
(APIServer pid=63409) INFO 05-11 12:56:04 [utils.py:233] non-default args: {'model_tag': 'openbmb/MiniCPM-o-2_6', 'model': 'openbmb/MiniCPM-o-2_6', 'trust_remote_code': True, 'max_model_len': 16000}
(APIServer pid=63409) INFO 05-11 12:56:05 [model.py:555] Resolved architecture: MiniCPMO
(APIServer pid=63409) INFO 05-11 12:56:05 [model.py:1680] Using max model len 16000
(APIServer pid=63409) INFO 05-11 12:56:05 [vllm.py:840] Asynchronous scheduling is enabled.
(APIServer pid=63409) INFO 05-11 12:56:05 [kernel.py:205] Final IR op priority after setting platform defaults: IrOpPriorityConfig(rms_norm=['native'])
(APIServer pid=63409) INFO 05-11 12:56:10 [nixl_utils.py:20] Setting UCX_RCACHE_MAX_UNRELEASED to '1024' to avoid a rare memory leak in UCX when using NIXL.
(APIServer pid=63409) WARNING 05-11 12:56:10 [nixl_utils.py:34] NIXL is not available
(APIServer pid=63409) WARNING 05-11 12:56:10 [nixl_utils.py:44] NIXL agent config is not available
(APIServer pid=63409) [transformers] `MiniCPMOProcessor` defines `image_processor_class = 'AutoImageProcessor'`, which is deprecated. Register the correct mapping in `AutoImageProcessor` instead.
(APIServer pid=63409) [transformers] Requested torchvision backend is not available. Falling back to pil backend.
(APIServer pid=63409) [transformers] `MiniCPMOProcessor` defines `feature_extractor_class = 'WhisperFeatureExtractor'`, which is deprecated. Register the correct mapping in `AutoFeatureExtractor` instead.
(APIServer pid=63409) [transformers] Image processor MiniCPMVImageProcessor: kwargs ['max_slice_nums'] were applied for backward compatibility. To avoid this warning, add them to valid_kwargs: create a custom TypedDict extending ImagesKwargs with these keys and set it as the `valid_kwargs` class attribute.
(EngineCore pid=63443) INFO 05-11 12:56:41 [core.py:109] Initializing a V1 LLM engine (v0.20.1) with config: model='openbmb/MiniCPM-o-2_6', speculative_config=None, tokenizer='openbmb/MiniCPM-o-2_6', skip_tokenizer_init=False, tokenizer_mode=auto, revision=None, tokenizer_revision=None, trust_remote_code=True, dtype=torch.bfloat16, max_seq_len=16000, 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, quantization_config=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=openbmb/MiniCPM-o-2_6, enable_prefix_caching=True, enable_chunked_prefill=True, pooler_config=None, compilation_config={'mode': <CompilationMode.VLLM_COMPILE: 3>, 'debug_dump_path': None, 'cache_dir': '', 'compile_cache_save_format': 'binary', 'backend': 'inductor', 'custom_ops': ['none'], 'ir_enable_torch_wrap': True, 'splitting_ops': ['vllm::unified_attention_with_output', '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::gdn_attention_core_xpu', 'vllm::olmo_hybrid_gdn_full_forward', 'vllm::kda_attention', 'vllm::sparse_attn_indexer', 'vllm::rocm_aiter_sparse_attn_indexer', 'vllm::deepseek_v4_attention', 'vllm::unified_kv_cache_update', 'vllm::unified_mla_kv_cache_update'], 'compile_mm_encoder': False, 'cudagraph_mm_encoder': False, 'encoder_cudagraph_token_budgets': [], 'encoder_cudagraph_max_vision_items_per_batch': 0, 'encoder_cudagraph_max_frames_per_batch': None, 'compile_sizes': [], 'compile_ranges_endpoints': [2048], 'inductor_compile_config': {'enable_auto_functionalized_v2': False, 'size_asserts': False, 'alignment_asserts': False, 'scalar_asserts': False, 'combo_kernels': True, 'benchmark_combo_kernel': True}, 'inductor_passes': {}, 'cudagraph_mode': <CUDAGraphMode.FULL_AND_PIECEWISE: (2, 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': None, 'fast_moe_cold_start': False, 'static_all_moe_layers': []}, kernel_config=KernelConfig(ir_op_priority=IrOpPriorityConfig(rms_norm=['native']), enable_flashinfer_autotune=True, moe_backend='auto')
(EngineCore pid=63443) WARNING 05-11 12:56:42 [nixl_utils.py:34] NIXL is not available
(EngineCore pid=63443) WARNING 05-11 12:56:42 [nixl_utils.py:44] NIXL agent config is not available
(EngineCore pid=63443) INFO 05-11 12:56:44 [parallel_state.py:1402] world_size=1 rank=0 local_rank=0 distributed_init_method=tcp://10.142.0.47:39793 backend=nccl
(EngineCore pid=63443) INFO 05-11 12:56:44 [parallel_state.py:1715] rank 0 in world size 1 is assigned as DP rank 0, PP rank 0, PCP rank 0, TP rank 0, EP rank N/A, EPLB rank N/A
(EngineCore pid=63443) [transformers] `MiniCPMOProcessor` defines `image_processor_class = 'AutoImageProcessor'`, which is deprecated. Register the correct mapping in `AutoImageProcessor` instead.
(EngineCore pid=63443) [transformers] Requested torchvision backend is not available. Falling back to pil backend.
(EngineCore pid=63443) [transformers] `MiniCPMOProcessor` defines `feature_extractor_class = 'WhisperFeatureExtractor'`, which is deprecated. Register the correct mapping in `AutoFeatureExtractor` instead.
(EngineCore pid=63443) [transformers] Image processor MiniCPMVImageProcessor: kwargs ['max_slice_nums'] were applied for backward compatibility. To avoid this warning, add them to valid_kwargs: create a custom TypedDict extending ImagesKwargs with these keys and set it as the `valid_kwargs` class attribute.
(EngineCore pid=63443) INFO 05-11 12:57:05 [gpu_model_runner.py:4777] Starting to load model openbmb/MiniCPM-o-2_6...
(EngineCore pid=63443) INFO 05-11 12:57:08 [cuda.py:368] Using FLASH_ATTN attention backend out of potential backends: ['FLASH_ATTN', 'FLASHINFER', 'TRITON_ATTN', 'FLEX_ATTENTION'].
(EngineCore pid=63443) INFO 05-11 12:57:08 [flash_attn.py:646] Using FlashAttention version 2
(EngineCore pid=63443) <frozen importlib._bootstrap_external>:1241: FutureWarning: The cuda.cudart module is deprecated and will be removed in a future release, please switch to use the cuda.bindings.runtime module instead.
(EngineCore pid=63443) <frozen importlib._bootstrap_external>:1241: FutureWarning: The cuda.nvrtc module is deprecated and will be removed in a future release, please switch to use the cuda.bindings.nvrtc module instead.
(EngineCore pid=63443) INFO 05-11 12:57:08 [cuda.py:423] Using backend AttentionBackendEnum.FLASH_ATTN for vit attention
(EngineCore pid=63443) INFO 05-11 12:57:08 [mm_encoder_attention.py:230] Using AttentionBackendEnum.FLASH_ATTN for MMEncoderAttention.
(EngineCore pid=63443) INFO 05-11 12:57:09 [weight_utils.py:904] Filesystem type for checkpoints: XFS. Checkpoint size: 16.16 GiB. Available RAM: 23.73 GiB.
(EngineCore pid=63443) INFO 05-11 12:57:09 [weight_utils.py:927] Auto-prefetch is disabled because the filesystem (XFS) is not a recognized network FS (NFS/Lustre). If you want to force prefetching, start vLLM with --safetensors-load-strategy=prefetch.
Loading safetensors checkpoint shards:   0% Completed | 0/4 [00:00<?, ?it/s]
Loading safetensors checkpoint shards:  25% Completed | 1/4 [00:14<00:43, 14.34s/it]
Loading safetensors checkpoint shards:  50% Completed | 2/4 [00:37<00:38, 19.46s/it]
Loading safetensors checkpoint shards:  75% Completed | 3/4 [00:57<00:19, 19.77s/it]
Loading safetensors checkpoint shards: 100% Completed | 4/4 [01:10<00:00, 17.21s/it]
Loading safetensors checkpoint shards: 100% Completed | 4/4 [01:10<00:00, 17.70s/it]
(EngineCore pid=63443) 
(EngineCore pid=63443) INFO 05-11 12:58:20 [default_loader.py:384] Loading weights took 70.87 seconds
(EngineCore pid=63443) INFO 05-11 12:58:21 [gpu_model_runner.py:4879] Model loading took 15.77 GiB memory and 74.269668 seconds
(EngineCore pid=63443) INFO 05-11 12:58:21 [gpu_model_runner.py:5820] Encoder cache will be initialized with a budget of 2048 tokens, and profiled with 2 video items of the maximum feature size.
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136] EngineCore failed to start.
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136] Traceback (most recent call last):
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 1110, in run_engine_core
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     engine_core = EngineCoreProc(*args, engine_index=dp_rank, **kwargs)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return func(*args, **kwargs)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 876, in __init__
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     super().__init__(
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 128, in __init__
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     kv_cache_config = self._initialize_kv_caches(vllm_config)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return func(*args, **kwargs)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 250, in _initialize_kv_caches
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     available_gpu_memory = self.model_executor.determine_available_memory()
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/executor/abstract.py", line 147, in determine_available_memory
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return self.collective_rpc("determine_available_memory")
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/executor/uniproc_executor.py", line 80, in collective_rpc
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     result = run_method(self.driver_worker, method, args, kwargs)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/serial_utils.py", line 510, in run_method
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return func(*args, **kwargs)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return func(*args, **kwargs)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/worker/gpu_worker.py", line 370, in determine_available_memory
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     self.model_runner.profile_run()
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/worker/gpu_model_runner.py", line 5836, in profile_run
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     dummy_encoder_outputs = self.model.embed_multimodal(
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 1153, in embed_multimodal
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return self._process_multimodal_inputs(modalities)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmo.py", line 804, in _process_multimodal_inputs
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     multimodal_embeddings = super()._process_multimodal_inputs(modalities)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 1143, in _process_multimodal_inputs
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     video_embeddings = self._process_vision_input(video_input)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 1124, in _process_vision_input
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     image_features_flat = self.get_vision_hidden_states(image_input)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 1493, in get_vision_hidden_states
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return self.resampler(vision_embedding, tgt_sizes)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1779, in _wrapped_call_impl
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return self._call_impl(*args, **kwargs)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1790, in _call_impl
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     return forward_call(*args, **kwargs)
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 233, in forward
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     x + pos_embed,  # L * B * D +  L * B * D
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136]     ~~^~~~~~~~~~~
(EngineCore pid=63443) ERROR 05-11 12:58:22 [core.py:1136] RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!
(EngineCore pid=63443) Process EngineCore:
(EngineCore pid=63443) Traceback (most recent call last):
(EngineCore pid=63443)   File "/home/tristan.leclercq/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap
(EngineCore pid=63443)     self.run()
(EngineCore pid=63443)   File "/home/tristan.leclercq/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/multiprocessing/process.py", line 108, in run
(EngineCore pid=63443)     self._target(*self._args, **self._kwargs)
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 1140, in run_engine_core
(EngineCore pid=63443)     raise e
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 1110, in run_engine_core
(EngineCore pid=63443)     engine_core = EngineCoreProc(*args, engine_index=dp_rank, **kwargs)
(EngineCore pid=63443)                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(EngineCore pid=63443)     return func(*args, **kwargs)
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 876, in __init__
(EngineCore pid=63443)     super().__init__(
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 128, in __init__
(EngineCore pid=63443)     kv_cache_config = self._initialize_kv_caches(vllm_config)
(EngineCore pid=63443)                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(EngineCore pid=63443)     return func(*args, **kwargs)
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core.py", line 250, in _initialize_kv_caches
(EngineCore pid=63443)     available_gpu_memory = self.model_executor.determine_available_memory()
(EngineCore pid=63443)                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/executor/abstract.py", line 147, in determine_available_memory
(EngineCore pid=63443)     return self.collective_rpc("determine_available_memory")
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/executor/uniproc_executor.py", line 80, in collective_rpc
(EngineCore pid=63443)     result = run_method(self.driver_worker, method, args, kwargs)
(EngineCore pid=63443)              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/serial_utils.py", line 510, in run_method
(EngineCore pid=63443)     return func(*args, **kwargs)
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=63443)     return func(*args, **kwargs)
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/worker/gpu_worker.py", line 370, in determine_available_memory
(EngineCore pid=63443)     self.model_runner.profile_run()
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/worker/gpu_model_runner.py", line 5836, in profile_run
(EngineCore pid=63443)     dummy_encoder_outputs = self.model.embed_multimodal(
(EngineCore pid=63443)                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 1153, in embed_multimodal
(EngineCore pid=63443)     return self._process_multimodal_inputs(modalities)
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmo.py", line 804, in _process_multimodal_inputs
(EngineCore pid=63443)     multimodal_embeddings = super()._process_multimodal_inputs(modalities)
(EngineCore pid=63443)                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 1143, in _process_multimodal_inputs
(EngineCore pid=63443)     video_embeddings = self._process_vision_input(video_input)
(EngineCore pid=63443)                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 1124, in _process_vision_input
(EngineCore pid=63443)     image_features_flat = self.get_vision_hidden_states(image_input)
(EngineCore pid=63443)                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 1493, in get_vision_hidden_states
(EngineCore pid=63443)     return self.resampler(vision_embedding, tgt_sizes)
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1779, in _wrapped_call_impl
(EngineCore pid=63443)     return self._call_impl(*args, **kwargs)
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1790, in _call_impl
(EngineCore pid=63443)     return forward_call(*args, **kwargs)
(EngineCore pid=63443)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=63443)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/model_executor/models/minicpmv.py", line 233, in forward
(EngineCore pid=63443)     x + pos_embed,  # L * B * D +  L * B * D
(EngineCore pid=63443)     ~~^~~~~~~~~~~
(EngineCore pid=63443) RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!
[rank0]:[W511 12:58:23.880890992 ProcessGroupNCCL.cpp:1575] 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=63409) Traceback (most recent call last):
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/bin/vllm", line 10, in <module>
(APIServer pid=63409)     sys.exit(main())
(APIServer pid=63409)              ^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/entrypoints/cli/main.py", line 92, in main
(APIServer pid=63409)     args.dispatch_function(args)
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/entrypoints/cli/serve.py", line 122, in cmd
(APIServer pid=63409)     uvloop.run(run_server(args))
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/uvloop/__init__.py", line 92, in run
(APIServer pid=63409)     return runner.run(wrapper())
(APIServer pid=63409)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/runners.py", line 118, in run
(APIServer pid=63409)     return self._loop.run_until_complete(task)
(APIServer pid=63409)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "uvloop/loop.pyx", line 1518, in uvloop.loop.Loop.run_until_complete
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/uvloop/__init__.py", line 48, in wrapper
(APIServer pid=63409)     return await main
(APIServer pid=63409)            ^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/entrypoints/openai/api_server.py", line 678, in run_server
(APIServer pid=63409)     await run_server_worker(listen_address, sock, args, **uvicorn_kwargs)
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/entrypoints/openai/api_server.py", line 692, in run_server_worker
(APIServer pid=63409)     async with build_async_engine_client(
(APIServer pid=63409)   File "/home/tristan.leclercq/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/contextlib.py", line 210, in __aenter__
(APIServer pid=63409)     return await anext(self.gen)
(APIServer pid=63409)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/entrypoints/openai/api_server.py", line 100, in build_async_engine_client
(APIServer pid=63409)     async with build_async_engine_client_from_engine_args(
(APIServer pid=63409)   File "/home/tristan.leclercq/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/contextlib.py", line 210, in __aenter__
(APIServer pid=63409)     return await anext(self.gen)
(APIServer pid=63409)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/entrypoints/openai/api_server.py", line 136, in build_async_engine_client_from_engine_args
(APIServer pid=63409)     async_llm = AsyncLLM.from_vllm_config(
(APIServer pid=63409)                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/async_llm.py", line 217, in from_vllm_config
(APIServer pid=63409)     return cls(
(APIServer pid=63409)            ^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/async_llm.py", line 146, in __init__
(APIServer pid=63409)     self.engine_core = EngineCoreClient.make_async_mp_client(
(APIServer pid=63409)                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(APIServer pid=63409)     return func(*args, **kwargs)
(APIServer pid=63409)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core_client.py", line 130, in make_async_mp_client
(APIServer pid=63409)     return AsyncMPClient(*client_args)
(APIServer pid=63409)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(APIServer pid=63409)     return func(*args, **kwargs)
(APIServer pid=63409)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core_client.py", line 900, in __init__
(APIServer pid=63409)     super().__init__(
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/core_client.py", line 535, in __init__
(APIServer pid=63409)     with launch_core_engines(
(APIServer pid=63409)   File "/home/tristan.leclercq/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/contextlib.py", line 144, in __exit__
(APIServer pid=63409)     next(self.gen)
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/utils.py", line 1119, in launch_core_engines
(APIServer pid=63409)     wait_for_engine_startup(
(APIServer pid=63409)   File "/home/tristan.leclercq/vllm-test/vllm-venv/lib/python3.11/site-packages/vllm/v1/engine/utils.py", line 1178, in wait_for_engine_startup
(APIServer pid=63409)     raise RuntimeError(
(APIServer pid=63409) RuntimeError: Engine core initialization failed. See root cause above. Failed core proc(s): {}

Before submitting a new issue...

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

Vote matrix · Quick signals

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

Still need to ship something?

×6

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

Back to top recommendations

TRENDING

vllm - 💡(How to fix) Fix [Bug]: openbmb/MiniCPM-o-2_6 fails at startup with `Expected all tensors to be on the same device, but found at least two devices`