verl icon indicating copy to clipboard operation
verl copied to clipboard

Program hang after random number of runs without error

Open YushuYan064 opened this issue 4 months ago • 4 comments

System Info

Hi,

I am new to VERL and recently encountered an issue where the program hangs during rollout generation after a few runs. The issue occurs intermittently: sometimes it happens during validation, and sometimes during training. I have not observed any error messages in the logs. The only symptom I found is that the GPU utilization drops to 0%.

Here is the nvidia-smi output when the issue occurs:

Tue Jul 28 11:37:56 2026       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 595.71.05              Driver Version: 595.71.05      CUDA Version: 13.2     |
+-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA RTX A5000               Off |   00000000:01:00.0 Off |                  Off |
| 30%   41C    P8             18W /  230W |   18528MiB /  24564MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
|   1  NVIDIA RTX A5000               Off |   00000000:2B:00.0  On |                  Off |
| 32%   60C    P8             39W /  230W |   17708MiB /  24564MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
|   2  NVIDIA RTX A5000               Off |   00000000:41:00.0 Off |                  Off |
| 31%   58C    P8             23W /  230W |   17460MiB /  24564MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
|   3  NVIDIA RTX A5000               Off |   00000000:61:00.0 Off |                  Off |
| 30%   52C    P8             21W /  230W |   17460MiB /  24564MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A            4879      G   /usr/lib/xorg/Xorg                        4MiB |
|    0   N/A  N/A          859661      C   ray::WorkerDict                         536MiB |
|    0   N/A  N/A          861261      C   ray::SGLangHttpServer                   262MiB |
|    0   N/A  N/A          861262      C   ray::SGLangHttpServer                   262MiB |
|    0   N/A  N/A          861263      C   ray::SGLangHttpServer                   262MiB |
|    0   N/A  N/A          861264      C   ray::SGLangHttpServer                   262MiB |
|    0   N/A  N/A          861936      C   sglang::scheduler                     16826MiB |
|    1   N/A  N/A            4879      G   /usr/lib/xorg/Xorg                      142MiB |
|    1   N/A  N/A            5146      G   /usr/bin/gnome-shell                    107MiB |
|    1   N/A  N/A          859662      C   ray::WorkerDict                         536MiB |
|    1   N/A  N/A          861930      C   sglang::scheduler                     16678MiB |
|    1   N/A  N/A         3556143      G   ...rack-uuid=3190708995682289984         82MiB |
|    2   N/A  N/A            4879      G   /usr/lib/xorg/Xorg                        4MiB |
|    2   N/A  N/A          859663      C   ray::WorkerDict                         538MiB |
|    2   N/A  N/A          861933      C   sglang::scheduler                     16822MiB |
|    3   N/A  N/A            4879      G   /usr/lib/xorg/Xorg                        4MiB |
|    3   N/A  N/A          859664      C   ray::WorkerDict                         538MiB |
|    3   N/A  N/A          861927      C   sglang::scheduler                     16822MiB |
+-----------------------------------------------------------------------------------------+

I am not sure how to further diagnose this issue. Does anyone have suggestions on how to identify the cause of the hang?

Information

  • [ ] The official example scripts
  • [ ] My own modified scripts

Tasks

  • [ ] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • [ ] My own task or dataset (give details below)

Reproduction

N/A

Expected behavior

Identify the cause.

YushuYan064 avatar Jul 28 '26 19:07 YushuYan064

Thanks for reporting this. The current nvidia-smi snapshot confirms that the SGLang/Ray processes remain alive while the GPUs are idle, but it is not enough to distinguish an SGLang request stall, a Ray wait, a weight-sync/NCCL hang, or an external tool/data-path wait.

Could you please provide:

  1. The full output of python scripts/diagnose.py, together with the verl release/commit SHA.
  2. The complete launch command and resolved Hydra config, especially the model, rollout backend/mode, TP/DP settings, actor strategy, and whether agent loop, multi-turn, or tool calls are enabled.
  3. What “after a few runs” means exactly, the last completed training phase, and the final ~200 lines from the driver, WorkerDict, and SGLang scheduler logs.
  4. At the time of the hang, ray status, ray list actors --detail, and, if permitted, py-spy dump --native for one blocked WorkerDict and SGLang scheduler process.
  5. Whether it still reproduces with validation disabled and with multi-turn/tools disabled, including the approximate reproduction rate.

These details should let us first determine whether the wait is inside rollout generation itself or at the transition between training and rollout.

kaining-never-stop avatar Jul 31 '26 06:07 kaining-never-stop

Hi,

The requested information is given below. Some private information is hided.

  1. full output of python scripts/diagnose.py
----------Python Info----------
Version      : 3.12.13
Compiler     : GCC 14.3.0
Build        : ('main', 'Jul  9 2026 14:38:16')
Arch         : ('64bit', 'ELF')
------------Pip Info-----------
Version      : 26.1.2
Directory    : /home/.../miniconda3/envs/.../lib/python3.12/site-packages/pip
vllm	     : 0.11.0
sglang	     : 0.5.2
ray	     : 2.56.1
torch	     : 2.8.0
----------verl Info-----------
Version      : 0.6.1
Directory    : /home/.../verl/verl
Commit Hash  : 3fe0a29975e1b02ae2bd1dec249f7807dd7966f5
----------Platform Info----------
Platform     : Linux-6.8.0-136-generic-x86_64-with-glibc2.35
system       : Linux
node         : ...
release      : 6.8.0-136-generic
version      : #136~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul  3 16:29:11 UTC 
----------Environment----------
CXX="/home/.../miniconda3/envs/.../bin/x86_64-conda-linux-gnu-c++"
CC="/home/.../miniconda3/envs/.../bin/x86_64-conda-linux-gnu-cc"
CUDA Runtime : 12.8
CUDA Compiler : Cuda compilation tools, release 12.8, V12.8.93
----------System Info----------
CPU Memory	: 503.49 GB
GPU Count	: 4
GPU 1	Type    : NVIDIA RTX A5000
GPU 1	Memory  : 23.99 GB
GPU 2	Type    : NVIDIA RTX A5000
GPU 2	Memory  : 23.99 GB
GPU 3	Type    : NVIDIA RTX A5000
GPU 3	Memory  : 23.99 GB
GPU 4	Type    : NVIDIA RTX A5000
GPU 4	Memory  : 23.99 GB
  1. Configuration
actor_rollout_ref:
  actor:
    optim:
      _target_: verl.workers.config.FSDPOptimizerConfig
      optimizer: AdamW
      optimizer_impl: torch.optim
      lr: 1.0e-06
      lr_warmup_steps_ratio: 0.0
      total_training_steps: -1
      weight_decay: 0.01
      lr_warmup_steps: -1
      betas:
      - 0.9
      - 0.999
      clip_grad: 1.0
      min_lr_ratio: 0.0
      num_cycles: 0.5
      lr_scheduler_type: constant
      warmup_style: null
      override_optimizer_config: null
    fsdp_config:
      _target_: verl.workers.config.FSDPEngineConfig
      wrap_policy:
        min_num_params: 0
      param_offload: true
      optimizer_offload: true
      offload_policy: false
      reshard_after_forward: true
      fsdp_size: -1
      forward_prefetch: false
      model_dtype: fp32
      use_orig_params: false
      ulysses_sequence_parallel_size: 1
      entropy_from_logits_with_chunking: false
      use_torch_compile: true
      entropy_checkpointing: false
      forward_only: false
      strategy: fsdp
      dtype: bfloat16
    _target_: verl.workers.config.FSDPActorConfig
    strategy: fsdp
    ppo_mini_batch_size: 16
    ppo_micro_batch_size: null
    ppo_micro_batch_size_per_gpu: 1
    use_dynamic_bsz: false
    ppo_max_token_len_per_gpu: 16384
    clip_ratio: 0.2
    clip_ratio_low: 0.2
    clip_ratio_high: 0.2
    freeze_vision_tower: false
    policy_loss:
      _target_: verl.workers.config.PolicyLossConfig
      loss_mode: vanilla
      clip_cov_ratio: 0.0002
      clip_cov_lb: 1.0
      clip_cov_ub: 5.0
      kl_cov_ratio: 0.0002
      ppo_kl_coef: 0.1
    clip_ratio_c: 3.0
    loss_agg_mode: token-mean
    entropy_coeff: 0.0
    use_kl_loss: false
    use_torch_compile: true
    kl_loss_coef: 0.0
    kl_loss_type: low_var_kl
    ppo_epochs: 1
    shuffle: false
    checkpoint:
      _target_: verl.trainer.config.CheckpointConfig
      save_contents:
      - model
      - hf_model
      - optimizer
      - extra
      load_contents: ${.save_contents}
      async_save: false
    use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
    profiler:
      _target_: verl.utils.profiler.ProfilerConfig
      tool: ${oc.select:global_profiler.tool,null}
      enable: false
      all_ranks: false
      ranks: []
      save_path: ${oc.select:global_profiler.save_path,null}
      tool_config:
        nsys:
          _target_: verl.utils.profiler.config.NsightToolConfig
          discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
        npu:
          _target_: verl.utils.profiler.config.NPUToolConfig
          contents: []
          level: level1
          analysis: true
          discrete: false
        torch:
          _target_: verl.utils.profiler.config.TorchProfilerToolConfig
          step_start: 0
          step_end: null
        torch_memory:
          _target_: verl.utils.profiler.config.TorchMemoryToolConfig
          trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
          stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
    grad_clip: 1.0
    ulysses_sequence_parallel_size: 1
    entropy_from_logits_with_chunking: false
    entropy_checkpointing: false
    use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
  ref:
    strategy: ${actor_rollout_ref.actor.strategy}
    use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
    log_prob_micro_batch_size: null
    log_prob_micro_batch_size_per_gpu: 1
    log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
    log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
    profiler:
      _target_: verl.utils.profiler.ProfilerConfig
      tool: ${oc.select:global_profiler.tool,null}
      enable: false
      all_ranks: false
      ranks: []
      save_path: ${oc.select:global_profiler.save_path,null}
      tool_config:
        nsys:
          _target_: verl.utils.profiler.config.NsightToolConfig
          discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
        npu:
          _target_: verl.utils.profiler.config.NPUToolConfig
          contents: []
          level: level1
          analysis: true
          discrete: false
        torch:
          _target_: verl.utils.profiler.config.TorchProfilerToolConfig
          step_start: 0
          step_end: null
        torch_memory:
          _target_: verl.utils.profiler.config.TorchMemoryToolConfig
          trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
          stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
    fsdp_config:
      _target_: verl.workers.config.FSDPEngineConfig
      wrap_policy:
        min_num_params: 0
      param_offload: true
      optimizer_offload: false
      offload_policy: false
      reshard_after_forward: true
      fsdp_size: -1
      forward_prefetch: false
      model_dtype: fp32
      use_orig_params: false
      ulysses_sequence_parallel_size: 1
      entropy_from_logits_with_chunking: false
      use_torch_compile: true
      entropy_checkpointing: false
      forward_only: false
      strategy: fsdp
      dtype: bfloat16
    model: null
    ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
    entropy_from_logits_with_chunking: false
    entropy_checkpointing: false
  rollout:
    _target_: verl.workers.config.RolloutConfig
    name: sglang
    mode: async
    temperature: 1.0
    top_k: -1
    top_p: 1
    prompt_length: ${oc.select:data.max_prompt_length,512}
    response_length: ${oc.select:data.max_response_length,512}
    dtype: bfloat16
    gpu_memory_utilization: 0.35
    ignore_eos: false
    enforce_eager: true
    cudagraph_capture_sizes: null
    free_cache_engine: true
    tensor_model_parallel_size: 1
    data_parallel_size: 1
    expert_parallel_size: 1
    pipeline_model_parallel_size: 1
    max_num_batched_tokens: 10000
    max_model_len: 4096
    max_num_seqs: 8
    enable_chunked_prefill: true
    enable_prefix_caching: true
    load_format: dummy
    log_prob_micro_batch_size: null
    log_prob_micro_batch_size_per_gpu: 1
    log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
    log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
    disable_log_stats: false
    do_sample: true
    'n': 1
    over_sample_rate: 0
    multi_stage_wake_up: false
    engine_kwargs:
      vllm: {}
      sglang: {}
    val_kwargs:
      _target_: verl.workers.config.SamplingConfig
      top_k: -1
      top_p: 1.0
      temperature: 0
      'n': 1
      do_sample: false
    multi_turn:
      _target_: verl.workers.config.MultiTurnConfig
      enable: true
      max_assistant_turns: null
      tool_config_path: null
      max_user_turns: null
      max_parallel_calls: 1
      max_tool_response_length: 256
      tool_response_truncate_side: middle
      interaction_config_path: null
      use_inference_chat_template: false
      tokenization_sanity_check_mode: strict
      format: hermes
      num_repeat_rollouts: null
    calculate_log_probs: false
    agent:
      _target_: verl.workers.config.AgentLoopConfig
      num_workers: 4
      default_agent_loop: single_turn_agent
      agent_loop_config_path: /home/gulerlab/Yushu/Agentic/VAGEN_Latest-FROZENLAKE/VAGEN/vagen/configs/agent_no_concat.yaml
      custom_async_server:
        _target_: verl.workers.config.CustomAsyncServerConfig
        path: null
        name: null
    update_weights_bucket_megabytes: 512
    trace:
      _target_: verl.workers.config.TraceConfig
      backend: null
      token2text: false
    skip_rollout: false
    skip_dump_dir: /tmp/rollout_dump
    skip_tokenizer_init: true
    profiler:
      _target_: verl.utils.profiler.ProfilerConfig
      tool: ${oc.select:global_profiler.tool,null}
      enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
      all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
      ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
      save_path: ${oc.select:global_profiler.save_path,null}
      tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
    prometheus:
      _target_: verl.workers.config.PrometheusConfig
      enable: false
      port: 9090
      file: /tmp/ray/session_latest/metrics/prometheus/prometheus.yml
      served_model_name: ${oc.select:actor_rollout_ref.model.path,null}
    layered_summon: false
  model:
    _target_: verl.workers.config.HFModelConfig
    path: Qwen/Qwen2.5-VL-3B-Instruct
    hf_config_path: null
    tokenizer_path: null
    use_shm: false
    trust_remote_code: false
    custom_chat_template: null
    external_lib: null
    override_config: {}
    enable_gradient_checkpointing: true
    enable_activation_offload: false
    use_remove_padding: true
    lora_rank: 0
    lora_alpha: 16
    target_modules: all-linear
    exclude_modules: null
    lora_adapter_path: null
    use_liger: false
    use_fused_kernels: true
    fused_kernel_options:
      impl_backend: torch
  hybrid_engine: true
  nccl_timeout: 600
data:
  tokenizer: null
  use_shm: false
  train_files: examples/train/frozenlake/train_frozenlake_vision.yaml
  val_files: examples/train/frozenlake/val_frozenlake_vision.yaml
  train_max_samples: -1
  val_max_samples: -1
  prompt_key: prompt
  reward_fn_key: data_source
  max_prompt_length: 1000
  max_response_length: 512
  train_batch_size: 16
  val_batch_size: null
  tool_config_path: ${oc.select:actor_rollout_ref.rollout.multi_turn.tool_config_path,
    null}
  return_raw_input_ids: false
  return_raw_chat: true
  return_full_prompt: false
  shuffle: true
  seed: null
  dataloader_num_workers: 8
  image_patch_size: 14
  validation_shuffle: false
  filter_overlong_prompts: false
  filter_overlong_prompts_workers: 1
  truncation: error
  image_key: images
  video_key: videos
  trust_remote_code: false
  custom_cls:
    path: vagen/gym_agent_dataset.py
    name: AgenticDataset
  return_multi_modal_inputs: true
  sampler:
    class_path: null
    class_name: null
  datagen:
    path: null
    name: null
  apply_chat_template_kwargs:
    enable_thinking: false
critic:
  optim:
    _target_: verl.workers.config.FSDPOptimizerConfig
    optimizer: AdamW
    optimizer_impl: torch.optim
    lr: 1.0e-05
    lr_warmup_steps_ratio: 0.0
    total_training_steps: -1
    weight_decay: 0.01
    lr_warmup_steps: -1
    betas:
    - 0.9
    - 0.999
    clip_grad: 1.0
    min_lr_ratio: 0.0
    num_cycles: 0.5
    lr_scheduler_type: constant
    warmup_style: null
    override_optimizer_config: null
  model:
    fsdp_config:
      _target_: verl.workers.config.FSDPEngineConfig
      wrap_policy:
        min_num_params: 0
      param_offload: true
      optimizer_offload: true
      offload_policy: false
      reshard_after_forward: true
      fsdp_size: -1
      forward_prefetch: false
      model_dtype: fp32
      use_orig_params: false
      ulysses_sequence_parallel_size: 1
      entropy_from_logits_with_chunking: false
      use_torch_compile: true
      entropy_checkpointing: false
      forward_only: false
      strategy: fsdp
      dtype: bfloat16
    path: Qwen/Qwen2.5-VL-3B-Instruct
    tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
    override_config: {}
    external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
    trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
    _target_: verl.workers.config.FSDPCriticModelCfg
    use_shm: false
    enable_gradient_checkpointing: true
    enable_activation_offload: false
    use_remove_padding: true
    lora_rank: 0
    lora_alpha: 16
    target_modules: all-linear
  _target_: verl.workers.config.FSDPCriticConfig
  rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
  strategy: fsdp
  enable: true
  ppo_mini_batch_size: ${oc.select:actor_rollout_ref.actor.ppo_mini_batch_size,256}
  ppo_micro_batch_size: null
  ppo_micro_batch_size_per_gpu: 1
  use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
  ppo_max_token_len_per_gpu: 32768
  forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
  ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
  shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
  cliprange_value: 0.5
  loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
  checkpoint:
    _target_: verl.trainer.config.CheckpointConfig
    save_contents:
    - model
    - optimizer
    - extra
    load_contents: ${.save_contents}
    async_save: false
  profiler:
    _target_: verl.utils.profiler.ProfilerConfig
    tool: ${oc.select:global_profiler.tool,null}
    enable: false
    all_ranks: false
    ranks: []
    save_path: ${oc.select:global_profiler.save_path,null}
    tool_config:
      nsys:
        _target_: verl.utils.profiler.config.NsightToolConfig
        discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
      npu:
        _target_: verl.utils.profiler.config.NPUToolConfig
        contents: []
        level: level1
        analysis: true
        discrete: false
      torch:
        _target_: verl.utils.profiler.config.TorchProfilerToolConfig
        step_start: 0
        step_end: null
      torch_memory:
        _target_: verl.utils.profiler.config.TorchMemoryToolConfig
        trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
        stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
  forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
  forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
  ulysses_sequence_parallel_size: 1
  grad_clip: 1.0
reward_model:
  enable: false
  enable_resource_pool: false
  n_gpus_per_node: 0
  nnodes: 0
  strategy: fsdp
  model:
    input_tokenizer: ${actor_rollout_ref.model.path}
    path: ~/models/FsfairX-LLaMA3-RM-v0.1
    external_lib: ${actor_rollout_ref.model.external_lib}
    trust_remote_code: false
    use_shm: false
    use_remove_padding: false
    use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
    fsdp_config:
      _target_: verl.workers.config.FSDPEngineConfig
      wrap_policy:
        min_num_params: 0
      param_offload: false
      reshard_after_forward: true
      fsdp_size: -1
      forward_prefetch: false
  micro_batch_size: null
  micro_batch_size_per_gpu: null
  max_length: null
  use_dynamic_bsz: ${critic.use_dynamic_bsz}
  forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
  reward_manager: naive
  launch_reward_fn_async: false
  sandbox_fusion:
    url: null
    max_concurrent: 64
    memory_limit_mb: 1024
  profiler:
    _target_: verl.utils.profiler.ProfilerConfig
    tool: ${oc.select:global_profiler.tool,null}
    enable: false
    all_ranks: false
    ranks: []
    save_path: ${oc.select:global_profiler.save_path,null}
    tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
  ulysses_sequence_parallel_size: 1
algorithm:
  rollout_correction:
    rollout_is: null
    rollout_is_threshold: 2.0
    rollout_rs: null
    rollout_rs_threshold: null
    rollout_rs_threshold_lower: null
    rollout_token_veto_threshold: null
    bypass_mode: false
    use_policy_gradient: false
    rollout_is_batch_normalize: false
  _target_: verl.trainer.config.AlgoConfig
  gamma: 1.0
  lam: 1.0
  adv_estimator: no_concat_gae
  norm_adv_by_std_in_grpo: true
  use_kl_in_reward: false
  kl_penalty: kl
  kl_ctrl:
    _target_: verl.trainer.config.KLControlConfig
    type: fixed
    kl_coef: 0.0
    horizon: 10000
    target_kl: 0.1
  use_pf_ppo: false
  pf_ppo:
    reweight_method: pow
    weight_pow: 2.0
custom_reward_function:
  path: null
  name: compute_score
trainer:
  balance_batch: true
  total_epochs: 30
  total_training_steps: 301
  project_name: vagen_experiments
  experiment_name: frozenlake_ppo_no_concat_qwen25vl3b
  logger:
  - console
  - wandb
  log_val_generations: 32
  rollout_data_dir: /home/.../VAGEN/exps/vagen_experiments/frozenlake_ppo_no_concat_qwen25vl3b/rollout_data
  validation_data_dir: /home/.../VAGEN/exps/vagen_experiments/frozenlake_ppo_no_concat_qwen25vl3b/validation
  nnodes: 1
  n_gpus_per_node: 4
  save_freq: 30
  esi_redundant_time: 0
  resume_mode: auto
  resume_from_path: null
  val_before_train: true
  val_only: false
  test_freq: 20
  critic_warmup: 0
  default_hdfs_dir: null
  del_local_ckpt_after_load: false
  default_local_dir: /home/.../VAGEN/exps/vagen_experiments/frozenlake_ppo_no_concat_qwen25vl3b/verl_checkpoints
  max_actor_ckpt_to_keep: 1
  max_critic_ckpt_to_keep: 1
  ray_wait_register_center_timeout: 300
  device: cuda
  use_legacy_worker_impl: auto
  skip_pad_tokens: true
  replace_image_tokens_for_logging: true
  concat_multi_turn: false
  log_image:
    enable: true
    max_pending: 2
    png_compress_level: 0
global_profiler:
  _target_: verl.utils.profiler.ProfilerConfig
  tool: null
  steps: null
  profile_continuous_steps: false
  save_path: outputs/profile
  global_tool_config:
    nsys:
      _target_: verl.utils.profiler.config.NsightToolConfig
      discrete: false
      controller_nsight_options:
        trace: cuda,nvtx,cublas,ucx
        cuda-memory-usage: 'true'
        cuda-graph-trace: graph
      worker_nsight_options:
        trace: cuda,nvtx,cublas,ucx
        cuda-memory-usage: 'true'
        cuda-graph-trace: graph
        capture-range: cudaProfilerApi
        capture-range-end: null
        kill: none
    torch_memory:
      trace_alloc_max_entries: 100000
      stack_depth: 32
      context: all
      stacks: all
      kw_args: {}
transfer_queue:
  enable: false
ray_kwargs:
  ray_init:
    num_cpus: null
  timeline_json_file: null
env_registry:
  Sokoban: vagen.envs.sokoban.sokoban_env.Sokoban
  FrozenLake: vagen.envs.frozenlake.frozenlake_env.FrozenLake
  SpatialGym: vagen.envs.spatial_gym.spatial_gym_env.SpatialGym
  PrimitiveSkill: vagen.envs.primitive_skill.primitive_skill_env.PrimitiveSkillEnv
  RemoteEnv: vagen.envs_remote.GymImageEnvClient
filter:
  name: reward_variance_top_p
  filter_kwargs:
    top_p: 0.9
  enable: false
huggingface_hub:
  hf_save_freq: null
  repo_id: vagen-training
  private: false
  upload_contents:
  - hf_model

i) What “after a few runs” means exactly. This hang occurs during rollout generation regardless during training or validation. By "a few runs," I mean a number of training steps, where each step corresponds to generating a batch of rollouts. ii) final ~200 lines from the driver, WorkerDict, and SGLang scheduler logs Below is the output by running tail -200 /tmp/ray/session_latest/logs/python-core-driver-01000000ffffffffffffffffffffffffffffffffffffffffffffffff_251074.log

CoreWorkerService.grpc_server.WaitForActorRefDeleted.HandleRequestImpl - 1 total (0 active), Execution time: mean = 0.02ms, total = 0.02ms, Queueing time: mean = 0.01ms, max = 0.01ms, min = 0.01ms, total = 0.01ms
	ray::rpc::ActorInfoGcsService.grpc_client.RegisterActor.OnReplyReceived - 1 total (0 active), Execution time: mean = 0.12ms, total = 0.12ms, Queueing time: mean = 0.01ms, max = 0.01ms, min = 0.01ms, total = 0.01ms
	ray::rpc::ActorInfoGcsService.grpc_client.RegisterActor - 1 total (0 active), Execution time: mean = 1.24ms, total = 1.24ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	ActorTaskSubmitter::SubmitTask - 1 total (0 active), Execution time: mean = 0.01ms, total = 0.01ms, Queueing time: mean = 0.01ms, max = 0.01ms, min = 0.01ms, total = 0.01ms
	ray::rpc::ActorInfoGcsService.grpc_client.CreateActor - 1 total (0 active), Execution time: mean = 4858.05ms, total = 4858.05ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	ray::rpc::NodeInfoGcsService.grpc_client.GetAllNodeAddressAndLiveness.OnReplyReceived - 1 total (0 active), Execution time: mean = 0.04ms, total = 0.04ms, Queueing time: mean = 0.01ms, max = 0.01ms, min = 0.01ms, total = 0.01ms
	ray::rpc::WorkerInfoGcsService.grpc_client.AddWorkerInfo - 1 total (0 active), Execution time: mean = 0.56ms, total = 0.56ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	CoreWorkerService.grpc_server.WaitForActorRefDeleted - 1 total (1 active), Execution time: mean = 0.00ms, total = 0.00ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	ray::rpc::ActorInfoGcsService.grpc_client.CreateActor.OnReplyReceived - 1 total (0 active), Execution time: mean = 0.08ms, total = 0.08ms, Queueing time: mean = 0.28ms, max = 0.28ms, min = 0.28ms, total = 0.28ms

-----------------
Task execution event stats:

Global stats: 0 total (0 active)
Queueing time: mean = -nanms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
Execution time:  mean = -nanms, total = 0.00ms
Event stats:

-----------------
Task Event stats:

IO Service Stats:

Global stats: 185 total (1 active)
Queueing time: mean = 0.02ms, max = 0.06ms, min = 0.01ms, total = 3.85ms
Execution time:  mean = 0.02ms, total = 4.10ms
Event stats:
	CoreWorker.deadline_timer.flush_task_events - 180 total (1 active), Execution time: mean = 0.01ms, total = 2.59ms, Queueing time: mean = 0.02ms, max = 0.06ms, min = 0.01ms, total = 3.80ms
	ray::rpc::TaskInfoGcsService.grpc_client.AddTaskEventData.OnReplyReceived - 2 total (0 active), Execution time: mean = 0.03ms, total = 0.06ms, Queueing time: mean = 0.02ms, max = 0.02ms, min = 0.02ms, total = 0.04ms
	ray::rpc::TaskInfoGcsService.grpc_client.AddTaskEventData - 2 total (0 active), Execution time: mean = 0.71ms, total = 1.43ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	PeriodicalRunner.RunFnPeriodically - 1 total (0 active), Execution time: mean = 0.02ms, total = 0.02ms, Queueing time: mean = 0.01ms, max = 0.01ms, min = 0.01ms, total = 0.01ms
Other Stats:
	gcs_grpc_in_progress:0
	event_aggregator_grpc_in_progress:0
	current number of task status events in buffer: 0
	current number of profile events in buffer: 0
	current number of dropped task attempts tracked: 0
	total task events sent: 0.00125217 MiB
	total number of task attempts sent: 5
	total number of task attempts dropped reported: 0
	total number of sent failure: 0
	num status task events dropped: 0
	num profile task events dropped: 0
	num ray task events reported to aggregator: 0
	num ray task events failed to report to aggregator: 0
	num of task attempts dropped reported to aggregator: 0
	num of failed requests to aggregator: 0

[2026-07-31 10:28:56,739 I 251074 252138] core_worker.cc:458: Event stats:


Global stats: 3019 total (10 active)
Queueing time: mean = 0.02ms, max = 1.10ms, min = -0.02ms, total = 57.70ms
Execution time:  mean = 3.25ms, total = 9802.25ms
Event stats:
	CoreWorker.RecoverObjects - 2400 total (1 active), Execution time: mean = 0.01ms, total = 12.03ms, Queueing time: mean = 0.02ms, max = 0.17ms, min = -0.02ms, total = 43.11ms
	CoreWorker.InternalHeartbeat - 240 total (1 active), Execution time: mean = 0.00ms, total = 0.85ms, Queueing time: mean = 0.02ms, max = 1.10ms, min = 0.01ms, total = 5.17ms
	CoreWorker.ReportWorkerBacklog - 240 total (1 active), Execution time: mean = 0.00ms, total = 0.76ms, Queueing time: mean = 0.02ms, max = 1.10ms, min = 0.00ms, total = 5.13ms
	CoreWorker.RecordMetrics - 48 total (1 active), Execution time: mean = 0.06ms, total = 2.87ms, Queueing time: mean = 0.02ms, max = 0.03ms, min = 0.01ms, total = 0.75ms
	CoreWorker.TryDelPendingObjectRefStreams - 24 total (1 active), Execution time: mean = 0.00ms, total = 0.07ms, Queueing time: mean = 0.07ms, max = 0.49ms, min = 0.01ms, total = 1.70ms
	CoreWorkerService.grpc_server.GetCoreWorkerStats.HandleRequestImpl - 16 total (0 active), Execution time: mean = 0.06ms, total = 1.03ms, Queueing time: mean = 0.02ms, max = 0.06ms, min = 0.02ms, total = 0.35ms
	CoreWorkerService.grpc_server.GetCoreWorkerStats - 16 total (0 active), Execution time: mean = 0.27ms, total = 4.35ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	PeriodicalRunner.RunFnPeriodically - 7 total (0 active), Execution time: mean = 0.02ms, total = 0.16ms, Queueing time: mean = 0.10ms, max = 0.15ms, min = 0.01ms, total = 0.68ms
	CoreWorker.PrintEventStats - 4 total (1 active, 1 running), Execution time: mean = 0.41ms, total = 1.63ms, Queueing time: mean = 0.02ms, max = 0.03ms, min = 0.02ms, total = 0.06ms
	ray::rpc::ControlPlanePubSubGcsService.grpc_client.GcsSubscriberPoll - 2 total (1 active), Execution time: mean = 2457.11ms, total = 4914.22ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	ray::rpc::ControlPlanePubSubGcsService.grpc_client.GcsSubscriberCommandBatch - 2 total (0 active), Execution time: mean = 0.54ms, total = 1.07ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	ray::rpc::ControlPlanePubSubGcsService.grpc_client.GcsSubscriberCommandBatch.OnReplyReceived - 2 total (0 active), Execution time: mean = 0.11ms, total = 0.23ms, Queueing time: mean = 0.01ms, max = 0.01ms, min = 0.01ms, total = 0.02ms
	ray::rpc::WorkerInfoGcsService.grpc_client.AddWorkerInfo.OnReplyReceived - 1 total (0 active), Execution time: mean = 0.02ms, total = 0.02ms, Queueing time: mean = 0.01ms, max = 0.01ms, min = 0.01ms, total = 0.01ms
	CoreWorkerService.grpc_client.PushTask - 1 total (1 active), Execution time: mean = 0.00ms, total = 0.00ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	ray::rpc::NodeInfoGcsService.grpc_client.GetAllNodeAddressAndLiveness - 1 total (0 active), Execution time: mean = 0.36ms, total = 0.36ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	Subscriber.HandlePublishedMessage_GCS_ACTOR_CHANNEL - 1 total (0 active), Execution time: mean = 0.87ms, total = 0.87ms, Queueing time: mean = 0.35ms, max = 0.35ms, min = 0.35ms, total = 0.35ms
	ray::rpc::ActorInfoGcsService.grpc_client.GetActorInfo.OnReplyReceived - 1 total (0 active), Execution time: mean = 0.73ms, total = 0.73ms, Queueing time: mean = 0.01ms, max = 0.01ms, min = 0.01ms, total = 0.01ms
	ActorCreator.AsyncRegisterActor - 1 total (0 active), Execution time: mean = 0.14ms, total = 0.14ms, Queueing time: mean = 0.01ms, max = 0.01ms, min = 0.01ms, total = 0.01ms
	ray::rpc::ControlPlanePubSubGcsService.grpc_client.GcsSubscriberPoll.OnReplyReceived - 1 total (0 active), Execution time: mean = 0.28ms, total = 0.28ms, Queueing time: mean = 0.02ms, max = 0.02ms, min = 0.02ms, total = 0.02ms
	Publisher.CheckDeadSubscribers - 1 total (1 active), Execution time: mean = 0.00ms, total = 0.00ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	ray::rpc::ActorInfoGcsService.grpc_client.GetActorInfo - 1 total (0 active), Execution time: mean = 0.46ms, total = 0.46ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	CoreWorkerService.grpc_server.WaitForActorRefDeleted.HandleRequestImpl - 1 total (0 active), Execution time: mean = 0.02ms, total = 0.02ms, Queueing time: mean = 0.01ms, max = 0.01ms, min = 0.01ms, total = 0.01ms
	ray::rpc::ActorInfoGcsService.grpc_client.RegisterActor.OnReplyReceived - 1 total (0 active), Execution time: mean = 0.12ms, total = 0.12ms, Queueing time: mean = 0.01ms, max = 0.01ms, min = 0.01ms, total = 0.01ms
	ray::rpc::ActorInfoGcsService.grpc_client.RegisterActor - 1 total (0 active), Execution time: mean = 1.24ms, total = 1.24ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	ActorTaskSubmitter::SubmitTask - 1 total (0 active), Execution time: mean = 0.01ms, total = 0.01ms, Queueing time: mean = 0.01ms, max = 0.01ms, min = 0.01ms, total = 0.01ms
	ray::rpc::ActorInfoGcsService.grpc_client.CreateActor - 1 total (0 active), Execution time: mean = 4858.05ms, total = 4858.05ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	ray::rpc::NodeInfoGcsService.grpc_client.GetAllNodeAddressAndLiveness.OnReplyReceived - 1 total (0 active), Execution time: mean = 0.04ms, total = 0.04ms, Queueing time: mean = 0.01ms, max = 0.01ms, min = 0.01ms, total = 0.01ms
	ray::rpc::WorkerInfoGcsService.grpc_client.AddWorkerInfo - 1 total (0 active), Execution time: mean = 0.56ms, total = 0.56ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	CoreWorkerService.grpc_server.WaitForActorRefDeleted - 1 total (1 active), Execution time: mean = 0.00ms, total = 0.00ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	ray::rpc::ActorInfoGcsService.grpc_client.CreateActor.OnReplyReceived - 1 total (0 active), Execution time: mean = 0.08ms, total = 0.08ms, Queueing time: mean = 0.28ms, max = 0.28ms, min = 0.28ms, total = 0.28ms

-----------------
Task execution event stats:

Global stats: 0 total (0 active)
Queueing time: mean = -nanms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
Execution time:  mean = -nanms, total = 0.00ms
Event stats:

-----------------
Task Event stats:

IO Service Stats:

Global stats: 245 total (1 active)
Queueing time: mean = 0.02ms, max = 0.06ms, min = 0.01ms, total = 5.11ms
Execution time:  mean = 0.02ms, total = 4.70ms
Event stats:
	CoreWorker.deadline_timer.flush_task_events - 240 total (1 active), Execution time: mean = 0.01ms, total = 3.19ms, Queueing time: mean = 0.02ms, max = 0.06ms, min = 0.01ms, total = 5.06ms
	ray::rpc::TaskInfoGcsService.grpc_client.AddTaskEventData.OnReplyReceived - 2 total (0 active), Execution time: mean = 0.03ms, total = 0.06ms, Queueing time: mean = 0.02ms, max = 0.02ms, min = 0.02ms, total = 0.04ms
	ray::rpc::TaskInfoGcsService.grpc_client.AddTaskEventData - 2 total (0 active), Execution time: mean = 0.71ms, total = 1.43ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	PeriodicalRunner.RunFnPeriodically - 1 total (0 active), Execution time: mean = 0.02ms, total = 0.02ms, Queueing time: mean = 0.01ms, max = 0.01ms, min = 0.01ms, total = 0.01ms
Other Stats:
	gcs_grpc_in_progress:0
	event_aggregator_grpc_in_progress:0
	current number of task status events in buffer: 0
	current number of profile events in buffer: 0
	current number of dropped task attempts tracked: 0
	total task events sent: 0.00125217 MiB
	total number of task attempts sent: 5
	total number of task attempts dropped reported: 0
	total number of sent failure: 0
	num status task events dropped: 0
	num profile task events dropped: 0
	num ray task events reported to aggregator: 0
	num ray task events failed to report to aggregator: 0
	num of task attempts dropped reported to aggregator: 0
	num of failed requests to aggregator: 0

[2026-07-31 10:29:56,740 I 251074 252138] core_worker.cc:458: Event stats:


Global stats: 3767 total (10 active)
Queueing time: mean = 0.02ms, max = 1.10ms, min = -0.02ms, total = 71.59ms
Execution time:  mean = 2.60ms, total = 9808.06ms
Event stats:
	CoreWorker.RecoverObjects - 3000 total (1 active), Execution time: mean = 0.01ms, total = 15.12ms, Queueing time: mean = 0.02ms, max = 0.17ms, min = -0.02ms, total = 53.86ms
	CoreWorker.InternalHeartbeat - 300 total (1 active), Execution time: mean = 0.00ms, total = 1.07ms, Queueing time: mean = 0.02ms, max = 1.10ms, min = 0.01ms, total = 6.22ms
	CoreWorker.ReportWorkerBacklog - 300 total (1 active), Execution time: mean = 0.00ms, total = 0.94ms, Queueing time: mean = 0.02ms, max = 1.10ms, min = 0.00ms, total = 6.18ms
	CoreWorker.RecordMetrics - 60 total (1 active), Execution time: mean = 0.05ms, total = 3.29ms, Queueing time: mean = 0.02ms, max = 0.03ms, min = 0.01ms, total = 0.96ms
	CoreWorker.TryDelPendingObjectRefStreams - 30 total (1 active), Execution time: mean = 0.00ms, total = 0.09ms, Queueing time: mean = 0.08ms, max = 0.63ms, min = 0.01ms, total = 2.42ms
	CoreWorkerService.grpc_server.GetCoreWorkerStats.HandleRequestImpl - 20 total (0 active), Execution time: mean = 0.06ms, total = 1.21ms, Queueing time: mean = 0.02ms, max = 0.06ms, min = 0.02ms, total = 0.43ms
	CoreWorkerService.grpc_server.GetCoreWorkerStats - 20 total (0 active), Execution time: mean = 0.27ms, total = 5.36ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	PeriodicalRunner.RunFnPeriodically - 7 total (0 active), Execution time: mean = 0.02ms, total = 0.16ms, Queueing time: mean = 0.10ms, max = 0.15ms, min = 0.01ms, total = 0.68ms
	CoreWorker.PrintEventStats - 5 total (1 active, 1 running), Execution time: mean = 0.46ms, total = 2.32ms, Queueing time: mean = 0.02ms, max = 0.03ms, min = 0.02ms, total = 0.09ms
	Publisher.CheckDeadSubscribers - 2 total (1 active), Execution time: mean = 0.00ms, total = 0.00ms, Queueing time: mean = 0.01ms, max = 0.01ms, min = 0.01ms, total = 0.01ms
	ray::rpc::ControlPlanePubSubGcsService.grpc_client.GcsSubscriberCommandBatch.OnReplyReceived - 2 total (0 active), Execution time: mean = 0.11ms, total = 0.23ms, Queueing time: mean = 0.01ms, max = 0.01ms, min = 0.01ms, total = 0.02ms
	ray::rpc::ControlPlanePubSubGcsService.grpc_client.GcsSubscriberCommandBatch - 2 total (0 active), Execution time: mean = 0.54ms, total = 1.07ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	ray::rpc::ControlPlanePubSubGcsService.grpc_client.GcsSubscriberPoll - 2 total (1 active), Execution time: mean = 2457.11ms, total = 4914.22ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	ray::rpc::ActorInfoGcsService.grpc_client.GetActorInfo.OnReplyReceived - 1 total (0 active), Execution time: mean = 0.73ms, total = 0.73ms, Queueing time: mean = 0.01ms, max = 0.01ms, min = 0.01ms, total = 0.01ms
	ActorCreator.AsyncRegisterActor - 1 total (0 active), Execution time: mean = 0.14ms, total = 0.14ms, Queueing time: mean = 0.01ms, max = 0.01ms, min = 0.01ms, total = 0.01ms
	ray::rpc::ControlPlanePubSubGcsService.grpc_client.GcsSubscriberPoll.OnReplyReceived - 1 total (0 active), Execution time: mean = 0.28ms, total = 0.28ms, Queueing time: mean = 0.02ms, max = 0.02ms, min = 0.02ms, total = 0.02ms
	Subscriber.HandlePublishedMessage_GCS_ACTOR_CHANNEL - 1 total (0 active), Execution time: mean = 0.87ms, total = 0.87ms, Queueing time: mean = 0.35ms, max = 0.35ms, min = 0.35ms, total = 0.35ms
	CoreWorkerService.grpc_client.PushTask - 1 total (1 active), Execution time: mean = 0.00ms, total = 0.00ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	ray::rpc::NodeInfoGcsService.grpc_client.GetAllNodeAddressAndLiveness - 1 total (0 active), Execution time: mean = 0.36ms, total = 0.36ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	ray::rpc::WorkerInfoGcsService.grpc_client.AddWorkerInfo.OnReplyReceived - 1 total (0 active), Execution time: mean = 0.02ms, total = 0.02ms, Queueing time: mean = 0.01ms, max = 0.01ms, min = 0.01ms, total = 0.01ms
	ray::rpc::ActorInfoGcsService.grpc_client.GetActorInfo - 1 total (0 active), Execution time: mean = 0.46ms, total = 0.46ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	CoreWorkerService.grpc_server.WaitForActorRefDeleted.HandleRequestImpl - 1 total (0 active), Execution time: mean = 0.02ms, total = 0.02ms, Queueing time: mean = 0.01ms, max = 0.01ms, min = 0.01ms, total = 0.01ms
	ray::rpc::ActorInfoGcsService.grpc_client.RegisterActor.OnReplyReceived - 1 total (0 active), Execution time: mean = 0.12ms, total = 0.12ms, Queueing time: mean = 0.01ms, max = 0.01ms, min = 0.01ms, total = 0.01ms
	ray::rpc::ActorInfoGcsService.grpc_client.RegisterActor - 1 total (0 active), Execution time: mean = 1.24ms, total = 1.24ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	ActorTaskSubmitter::SubmitTask - 1 total (0 active), Execution time: mean = 0.01ms, total = 0.01ms, Queueing time: mean = 0.01ms, max = 0.01ms, min = 0.01ms, total = 0.01ms
	ray::rpc::ActorInfoGcsService.grpc_client.CreateActor - 1 total (0 active), Execution time: mean = 4858.05ms, total = 4858.05ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	ray::rpc::NodeInfoGcsService.grpc_client.GetAllNodeAddressAndLiveness.OnReplyReceived - 1 total (0 active), Execution time: mean = 0.04ms, total = 0.04ms, Queueing time: mean = 0.01ms, max = 0.01ms, min = 0.01ms, total = 0.01ms
	ray::rpc::WorkerInfoGcsService.grpc_client.AddWorkerInfo - 1 total (0 active), Execution time: mean = 0.56ms, total = 0.56ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	CoreWorkerService.grpc_server.WaitForActorRefDeleted - 1 total (1 active), Execution time: mean = 0.00ms, total = 0.00ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	ray::rpc::ActorInfoGcsService.grpc_client.CreateActor.OnReplyReceived - 1 total (0 active), Execution time: mean = 0.08ms, total = 0.08ms, Queueing time: mean = 0.28ms, max = 0.28ms, min = 0.28ms, total = 0.28ms

-----------------
Task execution event stats:

Global stats: 0 total (0 active)
Queueing time: mean = -nanms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
Execution time:  mean = -nanms, total = 0.00ms
Event stats:

-----------------
Task Event stats:

IO Service Stats:

Global stats: 305 total (1 active)
Queueing time: mean = 0.02ms, max = 0.06ms, min = 0.01ms, total = 6.36ms
Execution time:  mean = 0.02ms, total = 5.34ms
Event stats:
	CoreWorker.deadline_timer.flush_task_events - 300 total (1 active), Execution time: mean = 0.01ms, total = 3.83ms, Queueing time: mean = 0.02ms, max = 0.06ms, min = 0.01ms, total = 6.31ms
	ray::rpc::TaskInfoGcsService.grpc_client.AddTaskEventData.OnReplyReceived - 2 total (0 active), Execution time: mean = 0.03ms, total = 0.06ms, Queueing time: mean = 0.02ms, max = 0.02ms, min = 0.02ms, total = 0.04ms
	ray::rpc::TaskInfoGcsService.grpc_client.AddTaskEventData - 2 total (0 active), Execution time: mean = 0.71ms, total = 1.43ms, Queueing time: mean = 0.00ms, max = -0.00ms, min = 9223372036854.78ms, total = 0.00ms
	PeriodicalRunner.RunFnPeriodically - 1 total (0 active), Execution time: mean = 0.02ms, total = 0.02ms, Queueing time: mean = 0.01ms, max = 0.01ms, min = 0.01ms, total = 0.01ms
Other Stats:
	gcs_grpc_in_progress:0
	event_aggregator_grpc_in_progress:0
	current number of task status events in buffer: 0
	current number of profile events in buffer: 0
	current number of dropped task attempts tracked: 0
	total task events sent: 0.00125217 MiB
	total number of task attempts sent: 5
	total number of task attempts dropped reported: 0
	total number of sent failure: 0
	num status task events dropped: 0
	num profile task events dropped: 0
	num ray task events reported to aggregator: 0
	num ray task events failed to report to aggregator: 0
	num of task attempts dropped reported to aggregator: 0
	num of failed requests to aggregator: 0

Below is the output by running tail -200 /tmp/ray/session_latest/logs/worker-6ca225dd4f59b7c6ba9b4aea6ab7296b84074daae0c00ca070a4e60d-01000000-258951.out (there are many worker log, not sure if I provide the right one)

tail -200 /tmp/ray/session_latest/logs/worker-6ca225dd4f59b7c6ba9b4aea6ab7296b84074daae0c00ca070a4e60d-01000000-258951.out
                      'warmup_style': None,
                      'weight_decay': 0.01},
            'ppo_epochs': 1,
            'ppo_max_token_len_per_gpu': 32768,
            'ppo_micro_batch_size': None,
            'ppo_micro_batch_size_per_gpu': 1,
            'ppo_mini_batch_size': 16,
            'profiler': {'_target_': 'verl.utils.profiler.ProfilerConfig',
                         'all_ranks': False,
                         'enable': False,
                         'ranks': [],
                         'save_path': 'outputs/profile',
                         'tool': None,
                         'tool_config': {'npu': {'_target_': 'verl.utils.profiler.config.NPUToolConfig',
                                                 'analysis': True,
                                                 'contents': [],
                                                 'discrete': False,
                                                 'level': 'level1'},
                                         'nsys': {'_target_': 'verl.utils.profiler.config.NsightToolConfig',
                                                  'discrete': False},
                                         'torch': {'_target_': 'verl.utils.profiler.config.TorchProfilerToolConfig',
                                                   'step_end': None,
                                                   'step_start': 0},
                                         'torch_memory': {'_target_': 'verl.utils.profiler.config.TorchMemoryToolConfig',
                                                          'stack_depth': 32,
                                                          'trace_alloc_max_entries': 100000}}},
            'rollout_n': 1,
            'shuffle': False,
            'strategy': 'fsdp',
            'ulysses_sequence_parallel_size': 1,
            'use_dynamic_bsz': False},
 'custom_reward_function': {'name': 'compute_score', 'path': None},
 'data': {'apply_chat_template_kwargs': {'enable_thinking': False},
          'custom_cls': {'name': 'AgenticDataset',
                         'path': 'vagen/gym_agent_dataset.py'},
          'datagen': {'name': None, 'path': None},
          'dataloader_num_workers': 8,
          'filter_overlong_prompts': False,
          'filter_overlong_prompts_workers': 1,
          'image_key': 'images',
          'image_patch_size': 14,
          'max_prompt_length': 1000,
          'max_response_length': 512,
          'prompt_key': 'prompt',
          'return_full_prompt': False,
          'return_multi_modal_inputs': True,
          'return_raw_chat': True,
          'return_raw_input_ids': False,
          'reward_fn_key': 'data_source',
          'sampler': {'class_name': None, 'class_path': None},
          'seed': None,
          'shuffle': True,
          'tokenizer': None,
          'tool_config_path': None,
          'train_batch_size': 16,
          'train_files': 'examples/train/frozenlake/train_frozenlake_vision.yaml',
          'train_max_samples': -1,
          'truncation': 'error',
          'trust_remote_code': False,
          'use_shm': False,
          'val_batch_size': None,
          'val_files': 'examples/train/frozenlake/val_frozenlake_vision.yaml',
          'val_max_samples': -1,
          'validation_shuffle': False,
          'video_key': 'videos'},
 'env_registry': {'FrozenLake': 'vagen.envs.frozenlake.frozenlake_env.FrozenLake',
                  'PrimitiveSkill': 'vagen.envs.primitive_skill.primitive_skill_env.PrimitiveSkillEnv',
                  'RemoteEnv': 'vagen.envs_remote.GymImageEnvClient',
                  'Sokoban': 'vagen.envs.sokoban.sokoban_env.Sokoban',
                  'SpatialGym': 'vagen.envs.spatial_gym.spatial_gym_env.SpatialGym'},
 'filter': {'enable': False,
            'filter_kwargs': {'top_p': 0.9},
            'name': 'reward_variance_top_p'},
 'global_profiler': {'_target_': 'verl.utils.profiler.ProfilerConfig',
                     'global_tool_config': {'nsys': {'_target_': 'verl.utils.profiler.config.NsightToolConfig',
                                                     'controller_nsight_options': {'cuda-graph-trace': 'graph',
                                                                                   'cuda-memory-usage': 'true',
                                                                                   'trace': 'cuda,nvtx,cublas,ucx'},
                                                     'discrete': False,
                                                     'worker_nsight_options': {'capture-range': 'cudaProfilerApi',
                                                                               'capture-range-end': None,
                                                                               'cuda-graph-trace': 'graph',
                                                                               'cuda-memory-usage': 'true',
                                                                               'kill': 'none',
                                                                               'trace': 'cuda,nvtx,cublas,ucx'}},
                                            'torch_memory': {'context': 'all',
                                                             'kw_args': {},
                                                             'stack_depth': 32,
                                                             'stacks': 'all',
                                                             'trace_alloc_max_entries': 100000}},
                     'profile_continuous_steps': False,
                     'save_path': 'outputs/profile',
                     'steps': None,
                     'tool': None},
 'huggingface_hub': {'hf_save_freq': None,
                     'private': False,
                     'repo_id': 'vagen-training',
                     'upload_contents': ['hf_model']},
 'ray_kwargs': {'ray_init': {'num_cpus': None}, 'timeline_json_file': None},
 'reward_model': {'enable': False,
                  'enable_resource_pool': False,
                  'forward_max_token_len_per_gpu': 32768,
                  'launch_reward_fn_async': False,
                  'max_length': None,
                  'micro_batch_size': None,
                  'micro_batch_size_per_gpu': None,
                  'model': {'external_lib': None,
                            'fsdp_config': {'_target_': 'verl.workers.config.FSDPEngineConfig',
                                            'forward_prefetch': False,
                                            'fsdp_size': -1,
                                            'param_offload': False,
                                            'reshard_after_forward': True,
                                            'wrap_policy': {'min_num_params': 0}},
                            'input_tokenizer': 'Qwen/Qwen2.5-VL-3B-Instruct',
                            'path': '~/models/FsfairX-LLaMA3-RM-v0.1',
                            'trust_remote_code': False,
                            'use_fused_kernels': True,
                            'use_remove_padding': False,
                            'use_shm': False},
                  'n_gpus_per_node': 0,
                  'nnodes': 0,
                  'profiler': {'_target_': 'verl.utils.profiler.ProfilerConfig',
                               'all_ranks': False,
                               'enable': False,
                               'ranks': [],
                               'save_path': 'outputs/profile',
                               'tool': None,
                               'tool_config': {'npu': {'_target_': 'verl.utils.profiler.config.NPUToolConfig',
                                                       'analysis': True,
                                                       'contents': [],
                                                       'discrete': False,
                                                       'level': 'level1'},
                                               'nsys': {'_target_': 'verl.utils.profiler.config.NsightToolConfig',
                                                        'discrete': False},
                                               'torch': {'_target_': 'verl.utils.profiler.config.TorchProfilerToolConfig',
                                                         'step_end': None,
                                                         'step_start': 0},
                                               'torch_memory': {'_target_': 'verl.utils.profiler.config.TorchMemoryToolConfig',
                                                                'stack_depth': 32,
                                                                'trace_alloc_max_entries': 100000}}},
                  'reward_manager': 'naive',
                  'sandbox_fusion': {'max_concurrent': 64,
                                     'memory_limit_mb': 1024,
                                     'url': None},
                  'strategy': 'fsdp',
                  'ulysses_sequence_parallel_size': 1,
                  'use_dynamic_bsz': False},
 'trainer': {'balance_batch': True,
             'concat_multi_turn': False,
             'critic_warmup': 0,
             'default_hdfs_dir': None,
             'default_local_dir': '/home/.../VAGEN/exps/vagen_experiments/frozenlake_ppo_no_concat_qwen25vl3b/verl_checkpoints',
             'del_local_ckpt_after_load': False,
             'device': 'cuda',
             'esi_redundant_time': 0,
             'experiment_name': 'frozenlake_ppo_no_concat_qwen25vl3b',
             'log_image': {'enable': True,
                           'max_pending': 2,
                           'png_compress_level': 0},
             'log_val_generations': 32,
             'logger': ['console', 'wandb'],
             'max_actor_ckpt_to_keep': 1,
             'max_critic_ckpt_to_keep': 1,
             'n_gpus_per_node': 4,
             'nnodes': 1,
             'project_name': 'vagen_experiments',
             'ray_wait_register_center_timeout': 300,
             'replace_image_tokens_for_logging': True,
             'resume_from_path': None,
             'resume_mode': 'auto',
             'rollout_data_dir': '/home/.../VAGEN/exps/vagen_experiments/frozenlake_ppo_no_concat_qwen25vl3b/rollout_data',
             'save_freq': 30,
             'skip_pad_tokens': True,
             'test_freq': 20,
             'total_epochs': 30,
             'total_training_steps': 301,
             'use_legacy_worker_impl': 'auto',
             'val_before_train': True,
             'val_only': False,
             'validation_data_dir': '/home/gulerlab/.../VAGEN/exps/vagen_experiments/frozenlake_ppo_no_concat_qwen25vl3b/validation'},
 'transfer_queue': {'enable': False}}
[validate_config] All configuration checks passed successfully!
Using dataset class: AgenticDataset
examples/train/frozenlake/train_frozenlake_vision.yaml
Using dataset class: AgenticDataset
examples/train/frozenlake/val_frozenlake_vision.yaml
Size of train dataloader: 625, Size of val dataloader: 1
Total training steps: 301
colocated worker base class <class 'verl.single_controller.base.worker.Worker'>
bind role actor_rollout method chat_completion to class <class 'verl.single_controller.ray.base.create_colocated_worker_cls.<locals>.WorkerDict'>
bind role actor_rollout method generate to class <class 'verl.single_controller.ray.base.create_colocated_worker_cls.<locals>.WorkerDict'>
bind role actor_rollout method get_zeromq_address to class <class 'verl.single_controller.ray.base.create_colocated_worker_cls.<locals>.WorkerDict'>
bind role actor_rollout method sleep to class <class 'verl.single_controller.ray.base.create_colocated_worker_cls.<locals>.WorkerDict'>
bind role actor_rollout method wake_up to class <class 'verl.single_controller.ray.base.create_colocated_worker_cls.<locals>.WorkerDict'>
AgentLoopManager: ['169.235.18.207:34385', '169.235.18.207:33893', '169.235.18.207:33155', '169.235.18.207:42729']
Training from scratch
test_gen_batch meta info: {'eos_token_id': 151645, 'pad_token_id': 151643, 'recompute_log_prob': False, 'do_sample': False, 'validate': True, 'global_steps': 0}
[DEBUG] AgentLoopManager: generate_sequences called with batch size: 64
[DEBUG] AgentLoopManager: number of chunks: 4

Below is the output by running py-spy dump --native --pid 261528 > scheduler0.txt (not sure if I provide the right one)

Process 261528: sglang::scheduler
Python v3.12.13 (/home/.../miniconda3/envs/.../bin/python3.12)

Thread 261528 (active+gil): "MainThread"
    get_new_batch_prefill (scheduler.py:1613)
    get_next_batch_to_run (scheduler.py:1572)
    event_loop_overlap (scheduler.py:835)
    decorate_context (torch/utils/_contextlib.py:120)
    run_scheduler_process (scheduler.py:2610)
    run (multiprocessing/process.py:108)
    _bootstrap (multiprocessing/process.py:314)
    _main (multiprocessing/spawn.py:135)
    spawn_main (multiprocessing/spawn.py:122)
    <module> (<string>:1)
    0x757330829d90 (libc.so.6)
Thread 261820 (idle): "Thread-1 (forward_thread_func)"
    0x7573308910d7 (libc.so.6)
    0x75733089cc38 (libc.so.6)
    PyThread_acquire_lock_timed.localalias (python3.12)
    lock_PyThread_acquire_lock (python3.12)
    wait (threading.py:355)
    get (queue.py:171)
    forward_thread_func_ (tp_worker_overlap_thread.py:153)
    decorate_context (torch/utils/_contextlib.py:120)
    forward_thread_func (tp_worker_overlap_thread.py:141)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
    thread_run (python3.12)
    0x757330894a83 (libc.so.6)
    0x757330926890 (libc.so.6)
Thread 261821 (idle): "Thread-2 (watchdog_thread)"
    clock_nanosleep (libc.so.6)
    time_sleep (python3.12)
    watchdog_thread (scheduler.py:2119)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
    thread_run (python3.12)
    0x757330894a83 (libc.so.6)
    0x757330926890 (libc.so.6)
Thread 264374 (idle): "tqdm_monitor"
    0x7573308910d7 (libc.so.6)
    0x75733089ca13 (libc.so.6)
    PyThread_acquire_lock_timed.localalias (python3.12)
    lock_PyThread_acquire_lock (python3.12)
    wait (threading.py:359)
    wait (threading.py:655)
    run (tqdm/_monitor.py:69)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
    thread_run (python3.12)
    0x757330894a83 (libc.so.6)
    0x757330926890 (libc.so.6)
  1. Output from ray status
======== Autoscaler status: 2026-07-31 10:40:39.417188 ========
Node status
---------------------------------------------------------------
Active:
 1 node_9d49c7ab245ad9e21ea3ccdaef98a510f673cfcd36fb04f26b2bc32a
Pending:
 (no pending nodes)
Recent failures:
 (no failures)

Resources
---------------------------------------------------------------
Total Usage:
 9.0/128.0 CPU (4.0 used of 4.0 reserved in placement groups)
 4.0/4.0 GPU (4.0 used of 4.0 reserved in placement groups)
 0B/339.12GiB memory
 324.93MiB/145.34GiB object_store_memory

From request_resources:
 (none)
Pending Demands:
 (no resource demands)

Output from ray list actors --detail

actor_id: 18264cb639a37774175547b301000000
    class_name: AgentLoopWorker
    state: ALIVE
    job_id: '01000000'
    name: agent_loop_worker_0
    node_id: 9d49c7ab245ad9e21ea3ccdaef98a510f673cfcd36fb04f26b2bc32a
    pid: 261844
    ray_namespace: 763fe76a-a778-42cf-9886-b7d71c57f9fd
    serialized_runtime_env: '{"env_vars": {"CUDA_DEVICE_MAX_CONNECTIONS": "1", "NCCL_CUMEM_ENABLE":
        "0", "NCCL_DEBUG": "WARN", "TOKENIZERS_PARALLELISM": "true", "VLLM_ALLOW_RUNTIME_LORA_UPDATING":
        "true", "VLLM_ALLREDUCE_USE_SYMM_MEM": "0", "VLLM_LOGGING_LEVEL": "WARN"}}'
    required_resources: {}
    death_cause: null
    is_detached: false
    placement_group_id: null
    repr_name: ''
    num_restarts: 0
    num_restarts_due_to_lineage_reconstruction: 0
    num_restarts_due_to_node_preemption: 0
    call_site: null
    label_selector: {}
    fallback_strategy: null
-   actor_id: 1f420447089fea8520aee08601000000
    class_name: TaskRunner
    state: ALIVE
    job_id: '01000000'
    name: ''
    node_id: 9d49c7ab245ad9e21ea3ccdaef98a510f673cfcd36fb04f26b2bc32a
    pid: 258951
    ray_namespace: 763fe76a-a778-42cf-9886-b7d71c57f9fd
    serialized_runtime_env: '{"env_vars": {"CUDA_DEVICE_MAX_CONNECTIONS": "1", "NCCL_CUMEM_ENABLE":
        "0", "NCCL_DEBUG": "WARN", "TOKENIZERS_PARALLELISM": "true", "VLLM_ALLOW_RUNTIME_LORA_UPDATING":
        "true", "VLLM_ALLREDUCE_USE_SYMM_MEM": "0", "VLLM_LOGGING_LEVEL": "WARN"}}'
    required_resources:
        CPU: 1.0
    death_cause: null
    is_detached: false
    placement_group_id: null
    repr_name: ''
    num_restarts: 0
    num_restarts_due_to_lineage_reconstruction: 0
    num_restarts_due_to_node_preemption: 0
    call_site: null
    label_selector: {}
    fallback_strategy: null
-   actor_id: 29d6d6bd1c69300b5cb22c3501000000
    class_name: SGLangHttpServer
    state: ALIVE
    job_id: '01000000'
    name: sglang_server_2_0
    node_id: 9d49c7ab245ad9e21ea3ccdaef98a510f673cfcd36fb04f26b2bc32a
    pid: 260864
    ray_namespace: 763fe76a-a778-42cf-9886-b7d71c57f9fd
    serialized_runtime_env: '{"env_vars":{"CUDA_DEVICE_MAX_CONNECTIONS":"1","NCCL_CUMEM_ENABLE":"0","NCCL_DEBUG":"WARN","RAY_EXPERIMENTAL_NOSET_CUDA_VISIBLE_DEVICES":"1","TOKENIZERS_PARALLELISM":"true","VLLM_ALLOW_RUNTIME_LORA_UPDATING":"true","VLLM_ALLREDUCE_USE_SYMM_MEM":"0","VLLM_LOGGING_LEVEL":"WARN"}}'
    required_resources:
        CPU: 1.0
    death_cause: null
    is_detached: false
    placement_group_id: null
    repr_name: ''
    num_restarts: 0
    num_restarts_due_to_lineage_reconstruction: 0
    num_restarts_due_to_node_preemption: 0
    call_site: null
    label_selector: {}
    fallback_strategy: null
-   actor_id: 386783858cedabc7de1efd0c01000000
    class_name: SGLangHttpServer
    state: ALIVE
    job_id: '01000000'
    name: sglang_server_1_0
    node_id: 9d49c7ab245ad9e21ea3ccdaef98a510f673cfcd36fb04f26b2bc32a
    pid: 260863
    ray_namespace: 763fe76a-a778-42cf-9886-b7d71c57f9fd
    serialized_runtime_env: '{"env_vars":{"CUDA_DEVICE_MAX_CONNECTIONS":"1","NCCL_CUMEM_ENABLE":"0","NCCL_DEBUG":"WARN","RAY_EXPERIMENTAL_NOSET_CUDA_VISIBLE_DEVICES":"1","TOKENIZERS_PARALLELISM":"true","VLLM_ALLOW_RUNTIME_LORA_UPDATING":"true","VLLM_ALLREDUCE_USE_SYMM_MEM":"0","VLLM_LOGGING_LEVEL":"WARN"}}'
    required_resources:
        CPU: 1.0
    death_cause: null
    is_detached: false
    placement_group_id: null
    repr_name: ''
    num_restarts: 0
    num_restarts_due_to_lineage_reconstruction: 0
    num_restarts_due_to_node_preemption: 0
    call_site: null
    label_selector: {}
    fallback_strategy: null
-   actor_id: 5470b4594e6219a4095d8f1301000000
    class_name: create_colocated_worker_cls.<locals>.WorkerDict
    state: ALIVE
    job_id: '01000000'
    name: OMS6idWorkerDict_0:2
    node_id: 9d49c7ab245ad9e21ea3ccdaef98a510f673cfcd36fb04f26b2bc32a
    pid: 259235
    ray_namespace: 763fe76a-a778-42cf-9886-b7d71c57f9fd
    serialized_runtime_env: '{"env_vars":{"CUDA_DEVICE_MAX_CONNECTIONS":"1","MASTER_ADDR":"169.235.18.207","MASTER_PORT":"51685","NCCL_CUMEM_ENABLE":"0","NCCL_DEBUG":"WARN","RANK":"2","RAY_LOCAL_WORLD_SIZE":"4","TOKENIZERS_PARALLELISM":"true","VLLM_ALLOW_RUNTIME_LORA_UPDATING":"true","VLLM_ALLREDUCE_USE_SYMM_MEM":"0","VLLM_LOGGING_LEVEL":"WARN","WG_BACKEND":"ray","WG_PREFIX":"OMS6id","WORLD_SIZE":"4"}}'
    required_resources:
        bundle_group_2_c1676043105e75505b484c61a4b601000000: 0.001
        GPU_group_c1676043105e75505b484c61a4b601000000: 1.0
        GPU_group_2_c1676043105e75505b484c61a4b601000000: 1.0
        bundle_group_c1676043105e75505b484c61a4b601000000: 0.001
        CPU_group_c1676043105e75505b484c61a4b601000000: 1.0
        CPU_group_2_c1676043105e75505b484c61a4b601000000: 1.0
    death_cause: null
    is_detached: false
    placement_group_id: c1676043105e75505b484c61a4b601000000
    repr_name: ''
    num_restarts: 0
    num_restarts_due_to_lineage_reconstruction: 0
    num_restarts_due_to_node_preemption: 0
    call_site: null
    label_selector: {}
    fallback_strategy: null
-   actor_id: 7213f39057e7196b5e92a7ff01000000
    class_name: RewardManagerWorker
    state: ALIVE
    job_id: '01000000'
    name: ''
    node_id: 9d49c7ab245ad9e21ea3ccdaef98a510f673cfcd36fb04f26b2bc32a
    pid: 262772
    ray_namespace: 763fe76a-a778-42cf-9886-b7d71c57f9fd
    serialized_runtime_env: '{"env_vars": {"CUDA_DEVICE_MAX_CONNECTIONS": "1", "NCCL_CUMEM_ENABLE":
        "0", "NCCL_DEBUG": "WARN", "TOKENIZERS_PARALLELISM": "true", "VLLM_ALLOW_RUNTIME_LORA_UPDATING":
        "true", "VLLM_ALLREDUCE_USE_SYMM_MEM": "0", "VLLM_LOGGING_LEVEL": "WARN"}}'
    required_resources: {}
    death_cause: null
    is_detached: false
    placement_group_id: null
    repr_name: ''
    num_restarts: 0
    num_restarts_due_to_lineage_reconstruction: 0
    num_restarts_due_to_node_preemption: 0
    call_site: null
    label_selector: {}
    fallback_strategy: null
-   actor_id: 7d7882cc39285f12a8e5410a01000000
    class_name: create_colocated_worker_cls.<locals>.WorkerDict
    state: ALIVE
    job_id: '01000000'
    name: OMS6idWorkerDict_0:0
    node_id: 9d49c7ab245ad9e21ea3ccdaef98a510f673cfcd36fb04f26b2bc32a
    pid: 259233
    ray_namespace: 763fe76a-a778-42cf-9886-b7d71c57f9fd
    serialized_runtime_env: '{"env_vars":{"CUDA_DEVICE_MAX_CONNECTIONS":"1","MASTER_ADDR":"169.235.18.207","MASTER_PORT":"51685","NCCL_CUMEM_ENABLE":"0","NCCL_DEBUG":"WARN","RANK":"0","RAY_LOCAL_WORLD_SIZE":"4","TOKENIZERS_PARALLELISM":"true","VLLM_ALLOW_RUNTIME_LORA_UPDATING":"true","VLLM_ALLREDUCE_USE_SYMM_MEM":"0","VLLM_LOGGING_LEVEL":"WARN","WG_BACKEND":"ray","WG_PREFIX":"OMS6id","WORLD_SIZE":"4"}}'
    required_resources:
        CPU_group_c1676043105e75505b484c61a4b601000000: 1.0
        GPU_group_c1676043105e75505b484c61a4b601000000: 1.0
        bundle_group_c1676043105e75505b484c61a4b601000000: 0.001
        CPU_group_0_c1676043105e75505b484c61a4b601000000: 1.0
        bundle_group_0_c1676043105e75505b484c61a4b601000000: 0.001
        GPU_group_0_c1676043105e75505b484c61a4b601000000: 1.0
    death_cause: null
    is_detached: false
    placement_group_id: c1676043105e75505b484c61a4b601000000
    repr_name: ''
    num_restarts: 0
    num_restarts_due_to_lineage_reconstruction: 0
    num_restarts_due_to_node_preemption: 0
    call_site: null
    label_selector: {}
    fallback_strategy: null
-   actor_id: 987370a6cef9c92d35dd725a01000000
    class_name: RewardManagerWorker
    state: ALIVE
    job_id: '01000000'
    name: ''
    node_id: 9d49c7ab245ad9e21ea3ccdaef98a510f673cfcd36fb04f26b2bc32a
    pid: 262818
    ray_namespace: 763fe76a-a778-42cf-9886-b7d71c57f9fd
    serialized_runtime_env: '{"env_vars": {"CUDA_DEVICE_MAX_CONNECTIONS": "1", "NCCL_CUMEM_ENABLE":
        "0", "NCCL_DEBUG": "WARN", "TOKENIZERS_PARALLELISM": "true", "VLLM_ALLOW_RUNTIME_LORA_UPDATING":
        "true", "VLLM_ALLREDUCE_USE_SYMM_MEM": "0", "VLLM_LOGGING_LEVEL": "WARN"}}'
    required_resources: {}
    death_cause: null
    is_detached: false
    placement_group_id: null
    repr_name: ''
    num_restarts: 0
    num_restarts_due_to_lineage_reconstruction: 0
    num_restarts_due_to_node_preemption: 0
    call_site: null
    label_selector: {}
    fallback_strategy: null
-   actor_id: b6094710afc3d4977213829801000000
    class_name: AgentLoopWorker
    state: ALIVE
    job_id: '01000000'
    name: agent_loop_worker_1
    node_id: 9d49c7ab245ad9e21ea3ccdaef98a510f673cfcd36fb04f26b2bc32a
    pid: 261845
    ray_namespace: 763fe76a-a778-42cf-9886-b7d71c57f9fd
    serialized_runtime_env: '{"env_vars": {"CUDA_DEVICE_MAX_CONNECTIONS": "1", "NCCL_CUMEM_ENABLE":
        "0", "NCCL_DEBUG": "WARN", "TOKENIZERS_PARALLELISM": "true", "VLLM_ALLOW_RUNTIME_LORA_UPDATING":
        "true", "VLLM_ALLREDUCE_USE_SYMM_MEM": "0", "VLLM_LOGGING_LEVEL": "WARN"}}'
    required_resources: {}
    death_cause: null
    is_detached: false
    placement_group_id: null
    repr_name: ''
    num_restarts: 0
    num_restarts_due_to_lineage_reconstruction: 0
    num_restarts_due_to_node_preemption: 0
    call_site: null
    label_selector: {}
    fallback_strategy: null
-   actor_id: bcf5ef8e18ed7ff7cf11943901000000
    class_name: AgentLoopWorker
    state: ALIVE
    job_id: '01000000'
    name: agent_loop_worker_3
    node_id: 9d49c7ab245ad9e21ea3ccdaef98a510f673cfcd36fb04f26b2bc32a
    pid: 261848
    ray_namespace: 763fe76a-a778-42cf-9886-b7d71c57f9fd
    serialized_runtime_env: '{"env_vars": {"CUDA_DEVICE_MAX_CONNECTIONS": "1", "NCCL_CUMEM_ENABLE":
        "0", "NCCL_DEBUG": "WARN", "TOKENIZERS_PARALLELISM": "true", "VLLM_ALLOW_RUNTIME_LORA_UPDATING":
        "true", "VLLM_ALLREDUCE_USE_SYMM_MEM": "0", "VLLM_LOGGING_LEVEL": "WARN"}}'
    required_resources: {}
    death_cause: null
    is_detached: false
    placement_group_id: null
    repr_name: ''
    num_restarts: 0
    num_restarts_due_to_lineage_reconstruction: 0
    num_restarts_due_to_node_preemption: 0
    call_site: null
    label_selector: {}
    fallback_strategy: null
-   actor_id: bd8e89cde5937418a8c32a7b01000000
    class_name: RewardManagerWorker
    state: ALIVE
    job_id: '01000000'
    name: ''
    node_id: 9d49c7ab245ad9e21ea3ccdaef98a510f673cfcd36fb04f26b2bc32a
    pid: 262734
    ray_namespace: 763fe76a-a778-42cf-9886-b7d71c57f9fd
    serialized_runtime_env: '{"env_vars": {"CUDA_DEVICE_MAX_CONNECTIONS": "1", "NCCL_CUMEM_ENABLE":
        "0", "NCCL_DEBUG": "WARN", "TOKENIZERS_PARALLELISM": "true", "VLLM_ALLOW_RUNTIME_LORA_UPDATING":
        "true", "VLLM_ALLREDUCE_USE_SYMM_MEM": "0", "VLLM_LOGGING_LEVEL": "WARN"}}'
    required_resources: {}
    death_cause: null
    is_detached: false
    placement_group_id: null
    repr_name: ''
    num_restarts: 0
    num_restarts_due_to_lineage_reconstruction: 0
    num_restarts_due_to_node_preemption: 0
    call_site: null
    label_selector: {}
    fallback_strategy: null
