Skip to content

code_dapo agentic task fails #309

@canghongjian

Description

@canghongjian

I encountered an issue of being too long and uncut while running your examples/qwen3_agentic_gem/gem_math_dapo.yamlconfiguration: index 0 is out of bounds for dimension 1 with size 0:

�[36m(EnvironmentWorker(val_env-0) pid=2125841)�[0m   File "/code/roll/distributed/scheduler/generate_scheduler.py", line 913, in generate_one_request�[32m [repeated 6x across cluster]�[0m

  | 16:52:17.393 | �[36m(EnvironmentWorker(val_env-0) pid=2125841)�[0m     output: DataProto = postprocess_generate(�[32m [repeated 6x across cluster]�[0m
  | 16:52:17.393 | �[36m(EnvironmentWorker(val_env-0) pid=2125841)�[0m   File "/code/roll/utils/functionals.py", line 815, in postprocess_generate�[32m [repeated 6x across cluster]�[0m
  | 16:52:17.393 | �[36m(EnvironmentWorker(val_env-0) pid=2125841)�[0m     response_mask = get_pad_mask(response_id=response, pad_token=pad_token_id, dtype=attention_mask.dtype)�[32m [repeated 6x across cluster]�[0m
  | 16:52:17.393 | �[36m(EnvironmentWorker(val_env-0) pid=2125841)�[0m   File "/code/roll/utils/functionals.py", line 318, in get_pad_mask�[32m [repeated 6x across cluster]�[0m
  | 16:52:17.393 | �[36m(EnvironmentWorker(val_env-0) pid=2125841)�[0m     not (pad_mask[:, 0] == 0).logical_and(pad_mask.sum(-1) != 0).any()�[32m [repeated 6x across cluster]�[0m
  | 16:52:17.393 | �[36m(EnvironmentWorker(val_env-0) pid=2125841)�[0m **IndexError: index 0 is out of bounds for dimension 1 with size 0**�[32m [repeated 6x across cluster]�[0m

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions