generated from fastai/nbdev_template
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix reported KL in PPO trainer (#1180)
* Fix reported KL in PPO trainer previously this was always reporting the estimated KL, even when using `kl_penalty = 'full'` (or `abs`, etc). Now we return the actual KL calculated in `compute_rewards()`, and report that. * fix test
- Loading branch information
1 parent
4ae35af
commit a236c57
Showing
2 changed files
with
14 additions
and
6 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