Skip to content

TypeError: load_diffusion_model_state_dict() got an unexpected keyword argument 'metadata' #407

@JohnZhuYX

Description

@JohnZhuYX

i can not load the model
Wan2.2-I2V-A14B-HighNoise-Q8_0.gguf

comfyui vision is 0.3.59
ComfyUI-GGUF vision is the newest one, i just downloaded it.

this is the error.

  • LoraLoaderModelOnly 102:
    • Value not in list: lora_name: 'wan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors' not in []
      Output will be ignored
      invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
      got prompt
      Using xformers attention in VAE
      Using xformers attention in VAE
      VAE load device: cuda:0, offload device: cpu, dtype: torch.bfloat16
      Using scaled fp8: fp8 matrix mult: False, scale input: False
      CLIP/text encoder model load device: cuda:0, offload device: cpu, current: cpu, dtype: torch.float16
      Requested to load WanTEModel
      loaded completely 20191.8 6419.477203369141 True
      Requested to load WanVAE
      loaded completely 11913.835292816162 1344.0869674682617 True
      gguf qtypes: F16 (694), Q8_0 (400), F32 (1)
      !!! Exception during processing !!! load_diffusion_model_state_dict() got an unexpected keyword argument 'metadata'
      Traceback (most recent call last):
      File "/home/2tdisk/working/AI/comfyui/ComfyUI/execution.py", line 496, in execute
      output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, hidden_inputs=hidden_inputs)
      File "/home/2tdisk/working/AI/comfyui/ComfyUI/execution.py", line 315, in get_output_data
      return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, hidden_inputs=hidden_inputs)
      File "/home/2tdisk/working/AI/comfyui/ComfyUI/execution.py", line 289, in _async_map_node_over_list
      await process_inputs(input_dict, i)
      File "/home/2tdisk/working/AI/comfyui/ComfyUI/execution.py", line 277, in process_inputs
      result = f(**inputs)
      File "/home/2tdisk/working/AI/comfyui/ComfyUI/custom_nodes/ComfyUI-GGUF/nodes.py", line 169, in load_unet
      model = comfy.sd.load_diffusion_model_state_dict(
      TypeError: load_diffusion_model_state_dict() got an unexpected keyword argument 'metadata'

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