transformers
dbbd5512 - Fix `AutoModel.from_pretrained` not restoring `modules_to_save` weights (#48595)

Commit
15 days ago
Fix `AutoModel.from_pretrained` not restoring `modules_to_save` weights (#48595) Fix PEFT `modules_to_save` weights not restored The module key mapping returned by `peft.utils.other.AuxiliaryTrainingWrapper.adapter_state_dict_load_map` is required to correctly load `modules_to_save` modules (`peft.utils.other.ModulesToSaveWrapper`), but was previously ignored by the PEFT integration.
Author
Parents
Loading