-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
LoRA merge fails for the CPU path with latest A1111 #389
Comments
It might have been fixed in the current version. Give it a try. |
Unfortunately the current version is even more broken than before, now normal merging doesn't work on the CPU path either. It fails on Macs because it requires having a torch version compiled with CUDA, even when the "use CUDA" box isn't checked (I'm using a Mac M2 so CUDA isn't possible to use). Traceback (most recent call last): |
How about current version? |
Now normal merging works again, thanks for that! But the LoRA merging still fails with the same error as before: Traceback (most recent call last): |
PS. |
May be fixed. |
Unfortunately not. But there's a new error! Progress! ;-) Traceback (most recent call last): |
This time, it should be fixed. |
This time it is indeed fixed! Thanks a lot! |
LoRA merging works fine for the last official A1111 release, but fails on v1.10.0-RC:
Traceback (most recent call last):
File "/Volumes/External One/_A1111/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/routes.py", line 488, in run_predict
output = await app.get_blocks().process_api(
File "/Volumes/External One/_A1111/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1431, in process_api
result = await self.call_function(
File "/Volumes/External One/_A1111/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1103, in call_function
prediction = await anyio.to_thread.run_sync(
File "/Volumes/External One/_A1111/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/Volumes/External One/_A1111/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/Volumes/External One/_A1111/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/Volumes/External One/_A1111/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/utils.py", line 707, in wrapper
response = f(*args, **kwargs)
File "/Volumes/External One/_A1111/stable-diffusion-webui/extensions/sd-webui-supermerger/scripts/mergers/pluslora.py", line 772, in pluslora
theta_0 = newpluslora(theta_0,filenames,lweis,names, isxl,isv2, keychanger)
File "/Volumes/External One/_A1111/stable-diffusion-webui/extensions/sd-webui-supermerger/scripts/mergers/pluslora.py", line 868, in newpluslora
theta_0[wkey], theta_0[bkey]= plusweights(theta_0[wkey], module, bias = theta_0[bkey])
File "/Volumes/External One/_A1111/stable-diffusion-webui/extensions/sd-webui-supermerger/scripts/mergers/pluslora.py", line 889, in plusweights
updown = module.calc_updown(weight.to(dtype=torch.float))
File "/Volumes/External One/_A1111/stable-diffusion-webui/extensions-builtin/Lora/network_lora.py", line 76, in calc_updown
updown = lyco_helpers.rebuild_conventional(up, down, output_shape, self.network.dyn_dim)
File "/Volumes/External One/A1111/stable-diffusion-webui/extensions-builtin/Lora/lyco_helpers.py", line 15, in rebuild_conventional
return (up @ down).reshape(shape)
RuntimeError: "addmm_impl_cpu" not implemented for 'Half'
The text was updated successfully, but these errors were encountered: