Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 0.6.6.post1 crash in marlin_utils.py #11703

Open
1 task done
Flynn-Zh opened this issue Jan 3, 2025 · 2 comments
Open
1 task done

[Bug]: 0.6.6.post1 crash in marlin_utils.py #11703

Flynn-Zh opened this issue Jan 3, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@Flynn-Zh
Copy link

Flynn-Zh commented Jan 3, 2025

Your current environment

The output of `python collect_env.py`
Your output of `python collect_env.py` here

Collecting environment information...
PyTorch version: 2.5.1+cu124
Is debug build: False
CUDA used to build PyTorch: 12.4
ROCM used to build PyTorch: N/A

OS: Ubuntu 22.04.4 LTS (x86_64)
GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Clang version: Could not collect
CMake version: Could not collect
Libc version: glibc-2.35

Python version: 3.10.12 (main, Nov 6 2024, 20:22:13) [GCC 11.4.0] (64-bit runtime)
Python platform: Linux-5.10.0-60.18.0.50.oe2203.x86_64-x86_64-with-glibc2.35
Is CUDA available: True
CUDA runtime version: Could not collect
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration:
GPU 0: NVIDIA L20
GPU 1: NVIDIA L20
GPU 2: NVIDIA L20
GPU 3: NVIDIA L20
GPU 4: NVIDIA L20
GPU 5: NVIDIA L20
GPU 6: NVIDIA L20
GPU 7: NVIDIA L20

Nvidia driver version: 535.183.01
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
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
BIOS Vendor ID: Intel(R) Corporation
Model name: Intel(R) Xeon(R) Gold 6430
BIOS Model name: Intel(R) Xeon(R) Gold 6430
CPU family: 6
Model: 143
Thread(s) per core: 2
Core(s) per socket: 32
Socket(s): 2
Stepping: 8
CPU max MHz: 3400.0000
CPU min MHz: 800.0000
BogoMIPS: 4200.00
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 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 avx512_bf16 wbnoinvd dtherm ida arat pln pts hwp hwp_act_window hwp_epp hwp_pkg_req avx512vbmi umip pku ospke waitpkg avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg tme avx512_vpopcntdq la57 rdpid cldemote movdiri movdir64b enqcmd fsrm md_clear serialize tsxldtrk pconfig arch_lbr flush_l1d arch_capabilities
Virtualization: VT-x
L1d cache: 3 MiB (64 instances)
L1i cache: 2 MiB (64 instances)
L2 cache: 128 MiB (64 instances)
L3 cache: 120 MiB (2 instances)
NUMA node(s): 2
NUMA node0 CPU(s): 0-31,64-95
NUMA node1 CPU(s): 32-63,96-127
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Mitigation; Enhanced IBRS, IBPB conditional, RSB filling
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Not affected

Versions of relevant libraries:
[pip3] numpy==1.26.4
[pip3] nvidia-cublas-cu12==12.4.5.8
[pip3] nvidia-cuda-cupti-cu12==12.4.127
[pip3] nvidia-cuda-nvrtc-cu12==12.4.127
[pip3] nvidia-cuda-runtime-cu12==12.4.127
[pip3] nvidia-cudnn-cu12==9.1.0.70
[pip3] nvidia-cufft-cu12==11.2.1.3
[pip3] nvidia-curand-cu12==10.3.5.147
[pip3] nvidia-cusolver-cu12==11.6.1.9
[pip3] nvidia-cusparse-cu12==12.3.1.170
[pip3] nvidia-ml-py==12.560.30
[pip3] nvidia-nccl-cu12==2.21.5
[pip3] nvidia-nvjitlink-cu12==12.4.127
[pip3] nvidia-nvtx-cu12==12.4.127
[pip3] pyzmq==26.2.0
[pip3] torch==2.5.1
[pip3] torchvision==0.20.1
[pip3] transformers==4.47.1
[pip3] triton==3.1.0
[conda] Could not collect
ROCM Version: Could not collect
Neuron SDK Version: N/A
vLLM Version: 0.6.6.post1
vLLM Build Flags:
CUDA Archs: Not Set; ROCm: Disabled; Neuron: Disabled
GPU Topology:
GPU0 GPU1 GPU2 GPU3 GPU4 GPU5 GPU6 GPU7 CPU Affinity NUMA Affinity GPU NUMA ID
GPU0 X PIX PXB PXB SYS SYS SYS SYS 0-31,64-95 0 N/A
GPU1 PIX X PXB PXB SYS SYS SYS SYS 0-31,64-95 0 N/A
GPU2 PXB PXB X PXB SYS SYS SYS SYS 0-31,64-95 0 N/A
GPU3 PXB PXB PXB X SYS SYS SYS SYS 0-31,64-95 0 N/A
GPU4 SYS SYS SYS SYS X PXB PXB PXB 32-63,96-127 1 N/A
GPU5 SYS SYS SYS SYS PXB X PXB PXB 32-63,96-127 1 N/A
GPU6 SYS SYS SYS SYS PXB PXB X PIX 32-63,96-127 1 N/A
GPU7 SYS SYS SYS SYS PXB PXB PIX X 32-63,96-127 1 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

