You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Segault when checkpointing.save_period is not a multiple of grpo.val_period + megatron backend #834
Describe the bug
Saving a checkpoint without first running validation fails with GRPO + megatron. The following segfault occurs in the step immediately after saving the checkpoint:
▶ Generating responses for batch of size 4...
(MegatronPolicyWorker[rank=0] pid=4182) GPU Memory before optimizer offload: 0.02GB allocated, 0.06GB reserved
(MegatronPolicyWorker[rank=0] pid=4182) GPU Memory after optimizer offload: 0.02GB allocated, 0.06GB reserved
(VllmGenerationWorker pid=3269) INFO 08-04 16:39:12 [executor_base.py:226] It took 0.196385 seconds to wake up tags ['weights'].
[Refit] Split 226 keys into 1 groups
(MegatronPolicyWorker[rank=0] pid=4182) [f676f732498b:4182 :0:4182] Caught signal 11 (Segmentation fault: address not mapped to object at address 0x3121dc10)
(MegatronPolicyWorker[rank=0] pid=4182) ==== backtrace (tid: 4182) ====
(MegatronPolicyWorker[rank=0] pid=4182) 0 /opt/hpcx/nccl_rdma_sharp_plugin/lib/../../ucx/lib/libucs.so.0(ucs_handle_error+0x2e4) [0x7faf44156774]
(MegatronPolicyWorker[rank=0] pid=4182) 1 /opt/hpcx/nccl_rdma_sharp_plugin/lib/../../ucx/lib/libucs.so.0(+0x3796a) [0x7faf4415696a]
(MegatronPolicyWorker[rank=0] pid=4182) 2 /opt/hpcx/nccl_rdma_sharp_plugin/lib/../../ucx/lib/libucs.so.0(+0x37ba8) [0x7faf44156ba8]
(MegatronPolicyWorker[rank=0] pid=4182) 3 /usr/local/cuda/compat/lib.real/libcuda.so.1(+0x276180) [0x7fb0603fb180]
...
Note that the following combinations run without error:
RCCA Status: Done
RCCA Category: missing_test_case
Test Action: create_new_test
Fix PR: #844
Root Cause: product-code fix PR found without upstream test file.
Trigger Config: Segault when checkpointing.save_period is not a multiple of grpo.val_period + megatron backend
Coverage Assessment:
Area
Result
Existing Test
N/A
Coverage Status
MISSING_TEST_CASE
Gap
No direct upstream or nmfw_tests regression identified for this fixed code path.
Corrective Action
Missing regression test recorded. Add targeted nmfw_tests coverage if this issue recurs or remains high priority.
Conclusion: RCCA classification completed for this closed NeMo-RL GitHub issue.
Activity
Update mamba-ssm to v2.3.0 with stride fix for packed sequence
qiaochuz-nv commentedon May 5, 2026
QA RCCA Analysis
RCCA Status: Done
RCCA Category: missing_test_case
Test Action: create_new_test
Fix PR: #844
Root Cause: product-code fix PR found without upstream test file.
Trigger Config: Segault when
checkpointing.save_periodis not a multiple ofgrpo.val_period+ megatron backendCoverage Assessment:
Conclusion: RCCA classification completed for this closed NeMo-RL GitHub issue.