Repository navigation
bugfix(flashinfer,dcp): remove kv_cache_layout for BatchDCPPrefillWrapper._new_tokens. - #38895
Merged
Merged
Conversation
…pper._new_tokens. Signed-off-by: QiuChunshuo <qiuchunshuo@huawei.com>
pisceskkk
requested review from
mgoin,
pavanimajety and
vadiklyutiy
as code owners
April 3, 2026 08:35
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes a FlashInfer+DCP compatibility issue when using the HND KV-cache layout by ensuring the _new_tokens ragged prefill wrapper no longer initializes with a potentially mismatched KV layout.
Changes:
- Remove
get_kv_cache_layout()argument fromBatchDCPPrefillWrapper._new_tokenswrapper initialization to avoid crashes when runtimekey/valuetensors are in NHD format while global KV-cache layout is HND.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
LucasWilkinson
approved these changes
May 10, 2026
LucasWilkinson
left a comment
Contributor
There was a problem hiding this comment.
LGTM; thanks for the fix!
LucasWilkinson
enabled auto-merge (squash)
May 10, 2026 04:11
weifang231
pushed a commit
to weifang231/eb-vllm
that referenced
this pull request
May 13, 2026
…pper._new_tokens. (vllm-project#38895) Signed-off-by: QiuChunshuo <qiuchunshuo@huawei.com>
mfylcek
pushed a commit
to mfylcek/vllm
that referenced
this pull request
May 19, 2026
…pper._new_tokens. (vllm-project#38895) Signed-off-by: QiuChunshuo <qiuchunshuo@huawei.com>
MingqiWang-coder
added a commit
to intellistream/vllm-hust-legacy-20260831
that referenced
this pull request
Jul 2, 2026
Cherry-pick 62 bugfix/security PRs from upstream vllm-project/vllm main (2026-05-03 to 2026-06-17), covering scheduler, engine core, model runner, worker, attention, KV cache, compilation, and structured output fixes. Security (4): vllm-project#43286 vllm-project#44744 vllm-project#45118 vllm-project#45252 Bugfix (56): vllm-project#35536 vllm-project#36616 vllm-project#38895 vllm-project#39155 vllm-project#39324 vllm-project#39562 vllm-project#39805 vllm-project#40398 vllm-project#40726 Runner fix (2): vllm-project#44568 vllm-project#44603 Skipped: vllm-project#43781 (ROCm-specific, not applicable to Ascend NPU) Conflict resolutions: - Manual merge: vllm-project#43286 vllm-project#45118 vllm-project#42112 vllm-project#43160 vllm-project#43719 vllm-project#44560 - Upstream-preferred (-X theirs): vllm-project#43808 vllm-project#43988 vllm-project#42967 vllm-project#35536 vllm-project#45195 - Test files (--theirs): vllm-project#44744 vllm-project#41895 vllm-project#42040 vllm-project#41233 vllm-project#45345 vllm-project#43982 Co-authored-by: GitHub Copilot Signed-off-by: MingqiWang-coder <mingqiwang@hust.edu.cn>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This PR fixes the compatibility issues with the HND kvcache layout when the FlashInfer backend is used with DCP enabled.
While adapting the nixl connector for DCP, I discovered that the FlashInfer backend would crash during the warmup process after specifying the HND layout. The reason is that the
_new_tokenswrapper was initialized with a specific kvcache layout, but the actualkey/valuetensors received by the wrapper during runtime were being input in NHD format.Test Plan
Test Result
main(58a249b):
Crash Log
(Worker_TP0_DCP0 pid=500677) INFO 04-03 16:43:50 [monitor.py:76] Initial profiling/warmup run took 0.45 s (Worker_TP3_DCP1 pid=500680) INFO 04-03 16:43:50 [kv_cache_utils.py:829] Overriding num_gpu_blocks=0 with num_gpu_blocks_override=512 (Worker_TP3_DCP1 pid=500680) INFO 04-03 16:43:50 [gpu_model_runner.py:5867] Profiling CUDA graph memory: PIECEWISE=51 (largest=512), FULL=35 (largest=256) (Worker_TP1_DCP1 pid=500678) INFO 04-03 16:43:50 [kv_cache_utils.py:829] Overriding num_gpu_blocks=0 with num_gpu_blocks_override=512 (Worker_TP2_DCP0 pid=500679) INFO 04-03 16:43:50 [kv_cache_utils.py:829] Overriding num_gpu_blocks=0 with num_gpu_blocks_override=512 (Worker_TP1_DCP1 pid=500678) INFO 04-03 16:43:50 [gpu_model_runner.py:5867] Profiling CUDA graph memory: PIECEWISE=51 (largest=512), FULL=35 (largest=256) (Worker_TP2_DCP0 pid=500679) INFO 04-03 16:43:50 [gpu_model_runner.py:5867] Profiling CUDA graph memory: PIECEWISE=51 (largest=512), FULL=35 (largest=256) (Worker_TP0_DCP0 pid=500677) INFO 04-03 16:43:50 [kv_cache_utils.py:829] Overriding num_gpu_blocks=0 with num_gpu_blocks_override=512 (Worker_TP0_DCP0 pid=500677) INFO 04-03 16:43:50 [utils.py:73] `VLLM_KV_CACHE_LAYOUT` environment variable detected. Setting KV cache layout to HND. (Worker_TP0_DCP0 pid=500677) INFO 04-03 16:43:50 [gpu_model_runner.py:5867] Profiling CUDA graph memory: PIECEWISE=51 (largest=512), FULL=35 (largest=256) (Worker_TP0_DCP0 pid=500677) WARNING 04-03 16:43:51 [flashinfer.py:342] Trtllm does not support returning LSE and as a result does not support DCP, reverting to FlashInfer (Worker_TP2_DCP0 pid=500679) INFO 04-03 16:43:52 [gpu_model_runner.py:5946] Estimated CUDA graph memory: 2.28 GiB total (Worker_TP1_DCP1 pid=500678) INFO 04-03 16:43:52 [gpu_model_runner.py:5946] Estimated CUDA graph memory: 2.28 GiB total (Worker_TP3_DCP1 pid=500680) INFO 04-03 16:43:52 [gpu_model_runner.py:5946] Estimated CUDA graph memory: 2.28 GiB total (Worker_TP0_DCP0 pid=500677) INFO 04-03 16:43:52 [gpu_model_runner.py:5946] Estimated CUDA graph memory: 2.28 GiB total (Worker_TP2_DCP0 pid=500679) INFO 04-03 16:43:52 [gpu_worker.py:470] In v0.19, CUDA graph memory profiling will be enabled by default (VLLM_MEMORY_PROFILER_ESTIMATE_CUDAGRAPHS=1), which more accurately accounts for CUDA graph memory during KV cache allocation. To try it now, set VLLM_MEMORY_PROFILER_ESTIMATE_CUDAGRAPHS=1 and increase --gpu-memory-utilization from 0.9000 to 0.9728 to maintain the same effective KV cache size. (Worker_TP1_DCP1 pid=500678) INFO 04-03 16:43:52 [gpu_worker.py:470] In v0.19, CUDA graph memory profiling will be enabled by default (VLLM_MEMORY_PROFILER_ESTIMATE_CUDAGRAPHS=1), which more accurately accounts for CUDA graph memory during KV cache allocation. To try it now, set VLLM_MEMORY_PROFILER_ESTIMATE_CUDAGRAPHS=1 and increase --gpu-memory-utilization from 0.9000 to 0.9728 to maintain the same effective KV cache size. (Worker_TP3_DCP1 pid=500680) INFO 04-03 16:43:52 [gpu_worker.py:470] In v0.19, CUDA graph memory profiling will be enabled by default (VLLM_MEMORY_PROFILER_ESTIMATE_CUDAGRAPHS=1), which more accurately accounts for CUDA graph memory during KV cache allocation. To try it now, set VLLM_MEMORY_PROFILER_ESTIMATE_CUDAGRAPHS=1 and increase --gpu-memory-utilization from 0.9000 to 0.9728 to maintain the same effective KV cache size. (Worker_TP0_DCP0 pid=500677) INFO 04-03 16:43:52 [gpu_worker.py:436] Available KV cache memory: 26.7 GiB (Worker_TP0_DCP0 pid=500677) INFO 04-03 16:43:52 [gpu_worker.py:470] In v0.19, CUDA graph memory profiling will be enabled by default (VLLM_MEMORY_PROFILER_ESTIMATE_CUDAGRAPHS=1), which more accurately accounts for CUDA graph memory during KV cache allocation. To try it now, set VLLM_MEMORY_PROFILER_ESTIMATE_CUDAGRAPHS=1 and increase --gpu-memory-utilization from 0.9000 to 0.9728 to maintain the same effective KV cache size. (EngineCore pid=500414) INFO 04-03 16:43:52 [kv_cache_utils.py:1311] Multiplying the GPU KV cache size by the cp_world_size 2 (pcp_world_size 1 * dcp_world_size 2). (EngineCore pid=500414) INFO 04-03 16:43:52 [kv_cache_utils.py:1319] GPU KV cache size: 3,999,392 tokens (EngineCore pid=500414) INFO 04-03 16:43:52 [kv_cache_utils.py:1324] Maximum concurrency for 32,768 tokens per request: 122.05x (EngineCore pid=500414) INFO 04-03 16:43:52 [kv_cache_utils.py:1311] Multiplying the GPU KV cache size by the cp_world_size 2 (pcp_world_size 1 * dcp_world_size 2). (EngineCore pid=500414) INFO 04-03 16:43:52 [kv_cache_utils.py:1311] Multiplying the GPU KV cache size by the cp_world_size 2 (pcp_world_size 1 * dcp_world_size 2). (EngineCore pid=500414) INFO 04-03 16:43:52 [kv_cache_utils.py:1311] Multiplying the GPU KV cache size by the cp_world_size 2 (pcp_world_size 1 * dcp_world_size 2). (Worker_TP0_DCP0 pid=500677) 2026-04-03 16:43:52,464 - INFO - autotuner.py:262 - flashinfer.jit: [Autotuner]: Autotuning process starts ... (Worker_TP3_DCP1 pid=500680) 2026-04-03 16:43:52,464 - INFO - autotuner.py:262 - flashinfer.jit: [Autotuner]: Autotuning process starts ... (Worker_TP1_DCP1 pid=500678) 2026-04-03 16:43:52,464 - INFO - autotuner.py:262 - flashinfer.jit: [Autotuner]: Autotuning process starts ... (Worker_TP2_DCP0 pid=500679) 2026-04-03 16:43:52,464 - INFO - autotuner.py:262 - flashinfer.jit: [Autotuner]: Autotuning process starts ... (Worker_TP0_DCP0 pid=500677) 2026-04-03 16:43:52,475 - INFO - autotuner.py:268 - flashinfer.jit: [Autotuner]: Autotuning process ends (Worker_TP0_DCP0 pid=500677) INFO 04-03 16:43:52 [kernel_warmup.py:69] Warming up FlashInfer attention. (Worker_TP3_DCP1 pid=500680) 2026-04-03 16:43:52,476 - INFO - autotuner.py:268 - flashinfer.jit: [Autotuner]: Autotuning process ends (Worker_TP3_DCP1 pid=500680) INFO 04-03 16:43:52 [kernel_warmup.py:69] Warming up FlashInfer attention. (Worker_TP1_DCP1 pid=500678) 2026-04-03 16:43:52,478 - INFO - autotuner.py:268 - flashinfer.jit: [Autotuner]: Autotuning process ends (Worker_TP1_DCP1 pid=500678) INFO 04-03 16:43:52 [kernel_warmup.py:69] Warming up FlashInfer attention. (Worker_TP2_DCP0 pid=500679) 2026-04-03 16:43:52,480 - INFO - autotuner.py:268 - flashinfer.jit: [Autotuner]: Autotuning process ends (Worker_TP2_DCP0 pid=500679) INFO 04-03 16:43:52 [kernel_warmup.py:69] Warming up FlashInfer attention. (EngineCore pid=500414) ERROR 04-03 16:43:52 [multiproc_executor.py:273] Worker proc VllmWorker-3 died unexpectedly, shutting down executor. (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] EngineCore failed to start. (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] Traceback (most recent call last): (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/core.py", line 1082, in run_engine_core (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] engine_core = EngineCoreProc(*args, engine_index=dp_rank, **kwargs) (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] return func(*args, **kwargs) (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/core.py", line 848, in __init__ (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] super().__init__( (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/core.py", line 124, in __init__ (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] kv_cache_config = self._initialize_kv_caches(vllm_config) (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] return func(*args, **kwargs) (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/core.py", line 280, in _initialize_kv_caches (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] self.model_executor.initialize_from_config(kv_cache_configs) (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/abstract.py", line 118, in initialize_from_config (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] compilation_times: list[float] = self.collective_rpc("compile_or_warm_up_model") (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 397, in collective_rpc (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] return aggregate(get_response()) (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] ^^^^^^^^^^^^^^ (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 376, in get_response (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] status, result = mq.dequeue(timeout=dequeue_timeout) (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] File "/usr/local/lib/python3.12/dist-packages/vllm/distributed/device_communicators/shm_broadcast.py", line 755, in dequeue (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] with self.acquire_read(timeout, indefinite) as buf: (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] File "/usr/lib/python3.12/contextlib.py", line 137, in __enter__ (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] return next(self.gen) (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] ^^^^^^^^^^^^^^ (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] File "/usr/local/lib/python3.12/dist-packages/vllm/distributed/device_communicators/shm_broadcast.py", line 677, in acquire_read (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] raise RuntimeError("cancelled") (EngineCore pid=500414) ERROR 04-03 16:43:53 [core.py:1108] RuntimeError: cancelled (EngineCore pid=500414) Process EngineCore: (EngineCore pid=500414) Traceback (most recent call last): (EngineCore pid=500414) File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap (EngineCore pid=500414) self.run() (EngineCore pid=500414) File "/usr/lib/python3.12/multiprocessing/process.py", line 108, in run (EngineCore pid=500414) self._target(*self._args, **self._kwargs) (EngineCore pid=500414) File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/core.py", line 1112, in run_engine_core (EngineCore pid=500414) raise e (EngineCore pid=500414) File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/core.py", line 1082, in run_engine_core (EngineCore pid=500414) engine_core = EngineCoreProc(*args, engine_index=dp_rank, **kwargs) (EngineCore pid=500414) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=500414) File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper (EngineCore pid=500414) return func(*args, **kwargs) (EngineCore pid=500414) ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=500414) File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/core.py", line 848, in __init__ (EngineCore pid=500414) super().__init__( (EngineCore pid=500414) File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/core.py", line 124, in __init__ (EngineCore pid=500414) kv_cache_config = self._initialize_kv_caches(vllm_config) (EngineCore pid=500414) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=500414) File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper (EngineCore pid=500414) return func(*args, **kwargs) (EngineCore pid=500414) ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=500414) File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/core.py", line 280, in _initialize_kv_caches (EngineCore pid=500414) self.model_executor.initialize_from_config(kv_cache_configs) (EngineCore pid=500414) File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/abstract.py", line 118, in initialize_from_config (EngineCore pid=500414) compilation_times: list[float] = self.collective_rpc("compile_or_warm_up_model") (EngineCore pid=500414) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=500414) File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 397, in collective_rpc (EngineCore pid=500414) return aggregate(get_response()) (EngineCore pid=500414) ^^^^^^^^^^^^^^ (EngineCore pid=500414) File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 376, in get_response (EngineCore pid=500414) status, result = mq.dequeue(timeout=dequeue_timeout) (EngineCore pid=500414) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=500414) File "/usr/local/lib/python3.12/dist-packages/vllm/distributed/device_communicators/shm_broadcast.py", line 755, in dequeue (EngineCore pid=500414) with self.acquire_read(timeout, indefinite) as buf: (EngineCore pid=500414) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=500414) File "/usr/lib/python3.12/contextlib.py", line 137, in __enter__ (EngineCore pid=500414) return next(self.gen) (EngineCore pid=500414) ^^^^^^^^^^^^^^ (EngineCore pid=500414) File "/usr/local/lib/python3.12/dist-packages/vllm/distributed/device_communicators/shm_broadcast.py", line 677, in acquire_read (EngineCore pid=500414) raise RuntimeError("cancelled") (EngineCore pid=500414) RuntimeError: cancelled (APIServer pid=500145) Traceback (most recent call last): (APIServer pid=500145) File "/usr/local/bin/vllm", line 10, in (APIServer pid=500145) sys.exit(main()) (APIServer pid=500145) ^^^^^^ (APIServer pid=500145) File "/usr/local/lib/python3.12/dist-packages/vllm/entrypoints/cli/main.py", line 75, in main (APIServer pid=500145) args.dispatch_function(args) (APIServer pid=500145) File "/usr/local/lib/python3.12/dist-packages/vllm/entrypoints/cli/serve.py", line 122, in cmd (APIServer pid=500145) uvloop.run(run_server(args)) (APIServer pid=500145) File "/usr/local/lib/python3.12/dist-packages/uvloop/__init__.py", line 96, in run (APIServer pid=500145) return __asyncio.run( (APIServer pid=500145) ^^^^^^^^^^^^^^ (APIServer pid=500145) File "/usr/lib/python3.12/asyncio/runners.py", line 195, in run (APIServer pid=500145) return runner.run(main) (APIServer pid=500145) ^^^^^^^^^^^^^^^^ (APIServer pid=500145) File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run (APIServer pid=500145) return self._loop.run_until_complete(task) (APIServer pid=500145) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (APIServer pid=500145) File "uvloop/loop.pyx", line 1518, in uvloop.loop.Loop.run_until_complete (APIServer pid=500145) File "/usr/local/lib/python3.12/dist-packages/uvloop/__init__.py", line 48, in wrapper (APIServer pid=500145) return await main (APIServer pid=500145) ^^^^^^^^^^ (APIServer pid=500145) File "/usr/local/lib/python3.12/dist-packages/vllm/entrypoints/openai/api_server.py", line 670, in run_server (APIServer pid=500145) await run_server_worker(listen_address, sock, args, **uvicorn_kwargs) (APIServer pid=500145) File "/usr/local/lib/python3.12/dist-packages/vllm/entrypoints/openai/api_server.py", line 684, in run_server_worker (APIServer pid=500145) async with build_async_engine_client( (APIServer pid=500145) ^^^^^^^^^^^^^^^^^^^^^^^^^^ (APIServer pid=500145) File "/usr/lib/python3.12/contextlib.py", line 210, in __aenter__ (APIServer pid=500145) return await anext(self.gen) (APIServer pid=500145) ^^^^^^^^^^^^^^^^^^^^^ (APIServer pid=500145) File "/usr/local/lib/python3.12/dist-packages/vllm/entrypoints/openai/api_server.py", line 100, in build_async_engine_client (APIServer pid=500145) async with build_async_engine_client_from_engine_args( (APIServer pid=500145) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (APIServer pid=500145) File "/usr/lib/python3.12/contextlib.py", line 210, in __aenter__ (APIServer pid=500145) return await anext(self.gen) (APIServer pid=500145) ^^^^^^^^^^^^^^^^^^^^^ (APIServer pid=500145) File "/usr/local/lib/python3.12/dist-packages/vllm/entrypoints/openai/api_server.py", line 136, in build_async_engine_client_from_engine_args (APIServer pid=500145) async_llm = AsyncLLM.from_vllm_config( (APIServer pid=500145) ^^^^^^^^^^^^^^^^^^^^^^^^^^ (APIServer pid=500145) File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/async_llm.py", line 225, in from_vllm_config (APIServer pid=500145) return cls( (APIServer pid=500145) ^^^^ (APIServer pid=500145) File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/async_llm.py", line 154, in __init__ (APIServer pid=500145) self.engine_core = EngineCoreClient.make_async_mp_client( (APIServer pid=500145) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (APIServer pid=500145) File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper (APIServer pid=500145) return func(*args, **kwargs) (APIServer pid=500145) ^^^^^^^^^^^^^^^^^^^^^ (APIServer pid=500145) File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/core_client.py", line 130, in make_async_mp_client (APIServer pid=500145) return AsyncMPClient(*client_args) (APIServer pid=500145) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ (APIServer pid=500145) File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper (APIServer pid=500145) return func(*args, **kwargs) (APIServer pid=500145) ^^^^^^^^^^^^^^^^^^^^^ (APIServer pid=500145) File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/core_client.py", line 887, in __init__ (APIServer pid=500145) super().__init__( (APIServer pid=500145) File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/core_client.py", line 535, in __init__ (APIServer pid=500145) with launch_core_engines( (APIServer pid=500145) ^^^^^^^^^^^^^^^^^^^^ (APIServer pid=500145) File "/usr/lib/python3.12/contextlib.py", line 144, in __exit__ (APIServer pid=500145) next(self.gen) (APIServer pid=500145) File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/utils.py", line 998, in launch_core_engines (APIServer pid=500145) wait_for_engine_startup( (APIServer pid=500145) File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/utils.py", line 1057, in wait_for_engine_startup (APIServer pid=500145) raise RuntimeError( (APIServer pid=500145) RuntimeError: Engine core initialization failed. See root cause above. Failed core proc(s): {}This PR:
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.