forked from huggingface/trl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📉 Optimize GRPO memory usage by redefining
per_device_batch_size
as…
… generations per device (huggingface#2776) * Distribute * fix some logic errors * fix and document RepeatRandomSampler * comment * doc clarification * fix type hint * more readable * fix eval * fix tests * roll back to distribute generation * improve comment [ci skip] * fix slice * catch for eval batch size as well; fix completion_ids in vllm * log completions * Revert "log completions" This reverts commit 1e4af8f. * Before the first training step, the model has no optimizer: fix ds3
- Loading branch information
1 parent
724acb9
commit cf97133
Showing
6 changed files
with
107 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.