Repository navigation
Open
Description
After running for a while, it gives this error:
[2025-06-24 22:16:17 DP3 TP0] active reqs: ['2d0f3323f51c4ea1bf18edbefe6b2527', '5ea16025d51d4f8390e35457c0ac4ac2', '11e73e4b85834401ab6d3c9fcc0f9fd3', '76d8061e102248ca88dca42dacdb5757', 'c5772
207536d46aab5d97d80b552946b', 'b1ec3dd3a48246f3bc8fe8e633da9be7', 'b4db89895c9d406495def02b2ff8da23', '90b27a92ac6c456180a3951e9596981c', '038e83ba2a554c27983786743db78933', '69b3a5da0c98441bb95
301a2741bff27', 'b270af2652d043b4aa7dde9a2d4c052f', '2c6d00721d584cd1a8b077af29f12809', 'a80e0d0ab9a6478cb3384cef056af789']
[2025-06-24 22:16:17 DP3 TP0] zombie reqs: []
[2025-06-24 22:16:17 DP3 TP0] p2c_map: {}
[2025-06-24 22:16:17 DP1 TP1] Scheduler hit an exception: Traceback (most recent call last):
File "/home/longlian/Multiverse-Engine/sglang/python/sglang/srt/managers/scheduler.py", line 2570, in run_scheduler_process
scheduler.event_loop_normal()
File "/home/longlian/miniconda3/envs/multiverse/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/longlian/Multiverse-Engine/sglang/python/sglang/srt/managers/scheduler.py", line 652, in event_loop_normal
result = self.run_batch(batch)
^^^^^^^^^^^^^^^^^^^^^
File "/home/longlian/Multiverse-Engine/sglang/python/sglang/srt/managers/scheduler.py", line 1876, in run_batch
self.tp_worker.forward_batch_generation(model_worker_batch)
File "Multiverse-Engine/sglang/python/sglang/srt/managers/tp_worker.py", line 206, in forward_batch_generation
logits_output = self.model_runner.forward(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/longlian/Multiverse-Engine/sglang/python/sglang/srt/model_executor/model_runner.py", line 1098, in forward
return self.forward_extend(
^^^^^^^^^^^^^^^^^^^^
File "/home/longlian/Multiverse-Engine/sglang/python/sglang/srt/model_executor/model_runner.py", line 1057, in forward_extend
return self.model.forward(
^^^^^^^^^^^^^^^^^^^
File "/home/longlian/miniconda3/envs/multiverse/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "Multiverse-Engine/sglang/python/sglang/srt/models/qwen2.py", line 389, in forward
return self.logits_processor(
^^^^^^^^^^^^^^^^^^^^^^
File "/home/longlian/miniconda3/envs/multiverse/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/longlian/miniconda3/envs/multiverse/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/longlian/Multiverse-Engine/sglang/python/sglang/srt/layers/logits_processor.py", line 246, in forward
last_index = torch.cumsum(logits_metadata.extend_seq_lens, dim=0) - 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
RuntimeError: CUDA error: an illegal memory access was encountered
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
[rank0]:[E624 22:16:17.511365919 ProcessGroupNCCL.cpp:1895] [PG ID 2 PG GUID 3 Rank 0] Process group watchdog thread terminated with exception: CUDA error: an illegal memory access was encounter
ed
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
Metadata
Metadata
Assignees
Labels
No labels
Activity
Oasis-Git commentedon Jun 27, 2025
Hi @TonyLianLong ,
This problem is mainly triggered in large batch size inference scenerio and we are going to fix it. By now please reduce your batch size and use tp instead of dp to make engine work as expected.