commit
daa62db06f
|
@ -165,6 +165,7 @@ class PissaConvertCallback(TrainerCallback):
|
|||
)
|
||||
model.load_adapter(pissa_backup_dir, "default", is_trainable=True)
|
||||
model.set_adapter("default")
|
||||
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