Repository navigation
Conversation
Adds backup_entropy to SACLoss, DiscreteSACLoss and SACLossConfig. When False, the critic target uses only the smallest next-state Q value, as in the SERL and HIL-SERL reference code. Defaults to True, so existing behavior is unchanged.
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/rl/4799
Note: Links to docs will display an error until the docs builds have been completed. ❌ 3 New FailuresAs of commit 78a97bb with merge base 7c6a78d ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
theap06
marked this pull request as ready for review
November 29, 2026 09:13
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds
backup_entropytoSACLoss,DiscreteSACLossandSACLossConfig(defaultTrue, so existing behavior is unchanged); withFalsethe critic target drops the-alpha * log_probterm. Losses pickled before the option existed read the class default and keep the entropy term.Motivation and Context
The HIL-SERL reference code trains its critic without the entropy term, and the HIL-SERL recipe (#4774) uses this option to match it.
Stack (merge in this order; #4771, #4772, #4773 and #4799 are independent of each other and each is based on
main, #4774 needs all four):Types of changes
Checklist