Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to continue training a LoRA #13

Open
GoombaProgrammer opened this issue Sep 20, 2024 · 5 comments
Open

How to continue training a LoRA #13

GoombaProgrammer opened this issue Sep 20, 2024 · 5 comments

Comments

@GoombaProgrammer
Copy link

I trained a LoRA, stopped training, and I want to continue training from the same one. But using --lora-ckpt-path just errors with this traceback:

File "D:\tts\ok\stable-audio-tools-main\train.py", line 78, in main
    torch.load(args.lora_ckpt_path, map_location="cpu")["state_dict"]
KeyError: 'state_dict'
@GoombaProgrammer
Copy link
Author

Ok, removing ["state_dict"] works (currently testing if training works).

@GoombaProgrammer
Copy link
Author

I now get a different error. Might be because I changed the dataset a little.

@NeuralNotW0rk
Copy link
Owner

I can investigate the issue in more depth much later, but for now what is the new error you are getting?

@GoombaProgrammer
Copy link
Author

GoombaProgrammer commented Sep 21, 2024

I can investigate the issue in more depth much later, but for now what is the new error you are getting?

     norm_scale = self.dora_mag.weight.view(-1) / (torch.linalg.norm(new_weight_v, dim=1)).detach()
 RuntimeError: The size of tensor a (3072) must match the size of tensor b (1536) at non-singleton dimension 0

That is the new error

@GoombaProgrammer
Copy link
Author

Nope, even when not changing the dataset between 2 runs, it still gives that error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants