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] replace DataLoader with StatefulDataLoader to support resume training for SequentialSampler #389

Merged
merged 5 commits into from
Feb 27, 2025

Conversation

zpqiu
Copy link
Contributor

@zpqiu zpqiu commented Feb 26, 2025

Try to resolve this issue.

As suggested by this issue discussion, I replace default DataLoader with StatefulDataloader, which provides state_dict and load_state_dict methods that may support resuming the iterator position of mid-epoch checkpointing.

@zpqiu
Copy link
Contributor Author

zpqiu commented Feb 26, 2025

I tried the script for GRPO+GSM8K+SequentialSampler.
I didn't log specific cases, but the prompt-related metrics are aligned across two runs.

截屏2025-02-26 11 47 12

@vermouth1992
Copy link
Collaborator

vermouth1992 commented Feb 26, 2025

Nice feature! Could you rebase main first?

@CLAassistant
Copy link

CLAassistant commented Feb 26, 2025

CLA assistant check
All committers have signed the CLA.

@zpqiu zpqiu force-pushed the stateful_dataloader branch from 8c7938f to 427ea83 Compare February 26, 2025 05:24
@zpqiu
Copy link
Contributor Author

zpqiu commented Feb 26, 2025

Nice feature! Could you rebase main first?

I tried to rebase, could you please check if this is acceptable?

@vermouth1992 vermouth1992 merged commit 96d98cc into volcengine:main Feb 27, 2025
13 checks passed
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.

3 participants