vllm - 💡(How to fix) Fix [Bug]: Error while serving mistralai/Mistral-7B-v0.3 on CPU systems with Docker build [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

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

GitHub issue graph ai analysis

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

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

Helpful · Quick feedback

Loading…
GitHub stats
vllm-project/vllm#38013Fetched 2026-04-08 01:21:56
View on GitHub
Comments
2
Participants
2
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
commented ×2closed ×1labeled ×1

Error Message

Client side testing using curl and error observed

{"error":{"message":"EngineCore encountered an issue. See stack trace (above) for the root cause.","type":"InternalServerError","param":null,"code":500}} (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] EngineCore encountered a fatal error. (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] Traceback (most recent call last): (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1101, in run_engine_core (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] engine_core.run_busy_loop() (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1142, in run_busy_loop (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] self._process_engine_step() (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1181, in _process_engine_step (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] outputs, model_executed = self.step_fn() (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] ^^^^^^^^^^^^^^ (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 392, in step (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] future = self.model_executor.execute_model(scheduler_output, non_block=True) (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 114, in execute_model (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] output.result() (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/uv/python/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/concurrent/futures/_base.py", line 449, in result (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] return self.__get_result() (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] ^^^^^^^^^^^^^^^^^^^ (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/uv/python/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] raise self._exception (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 84, in collective_rpc (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] result = run_method(self.driver_worker, method, args, kwargs) (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/venv/lib/python3.12/site-packages/vllm/v1/serial_utils.py", line 510, in run_method (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] return func(*args, **kwargs) (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/worker_base.py", line 332, in execute_model (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] return self.worker.execute_model(scheduler_output) (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Root Cause

Client side testing using curl and error observed

-----------------------------------------------------

curl http://localhost:8000/v1/completions
-H "Content-Type: application/json"
-d '{ "model": "mistralai/Mistral-7B-v0.3", "prompt": "Explain what is AI in one sentence.", "max_tokens": 50, "temperature": 0.0 }' {"error":{"message":"EngineCore encountered an issue. See stack trace (above) for the root cause.","type":"InternalServerError","param":null,"code":500}}

Fix Action

Fix / Workaround

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

Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Address sizes: 52 bits physical, 57 bits virtual Byte Order: Little Endian CPU(s): 128 On-line CPU(s) list: 0-127 Vendor ID: GenuineIntel Model name: Intel(R) Xeon(R) 6767P CPU family: 6 Model: 173 Thread(s) per core: 2 Core(s) per socket: 64 Socket(s): 1 Stepping: 1 BogoMIPS: 4800.00 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cat_l2 cdp_l3 invpcid_single cdp_l2 ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local split_lock_detect avx_vnni avx512_bf16 wbnoinvd dtherm ida arat pln pts avx512vbmi umip pku ospke waitpkg avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg tme avx512_vpopcntdq la57 rdpid bus_lock_detect cldemote movdiri movdir64b enqcmd fsrm md_clear serialize tsxldtrk pconfig arch_lbr amx_bf16 avx512_fp16 amx_tile amx_int8 flush_l1d arch_capabilities ibpb_exit_to_user Virtualization: VT-x L1d cache: 3 MiB (64 instances) L1i cache: 4 MiB (64 instances) L2 cache: 128 MiB (64 instances) L3 cache: 336 MiB (1 instance) NUMA node(s): 1 NUMA node0 CPU(s): 0-127 Vulnerability Gather data sampling: Not affected Vulnerability Indirect target selection: Not affected Vulnerability Itlb multihit: Not affected Vulnerability L1tf: Not affected Vulnerability Mds: Not affected Vulnerability Meltdown: Not affected Vulnerability Mmio stale data: Not affected Vulnerability Reg file data sampling: Not affected Vulnerability Retbleed: Not affected Vulnerability Spec rstack overflow: Not affected Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Vulnerability Spectre v2: Mitigation; Enhanced / Automatic IBRS; IBPB conditional; PBRSB-eIBRS Not affected; BHI BHI_DIS_S Vulnerability Srbds: Not affected Vulnerability Tsa: Not affected Vulnerability Tsx async abort: Not affected Vulnerability Vmscape: Mitigation; IBPB before exit to userspace

Code Example

/home/xyz/prj/vllm/vllm/__init__.py:7: RuntimeWarning: Failed to read commit hash:
No module named 'vllm._version'
  from .version import __version__, __version_tuple__  # isort:skip
Collecting environment information...
==============================
        System Info
==============================
OS                           : Ubuntu 22.04.5 LTS (x86_64)
GCC version                  : (Ubuntu 12.3.0-1ubuntu1~22.04.3) 12.3.0
Clang version                : Could not collect
CMake version                : Could not collect
Libc version                 : glibc-2.35

==============================
       PyTorch Info
==============================
PyTorch version              : 2.11.0+cpu
Is debug build               : False
CUDA used to build PyTorch   : None
ROCM used to build PyTorch   : N/A

==============================
      Python Environment
==============================
Python version               : 3.10.12 (main, Mar  3 2026, 11:56:32) [GCC 11.4.0] (64-bit runtime)
Python platform              : Linux-5.15.0-173-generic-x86_64-with-glibc2.35

==============================
       CUDA / GPU Info
==============================
Is CUDA available            : False
CUDA runtime version         : No CUDA
CUDA_MODULE_LOADING set to   : N/A
GPU models and configuration : No CUDA
Nvidia driver version        : No CUDA
cuDNN version                : No CUDA
HIP runtime version          : N/A
MIOpen runtime version       : N/A
Is XNNPACK available         : True

==============================
          CPU Info
==============================
Architecture:                            x86_64
CPU op-mode(s):                          32-bit, 64-bit
Address sizes:                           52 bits physical, 57 bits virtual
Byte Order:                              Little Endian
CPU(s):                                  128
On-line CPU(s) list:                     0-127
Vendor ID:                               GenuineIntel
Model name:                              Intel(R) Xeon(R) 6767P
CPU family:                              6
Model:                                   173
Thread(s) per core:                      2
Core(s) per socket:                      64
Socket(s):                               1
Stepping:                                1
BogoMIPS:                                4800.00
Flags:                                   fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cat_l2 cdp_l3 invpcid_single cdp_l2 ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local split_lock_detect avx_vnni avx512_bf16 wbnoinvd dtherm ida arat pln pts avx512vbmi umip pku ospke waitpkg avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg tme avx512_vpopcntdq la57 rdpid bus_lock_detect cldemote movdiri movdir64b enqcmd fsrm md_clear serialize tsxldtrk pconfig arch_lbr amx_bf16 avx512_fp16 amx_tile amx_int8 flush_l1d arch_capabilities ibpb_exit_to_user
Virtualization:                          VT-x
L1d cache:                               3 MiB (64 instances)
L1i cache:                               4 MiB (64 instances)
L2 cache:                                128 MiB (64 instances)
L3 cache:                                336 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-127
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:                Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; Enhanced / Automatic IBRS; IBPB conditional; PBRSB-eIBRS Not affected; BHI BHI_DIS_S
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Mitigation; IBPB before exit to userspace

==============================
Versions of relevant libraries
==============================
[pip3] numpy==2.2.6
[pip3] torch==2.11.0+cpu
[pip3] torchvision==0.26.0+cpu
[conda] Could not collect

==============================
         vLLM Info
==============================
ROCM Version                 : Could not collect
vLLM Version                 : N/A (dev)
vLLM Build Flags:
  CUDA Archs: Not Set; ROCm: Disabled
GPU Topology:
  Could not collect

==============================
     Environment Variables
==============================
PYTORCH_NVML_BASED_CUDA_CHECK=1
TORCHINDUCTOR_COMPILE_THREADS=1
TORCHINDUCTOR_CACHE_DIR=/tmp/torchinductor_sdp
RAW_BUFFERClick to expand / collapse

Your current environment

<details> <summary>The output of <code>python collect_env.py</code></summary>
/home/xyz/prj/vllm/vllm/__init__.py:7: RuntimeWarning: Failed to read commit hash:
No module named 'vllm._version'
  from .version import __version__, __version_tuple__  # isort:skip
Collecting environment information...
==============================
        System Info
==============================
OS                           : Ubuntu 22.04.5 LTS (x86_64)
GCC version                  : (Ubuntu 12.3.0-1ubuntu1~22.04.3) 12.3.0
Clang version                : Could not collect
CMake version                : Could not collect
Libc version                 : glibc-2.35

==============================
       PyTorch Info
==============================
PyTorch version              : 2.11.0+cpu
Is debug build               : False
CUDA used to build PyTorch   : None
ROCM used to build PyTorch   : N/A

==============================
      Python Environment
==============================
Python version               : 3.10.12 (main, Mar  3 2026, 11:56:32) [GCC 11.4.0] (64-bit runtime)
Python platform              : Linux-5.15.0-173-generic-x86_64-with-glibc2.35

==============================
       CUDA / GPU Info
==============================
Is CUDA available            : False
CUDA runtime version         : No CUDA
CUDA_MODULE_LOADING set to   : N/A
GPU models and configuration : No CUDA
Nvidia driver version        : No CUDA
cuDNN version                : No CUDA
HIP runtime version          : N/A
MIOpen runtime version       : N/A
Is XNNPACK available         : True

==============================
          CPU Info
==============================
Architecture:                            x86_64
CPU op-mode(s):                          32-bit, 64-bit
Address sizes:                           52 bits physical, 57 bits virtual
Byte Order:                              Little Endian
CPU(s):                                  128
On-line CPU(s) list:                     0-127
Vendor ID:                               GenuineIntel
Model name:                              Intel(R) Xeon(R) 6767P
CPU family:                              6
Model:                                   173
Thread(s) per core:                      2
Core(s) per socket:                      64
Socket(s):                               1
Stepping:                                1
BogoMIPS:                                4800.00
Flags:                                   fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cat_l2 cdp_l3 invpcid_single cdp_l2 ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local split_lock_detect avx_vnni avx512_bf16 wbnoinvd dtherm ida arat pln pts avx512vbmi umip pku ospke waitpkg avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg tme avx512_vpopcntdq la57 rdpid bus_lock_detect cldemote movdiri movdir64b enqcmd fsrm md_clear serialize tsxldtrk pconfig arch_lbr amx_bf16 avx512_fp16 amx_tile amx_int8 flush_l1d arch_capabilities ibpb_exit_to_user
Virtualization:                          VT-x
L1d cache:                               3 MiB (64 instances)
L1i cache:                               4 MiB (64 instances)
L2 cache:                                128 MiB (64 instances)
L3 cache:                                336 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-127
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:                Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; Enhanced / Automatic IBRS; IBPB conditional; PBRSB-eIBRS Not affected; BHI BHI_DIS_S
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Mitigation; IBPB before exit to userspace

==============================
Versions of relevant libraries
==============================
[pip3] numpy==2.2.6
[pip3] torch==2.11.0+cpu
[pip3] torchvision==0.26.0+cpu
[conda] Could not collect

==============================
         vLLM Info
==============================
ROCM Version                 : Could not collect
vLLM Version                 : N/A (dev)
vLLM Build Flags:
  CUDA Archs: Not Set; ROCm: Disabled
GPU Topology:
  Could not collect

==============================
     Environment Variables
==============================
PYTORCH_NVML_BASED_CUDA_CHECK=1
TORCHINDUCTOR_COMPILE_THREADS=1
TORCHINDUCTOR_CACHE_DIR=/tmp/torchinductor_sdp
</details>

🐛 Describe the bug

Docker build

--------------

git clone https://github.com/vllm-project/vllm.git cd vllm docker build -f docker/Dockerfile.cpu -t vllm-cpu-env --shm-size=4g .

Starting the docker container

--------------------------------

docker run --rm
--net=host
-v ~/.cache/huggingface:/root/.cache/huggingface
--privileged=true
--shm-size=16g
-e VLLM_CPU_KVCACHE_SPACE=40
-e VLLM_CPU_OMP_THREADS_BIND="0-63"
-e VLLM_CPU_SGL_KERNEL=1
vllm-cpu-env
--model=mistralai/Mistral-7B-v0.3
--dtype=bfloat16
-tp=1
--enable-chunked-prefill
--enable-prefix-caching

Client side testing using curl and error observed

-----------------------------------------------------

curl http://localhost:8000/v1/completions
-H "Content-Type: application/json"
-d '{ "model": "mistralai/Mistral-7B-v0.3", "prompt": "Explain what is AI in one sentence.", "max_tokens": 50, "temperature": 0.0 }' {"error":{"message":"EngineCore encountered an issue. See stack trace (above) for the root cause.","type":"InternalServerError","param":null,"code":500}}

Docker log displayed

-----------------------

INFO 03-24 14:38:33 [init.py:44] Available plugins for group vllm.platform_plugins: INFO 03-24 14:38:33 [init.py:46] - zentorch -> zentorch.vllm:register INFO 03-24 14:38:33 [init.py:49] All plugins in this group will be loaded. Set VLLM_PLUGINS to control which plugins to load. [WARNING zentorch.vllm - register:498] [zentorch] Unsupported vLLM 0.18.1rc1.dev72+g1c0aabdeb. Supports: 0.12.0, 0.13.0, 0.14.0, 0.14.1, 0.15.0, 0.15.1 INFO 03-24 14:38:37 [importing.py:44] Triton is installed but 0 active driver(s) found (expected 1). Disabling Triton to prevent runtime errors. INFO 03-24 14:38:37 [importing.py:68] Triton not installed or not compatible; certain GPU-related functions will not be available. WARNING 03-24 14:38:39 [argparse_utils.py:193] With vllm serve, you should provide the model as a positional argument or in a config file instead of via the --model option. The --model option will be removed in v0.13. (APIServer pid=1) INFO 03-24 14:38:39 [utils.py:297] (APIServer pid=1) INFO 03-24 14:38:39 [utils.py:297] █ █ █▄ ▄█ (APIServer pid=1) INFO 03-24 14:38:39 [utils.py:297] ▄▄ ▄█ █ █ █ ▀▄▀ █ version 0.18.1rc1.dev72+g1c0aabdeb (APIServer pid=1) INFO 03-24 14:38:39 [utils.py:297] █▄█▀ █ █ █ █ model mistralai/Mistral-7B-v0.3 (APIServer pid=1) INFO 03-24 14:38:39 [utils.py:297] ▀▀ ▀▀▀▀▀ ▀▀▀▀▀ ▀ ▀ (APIServer pid=1) INFO 03-24 14:38:39 [utils.py:297] (APIServer pid=1) INFO 03-24 14:38:39 [utils.py:233] non-default args: {'model_tag': 'mistralai/Mistral-7B-v0.3', 'model': 'mistralai/Mistral-7B-v0.3', 'dtype': 'bfloat16', 'enable_prefix_caching': True, 'enable_chunked_prefill': True} (APIServer pid=1) INFO 03-24 14:38:40 [config.py:279] Inferred from consolidated*.safetensors files torch.bfloat16 dtype. (APIServer pid=1) INFO 03-24 14:38:44 [model.py:540] Resolved architecture: MistralForCausalLM (APIServer pid=1) INFO 03-24 14:38:44 [model.py:1607] Using max model len 32768 (APIServer pid=1) INFO 03-24 14:38:44 [vllm.py:750] Asynchronous scheduling is enabled. INFO 03-24 14:38:46 [init.py:44] Available plugins for group vllm.platform_plugins: INFO 03-24 14:38:46 [init.py:46] - zentorch -> zentorch.vllm:register INFO 03-24 14:38:46 [init.py:49] All plugins in this group will be loaded. Set VLLM_PLUGINS to control which plugins to load. [WARNING zentorch.vllm - register:498] [zentorch] Unsupported vLLM 0.18.1rc1.dev72+g1c0aabdeb. Supports: 0.12.0, 0.13.0, 0.14.0, 0.14.1, 0.15.0, 0.15.1 INFO 03-24 14:38:48 [importing.py:44] Triton is installed but 0 active driver(s) found (expected 1). Disabling Triton to prevent runtime errors. INFO 03-24 14:38:48 [importing.py:68] Triton not installed or not compatible; certain GPU-related functions will not be available. (EngineCore pid=401) [WARNING zentorch.vllm - register:498] [zentorch] Unsupported vLLM 0.18.1rc1.dev72+g1c0aabdeb. Supports: 0.12.0, 0.13.0, 0.14.0, 0.14.1, 0.15.0, 0.15.1 (EngineCore pid=401) INFO 03-24 14:38:48 [core.py:105] Initializing a V1 LLM engine (v0.18.1rc1.dev72+g1c0aabdeb) with config: model='mistralai/Mistral-7B-v0.3', speculative_config=None, tokenizer='mistralai/Mistral-7B-v0.3', skip_tokenizer_init=False, tokenizer_mode=auto, revision=None, tokenizer_revision=None, trust_remote_code=False, dtype=torch.bfloat16, max_seq_len=32768, 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=True, quantization=None, enforce_eager=False, enable_return_routed_experts=False, kv_cache_dtype=auto, device_config=cpu, 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=mistralai/Mistral-7B-v0.3, enable_prefix_caching=True, enable_chunked_prefill=True, pooler_config=None, compilation_config={'mode': <CompilationMode.DYNAMO_TRACE_ONCE: 2>, 'debug_dump_path': None, 'cache_dir': '', 'compile_cache_save_format': 'binary', 'backend': 'inductor', 'custom_ops': ['none'], 'splitting_ops': [], 'compile_mm_encoder': False, 'cudagraph_mm_encoder': False, 'encoder_cudagraph_token_budgets': [], 'encoder_cudagraph_max_images_per_batch': 0, 'compile_sizes': None, 'compile_ranges_endpoints': [2048], 'inductor_compile_config': {'enable_auto_functionalized_v2': False, 'dce': True, 'size_asserts': False, 'nan_asserts': False, 'epilogue_fusion': True, 'cpp.dynamic_threads': True}, 'inductor_passes': {}, 'cudagraph_mode': <CUDAGraphMode.NONE: 0>, 'cudagraph_num_of_warmups': 0, 'cudagraph_capture_sizes': [], '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': None, 'dynamic_shapes_config': {'type': <DynamicShapesType.BACKED: 'backed'>, 'evaluate_guards': False, 'assume_32_bit_indexing': False}, 'local_cache_dir': None, 'fast_moe_cold_start': True, 'static_all_moe_layers': []} [W324 14:38:48.073853758 utils.cpp:103] Warning: NUMA binding: Using MEMBIND policy for memory allocation on the NUMA nodes (0). Memory allocations will be strictly bound to these NUMA nodes. (function init_cpu_threads_env) (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP threads binding of Process 401: (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 401, core 0 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 596, core 1 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 597, core 2 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 598, core 3 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 599, core 4 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 600, core 5 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 601, core 6 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 602, core 7 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 603, core 8 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 604, core 9 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 605, core 10 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 606, core 11 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 607, core 12 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 608, core 13 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 609, core 14 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 610, core 15 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 611, core 16 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 612, core 17 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 613, core 18 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 614, core 19 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 615, core 20 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 616, core 21 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 617, core 22 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 618, core 23 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 619, core 24 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 620, core 25 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 621, core 26 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 622, core 27 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 623, core 28 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 624, core 29 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 625, core 30 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 626, core 31 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 627, core 32 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 628, core 33 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 629, core 34 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 630, core 35 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 631, core 36 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 632, core 37 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 633, core 38 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 634, core 39 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 635, core 40 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 636, core 41 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 637, core 42 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 638, core 43 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 639, core 44 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 640, core 45 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 641, core 46 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 642, core 47 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 643, core 48 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 644, core 49 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 645, core 50 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 646, core 51 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 647, core 52 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 648, core 53 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 649, core 54 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 650, core 55 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 651, core 56 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 652, core 57 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 653, core 58 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 654, core 59 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 655, core 60 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 656, core 61 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 657, core 62 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] OMP tid: 658, core 63 (EngineCore pid=401) INFO 03-24 14:38:48 [cpu_worker.py:109] (EngineCore pid=401) INFO 03-24 14:38:48 [parallel_state.py:1400] world_size=1 rank=0 local_rank=0 distributed_init_method=tcp://10.2.10.94:36061 backend=gloo [Gloo] Rank 0 is connected to 0 peer ranks. Expected number of connected peer ranks is : 0 [Gloo] Rank 0 is connected to 0 peer ranks. Expected number of connected peer ranks is : 0 [Gloo] Rank 0 is connected to 0 peer ranks. Expected number of connected peer ranks is : 0 [Gloo] Rank 0 is connected to 0 peer ranks. Expected number of connected peer ranks is : 0 [Gloo] Rank 0 is connected to 0 peer ranks. Expected number of connected peer ranks is : 0 [Gloo] Rank 0 is connected to 0 peer ranks. Expected number of connected peer ranks is : 0 [Gloo] Rank 0 is connected to 0 peer ranks. Expected number of connected peer ranks is : 0 (EngineCore pid=401) INFO 03-24 14:38:48 [parallel_state.py:1716] 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=401) INFO 03-24 14:38:48 [cpu_model_runner.py:62] Starting to load model mistralai/Mistral-7B-v0.3... (EngineCore pid=401) INFO 03-24 14:38:49 [weight_utils.py:618] No consolidated.safetensors.index.json found in remote. Loading safetensors checkpoint shards: 0% Completed | 0/1 [00:00<?, ?it/s] Loading safetensors checkpoint shards: 100% Completed | 1/1 [00:00<00:00, 1.18it/s] Loading safetensors checkpoint shards: 100% Completed | 1/1 [00:00<00:00, 1.18it/s] (EngineCore pid=401) (EngineCore pid=401) INFO 03-24 14:38:50 [default_loader.py:384] Loading weights took 1.05 seconds (EngineCore pid=401) INFO 03-24 14:38:51 [kv_cache_utils.py:1319] GPU KV cache size: 327,680 tokens (EngineCore pid=401) INFO 03-24 14:38:51 [kv_cache_utils.py:1324] Maximum concurrency for 32,768 tokens per request: 10.00x (EngineCore pid=401) INFO 03-24 14:38:53 [cpu_model_runner.py:73] Warming up model for the compilation... (EngineCore pid=401) INFO 03-24 14:39:37 [decorators.py:638] saved AOT compiled function to /root/.cache/vllm/torch_compile_cache/torch_aot_compile/c5fdd12214957693d7e93f7d9a9b94d204b8583afb5a390d8d89b52864cc3c70/rank_0_0/model (EngineCore pid=401) INFO 03-24 14:39:38 [monitor.py:76] Initial profiling/warmup run took 0.14 s (EngineCore pid=401) INFO 03-24 14:39:38 [cpu_model_runner.py:83] Warming up done. (EngineCore pid=401) INFO 03-24 14:39:38 [core.py:283] init engine (profile, create kv cache, warmup model) took 47.04 seconds (EngineCore pid=401) [WARNING mistral_common.tokens.tokenizers.utils - get_one_valid_tokenizer_file:121] Multiple valid tokenizer files found. Using tokenizer.model.v3. (EngineCore pid=401) INFO 03-24 14:39:38 [vllm.py:750] Asynchronous scheduling is disabled. (EngineCore pid=401) WARNING 03-24 14:39:38 [vllm.py:819] Inductor compilation was disabled by user settings, optimizations settings that are only active during inductor compilation will be ignored. (APIServer pid=1) INFO 03-24 14:39:38 [api_server.py:590] Supported tasks: ['generate'] (APIServer pid=1) INFO 03-24 14:39:39 [api_server.py:594] Starting vLLM server on http://0.0.0.0:8000 (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:37] Available routes are: (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /openapi.json, Methods: HEAD, GET (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /docs, Methods: HEAD, GET (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /docs/oauth2-redirect, Methods: HEAD, GET (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /redoc, Methods: HEAD, GET (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /tokenize, Methods: POST (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /detokenize, Methods: POST (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /load, Methods: GET (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /version, Methods: GET (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /health, Methods: GET (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /metrics, Methods: GET (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /v1/models, Methods: GET (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /ping, Methods: GET (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /ping, Methods: POST (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /invocations, Methods: POST (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /v1/chat/completions, Methods: POST (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /v1/responses, Methods: POST (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /v1/responses/{response_id}, Methods: GET (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /v1/responses/{response_id}/cancel, Methods: POST (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /v1/completions, Methods: POST (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /v1/messages, Methods: POST (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /v1/messages/count_tokens, Methods: POST (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /inference/v1/generate, Methods: POST (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /scale_elastic_ep, Methods: POST (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /is_scaling_elastic_ep, Methods: POST (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /v1/chat/completions/render, Methods: POST (APIServer pid=1) INFO 03-24 14:39:39 [launcher.py:46] Route: /v1/completions/render, Methods: POST (APIServer pid=1) INFO: Started server process [1] (APIServer pid=1) INFO: Waiting for application startup. (APIServer pid=1) INFO: Application startup complete. (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] EngineCore encountered a fatal error. (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] Traceback (most recent call last): (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1101, in run_engine_core (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] engine_core.run_busy_loop() (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1142, in run_busy_loop (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] self._process_engine_step() (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1181, in _process_engine_step (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] outputs, model_executed = self.step_fn() (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] ^^^^^^^^^^^^^^ (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 392, in step (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] future = self.model_executor.execute_model(scheduler_output, non_block=True) (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 114, in execute_model (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] output.result() (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/uv/python/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/concurrent/futures/_base.py", line 449, in result (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] return self.__get_result() (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] ^^^^^^^^^^^^^^^^^^^ (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/uv/python/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] raise self._exception (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 84, in collective_rpc (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] result = run_method(self.driver_worker, method, args, kwargs) (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/venv/lib/python3.12/site-packages/vllm/v1/serial_utils.py", line 510, in run_method (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] return func(*args, **kwargs) (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/worker_base.py", line 332, in execute_model (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] return self.worker.execute_model(scheduler_output) (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] return func(*args, **kwargs) (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_worker.py", line 803, in execute_model (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] output = self.model_runner.execute_model( (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] return func(*args, **kwargs) (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 3840, in execute_model (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] logits_indices, spec_decode_metadata = self._prepare_inputs( (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 1987, in _prepare_inputs (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] self.input_batch.block_table.compute_slot_mapping( (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/block_table.py", line 293, in compute_slot_mapping (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] block_table.compute_slot_mapping(num_reqs, query_start_loc, positions) (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/block_table.py", line 144, in compute_slot_mapping (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] _compute_slot_mapping_kernel[(num_reqs + 1,)]( (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ (EngineCore pid=401) ERROR 03-24 14:40:37 [core.py:1110] TypeError: 'function' object is not subscriptable (EngineCore pid=401) Process EngineCore: (APIServer pid=1) ERROR 03-24 14:40:37 [async_llm.py:707] AsyncLLM output_handler failed. (APIServer pid=1) ERROR 03-24 14:40:37 [async_llm.py:707] Traceback (most recent call last): (APIServer pid=1) ERROR 03-24 14:40:37 [async_llm.py:707] File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/async_llm.py", line 663, in output_handler (APIServer pid=1) ERROR 03-24 14:40:37 [async_llm.py:707] outputs = await engine_core.get_output_async() (APIServer pid=1) ERROR 03-24 14:40:37 [async_llm.py:707] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (APIServer pid=1) ERROR 03-24 14:40:37 [async_llm.py:707] File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core_client.py", line 985, in get_output_async (APIServer pid=1) ERROR 03-24 14:40:37 [async_llm.py:707] raise self._format_exception(outputs) from None (APIServer pid=1) ERROR 03-24 14:40:37 [async_llm.py:707] vllm.v1.engine.exceptions.EngineDeadError: EngineCore encountered an issue. See stack trace (above) for the root cause. (EngineCore pid=401) Traceback (most recent call last): (EngineCore pid=401) File "/opt/uv/python/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap (EngineCore pid=401) self.run() (EngineCore pid=401) File "/opt/uv/python/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/multiprocessing/process.py", line 108, in run (EngineCore pid=401) self._target(*self._args, **self._kwargs) (EngineCore pid=401) File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1112, in run_engine_core (EngineCore pid=401) raise e (EngineCore pid=401) File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1101, in run_engine_core (EngineCore pid=401) engine_core.run_busy_loop() (EngineCore pid=401) File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1142, in run_busy_loop (EngineCore pid=401) self._process_engine_step() (EngineCore pid=401) File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1181, in _process_engine_step (EngineCore pid=401) outputs, model_executed = self.step_fn() (EngineCore pid=401) ^^^^^^^^^^^^^^ (EngineCore pid=401) File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 392, in step (EngineCore pid=401) future = self.model_executor.execute_model(scheduler_output, non_block=True) (EngineCore pid=401) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=401) File "/opt/venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 114, in execute_model (EngineCore pid=401) output.result() (EngineCore pid=401) File "/opt/uv/python/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/concurrent/futures/_base.py", line 449, in result (EngineCore pid=401) return self.__get_result() (EngineCore pid=401) ^^^^^^^^^^^^^^^^^^^ (EngineCore pid=401) File "/opt/uv/python/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result (EngineCore pid=401) raise self._exception (EngineCore pid=401) File "/opt/venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 84, in collective_rpc (EngineCore pid=401) result = run_method(self.driver_worker, method, args, kwargs) (EngineCore pid=401) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=401) File "/opt/venv/lib/python3.12/site-packages/vllm/v1/serial_utils.py", line 510, in run_method (EngineCore pid=401) return func(*args, **kwargs) (EngineCore pid=401) ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=401) File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/worker_base.py", line 332, in execute_model (EngineCore pid=401) return self.worker.execute_model(scheduler_output) (EngineCore pid=401) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=401) File "/opt/venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context (EngineCore pid=401) return func(*args, **kwargs) (EngineCore pid=401) ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=401) File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_worker.py", line 803, in execute_model (EngineCore pid=401) output = self.model_runner.execute_model( (EngineCore pid=401) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=401) File "/opt/venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context (EngineCore pid=401) return func(*args, **kwargs) (EngineCore pid=401) ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=401) File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 3840, in execute_model (EngineCore pid=401) logits_indices, spec_decode_metadata = self._prepare_inputs( (EngineCore pid=401) ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=401) File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 1987, in _prepare_inputs (EngineCore pid=401) self.input_batch.block_table.compute_slot_mapping( (EngineCore pid=401) File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/block_table.py", line 293, in compute_slot_mapping (EngineCore pid=401) block_table.compute_slot_mapping(num_reqs, query_start_loc, positions) (EngineCore pid=401) File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/block_table.py", line 144, in compute_slot_mapping (EngineCore pid=401) _compute_slot_mapping_kernel[(num_reqs + 1,)]( (EngineCore pid=401) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ (EngineCore pid=401) TypeError: 'function' object is not subscriptable (APIServer pid=1) INFO: 127.0.0.1:43542 - "POST /v1/completions HTTP/1.1" 500 Internal Server Error (APIServer pid=1) INFO: Shutting down (APIServer pid=1) INFO: Waiting for application shutdown. (APIServer pid=1) INFO: Application shutdown complete. (APIServer pid=1) INFO: Finished server process [1]

Before submitting a new issue...

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

extent analysis

Fix Plan

The error message indicates a TypeError: 'function' object is not subscriptable in the block_table.py file. This suggests that the _compute_slot_mapping_kernel variable is a function, but it's being used as if it were a dictionary or a list.

To fix this issue, we need to modify the block_table.py file to correctly call the _compute_slot_mapping_kernel function.

Here are the steps to fix the issue:

  1. Locate the block_table.py file: Find the block_table.py file in the vllm/v1/worker directory.
  2. Modify the compute_slot_mapping function: In the compute_slot_mapping function, replace the line _compute_slot_mapping_kernel[(num_reqs + 1,)]( with _compute_slot_mapping_kernel(num_reqs + 1, query_start_loc, positions).
  3. Verify the fix: After making the changes, verify that the issue is resolved by running the application again.

Example code:

# block_table.py
def compute_slot_mapping(self, num_reqs, query_start_loc, positions):
    # ...
    # Replace this line:
    # _compute_slot_mapping_kernel[(num_reqs + 1,)](
    # With this:
    _compute_slot_mapping_kernel(num_reqs + 1, query_start_loc, positions)
    # ...

Verification

To verify that the fix worked, run the application again and check for any error messages. If the issue is resolved, the application should run without errors.

Extra Tips

  • Make sure to test the application thoroughly after making any changes to ensure that the fix did not introduce any new issues.
  • If you're still experiencing issues, try debugging the compute_slot_mapping function to see where the error is occurring.
  • Consider adding error handling to the compute_slot_mapping function to catch and handle any potential errors that may occur.

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]: Error while serving mistralai/Mistral-7B-v0.3 on CPU systems with Docker build [2 comments, 2 participants]