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

⏯️ Fix logging when resuming from checkpoint GRPO #3185

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

qgallouedec
Copy link
Member

First training, (orange) from 0 to 100 timestep
Second training (purple), resume from timestep 40: curves overlap.
Screenshot 2025-03-30 at 20 24 01
Screenshot 2025-03-30 at 20 24 06

@qgallouedec qgallouedec marked this pull request as ready for review April 1, 2025 21:18
@@ -481,7 +480,7 @@ def data_collator(features): # No data collation is needed in GRPO
# vLLM specific sampling arguments
self.guided_decoding_regex = args.vllm_guided_decoding_regex

self._last_loaded_step = 0 # tag to avoid useless loading during grad accumulation
self._last_loaded_step = -1 # tag to avoid useless loading during grad accumulation
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure that for the very first generation, the model loaded is the same as that of the model running on the server.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@qgallouedec qgallouedec changed the title ⏯️ Fix resuming from checkpoint GRPO ⏯️ Fix logging when resuming from checkpoint GRPO Apr 1, 2025
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