-   actor_id: c27ff93f4ed63a0b1c2aec0901000000
    class_name: SGLangHttpServer
    state: ALIVE
    job_id: '01000000'
    name: sglang_server_3_0
    node_id: 9d49c7ab245ad9e21ea3ccdaef98a510f673cfcd36fb04f26b2bc32a
    pid: 260865
    ray_namespace: 763fe76a-a778-42cf-9886-b7d71c57f9fd
    serialized_runtime_env: '{"env_vars":{"CUDA_DEVICE_MAX_CONNECTIONS":"1","NCCL_CUMEM_ENABLE":"0","NCCL_DEBUG":"WARN","RAY_EXPERIMENTAL_NOSET_CUDA_VISIBLE_DEVICES":"1","TOKENIZERS_PARALLELISM":"true","VLLM_ALLOW_RUNTIME_LORA_UPDATING":"true","VLLM_ALLREDUCE_USE_SYMM_MEM":"0","VLLM_LOGGING_LEVEL":"WARN"}}'
    required_resources:
        CPU: 1.0
    death_cause: null
    is_detached: false
    placement_group_id: null
    repr_name: ''
    num_restarts: 0
    num_restarts_due_to_lineage_reconstruction: 0
    num_restarts_due_to_node_preemption: 0
    call_site: null
    label_selector: {}
    fallback_strategy: null
-   actor_id: d024e52ac2c67ed8f6ed8d7f01000000
    class_name: SGLangHttpServer
    state: ALIVE
    job_id: '01000000'
    name: sglang_server_0_0
    node_id: 9d49c7ab245ad9e21ea3ccdaef98a510f673cfcd36fb04f26b2bc32a
    pid: 260862
    ray_namespace: 763fe76a-a778-42cf-9886-b7d71c57f9fd
    serialized_runtime_env: '{"env_vars":{"CUDA_DEVICE_MAX_CONNECTIONS":"1","NCCL_CUMEM_ENABLE":"0","NCCL_DEBUG":"WARN","RAY_EXPERIMENTAL_NOSET_CUDA_VISIBLE_DEVICES":"1","TOKENIZERS_PARALLELISM":"true","VLLM_ALLOW_RUNTIME_LORA_UPDATING":"true","VLLM_ALLREDUCE_USE_SYMM_MEM":"0","VLLM_LOGGING_LEVEL":"WARN"}}'
    required_resources:
        CPU: 1.0
    death_cause: null
    is_detached: false
    placement_group_id: null
    repr_name: ''
    num_restarts: 0
    num_restarts_due_to_lineage_reconstruction: 0
    num_restarts_due_to_node_preemption: 0
    call_site: null
    label_selector: {}
    fallback_strategy: null
-   actor_id: d8fe131b47e01afbea171d4e01000000
    class_name: AgentLoopWorker
    state: ALIVE
    job_id: '01000000'
    name: agent_loop_worker_2
    node_id: 9d49c7ab245ad9e21ea3ccdaef98a510f673cfcd36fb04f26b2bc32a
    pid: 261846
    ray_namespace: 763fe76a-a778-42cf-9886-b7d71c57f9fd
    serialized_runtime_env: '{"env_vars": {"CUDA_DEVICE_MAX_CONNECTIONS": "1", "NCCL_CUMEM_ENABLE":
        "0", "NCCL_DEBUG": "WARN", "TOKENIZERS_PARALLELISM": "true", "VLLM_ALLOW_RUNTIME_LORA_UPDATING":
        "true", "VLLM_ALLREDUCE_USE_SYMM_MEM": "0", "VLLM_LOGGING_LEVEL": "WARN"}}'
    required_resources: {}
    death_cause: null
    is_detached: false
    placement_group_id: null
    repr_name: ''
    num_restarts: 0
    num_restarts_due_to_lineage_reconstruction: 0
    num_restarts_due_to_node_preemption: 0
    call_site: null
    label_selector: {}
    fallback_strategy: null
-   actor_id: e71eb094eb8d01f22e01face01000000
    class_name: create_colocated_worker_cls.<locals>.WorkerDict
    state: ALIVE
    job_id: '01000000'
    name: OMS6idWorkerDict_0:3
    node_id: 9d49c7ab245ad9e21ea3ccdaef98a510f673cfcd36fb04f26b2bc32a
    pid: 259236
    ray_namespace: 763fe76a-a778-42cf-9886-b7d71c57f9fd
    serialized_runtime_env: '{"env_vars":{"CUDA_DEVICE_MAX_CONNECTIONS":"1","MASTER_ADDR":"169.235.18.207","MASTER_PORT":"51685","NCCL_CUMEM_ENABLE":"0","NCCL_DEBUG":"WARN","RANK":"3","RAY_LOCAL_WORLD_SIZE":"4","TOKENIZERS_PARALLELISM":"true","VLLM_ALLOW_RUNTIME_LORA_UPDATING":"true","VLLM_ALLREDUCE_USE_SYMM_MEM":"0","VLLM_LOGGING_LEVEL":"WARN","WG_BACKEND":"ray","WG_PREFIX":"OMS6id","WORLD_SIZE":"4"}}'
    required_resources:
        CPU_group_3_c1676043105e75505b484c61a4b601000000: 1.0
        GPU_group_c1676043105e75505b484c61a4b601000000: 1.0
        bundle_group_c1676043105e75505b484c61a4b601000000: 0.001
        bundle_group_3_c1676043105e75505b484c61a4b601000000: 0.001
        CPU_group_c1676043105e75505b484c61a4b601000000: 1.0
        GPU_group_3_c1676043105e75505b484c61a4b601000000: 1.0
    death_cause: null
    is_detached: false
    placement_group_id: c1676043105e75505b484c61a4b601000000
    repr_name: ''
    num_restarts: 0
    num_restarts_due_to_lineage_reconstruction: 0
    num_restarts_due_to_node_preemption: 0
    call_site: null
    label_selector: {}
    fallback_strategy: null
-   actor_id: f792d67a70b6dfab7ab264f101000000
    class_name: create_colocated_worker_cls.<locals>.WorkerDict
    state: ALIVE
    job_id: '01000000'
    name: OMS6idWorkerDict_0:1
    node_id: 9d49c7ab245ad9e21ea3ccdaef98a510f673cfcd36fb04f26b2bc32a
    pid: 259234
    ray_namespace: 763fe76a-a778-42cf-9886-b7d71c57f9fd
    serialized_runtime_env: '{"env_vars":{"CUDA_DEVICE_MAX_CONNECTIONS":"1","MASTER_ADDR":"169.235.18.207","MASTER_PORT":"51685","NCCL_CUMEM_ENABLE":"0","NCCL_DEBUG":"WARN","RANK":"1","RAY_LOCAL_WORLD_SIZE":"4","TOKENIZERS_PARALLELISM":"true","VLLM_ALLOW_RUNTIME_LORA_UPDATING":"true","VLLM_ALLREDUCE_USE_SYMM_MEM":"0","VLLM_LOGGING_LEVEL":"WARN","WG_BACKEND":"ray","WG_PREFIX":"OMS6id","WORLD_SIZE":"4"}}'
    required_resources:
        CPU_group_1_c1676043105e75505b484c61a4b601000000: 1.0
        CPU_group_c1676043105e75505b484c61a4b601000000: 1.0
        GPU_group_c1676043105e75505b484c61a4b601000000: 1.0
        bundle_group_c1676043105e75505b484c61a4b601000000: 0.001
        bundle_group_1_c1676043105e75505b484c61a4b601000000: 0.001
        GPU_group_1_c1676043105e75505b484c61a4b601000000: 1.0
    death_cause: null
    is_detached: false
    placement_group_id: c1676043105e75505b484c61a4b601000000
    repr_name: ''
    num_restarts: 0
    num_restarts_due_to_lineage_reconstruction: 0
    num_restarts_due_to_node_preemption: 0
    call_site: null
    label_selector: {}
    fallback_strategy: null
-   actor_id: fc95ff36256054f72bba72d101000000
    class_name: RewardManagerWorker
    state: ALIVE
    job_id: '01000000'
    name: ''
    node_id: 9d49c7ab245ad9e21ea3ccdaef98a510f673cfcd36fb04f26b2bc32a
    pid: 262735
    ray_namespace: 763fe76a-a778-42cf-9886-b7d71c57f9fd
    serialized_runtime_env: '{"env_vars": {"CUDA_DEVICE_MAX_CONNECTIONS": "1", "NCCL_CUMEM_ENABLE":
        "0", "NCCL_DEBUG": "WARN", "TOKENIZERS_PARALLELISM": "true", "VLLM_ALLOW_RUNTIME_LORA_UPDATING":
        "true", "VLLM_ALLREDUCE_USE_SYMM_MEM": "0", "VLLM_LOGGING_LEVEL": "WARN"}}'
    required_resources: {}
    death_cause: null
    is_detached: false
    placement_group_id: null
    repr_name: ''
    num_restarts: 0
    num_restarts_due_to_lineage_reconstruction: 0
    num_restarts_due_to_node_preemption: 0
    call_site: null
    label_selector: {}
    fallback_strategy: null

Output by py-spy dump --native --pid 259233 > workerdict0.txt

Process 259233: ray::WorkerDict
Python v3.12.13 (/home/gulerlab/miniconda3/envs/vagen_latest-frozenlake/bin/python3.12)

Thread 259233 (idle): "MainThread"
    epoll_wait (libc.so.6)
    boost::asio::detail::epoll_reactor::run (ray/_raylet.so)
    boost::asio::detail::scheduler::do_run_one (ray/_raylet.so)
    boost::asio::detail::scheduler::run (ray/_raylet.so)
    boost::asio::io_context::run (ray/_raylet.so)
    ray::core::CoreWorker::RunTaskExecutionLoop (ray/_raylet.so)
    ray::core::CoreWorkerProcessImpl::RunWorkerTaskExecutionLoop (ray/_raylet.so)
    run_task_loop (ray/_raylet.so)
    main_loop (ray/_private/worker.py:1066)
    <module> (ray/_private/workers/default_worker.py:323)
    0x7ac61f229d90 (libc.so.6)
Thread 259357 (idle): "PythonGCThread"
    0x7ac61f2910d7 (libc.so.6)
    0x7ac61f29cc38 (libc.so.6)
    PyThread_acquire_lock_timed.localalias (python3.12)
    lock_PyThread_acquire_lock (python3.12)
    wait (threading.py:355)
    wait (threading.py:655)
    run (ray/_private/gc_collect_manager.py:29)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
    thread_run (python3.12)
    0x7ac61f294a83 (libc.so.6)
    0x7ac61f326890 (libc.so.6)
Thread 259873 (idle): "AsyncIO Thread: default"
    epoll_pwait (libc.so.6)
    uv__io_poll (linux.c:1432)
    uv_run (core.c:452)
    Loop__Loop__run (loop.c:18471)
    Loop__run (loop.c:18876)
    run_forever (loop.c:31528)
    run_forever (loop.c:31331)
    initialize_eventloops_for_actor_concurrency_group_lambda2 (ray/_raylet.so)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
    thread_run (python3.12)
    0x7ac61f294a83 (libc.so.6)
    0x7ac61f326890 (libc.so.6)
Thread 259912 (idle): "tqdm_monitor"
    0x7ac61f2910d7 (libc.so.6)
    0x7ac61f29ca13 (libc.so.6)
    PyThread_acquire_lock_timed.localalias (python3.12)
    lock_PyThread_acquire_lock (python3.12)
    wait (threading.py:359)
    wait (threading.py:655)
    run (tqdm/_monitor.py:69)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
    thread_run (python3.12)
    0x7ac61f294a83 (libc.so.6)
    0x7ac61f326890 (libc.so.6)
Thread 259925 (idle): "tqdm_monitor"
    0x7ac61f2910d7 (libc.so.6)
    0x7ac61f29ca13 (libc.so.6)
    PyThread_acquire_lock_timed.localalias (python3.12)
    lock_PyThread_acquire_lock (python3.12)
    wait (threading.py:359)
    wait (threading.py:655)
    run (tqdm/_monitor.py:69)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
    thread_run (python3.12)
    0x7ac61f294a83 (libc.so.6)
    0x7ac61f326890 (libc.so.6)

Disabling the validation does not avoid this issue as it will also happen during rollout generation for training

  1. Additional information Through extensive testing, I found that increasing actor_rollout_ref.rollout.tensor_model_parallel_size from 1 to 4 and setting actor_rollout_ref.rollout.agent.num_workers to 4 can somewhat alleviate the hanging issue. However, this only delays the occurrence of the hang rather than eliminating it completely. I also observed that setting num_workers too high (8) or too low (1) does not work well.

YushuYan064 avatar Jul 31 '26 17:07 YushuYan064

Hi @YushuYan064, thanks for the detailed follow-up. I ran a bounded reproduction using the same veRL commit (3fe0a29975e1b02ae2bd1dec249f7807dd7966f5) and matching core versions (PyTorch 2.8.0, Ray 2.56.1, SGLang 0.5.2), with async SGLang rollout, multi-turn enabled, four agent-loop workers, and a validation-disabled training path.

On 4 x H20 GPUs, I observed:

  • 44 validation repetitions completed without a stall;
  • 10 real training/rollout transitions completed;
  • all 574 instrumented backend dispatches had matching completions, with 0 errors and 0 outstanding requests;
  • no initialization timeout, phase timeout, or 900-second no-progress interval occurred.

So I could not reproduce the hang in this bounded run. This does not mean the issue is absent: my hardware differs from your RTX A5000 setup, and I used the public VAGEN code compatible with the pinned veRL revision rather than your exact VAGEN working tree.

The most useful next step would be to capture the request boundary in the environment that actually hangs. Could you share the exact VAGEN commit (and any local diff)? At the next hang, stacks from an AgentLoopWorker, an SGLangHttpServer, and the corresponding SGLang scheduler would also be more informative than the idle WorkerDict stack alone. I can provide a lightweight collector that records phase, worker/server rank, request ID, dispatch/completion timestamps, and the outstanding request set, without changing rollout behavior. That should tell us whether the wait is before dispatch, inside SGLang generation, or after completion while returning through Ray.

kaining-never-stop avatar Aug 01 '26 18:08 kaining-never-stop

Hi @kaining-never-stop, thanks for your response.

I am using the same version as yours, by directly clone the resipotrary. The only changes I have made were the batch size, number of workers, etc to fit my machine.

One of the stacks from AgentLoopWorker.generate_sequences is given below

Thread 867625 (idle): "MainThread"
    main_loop (ray/_private/worker.py:1066)
    <module> (ray/_private/workers/default_worker.py:323)
Thread 867770 (idle): "PythonGCThread"
    wait (threading.py:355)
    wait (threading.py:655)
    run (ray/_private/gc_collect_manager.py:29)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 868241 (idle): "AsyncIO Thread: default"
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 868250 (idle): "Thread-1 (_read_thread)"
    _recv_msg (torch/_inductor/compile_worker/subproc_pool.py:61)
    _read_thread (torch/_inductor/compile_worker/subproc_pool.py:195)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 868545 (idle)
Thread 868547 (idle): "ThreadPoolExecutor-0_0"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 868548 (idle): "ThreadPoolExecutor-0_1"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 868549 (idle): "ThreadPoolExecutor-0_2"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 868550 (idle): "ThreadPoolExecutor-0_3"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 868551 (idle): "ThreadPoolExecutor-0_4"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 868552 (idle): "ThreadPoolExecutor-0_5"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 868553 (idle): "ThreadPoolExecutor-0_6"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 868554 (idle): "ThreadPoolExecutor-0_7"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 868555 (idle): "ThreadPoolExecutor-0_8"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 868556 (idle): "ThreadPoolExecutor-0_9"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 868557 (idle): "ThreadPoolExecutor-0_10"
    close (gymnasium/envs/toy_text/frozen_lake.py:492)
    run (concurrent/futures/thread.py:59)
    _worker (concurrent/futures/thread.py:93)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 868558 (idle): "ThreadPoolExecutor-0_11"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 868559 (idle): "ThreadPoolExecutor-0_12"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 868560 (idle): "ThreadPoolExecutor-0_13"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 868561 (idle): "ThreadPoolExecutor-0_14"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 868562 (idle): "ThreadPoolExecutor-0_15"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 870944 (idle): "ThreadPoolExecutor-0_16"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 871250 (idle): "ThreadPoolExecutor-0_17"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 871251 (idle): "ThreadPoolExecutor-0_18"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 871255 (idle): "ThreadPoolExecutor-0_19"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 871256 (idle): "ThreadPoolExecutor-0_20"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 871257 (idle): "ThreadPoolExecutor-0_21"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 871260 (idle): "ThreadPoolExecutor-0_22"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 871261 (idle): "ThreadPoolExecutor-0_23"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 871264 (idle): "ThreadPoolExecutor-0_24"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 871265 (idle): "ThreadPoolExecutor-0_25"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
```

Another stacks from `AgentLoopWorker` is given below,
```Text
Thread 867626 (idle): "MainThread"
    main_loop (ray/_private/worker.py:1066)
    <module> (ray/_private/workers/default_worker.py:323)
Thread 867885 (idle): "PythonGCThread"
    wait (threading.py:355)
    wait (threading.py:655)
    run (ray/_private/gc_collect_manager.py:29)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 868248 (idle): "AsyncIO Thread: default"
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 868256 (idle): "Thread-1 (_read_thread)"
    _recv_msg (torch/_inductor/compile_worker/subproc_pool.py:61)
    _read_thread (torch/_inductor/compile_worker/subproc_pool.py:195)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 869010 (idle): "ThreadPoolExecutor-0_0"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 869011 (idle): "ThreadPoolExecutor-0_1"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 869012 (idle): "ThreadPoolExecutor-0_2"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 869013 (idle): "ThreadPoolExecutor-0_3"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 869015 (idle): "ThreadPoolExecutor-0_4"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 869016 (idle): "ThreadPoolExecutor-0_5"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 869017 (idle): "ThreadPoolExecutor-0_6"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 869018 (idle): "ThreadPoolExecutor-0_7"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 869019 (idle): "ThreadPoolExecutor-0_8"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 869020 (idle): "ThreadPoolExecutor-0_9"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 869021 (idle): "ThreadPoolExecutor-0_10"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 869022 (idle): "ThreadPoolExecutor-0_11"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 869023 (idle): "ThreadPoolExecutor-0_12"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 869024 (idle): "ThreadPoolExecutor-0_13"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 869025 (idle): "ThreadPoolExecutor-0_14"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 869026 (idle): "ThreadPoolExecutor-0_15"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 870945 (idle): "ThreadPoolExecutor-0_16"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 870946 (idle): "ThreadPoolExecutor-0_17"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 871253 (idle): "ThreadPoolExecutor-0_18"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 871254 (idle): "ThreadPoolExecutor-0_19"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 871258 (idle): "ThreadPoolExecutor-0_20"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 871279 (idle): "ThreadPoolExecutor-0_21"
    _worker (concurrent/futures/thread.py:90)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
```

When I run `ps aux | grep sglang`
```Text
gulerlab  856497  2.3  0.1 185494444 940548 pts/4 Sl+ 11:49   0:20 python3 -m vagen.main_ppo --config-path=/home/.../VAGEN/vagen/configs --config-name=vagen_multiturn data.train_files=examples/train/frozenlake/train_frozenlake_vision.yaml data.val_files=examples/train/frozenlake/val_frozenlake_vision.yaml data.train_batch_size=16 algorithm.adv_estimator=no_concat_gae algorithm.kl_ctrl.kl_coef=0.0 actor_rollout_ref.model.path=Qwen/Qwen2.5-VL-3B-Instruct actor_rollout_ref.model.use_remove_padding=True actor_rollout_ref.model.use_fused_kernels=True actor_rollout_ref.actor.optim.lr=1e-6 actor_rollout_ref.actor.ppo_mini_batch_size=16 actor_rollout_ref.actor.ppo_micro_batch_size_per_gpu=1 actor_rollout_ref.actor.use_kl_loss=False actor_rollout_ref.actor.kl_loss_coef=0.0 actor_rollout_ref.actor.kl_loss_type=low_var_kl actor_rollout_ref.actor.entropy_coeff=0.0 actor_rollout_ref.actor.checkpoint.save_contents=[model,hf_model,optimizer,extra] actor_rollout_ref.actor.ulysses_sequence_parallel_size=1 actor_rollout_ref.rollout.log_prob_micro_batch_size_per_gpu=1 actor_rollout_ref.rollout.tensor_model_parallel_size=1 actor_rollout_ref.rollout.name=sglang actor_rollout_ref.rollout.mode=async actor_rollout_ref.rollout.n=1 actor_rollout_ref.rollout.max_num_batched_tokens=10000 actor_rollout_ref.rollout.gpu_memory_utilization=0.35 actor_rollout_ref.rollout.max_num_seqs=8 actor_rollout_ref.rollout.enforce_eager=True actor_rollout_ref.rollout.free_cache_engine=True actor_rollout_ref.rollout.enable_chunked_prefill=True actor_rollout_ref.actor.fsdp_config.param_offload=True actor_rollout_ref.actor.fsdp_config.optimizer_offload=True actor_rollout_ref.model.enable_gradient_checkpointing=True actor_rollout_ref.ref.log_prob_micro_batch_size_per_gpu=1 actor_rollout_ref.ref.fsdp_config.param_offload=True actor_rollout_ref.rollout.multi_turn.enable=True actor_rollout_ref.rollout.agent.num_workers=4 actor_rollout_ref.rollout.agent.agent_loop_config_path=/home/gulerlab/Yushu/Agentic/VAGEN_Latest-FROZENLAKE/VAGEN/vagen/configs/agent_no_concat.yaml actor_rollout_ref.rollout.disable_log_stats=False trainer.critic_warmup=0 trainer.logger=[console,wandb] trainer.val_before_train=True trainer.n_gpus_per_node=4 trainer.nnodes=1 trainer.save_freq=30 trainer.test_freq=20 trainer.project_name=vagen_experiments trainer.experiment_name=frozenlake_ppo_no_concat_qwen25vl3b trainer.default_local_dir=/home/gulerlab/Yushu/Agentic/VAGEN_Latest-FROZENLAKE/VAGEN/exps/vagen_experiments/frozenlake_ppo_no_concat_qwen25vl3b/verl_checkpoints trainer.validation_data_dir=/home/gulerlab/Yushu/Agentic/VAGEN_Latest-FROZENLAKE/VAGEN/exps/vagen_experiments/frozenlake_ppo_no_concat_qwen25vl3b/validation trainer.rollout_data_dir=/home/gulerlab/Yushu/Agentic/VAGEN_Latest-FROZENLAKE/VAGEN/exps/vagen_experiments/frozenlake_ppo_no_concat_qwen25vl3b/rollout_data trainer.log_val_generations=32 trainer.concat_multi_turn=False data.max_prompt_length=1000 data.max_response_length=512 critic.enable=True critic.optim.lr=1e-5 critic.model.use_remove_padding=True critic.model.path=Qwen/Qwen2.5-VL-3B-Instruct critic.model.enable_gradient_checkpointing=True critic.ppo_micro_batch_size_per_gpu=1 critic.model.fsdp_config.param_offload=True critic.model.fsdp_config.optimizer_offload=True trainer.total_training_steps=301
... 867219  100  0.4 26969132 2155592 pts/4 RNl+ 11:50  13:12 sglang::scheduler
... 867220  0.7  0.1 10929792 938844 pts/4 SNl+ 11:50   0:06 sglang::detokenizer
... 867222  100  0.4 27057632 2172440 pts/4 RNl+ 11:50  13:12 sglang::scheduler
... 867223  0.7  0.1 10929696 938720 pts/4 SNl+ 11:50   0:06 sglang::detokenizer
... 867225  100  0.4 27997740 2169572 pts/4 RNl+ 11:50  13:12 sglang::scheduler
... 867226  0.7  0.1 10929560 938564 pts/4 SNl+ 11:50   0:06 sglang::detokenizer
... 867228  100  0.4 26999136 2196508 pts/4 RNl+ 11:50  13:12 sglang::scheduler
... 867229  0.7  0.1 10929568 938944 pts/4 SNl+ 11:50   0:06 sglang::detokenizer
... 883930  0.0  0.0   9220  2708 pts/5    S+   12:03   0:00 grep --color=auto sglang
```

One of the stacks from `sglang::scheduler` is given below,
```Text
Thread 867219 (active+gil): "MainThread"
    __len__ (torch/_tensor.py:1174)
    available_size (allocator.py:143)
    _get_token_info (scheduler.py:1504)
    check_memory (scheduler.py:1438)
    self_check_during_idle (scheduler.py:1415)
    event_loop_overlap (scheduler.py:865)
    decorate_context (torch/utils/_contextlib.py:120)
    run_scheduler_process (scheduler.py:2610)
    run (multiprocessing/process.py:108)
    _bootstrap (multiprocessing/process.py:314)
    _main (multiprocessing/spawn.py:135)
    spawn_main (multiprocessing/spawn.py:122)
    <module> (<string>:1)
Thread 867604 (idle): "Thread-1 (forward_thread_func)"
    wait (threading.py:355)
    get (queue.py:171)
    forward_thread_func_ (tp_worker_overlap_thread.py:153)
    decorate_context (torch/utils/_contextlib.py:120)
    forward_thread_func (tp_worker_overlap_thread.py:141)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 867608 (idle): "Thread-2 (watchdog_thread)"
    watchdog_thread (scheduler.py:2119)
    run (threading.py:1012)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
Thread 870026 (idle): "tqdm_monitor"
    wait (threading.py:359)
    wait (threading.py:655)
    run (tqdm/_monitor.py:69)
    _bootstrap_inner (threading.py:1075)
    _bootstrap (threading.py:1032)
```

YushuYan064 avatar Aug 04 '26 19:08 YushuYan064