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

[Bug]: Switching models back and forth leads to different images #12937

Open
1 task done
df2df opened this issue Sep 1, 2023 · 1 comment
Open
1 task done

[Bug]: Switching models back and forth leads to different images #12937

df2df opened this issue Sep 1, 2023 · 1 comment
Labels
bug Report of a confirmed bug

Comments

@df2df
Copy link

df2df commented Sep 1, 2023

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

A known issue which I think was briefly fixed appears to be still be broken in 1.6 while using Loras and switching XL models. May have to do with the new model cache settings I've used:

Maximum number of checkpoints loaded at the same time = 2
Only keep one model on device = true
Checkpoints to cache in RAM (obsolete) = 0
VAE Checkpoints to cache in RAM = 0
Number of Lora networks to keep cached in memory = 0
Model cache size (requires restart) = 0

Steps to reproduce the problem

  1. XL model loaded while using a lora, generate
  2. Switch to another XL model, generate
  3. Switch back to first model, gen with all same settings and see different result
  4. May need to switch twice in step 2 before going back to first model to see the new result. May vary depending on the number of max checkpoints loaded settings

What should have happened?

Same result after switching models

Sysinfo

Linux Ubuntu 32GB RAM 6800XT
Version 1.6

What browsers do you use to access the UI ?

Mozilla Firefox

Console logs

No errors

Additional information

No response

@df2df df2df added the bug-report Report of a bug, yet to be confirmed label Sep 1, 2023
@catboxanon catboxanon changed the title [Bug]: Switching XL models back and forth leads to different images [Bug]: Switching models back and forth leads to different images Sep 5, 2023
@catboxanon
Copy link
Collaborator

catboxanon commented Sep 5, 2023

I've seen someone mention this happens with SD1 models too, so I've retitled the issue accordingly. However, this isn't something I'm able to reproduce, but for a different reason, as I get this as part of step 3 described above when generating:

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument index in method wrapper_CUDA__index_select)

Either way, I'm going to mark this as a bug, because something seems to be going wrong regardless. My guess is it's related to the new model cache setting.

Also, @df2df -- please attach the sysinfo file (found under Settings -> Sysinfo in the webui). Normally this would have been closed but I'm giving this the benefit of the doubt since others and myself have this issue.

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

No branches or pull requests

2 participants