CUDA_VISIBLE_DEVICES=7
CUDA_VISIBLE_DEVICES=7
LD_LIBRARY_PATH=/usr/local/lib/python3.10/dist-packages/cv2/../../lib64:
CUDA_MODULE_LOADING=LAZY

Model Input Dumps

the input file is empty

🐛 Describe the bug

In the case of concurrent pressure testing interface v1/cat/completeness, a crash occurs:

INFO 01-03 10:56:03 metrics.py:483] Prefix cache hit rate: GPU: 2.62%, CPU: 0.00%
INFO: 192.168.152.11:53750 - "POST /v1/chat/completions HTTP/1.1" 200 OK
INFO: 192.168.152.11:53758 - "POST /v1/chat/completions HTTP/1.1" 200 OK
INFO: 192.168.152.11:53732 - "POST /v1/chat/completions HTTP/1.1" 200 OK
INFO: 192.168.152.11:53744 - "POST /v1/chat/completions HTTP/1.1" 200 OK
INFO 01-03 10:56:05 model_runner_base.py:120] Writing input of failed execution to /tmp/err_execute_model_input_20250103-105605.pkl...
WARNING 01-03 10:56:05 model_runner_base.py:143] Failed to pickle inputs of failed execution: CUDA error: an illegal memory access was encountered
WARNING 01-03 10:56:05 model_runner_base.py:143] CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
WARNING 01-03 10:56:05 model_runner_base.py:143] For debugging consider passing CUDA_LAUNCH_BLOCKING=1
WARNING 01-03 10:56:05 model_runner_base.py:143] Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.
WARNING 01-03 10:56:05 model_runner_base.py:143]
ERROR 01-03 10:56:05 engine.py:135] RuntimeError('Error in model execution: CUDA error: an illegal memory access was encountered\nCUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.\nFor debugging consider passing CUDA_LAUNCH_BLOCKING=1\nCompile with TORCH_USE_CUDA_DSA to enable device-side assertions.\n')
ERROR 01-03 10:56:05 engine.py:135] Traceback (most recent call last):
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/vllm/worker/model_runner_base.py", line 116, in _wrapper
ERROR 01-03 10:56:05 engine.py:135] return func(*args, **kwargs)
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/vllm/worker/model_runner.py", line 1691, in execute_model
ERROR 01-03 10:56:05 engine.py:135] hidden_or_intermediate_states = model_executable(
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
ERROR 01-03 10:56:05 engine.py:135] return self._call_impl(*args, **kwargs)
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1747, in _call_impl
ERROR 01-03 10:56:05 engine.py:135] return forward_call(*args, **kwargs)
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/vllm/model_executor/models/qwen2.py", line 477, in forward
ERROR 01-03 10:56:05 engine.py:135] hidden_states = self.model(input_ids, positions, kv_caches,
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/vllm/compilation/decorators.py", line 168, in call
ERROR 01-03 10:56:05 engine.py:135] return self.forward(*args, **kwargs)
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/vllm/model_executor/models/qwen2.py", line 340, in forward
ERROR 01-03 10:56:05 engine.py:135] hidden_states, residual = layer(
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
ERROR 01-03 10:56:05 engine.py:135] return self._call_impl(*args, **kwargs)
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1747, in _call_impl
ERROR 01-03 10:56:05 engine.py:135] return forward_call(*args, **kwargs)
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/vllm/model_executor/models/qwen2.py", line 247, in forward
ERROR 01-03 10:56:05 engine.py:135] hidden_states = self.self_attn(
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
ERROR 01-03 10:56:05 engine.py:135] return self._call_impl(*args, **kwargs)
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1747, in _call_impl
ERROR 01-03 10:56:05 engine.py:135] return forward_call(*args, **kwargs)
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/vllm/model_executor/models/qwen2.py", line 173, in forward
ERROR 01-03 10:56:05 engine.py:135] qkv, _ = self.qkv_proj(hidden_states)
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
ERROR 01-03 10:56:05 engine.py:135] return self.call_impl(*args, **kwargs)
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1747, in call_impl
ERROR 01-03 10:56:05 engine.py:135] return forward_call(*args, **kwargs)
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/vllm/model_executor/layers/linear.py", line 376, in forward
ERROR 01-03 10:56:05 engine.py:135] output_parallel = self.quant_method.apply(self, input
, bias)
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/vllm/model_executor/layers/quantization/gptq_marlin.py", line 306, in apply
ERROR 01-03 10:56:05 engine.py:135] return self.kernel.apply_weights(layer, x, bias)
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/vllm/model_executor/layers/quantization/kernels/marlin.py", line 121, in apply_weights
ERROR 01-03 10:56:05 engine.py:135] return apply_gptq_marlin_linear(
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/vllm/model_executor/layers/quantization/utils/marlin_utils.py", line 310, in apply_gptq_marlin_linear
ERROR 01-03 10:56:05 engine.py:135] output.add
(bias) # In-place add
ERROR 01-03 10:56:05 engine.py:135] RuntimeError: CUDA error: an illegal memory access was encountered
ERROR 01-03 10:56:05 engine.py:135] CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
ERROR 01-03 10:56:05 engine.py:135] For debugging consider passing CUDA_LAUNCH_BLOCKING=1
ERROR 01-03 10:56:05 engine.py:135] Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.
ERROR 01-03 10:56:05 engine.py:135]
ERROR 01-03 10:56:05 engine.py:135]
ERROR 01-03 10:56:05 engine.py:135] The above exception was the direct cause of the following exception:
ERROR 01-03 10:56:05 engine.py:135]
ERROR 01-03 10:56:05 engine.py:135] Traceback (most recent call last):
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/vllm/engine/multiprocessing/engine.py", line 133, in start
ERROR 01-03 10:56:05 engine.py:135] self.run_engine_loop()
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/vllm/engine/multiprocessing/engine.py", line 196, in run_engine_loop
ERROR 01-03 10:56:05 engine.py:135] request_outputs = self.engine_step()
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/vllm/engine/multiprocessing/engine.py", line 214, in engine_step
ERROR 01-03 10:56:05 engine.py:135] raise e
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/vllm/engine/multiprocessing/engine.py", line 205, in engine_step
ERROR 01-03 10:56:05 engine.py:135] return self.engine.step()
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/vllm/engine/llm_engine.py", line 1390, in step
ERROR 01-03 10:56:05 engine.py:135] outputs = self.model_executor.execute_model(
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/vllm/executor/gpu_executor.py", line 88, in execute_model
ERROR 01-03 10:56:05 engine.py:135] output = self.driver_worker.execute_model(execute_model_req)
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/vllm/worker/worker_base.py", line 343, in execute_model
ERROR 01-03 10:56:05 engine.py:135] output = self.model_runner.execute_model(
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/torch/utils/_contextlib.py", line 116, in decorate_context
ERROR 01-03 10:56:05 engine.py:135] return func(*args, **kwargs)
ERROR 01-03 10:56:05 engine.py:135] File "/usr/local/lib/python3.10/dist-packages/vllm/worker/model_runner_base.py", line 146, in _wrapper
ERROR 01-03 10:56:05 engine.py:135] raise type(err)(f"Error in model execution: "
ERROR 01-03 10:56:05 engine.py:135] RuntimeError: Error in model execution: CUDA error: an illegal memory access was encountered
ERROR 01-03 10:56:05 engine.py:135] CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
ERROR 01-03 10:56:05 engine.py:135] For debugging consider passing CUDA_LAUNCH_BLOCKING=1
ERROR 01-03 10:56:05 engine.py:135] Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.
ERROR 01-03 10:56:05 engine.py:135]
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 259, in call
await wrap(partial(self.listen_for_disconnect, receive))
File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 255, in wrap
await func()
File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 232, in listen_for_disconnect
message = await receive()
File "/usr/local/lib/python3.10/dist-packages/uvicorn/protocols/http/httptools_impl.py", line 563, in receive
await self.message_event.wait()
File "/usr/lib/python3.10/asyncio/locks.py", line 214, in wait
await fut
asyncio.exceptions.CancelledError: Cancelled by cancel scope 7f890016f280

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/uvicorn/protocols/http/httptools_impl.py", line 409, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/usr/local/lib/python3.10/dist-packages/uvicorn/middleware/proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/applications.py", line 113, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 187, in call
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 165, in call
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/cors.py", line 85, in call
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 715, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 735, in app
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 288, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 74, in app
await response(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 252, in call
async with anyio.create_task_group() as task_group:
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 815, in aexit
raise BaseExceptionGroup(
exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)

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.
@Flynn-Zh Flynn-Zh added the bug Something isn't working label Jan 3, 2025
@Flynn-Zh
Copy link
Author

Flynn-Zh commented Jan 3, 2025

server start cmd:python3 -m vllm.entrypoints.openai.api_server --model Qwen/Qwen2-72B-Instruct-GPTQ-Int4/ --host 0.0.0.0 --port 3521 --max-num-seqs 100 --served-model-name qwen --gpu-memory-utilization 0.9 --quantization gptq_marlin --tensor-parallel-size 1 --enable-prefix-caching --disable-log-requests

@Flynn-Zh
Copy link
Author

Flynn-Zh commented Jan 3, 2025

use flashinfer 0.1.6,it has been tested for over an hour and there have been no issues at the moment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant