Skip to content

feat: Pass trainer state to reward functions #3669

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

Merged
merged 6 commits into from
Jul 1, 2025

Conversation

seungduk-yanolja
Copy link
Contributor

This allows for implementing dynamic reward strategies like curriculum learning, where rewards can be adjusted based on training progress. Fixes #3668

@seungduk-yanolja seungduk-yanolja force-pushed the trainer_state branch 6 times, most recently from 79ff77a to f67602f Compare June 30, 2025 07:48
This allows for implementing dynamic reward strategies like curriculum
learning, where rewards can be adjusted based on training progress.

Fixes huggingface#3668
@kashif
Copy link
Collaborator

kashif commented Jun 30, 2025

small nit with the test.. but seemslike a useful thing to have!

@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.

Co-authored-by: Kashif Rasul <kashif.rasul@gmail.com>
@seungduk-yanolja
Copy link
Contributor Author

Does it require approval whenever I create a merge commit?

@kashif kashif merged commit e04f7eb into huggingface:main Jul 1, 2025
marcandrelarochelle pushed a commit to marcandrelarochelle/trl that referenced this pull request Jul 29, 2025
Co-authored-by: Kashif Rasul <kashif.rasul@gmail.com>
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.

GRPOTrainer reward functions cannot access training progress
3 participants