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

Correct ppo_epochs usage #1480

Merged
merged 3 commits into from
Apr 2, 2024
Merged

Correct ppo_epochs usage #1480

merged 3 commits into from
Apr 2, 2024

Conversation

muhammed-shihebi
Copy link
Contributor

The usage of ppo_epochs is incorrect here.

In https://github.com/huggingface/trl/blob/8534f0edf8608ad6bcbea9beefae380fa60ded77/trl/trainer/ppo_config.py#L104C8-L104C58

the ppo_epochs was described as the "Number of optimisation epochs per batch of samples".

However, here it is used as the usual epoch number, in which you do one iteration over the training dataset.

The usage of ppo_epochs is incorrect here. 

In https://github.com/huggingface/trl/blob/8534f0edf8608ad6bcbea9beefae380fa60ded77/trl/trainer/ppo_config.py#L104C8-L104C58

the ppo_epochs was described as "Number of optimisation epochs per batch of samples". 

However, here it is used as the usual epoch number, in which you do one iteration over the training dataset.
@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.

@kashif kashif merged commit ab0d11d into huggingface:main Apr 2, 2024
1 check passed
lapp0 pushed a commit to lapp0/trl that referenced this pull request May 10, 2024
* Correct ppo_epochs usage

The usage of ppo_epochs is incorrect here.

In https://github.com/huggingface/trl/blob/8534f0edf8608ad6bcbea9beefae380fa60ded77/trl/trainer/ppo_config.py#L104C8-L104C58

the ppo_epochs was described as "Number of optimisation epochs per batch of samples".

However, here it is used as the usual epoch number, in which you do one iteration over the training dataset.

* Update ppo_trainer.mdx

* Update docs/source/ppo_trainer.mdx

---------

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.

3 participants