from local

This commit is contained in:
dohe0342 2023-05-25 17:23:59 +09:00
parent 02f8e54728
commit 9b1c9001b2
2 changed files with 2 additions and 0 deletions

View File

@ -141,6 +141,8 @@ class LoRAHook():
lora_out = self.lora(input)
output += lora_out
print(lora_out, output)
def save_checkpoint(self, i, iter_, save_dir):
torch.save(self.lora.state_dict(), f"{save_dir}/lora_{iter_}_{i}.pt")