peft
Fix: Respect `inference_mode` when setting adapters with `modules_to_save` (Issue #2928)
#2931
Open

Fix: Respect `inference_mode` when setting adapters with `modules_to_save` (Issue #2928) #2931

ada-ggf25 wants to merge 5 commits into huggingface:main from ada-ggf25:Guilherme_Grancho
ada-ggf25
ada-ggf25 feat(peft_model): add inference_mode parameter to set_adapter method
ffc3b417
ada-ggf25 fix(utils): respect inference_mode when enabling/disabling adapters i…
62e9b634
ada-ggf25 test(utils): add tests for modules_to_save inference_mode behaviour
3ecceedd
ada-ggf25 style(tests): reformat docstring comment to comply with line length
89d684d3
ada-ggf25 refactor(utils): remove requires_grad manipulation on original_module…
d49985ea

Login to write a write a comment.

Login via GitHub

Reviewers
No reviews
Assignees
No one assigned
Labels
Milestone