code_dapo agentic task fails
- Dominant language
- Python
- Stars
- 3.4k
- Forks
- 312
- Avg merge
- 1h 2m
- Merged PRs (30d)
- 2
Description
I encountered an issue of being too long and uncut while running your `examples/qwen3_agentic_gem/gem_math_dapo.yaml`configuration: 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
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure with examples/qwen3_agentic_gem/gem_math_dapo.yaml. Start by tracing the reported call from distributed/scheduler/generate_scheduler.py:913 through roll/utils/functionals.py:815 and get_pad_mask at line 318. Done means the reported configuration no longer raises the empty-dimension IndexError and the behavior is verified against this reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- ai, machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100