Pass state dict (#35234)
* Pass state_dict argument to get_peft_model_state_dict * Style fix * Change arguments order
This commit is contained in:
@@ -3359,7 +3359,7 @@ class PreTrainedModel(nn.Module, ModuleUtilsMixin, GenerationMixin, PushToHubMix
|
||||
logger.info(
|
||||
"Detected adapters on the model, saving the model in the PEFT format, only adapter weights will be saved."
|
||||
)
|
||||
state_dict = model_to_save.get_adapter_state_dict()
|
||||
state_dict = model_to_save.get_adapter_state_dict(state_dict=state_dict)
|
||||
|
||||
if save_peft_format:
|
||||
logger.info(
|
||||
|
||||
Reference in New Issue
Block a user