-
Notifications
You must be signed in to change notification settings - Fork 238
special_lora_error #265
Description
I successfully installed it but still encountered the same issue as before. I can guarantee that this model works in the normal dev mode and performs better than the original model. I used a special reverse distillation dev model for training, but it seems that the quantization is not compatible with it.
NunchakuFluxLoraLoader
Incompatible keys detected:
lora_unet_img_in.alpha, lora_unet_img_in.lora_down.weight, lora_unet_img_in.lora_up.weight, lora_unet_txt_in.alpha, lora_unet_txt_in.lora_down.weight, lora_unet_txt_in.lora_up.weight
11:39
lora_unet_img_in.alpha, lora_unet_img_in.lora_down.weight, lora_unet_img_in.lora_up.weight, lora_unet_txt_in.alpha, lora_unet_txt_in.lora_down.weight, lora_unet_txt_in.lora_up.weight
2025-04-08T11:38:43.325874 - Traceback (most recent call last):
File "/root/autodl-tmp/ComfyUI/execution.py", line 327, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/autodl-tmp/ComfyUI/execution.py", line 202, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/autodl-tmp/ComfyUI/execution.py", line 174, in _map_node_over_list
process_inputs(input_dict, i)
File "/root/autodl-tmp/ComfyUI/execution.py", line 163, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/autodl-tmp/ComfyUI/custom_nodes/ComfyUI-nunchaku/nodes/lora/flux.py", line 61, in load_lora
sd = to_diffusers(lora_path)
^^^^^^^^^^^^^^^^^^^^^^^
File "/root/autodl-tmp/ComfyUI/ENV_ComFyUI/lib/python3.11/site-packages/nunchaku/lora/flux/diffusers_converter.py", line 17, in to_diffusers
new_tensors, alphas = FluxLoraLoaderMixin.lora_state_dict(tensors, return_alphas=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/autodl-tmp/ComfyUI/ENV_ComFyUI/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/root/autodl-tmp/ComfyUI/ENV_ComFyUI/lib/python3.11/site-packages/diffusers/loaders/lora_pipeline.py", line 1449, in lora_state_dict
state_dict = _convert_kohya_flux_lora_to_diffusers(state_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/autodl-tmp/ComfyUI/ENV_ComFyUI/lib/python3.11/site-packages/diffusers/loaders/lora_conversion_utils.py", line 561, in _convert_kohya_flux_lora_to_diffusers
return _convert_sd_scripts_to_ai_toolkit(state_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/autodl-tmp/ComfyUI/ENV_ComFyUI/lib/python3.11/site-packages/diffusers/loaders/lora_conversion_utils.py", line 523, in _convert_sd_scripts_to_ai_toolkit
raise ValueError(f"Incompatible keys detected: \n\n {', '.join(remaining_keys)}")
ValueError: Incompatible keys detected:
lora_unet_img_in.alpha, lora_unet_img_in.lora_down.weight, lora_unet_img_in.lora_up.weight, lora_unet_txt_in.alpha, lora_unet_txt_in.lora_down.weight, lora_unet_txt_in.lora_up.weight
Originally posted by @taiczhi in #262 (comment)
Okay, this is the model I trained. Thank you very much
https://modelscope.cn/models/ewq32213/test_model_nunchaku/file/view/master?fileName=models%252Fxin-000001.safetensors&status=2