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

RuntimeError: mat1 and mat2 shapes cannot be multiplied (3456x64 and 128x3072) #5721

Open
IAFFeng opened this issue Nov 22, 2024 · 4 comments
Labels
Potential Bug User is reporting a bug. This should be tested.

Comments

@IAFFeng
Copy link

IAFFeng commented Nov 22, 2024

Expected Behavior

I don't know where the problem is, I hope there will be no such error.

Actual Behavior

When using the workflow of FLUX.1-Canny-dev-lora, sometimes an error is reported, and the image can be produced again after clicking again. It is sometimes good and sometimes bad. It feels like a bug

Steps to Reproduce

ComfyUI_temp_suidd_00020_

Debug Logs

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "H:\ComfyUI_windows_portable\ComfyUI\comfy\ops.py", line 64, in forward_comfy_cast_weights
    return torch.nn.functional.linear(input, weight, bias)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: mat1 and mat2 shapes cannot be multiplied (3456x64 and 128x3072)

Other

No response

@IAFFeng IAFFeng added the Potential Bug User is reporting a bug. This should be tested. label Nov 22, 2024
@IAFFeng
Copy link
Author

IAFFeng commented Nov 22, 2024

Changing to t5xxl_fp8_e4m3fn_scaled will be fine, it seems

@George0726
Copy link

I have tried with t5xxl_fp8_e4m3fn_scaled. it seems still not work

@GammelSami
Copy link

GammelSami commented Nov 23, 2024

got the error "mat1 and mat2 shapes cannot be multiplied (4096x64 and 128x3072)"
when i load my workflow that generated successfully yesterday rgthree's link fixer says:
grafik
Redux + Canny Lora (corrupted).json
report.txt

Edit: nevermind now i also get the error without the linking data message.

@Stardesign2024
Copy link

It is possible that different models have been called in the workflow.unload modles,is OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug User is reporting a bug. This should be tested.
Projects
None yet
Development

No branches or pull requests

4 participants