fix pissa save
This commit is contained in:
parent
668654b5ad
commit
2c1ca9f742
|
@ -165,7 +165,8 @@ class PissaConvertCallback(TrainerCallback):
|
|||
)
|
||||
model.load_adapter(pissa_backup_dir, "default", is_trainable=True)
|
||||
model.set_adapter("default")
|
||||
model.delete_adapter("pissa_init")
|
||||
if "pissa_init" in model.peft_config.keys():
|
||||
model.delete_adapter("pissa_init")
|
||||
setattr(model.peft_config["default"], "init_lora_weights", init_lora_weights)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue