Skip to content

TypeError: GGMLOps.Linear.forward_ggml_cast_weights() got an unexpected keyword argument 'input_act' #488

Open

Description

@MattiP451

I updated ComfyUI a couple of hours ago and started to get this as an error when I tried to run a workflow that worked fine last night
TypeError: GGMLOps.Linear.forward_ggml_cast_weights() got an unexpected keyword argument 'input_act'

In my case it was ClipLoader (GGUF) that gave the problem. Same workflow worked if I swapped out the clip for a non-GGUF one.

After a bit of yelling at Gemini, I made these changes to ComfyUI/custom_nodes/ComfyUI-GGUF/ops.py.

Every occurrence of
def forward_ggml_cast_weights(self, input):

was changed to
def forward_ggml_cast_weights(self, input, *args, input_act=None, **kwargs):

and now it works again.

Best regards
Matti

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions