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

LoRA merge fails for the CPU path with latest A1111 #389

Open
vanilla-coder opened this issue Jul 19, 2024 · 0 comments
Open

LoRA merge fails for the CPU path with latest A1111 #389

vanilla-coder opened this issue Jul 19, 2024 · 0 comments

Comments

@vanilla-coder
Copy link

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'

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

1 participant