#8000·verl

[Bug][SFT][Megatron] Async checkpoint queue API is incompatible and SFT does not drain saves

Author: ewan0x79Created Sep 23, 2026Updated Sep 23, 2026

System Info

  • verl main at 8579379ffc
  • megatron-core pinned to core_v0.18.0 in pyproject.toml

What happened?

Megatron SFT with checkpoint.async_save=true cannot complete its async checkpoint path. MegatronCheckpointManager._dispatch_finalize imports async_calls from megatron.core.dist_checkpointing.strategies.base, but that object is absent from the pinned Megatron-Core release. The supported queue API is AsyncCallsQueue in strategies.async_utils.

Both SFT trainers (verl.trainer.sft_trainer and verl.trainer.sft_trainer_ray) save checkpoints without advancing Megatron's async queue and can exit after the final step without draining it. The SFT checkpoint handler updates latest_checkpointed_iteration.txt and optionally copies the checkpoint to HDFS when the engine save call returns. With async requests pending, those operations need to wait for checkpoint completion. The manager already places its manifest and retention work in the completion callback.

Reproduction path

Use either SFT trainer with engine=megatron, enable +checkpoint.async_save=true, and reach a checkpoint step. The manager's async finalize path refers to the unavailable strategies.base.async_calls object. After queue scheduling is corrected, the SFT training loops also need rank-aligned queue progress and a blocking drain before exit.

Expected behavior

Megatron async save requests should use the queue API provided by the pinned Megatron-Core version. SFT should advance completion at rank-aligned step boundaries and drain pending saves before exiting. The resume tracker, optional HDFS copy, manifest, and retention changes should be published only after the distributed checkpoint writes finish.

Related work

#7955 addresses unsupported async saves in non-Megatron strategies; this issue concerns Megatron SFT checkpoint completion.