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.
add: support for
peft
in ddpo. (huggingface#1165)
* add: support for peft in ddpo. * revert to the original modeling_base. * style * specify weight_name * explicitly specify weight_name * fix: parameter parsing * fix: trainable_layers. * parameterize use_lora. * fix one more trainable_layers * debug * debug * more fixes. * manually set unet of sd_pipeline * make trainable_layers cleaner. * more fixes * remove prints. * tester class for LoRA too.
- Loading branch information
Showing
4 changed files
with
80 additions
and
40 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