Problem
After updating ComfyUI to versions 0.3.76 or more (in my case 0.4.0), my Z-Image Turbo LoRA started producing different images even with:
identical workflow
identical prompts
identical seed
identical LoRA strength settings
(only ComfyUI was different)

Before Comfy update

Afer Comfy update
Typical symptoms:
the LoRA looks âtoo strongâ or âwrongâ, the details are lost.
Whatâs Going On
Z-Image Turbo LoRAs target specific internal modules (layers) of the model. When ComfyUI updates how Z-Image Turbo LoRA layers are mapped/loaded/applied, a LoRA that was tuned for an older mapping can suddenly affect a different set of submodules (or affect more of them), which changes the output.
In practice, the most sensitive part tends to be the attention projections:
to_qto_kto_vto_out
If ComfyUI starts applying these attention LoRA layers differently than before, the âsame LoRA at the same weightâ can behave very differently.
The Fix: Remove Attention LoRA Layers (Pruned / Compatibility Variant)
The workaround that gave me stable behavior again was to make a âcompatibility/prunedâ variant of the LoRA that removes the attention projection LoRA weights and keeps the rest (often MLP/FFN/etc.).
This has two practical advantages:
Stability: it avoids the most version-sensitive part of the LoRA application.
Smaller file size: removing those tensors reduces the LoRA size significantly.
Conceptually:
âMutingâ a layer (making it have no effect) can be done either by setting weights to zero or by removing those weights entirely.
Removing them is cleanerand gives a smaller file.
Same image with the pruned version of the Lora:

As you can see it's almost identical to the last version of Comfy !
I link you the python script I used in the attachments. Good news is that it's almost instant to process so no need to retrain.
To use it: place it in your lora folder then in cmd type:
python prune_zit_attention.py your_lora.safetensors your_lora_pruned.safetensors
Can we improve it further ?
Yes by using the irght sampler and scheduler when generating il will improve the details, skin texture and the lora effect without degrading the image like when increasing the lora weight.
You should be using
Sampler dpmpp_2s_ancestral
Scheduler FlowMatchEulerDiscreteScheduler
"FlowMatchEulerDiscrete seems not exposed in ComfyUI, but it is what the official Z-Image demo in diffusers use.
In short...if you want sharper and noise free images, use this!"
If that scheduler does not appear in your scheduler list, you need to install it as a custom node from https://github.com/erosDiffusion/ComfyUI-EulerDiscreteScheduler git clone https://github.com/erosDiffusion/ComfyUI-EulerDiscreteScheduler.git in your custom nodes folder.
Resulting image for us (keeping all other parameters the same)

Let me know if this guide helps you or if you have any question !
You can find my loras on my profile and my celebrities loras on my own website.
Thanks to alcaitiff who made me understand this issue by making a pruned version of their lora

