Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ckpt] feat: integrate checkpoint resume in RL ray trainer #222

Merged
merged 16 commits into from
Feb 8, 2025

Conversation

PeterSH6
Copy link
Collaborator

@PeterSH6 PeterSH6 commented Feb 7, 2025

Features:

  • Save actor and critic checkpoint:
    • Model
    • Optimizer
    • lr_scheduler
    • rng_state
    • dataloader
  • A complete checkpoint represents that dataloader, actor and critic (if any) state are properly saved
  • By default, we will not save the dataset but only store the dataloader (with sampler) state

Usage:

  • Support resume mode: auto, disable and resume_from_path
    • auto: veRL will automatically check the latest checkpoint from trainer.default_local_dir
    • disable: veRL will always train from scratch
    • resume_from_path: When setting resume_from_path=True, then user only need to set the resume_mode to the checkpoint path that you want to load.

TODO:

  • Support SFT resume in the next PR
  • Support uploader

Relevant issue:

@PeterSH6 PeterSH6 marked this pull request as ready for review February 8, 2025 04:36
@PeterSH6 PeterSH6 requested a review from vermouth1992 February 8, 2025 04:37
@PeterSH6 PeterSH6 merged commit 5a400bf into main Feb 8, 2025
14 checks passed
@PeterSH6 PeterSH6 deleted the gm/ckpt_integrate branch February 8, 2025 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants