verl icon indicating copy to clipboard operation
verl copied to clipboard

Error when running multi-turn rollout

Open xhr5678 opened this issue 1 year ago • 5 comments

I tried to run examples/sglang_multiturn/run_qwen2.5-3b_gsm8k_multiturn.sh and encountered a bug:

(WorkerDict pid=108920) [2025-05-29 15:17:45 TP1] TpModelWorkerClient hit an exception: Traceback (most recent call last):
(WorkerDict pid=108920)   File "/workspace/verl/venv/lib/python3.10/site-packages/sglang/srt/managers/tp_worker_overlap_thread.py", line 118, in forward_thread_func
(WorkerDict pid=108920)     self.forward_thread_func_()
(WorkerDict pid=108920)   File "/workspace/verl/venv/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
(WorkerDict pid=108920)     return func(*args, **kwargs)
(WorkerDict pid=108920)   File "/workspace/verl/venv/lib/python3.10/site-packages/sglang/srt/managers/tp_worker_overlap_thread.py", line 151, in forward_thread_func_
(WorkerDict pid=108920)     self.worker.forward_batch_generation(
(WorkerDict pid=108920)   File "/workspace/verl/venv/lib/python3.10/site-packages/sglang/srt/managers/tp_worker.py", line 202, in forward_batch_generation
(WorkerDict pid=108920)     logits_output, can_run_cuda_graph = self.model_runner.forward(
(WorkerDict pid=108920)   File "/workspace/verl/venv/lib/python3.10/site-packages/sglang/srt/model_executor/model_runner.py", line 1109, in forward
(WorkerDict pid=108920)     ret = self.forward_decode(forward_batch, pp_proxy_tensors=pp_proxy_tensors)
(WorkerDict pid=108920)   File "/workspace/verl/venv/lib/python3.10/site-packages/sglang/srt/model_executor/model_runner.py", line 1046, in forward_decode
(WorkerDict pid=108920)     self.attn_backend.init_forward_metadata(forward_batch)
(WorkerDict pid=108920)   File "/workspace/verl/venv/lib/python3.10/site-packages/sglang/srt/layers/attention/flashinfer_backend.py", line 199, in init_forward_metad
ata
(WorkerDict pid=108920)     self.indices_updater_decode.update(
(WorkerDict pid=108920)   File "/workspace/verl/venv/lib/python3.10/site-packages/sglang/srt/layers/attention/flashinfer_backend.py", line 577, in update_single_wrap
per
(WorkerDict pid=108920)     self.call_begin_forward(
(WorkerDict pid=108920)   File "/workspace/verl/venv/lib/python3.10/site-packages/sglang/srt/layers/attention/flashinfer_backend.py", line 687, in call_begin_forward
(WorkerDict pid=108920)     wrapper.begin_forward(
(WorkerDict pid=108920)   File "/workspace/verl/venv/lib/python3.10/site-packages/flashinfer/decode.py", line 835, in plan
(WorkerDict pid=108920)     indptr_host = indptr.to("cpu")
(WorkerDict pid=108920) RuntimeError: CUDA error: unspecified launch failure
(WorkerDict pid=108920) CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
(WorkerDict pid=108920) For debugging consider passing CUDA_LAUNCH_BLOCKING=1
(WorkerDict pid=108920) Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
(WorkerDict pid=108920)
(WorkerDict pid=108920)
(WorkerDict pid=108920) [rank1]:[E529 15:17:45.020209587 ProcessGroupNCCL.cpp:1895] [PG ID 2 PG GUID 3 Rank 1] Process group watchdog thread terminated with exceptio
n: CUDA error: unspecified launch failure
(WorkerDict pid=108920) CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
(WorkerDict pid=108920) For debugging consider passing CUDA_LAUNCH_BLOCKING=1
(WorkerDict pid=108920) Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
(WorkerDict pid=108920)
(WorkerDict pid=108920) Exception raised from c10_cuda_check_implementation at /pytorch/c10/cuda/CUDAException.cpp:43 (most recent call first):
(WorkerDict pid=108920) frame #0: c10::Error::Error(c10::SourceLocation, std::string) + 0x96 (0x7f8fdf36c1b6 in /workspace/verl/venv/lib/python3.10/site-packages/tor
ch/lib/libc10.so)
(WorkerDict pid=108920) frame #1: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::string const&) + 0x64 (0x7f8fdf315a76 in /workspace/verl/v
env/lib/python3.10/site-packages/torch/lib/libc10.so)
(WorkerDict pid=108920) frame #2: c10::cuda::c10_cuda_check_implementation(int, char const*, char const*, int, bool) + 0x118 (0x7f8fdf7ed918 in /workspace/verl/venv/
lib/python3.10/site-packages/torch/lib/libc10_cuda.so)
(WorkerDict pid=108920) frame #3: c10d::ProcessGroupNCCL::WorkNCCL::finishedGPUExecutionInternal() const + 0x56 (0x7f8f8d61c556 in /workspace/verl/venv/lib/python3.1
0/site-packages/torch/lib/libtorch_cuda.so)
(WorkerDict pid=108920) frame #4: c10d::ProcessGroupNCCL::WorkNCCL::isCompleted() + 0xa0 (0x7f8f8d6298c0 in /workspace/verl/venv/lib/python3.10/site-packages/torch/l
ib/libtorch_cuda.so)
(WorkerDict pid=108920) frame #5: c10d::ProcessGroupNCCL::watchdogHandler() + 0x617 (0x7f8f8d62b557 in /workspace/verl/venv/lib/python3.10/site-packages/torch/lib/li
btorch_cuda.so)
(WorkerDict pid=108920) frame #6: c10d::ProcessGroupNCCL::ncclCommWatchdog() + 0x14d (0x7f8f8d62c6ed in /workspace/verl/venv/lib/python3.10/site-packages/torch/lib/l
ibtorch_cuda.so)
(WorkerDict pid=108920) frame #7: <unknown function> + 0xdc253 (0x7f8fe9dec253 in /usr/lib/x86_64-linux-gnu/libstdc++.so.6)
(WorkerDict pid=108920) frame #8: <unknown function> + 0x94ac3 (0x7f8fec16eac3 in /usr/lib/x86_64-linux-gnu/libc.so.6)
(WorkerDict pid=108920) frame #9: <unknown function> + 0x126850 (0x7f8fec200850 in /usr/lib/x86_64-linux-gnu/libc.so.6)
(WorkerDict pid=108920)
(WorkerDict pid=108920) terminate called after throwing an instance of 'c10::DistBackendError'
(WorkerDict pid=108920)   what():  [PG ID 2 PG GUID 3 Rank 1] Process group watchdog thread terminated with exception: CUDA error: unspecified launch failure
(WorkerDict pid=108920) CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
(WorkerDict pid=108920) For debugging consider passing CUDA_LAUNCH_BLOCKING=1
(WorkerDict pid=108920) Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
(WorkerDict pid=108920)
(WorkerDict pid=108920) Exception raised from c10_cuda_check_implementation at /pytorch/c10/cuda/CUDAException.cpp:43 (most recent call first):
(WorkerDict pid=108920) frame #0: c10::Error::Error(c10::SourceLocation, std::string) + 0x96 (0x7f8fdf36c1b6 in /workspace/verl/venv/lib/python3.10/site-packages/tor
ch/lib/libc10.so)
(WorkerDict pid=108920) frame #1: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::string const&) + 0x64 (0x7f8fdf315a76 in /workspace/verl/v
env/lib/python3.10/site-packages/torch/lib/libc10.so)
(WorkerDict pid=108920) frame #2: c10::cuda::c10_cuda_check_implementation(int, char const*, char const*, int, bool) + 0x118 (0x7f8fdf7ed918 in /workspace/verl/venv/
lib/python3.10/site-packages/torch/lib/libc10_cuda.so)
(WorkerDict pid=108920) frame #3: c10d::ProcessGroupNCCL::WorkNCCL::finishedGPUExecutionInternal() const + 0x56 (0x7f8f8d61c556 in /workspace/verl/venv/lib/python3.1
0/site-packages/torch/lib/libtorch_cuda.so)
(WorkerDict pid=108920) frame #4: c10d::ProcessGroupNCCL::WorkNCCL::isCompleted() + 0xa0 (0x7f8f8d6298c0 in /workspace/verl/venv/lib/python3.10/site-packages/torch/l
ib/libtorch_cuda.so)
(WorkerDict pid=108920) frame #5: c10d::ProcessGroupNCCL::watchdogHandler() + 0x617 (0x7f8f8d62b557 in /workspace/verl/venv/lib/python3.10/site-packages/torch/lib/li
btorch_cuda.so)
(WorkerDict pid=108920) frame #6: c10d::ProcessGroupNCCL::ncclCommWatchdog() + 0x14d (0x7f8f8d62c6ed in /workspace/verl/venv/lib/python3.10/site-packages/torch/lib/l
ibtorch_cuda.so)
(WorkerDict pid=108920) frame #7: <unknown function> + 0xdc253 (0x7f8fe9dec253 in /usr/lib/x86_64-linux-gnu/libstdc++.so.6)
(WorkerDict pid=108920) frame #8: <unknown function> + 0x94ac3 (0x7f8fec16eac3 in /usr/lib/x86_64-linux-gnu/libc.so.6)
(WorkerDict pid=108920) frame #9: <unknown function> + 0x126850 (0x7f8fec200850 in /usr/lib/x86_64-linux-gnu/libc.so.6)
(WorkerDict pid=108920)
(WorkerDict pid=108920) Exception raised from ncclCommWatchdog at /pytorch/torch/csrc/distributed/c10d/ProcessGroupNCCL.cpp:1901 (most recent call first):
(WorkerDict pid=108920) frame #0: c10::Error::Error(c10::SourceLocation, std::string) + 0x96 (0x7f8fdf36c1b6 in /workspace/verl/venv/lib/python3.10/site-packages/tor
ch/lib/libc10.so)
(WorkerDict pid=108920) frame #1: <unknown function> + 0xe5c6fc (0x7f8f8d2876fc in /workspace/verl/venv/lib/python3.10/site-packages/torch/lib/libtorch_cuda.so)
(WorkerDict pid=108920) frame #2: <unknown function> + 0xdc253 (0x7f8fe9dec253 in /usr/lib/x86_64-linux-gnu/libstdc++.so.6)
(WorkerDict pid=108920) frame #3: <unknown function> + 0x94ac3 (0x7f8fec16eac3 in /usr/lib/x86_64-linux-gnu/libc.so.6)
(WorkerDict pid=108920) frame #4: <unknown function> + 0x126850 (0x7f8fec200850 in /usr/lib/x86_64-linux-gnu/libc.so.6)
(WorkerDict pid=108920)
(WorkerDict pid=108920) Fatal Python error: Aborted
(WorkerDict pid=108920)
(WorkerDict pid=108920) Thread 0x00007f8dbab1f640 (most recent call first):
(WorkerDict pid=108920)   File "/usr/lib/python3.10/threading.py", line 324 in wait
(WorkerDict pid=108920)   File "/usr/lib/python3.10/threading.py", line 607 in wait
(WorkerDict pid=108920)   File "/workspace/verl/venv/lib/python3.10/site-packages/tqdm/_monitor.py", line 60 in run
(WorkerDict pid=108920)   File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
(WorkerDict pid=108920)   File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap
(WorkerDict pid=108920)
(WorkerDict pid=108920) Thread 0x00007f8e4b7fe640 (most recent call first):
(WorkerDict pid=108920)   File "/workspace/verl/venv/lib/python3.10/site-packages/sglang/srt/managers/scheduler.py", line 1798 in watchdog_thread
(WorkerDict pid=108920)   File "/usr/lib/python3.10/threading.py", line [2025-05-29 15:17:45] Received sigquit from a child process. It usually means the child faile
d.
(WorkerDict pid=108920) 953 in run
(WorkerDict pid=108920)   File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
(WorkerDict pid=108920)   File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap
(WorkerDict pid=108920)
(WorkerDict pid=108920) Thread 0x00007f8efebff640 (most recent call first):
(WorkerDict pid=108920)   File "/workspace/verl/venv/lib/python3.10/site-packages/torch/_inductor/compile_worker/subproc_pool.py", line 53 in _recv_msg
(WorkerDict pid=108920)   File "/workspace/verl/venv/lib/python3.10/site-packages/torch/_inductor/compile_worker/subproc_pool.py", line 161 in _read_thread
(WorkerDict pid=108920)   File "/usr/lib/python3.10/threading.py", line 953 in run
(WorkerDict pid=108920)   File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
(WorkerDict pid=108920)   File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap
(WorkerDict pid=108920)
(WorkerDict pid=108920) Thread 0x00007f8fe9cddd00 (most recent call first):
(WorkerDict pid=108920)   File "/usr/lib/python3.10/threading.py", line 320 in wait
(WorkerDict pid=108920)   File "/usr/lib/python3.10/threading.py", line 607 in wait
(WorkerDict pid=108920)   File "/workspace/verl/venv/lib/python3.10/site-packages/sglang/srt/managers/tp_worker_overlap_thread.py", line 192 in resolve_last_batch_re
sult
(WorkerDict pid=108920)   File "/workspace/verl/venv/lib/python3.10/site-packages/sglang/srt/managers/scheduler_output_processor_mixin.py", line 200 in process_batch
_result_decode
(WorkerDict pid=108920)   File "/workspace/verl/venv/lib/python3.10/site-packages/sglang/srt/managers/scheduler.py", line 1592 in process_batch_result
(WorkerDict pid=108920)   File "/workspace/verl/venv/lib/python3.10/site-packages/sglang/srt/managers/scheduler.py", line 683 in event_loop_overlap
(WorkerDict pid=108920)   File "/workspace/verl/venv/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116 in decorate_context
(WorkerDict pid=108920)   File "/workspace/verl/venv/lib/python3.10/site-packages/sglang/srt/managers/scheduler.py", line 2269 in run_scheduler_process
(WorkerDict pid=108920)   File "/usr/lib/python3.10/multiprocessing/process.py", line 108 in run
(WorkerDict pid=108920)   File "/usr/lib/python3.10/multiprocessing/process.py", line 314 in _bootstrap
(WorkerDict pid=108920)   File "/usr/lib/python3.10/multiprocessing/spawn.py", line 129 in _main
(WorkerDict pid=108920)   File "/usr/lib/python3.10/multiprocessing/spawn.py", line 116 in spawn_main
(WorkerDict pid=108920)   File "<string>", line 1 in <module>
(WorkerDict pid=108920)
(WorkerDict pid=108920) Extension modules: msgpack._cmsgpack, google._upb._message, psutil._psutil_linux, psutil._psutil_posix, setproctitle, yaml._yaml, charset_nor
malizer.md, requests.packages.charset_normalizer.md, requests.packages.chardet.md, uvloop.loop, ray._raylet, numpy._core._multiarray_umath, numpy.linalg._umath_linal
g, multidict._multidict, yarl._quoting_c, propcache._helpers_c, aiohttp._http_writer, aiohttp._http_parser, aiohttp._websocket.mask, aiohttp._websocket.reader_c, tor
ch._C, torch._C._dynamo.autograd_compiler, torch._C._dynamo.eval_frame, torch._C._dynamo.guards, torch._C._dynamo.utils, torch._C._fft, torch._C._linalg, torch._C._n
ested, torch._C._nn, torch._C._sparse, torch._C._special, zmq.backend.cython._zmq, markupsafe._speedups, PIL._imaging, PIL._imagingft, numpy.random._common, numpy.ra
ndom.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy
.random._generator, sentencepiece._sentencepiece, cuda.bindings._lib.utils, cuda.bindings._bindings.cydriver, cuda.bindings.cydriver, cuda.bindings.driver, cuda.bind
ings._bindings.cynvrtc, cuda.bindings.cynvrtc, cuda.bindings.nvrtc, regex._regex, cuda_utils, __triton_launcher (total: 55)
(raylet) A worker died or was killed while executing a task by an unexpected system error. To troubleshoot the problem, check the logs for the dead worker. RayTask I
D: ffffffffffffffffd9698d98d9d7d7f82154ab5f01000000 Worker ID: 318fa93e7cd12a1cdc120ba62c01c8832a9366842b0466595f87e4e0 Node ID: 20b36f35a6194abd6dbdb7fce05bcf5ad769
0232ed22dc99bc0f3698 Worker IP address: 172.31.16.7 Worker port: 42497 Worker PID: 108920 Worker exit type: SYSTEM_ERROR Worker exit detail: Worker unexpectedly exit
s with a connection error code 2. End of file. There are some potential root causes. (1) The process is killed by SIGKILL by OOM killer due to high memory usage. (2)
 ray stop --force is called. (3) The worker is crashed unexpectedly due to SIGSEGV or other unexpected errors.
Error executing job with overrides: ['algorithm.adv_estimator=grpo', 'data.train_batch_size=4', 'data.max_prompt_length=1024', 'data.max_response_length=1024', 'data
.filter_overlong_prompts=True', 'data.truncation=error', 'data.return_raw_chat=True', 'actor_rollout_ref.model.path=Qwen/Qwen2.5-3B-Instruct', 'actor_rollout_ref.act
or.optim.lr=1e-6', 'actor_rollout_ref.model.use_remove_padding=True', 'actor_rollout_ref.actor.ppo_mini_batch_size=4', 'actor_rollout_ref.actor.ppo_micro_batch_size_
per_gpu=1', 'actor_rollout_ref.actor.use_kl_loss=True', 'actor_rollout_ref.actor.kl_loss_coef=0.001', 'actor_rollout_ref.actor.kl_loss_type=low_var_kl', 'actor_rollo
ut_ref.actor.entropy_coeff=0', 'actor_rollout_ref.model.enable_gradient_checkpointing=True', 'actor_rollout_ref.actor.fsdp_config.param_offload=False', 'actor_rollou
t_ref.actor.fsdp_config.optimizer_offload=False', 'actor_rollout_ref.rollout.log_prob_micro_batch_size_per_gpu=32', 'actor_rollout_ref.rollout.tensor_model_parallel_
size=2', 'actor_rollout_ref.rollout.name=sglang_async', 'actor_rollout_ref.rollout.gpu_memory_utilization=0.5', 'actor_rollout_ref.rollout.n=16', 'actor_rollout_ref.
ref.log_prob_micro_batch_size_per_gpu=32', 'actor_rollout_ref.ref.fsdp_config.param_offload=True', 'algorithm.use_kl_in_reward=False', 'trainer.critic_warmup=0', 'tr
ainer.logger=[console,wandb]', 'trainer.project_name=gsm8k_async_rl', 'trainer.experiment_name=qwen2.5-3b_function_rm-gsm8k-async-sgl-multi-w-tool-verify-n16', 'trai
ner.n_gpus_per_node=8', 'trainer.nnodes=1', 'trainer.save_freq=-1', 'trainer.test_freq=20', 'data.train_files=/root/data/gsm8k/train.parquet', 'data.val_files=/root/
data/gsm8k/test.parquet', 'actor_rollout_ref.rollout.multi_turn.tool_config_path=/workspace/verl/examples/sglang_multiturn/config/tool_config/gsm8k_tool_config.yaml'
, 'trainer.total_epochs=5']
Traceback (most recent call last):
  File "/workspace/verl/verl/trainer/main_ppo.py", line 63, in main
    run_ppo(config)
  File "/workspace/verl/verl/trainer/main_ppo.py", line 76, in run_ppo
    ray.get(runner.run.remote(config))
  File "/workspace/verl/venv/lib/python3.10/site-packages/ray/_private/auto_init_hook.py", line 21, in auto_init_wrapper
    return fn(*args, **kwargs)
  File "/workspace/verl/venv/lib/python3.10/site-packages/ray/_private/client_mode_hook.py", line 103, in wrapper
    return func(*args, **kwargs)
  File "/workspace/verl/venv/lib/python3.10/site-packages/ray/_private/worker.py", line 2822, in get
    values, debugger_breakpoint = worker.get_objects(object_refs, timeout=timeout)
  File "/workspace/verl/venv/lib/python3.10/site-packages/ray/_private/worker.py", line 930, in get_objects
    raise value.as_instanceof_cause()
ray.exceptions.RayTaskError(ActorDiedError): ray::TaskRunner.run() (pid=99081, ip=172.31.16.7, actor_id=233f9be049e817f0f1fb75e501000000, repr=<main_ppo.TaskRunner o
bject at 0x7f915beda140>)
  File "/workspace/verl/verl/trainer/main_ppo.py", line 191, in run
    trainer.fit()
  File "/workspace/verl/verl/trainer/ppo/ray_trainer.py", line 953, in fit
    val_metrics = self._validate()
  File "/workspace/verl/verl/trainer/ppo/ray_trainer.py", line 684, in _validate
    test_output_gen_batch_padded = self.actor_rollout_wg.generate_sequences(test_gen_batch_padded)
  File "/workspace/verl/verl/single_controller/ray/base.py", line 50, in func
    output = ray.get(output)
ray.exceptions.ActorDiedError: The actor died unexpectedly before finishing this task.
        class_name: create_colocated_worker_cls.<locals>.WorkerDict
        actor_id: d9698d98d9d7d7f82154ab5f01000000
        pid: 108920
        name: S9sqlPWorkerDict_0:4
        namespace: 374629ac-23d1-4e8e-9774-e6bb6d90a592
        ip: 172.31.16.7
The actor is dead because its worker process has died. Worker exit type: SYSTEM_ERROR Worker exit detail: Worker unexpectedly exits with a connection error code 2. E
nd of file. There are some potential root causes. (1) The process is killed by SIGKILL by OOM killer due to high memory usage. (2) ray stop --force is called. (3) Th
e worker is crashed unexpectedly due to SIGSEGV or other unexpected errors.

I used the latest sglang image ocss884/verl-sglang:ngc-th2.6.0-cu126-sglang0.4.6.post4, and then run

docker run --name sglang -it --gpus all --net=host --shm-size="10g" --privileged -v sglang:/workspace docker.io/ocss884/verl-sglang:ngc-th2.6.0-cu126-sglang0.4.6.post4 bash

git clone https://github.com/volcengine/verl && cd verl
pip3 install -e .[sglang]
pip install flash_attn-2.7.4.post1+cu12torch2.6cxx11abiFALSE-cp310-cp310-linux_x86_64.whl ### it's in the image

#data preprocess
cd examples/data_preprocess
python3 gsm8k_multiturn_w_tool.py

Then I set NCCL_NET=Socket ( IB is not supported on the machine ) and set in the script data.train_batch_size=4, actor_rollout_ref.actor.ppo_mini_batch_size=4 and actor_rollout_ref.actor.ppo_micro_batch_size_per_gpu=1. Finally I ran the script and the bug appeared. When I disabled multi-turn rollout it works well. How to fix it?

xhr5678 avatar May 29 '25 16:05 xhr5678

After the output you showed, is there the following output

The actor is dead because its worker process has died. Worker exit type: SYSTEM_ERROR Worker exit detail: Worker unexpectedly exits with a connection error code 2. End of file. There are some potential root causes. (1) The process is killed by SIGKILL by OOM killer due to high memory usage. (2) ray stop --force is called. (3) The worker is crashed unexpectedly due to SIGSEGV or other unexpected errors.
(WorkerDict pid=142937) [torch_memory_saver.cpp] CUresult error  result=2 file=csrc/torch_memory_saver.cpp func=cu_mem_create line=104
(WorkerDict pid=142937) [2025-06-25 14:48:17 TP1] Scheduler hit an exception: Traceback (most recent call last):
(WorkerDict pid=142937)   File "/home/hanling.lh/.conda/envs/verl_py310/lib/python3.10/site-packages/sglang/srt/managers/scheduler.py", line 2311, in run_scheduler_process
(WorkerDict pid=142937)     scheduler.event_loop_overlap()
(WorkerDict pid=142937)   File "/home/hanling.lh/.conda/envs/verl_py310/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
(WorkerDict pid=142937)     return func(*args, **kwargs) [repeated 2x across cluster]
(WorkerDict pid=142937)   File "/home/hanling.lh/.conda/envs/verl_py310/lib/python3.10/site-packages/sglang/srt/managers/scheduler.py", line 661, in event_loop_overlap
(WorkerDict pid=142937)     recv_reqs = self.recv_requests()
(WorkerDict pid=142937)   File "/home/hanling.lh/.conda/envs/verl_py310/lib/python3.10/site-packages/sglang/srt/managers/scheduler.py", line 872, in recv_requests
(WorkerDict pid=142937)     recv_reqs = broadcast_pyobj(
(WorkerDict pid=142937)   File "/home/hanling.lh/.conda/envs/verl_py310/lib/python3.10/site-packages/sglang/srt/utils.py", line 950, in broadcast_pyobj
(WorkerDict pid=142937)     dist.broadcast(tensor_size, src=src, group=dist_group)
(WorkerDict pid=142937)   File "/home/hanling.lh/.conda/envs/verl_py310/lib/python3.10/site-packages/torch/distributed/c10d_logger.py", line 81, in wrapper
(WorkerDict pid=142937)   File "/home/hanling.lh/.conda/envs/verl_py310/lib/python3.10/site-packages/torch/distributed/distributed_c10d.py", line 2730, in broadcast
(WorkerDict pid=142937)     work.wait()
(WorkerDict pid=142937) RuntimeError: [/pytorch/third_party/gloo/gloo/transport/tcp/pair.cc:534] Connection closed by peer [33.103.193.204]:23239
(WorkerDict pid=142937) [2025-06-25 14:48:17] Received sigquit from a child process. It usually means the child failed.
(raylet) A worker died or was killed while executing a task by an unexpected system error. To troubleshoot the problem, check the logs for the dead worker. RayTask ID: ffffffffffffffff016d4d902b845133a1e4db5201000000 Worker ID: 9be9a2f32cc226055685860b18b94a0a59cc8ff5de88e288e776dce4 Node ID: f6bc89720387de04d4b1793ac8a8b1de838a9711c88181d68f05bb38 Worker IP address: 33.103.193.204 Worker port: 35513 Worker PID: 142937 Worker exit type: SYSTEM_ERROR Worker exit detail: Worker unexpectedly exits with a connection error code 2. End of file. There are some potential root causes. (1) The process is killed by SIGKILL by OOM killer due to high memory usage. (2) ray stop --force is called. (3) The worker is crashed unexpectedly due to SIGSEGV or other unexpected errors.

LH019 avatar Jun 25 '25 07:06 LH019

hey bro, same problem, how do you fix this bug

Jnnndjjsnxbhhunheng avatar Aug 02 '25 10:08 Jnnndjjsnxbhhunheng

same problem

xhwang22 avatar Oct 07 '25 16:10 xhwang22

same problem

HututuAI avatar Dec 02 '25 10:12 HututuAI

same problem

zhaichenhao1889 avatar Mar 16 '26 02:03 zhaichenhao1889