You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting 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 mat1 in method wrapper_CUDA_addmm) when using trained Lora
#641
but the Lora seem to be loaded since it can generate if i remove the <lora:_name_> from the prompt and the image that is generated is respecting the Lora
I've raised the issue to the SD.Next repo and he gave me the following reply:
lora can include weights for multiple modules - most loras are unet-only, but it can be unet and te1 and te2, etc.
and each module weights can be thousands of layers.
this error means that one of the weights is incorrect and was skipped.
if you set SD_LORA_DEBUG=true env variable, you can get more information, but in general at least one module weight in your lora is not correct. purely guessing based on reported sizes, it sounds like its training te, but using te2 instead of te1 or other way around.
as I'm a newbie in this, how can i check this that he has sent me, and what should i change in the trainer configurations to be able to use my Lora?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
have created a Lora with OneTrainer using the following configurations:
OneTrainer_config.json
but when i try to use it, it is giving me this error:
but the Lora seem to be loaded since it can generate if i remove the
<lora:_name_>
from the prompt and the image that is generated is respecting the LoraI've raised the issue to the SD.Next repo and he gave me the following reply:
as I'm a newbie in this, how can i check this that he has sent me, and what should i change in the trainer configurations to be able to use my Lora?
Beta Was this translation helpful? Give feedback.
All reactions