-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Conv2d.forward() takes 2 positional arguments but 3 were given #1037
Comments
@hoang1007 hi! I faced the same issue and it is caused by the See #916 #879 #937 (comment) for more detail. If you downgrade your diffusers version to |
Thank u. I downgraded diffusers version to 0.20.2 and it's working. Does peft have plan to fix it? |
As far as I can tell, the fix is on their to-do list #937 (comment) #936 |
Okei, thank u |
Hi, after installing diffusers upstream the mentioned issue was fixed, but now I seem to be getting a different issue also related to diffusers>0.21.0.
|
@Xynonners hi! Thanks for bringing this up! As far as I can tell, this issue may be related to the recent changes in diffusers+peft compatibility (#1029, #1034). I have a PR for the LoKr adapter #978 (but it is not in the upstream right now) and it also should fix the LoHa adapter with my recent changes #978 (comment) (as they share a lot of common code). While we are almost at the finish line with this PR, could you please try out the version from PR #978? |
EDIT: @kovalexal oops, forgot to update my diffusers, false call. |
Hmmm, that seems strange. Are you still using the latest version from #978 PR? According to that code, Here is also a small code that demonstrates that we are able to pass scale value to import torch
from peft.tuners.loha.model import Linear
lin = Linear(
in_features=10, out_features=10, bias=False,
device="cpu", dtype=torch.float32, r=4, alpha=4, adapter_name="default"
)
lin.scale_layer(2.0)
lin.unscale_layer(2.0) I am not sure, maybe there are some missing parts in diffusers + peft integration for LoHa adapters, do you happen to have some code snippet + library versions you are using for me to investigate what is happening here? |
ah sorry, it seems like the pip cache was screwing with the install from git+, checked the site-packages and it was missing stuff. updated correctly this time and it works 👍 |
System Info
peft==0.6.0dev
diffusers==0.21.4
Who can help?
No response
Information
Tasks
examples
folderReproduction
Sorry, but I don't know how to provide a simple code snippet because it's happend when I training diffusion. It require several steps like prepare data, training code...
Expected behavior
I think the reason is:
LoRACompatibleConv
and it take 2 argumentsget_peft_model()
. the conv1 layer has changed to typepeft.tuners.lora.layer.Conv2d
and it take only 1 argumentThe text was updated successfully, but these errors were encountered: