-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Adds gradient clipping parameter for distillation using RSL-RL #2454
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
Adds gradient clipping parameter for distillation using RSL-RL #2454
Conversation
|
@ClemensSchwarke This also requires bumping rsl-rl to 2.3.2. @alessandroassirelli98 You'd need to also update the version of rsl-rl in setup.py in |
| """The number of environment steps the gradient flows back.""" | ||
|
|
||
| max_grad_norm: None | float = None | ||
| """The maximum gradient norm used for distillation""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| """The maximum gradient norm used for distillation""" | |
| """The maximum norm the gradient is clipped to.""" |
|
The pre-commit check is failing. Could you please run |
|
yeah sorry, missed an indent 😅 |
Signed-off-by: Mayank Mittal <[email protected]>
…-sim#2454) # Description Added `max_grad_norm` field to `RslRlDistillationAlgorithmCfg` in order to be compatible with leggedrobotics/rsl_rl#91 ## Type of change - New feature (non-breaking change which adds functionality) ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Signed-off-by: Mayank Mittal <[email protected]> Co-authored-by: alessandro.assirelli <[email protected]> Co-authored-by: Mayank Mittal <[email protected]>
…-sim#2454) # Description Added `max_grad_norm` field to `RslRlDistillationAlgorithmCfg` in order to be compatible with leggedrobotics/rsl_rl#91 ## Type of change - New feature (non-breaking change which adds functionality) ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Signed-off-by: Mayank Mittal <[email protected]> Co-authored-by: alessandro.assirelli <[email protected]> Co-authored-by: Mayank Mittal <[email protected]>
…-sim#2454) # Description Added `max_grad_norm` field to `RslRlDistillationAlgorithmCfg` in order to be compatible with leggedrobotics/rsl_rl#91 ## Type of change - New feature (non-breaking change which adds functionality) ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Signed-off-by: Mayank Mittal <[email protected]> Co-authored-by: alessandro.assirelli <[email protected]> Co-authored-by: Mayank Mittal <[email protected]>
Description
Added
max_grad_normfield toRslRlDistillationAlgorithmCfgin order to be compatible with leggedrobotics/rsl_rl#91Type of change
Screenshots
N/A
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there