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

Error: "euler_a" and "lms" not working, tensors on different devices #20

Open
torridgristle opened this issue Jul 23, 2023 · 1 comment

Comments

@torridgristle
Copy link

Same error for "euler_a" and "lms" noise schedulers.

Traceback (most recent call last):
  File "/content/LECO/./train_lora.py", line 334, in <module>
    main(args)
  File "/content/LECO/./train_lora.py", line 321, in main
    train(config, prompts)
  File "/content/LECO/./train_lora.py", line 166, in train
    latents = train_util.get_initial_latents(
  File "/content/LECO/train_util.py", line 55, in get_initial_latents
    latents = noise * scheduler.init_noise_sigma
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

"ddim" still works fine.

@torridgristle torridgristle changed the title "euler_a" and "lms" not working, tensors on different devices Error: "euler_a" and "lms" not working, tensors on different devices Jul 24, 2023
@yuelinrx
Copy link

have you solved the problem?

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